/* ==========================================================================
   Luvella — "Velvet Twilight" marketing site
   Design tokens are ported 1:1 from the iOS app (AppColors / AppSpacing /
   AppTypography). The website is meant to read as a continuation of the app's
   candlelit surface, not a separate brand.
   ========================================================================== */

/* ---- Fonts -------------------------------------------------------------- */
/* Display + companion "voice" = Fraunces (warm optical serif, echoes the app's
   New York). UI / body = the system stack (the app uses SF Pro — deliberate). */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..600;1,9..144,300..600&display=swap');

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Backgrounds (deep velvet plum) */
  --bg:            #150C1E;
  --bg-2:          #241338;
  --card:          #281A38;
  --card-light:    #36244A;
  --hairline:      #4A3360;

  /* Accents */
  --amethyst:      #B07BE0;  /* primary */
  --lilac:         #CBA8F2;  /* highlight */
  --orchid:        #D98AC0;  /* secondary */
  --magenta-rose:  #B05F9E;  /* deep */

  /* Text */
  --text:          #F1EAF7;
  --text-2:        #C6B6D4;
  --muted:         #A595B5;  /* lightened from app's #8E7BA0 to clear WCAG AA on web */
  --ink:           #231033;  /* dark plum text on light bubbles */

  /* Bubbles */
  --user-top:      #D9A8EA;
  --user-bottom:   #C489D6;
  --ai-bubble:     #2B1C3D;

  /* Gradients */
  --ribbon: linear-gradient(135deg, #C9A2F0 0%, #CF8FD6 50%, #D98AC0 100%);
  --ribbon-text: linear-gradient(90deg, var(--lilac), var(--orchid));
  --ribbon-soft: linear-gradient(135deg, rgba(176,123,224,.24), rgba(217,138,192,.22));

  /* Radii (AppRadius) */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-card: 24px; --r-xl: 28px; --r-pill: 100px;

  /* Spacing (AppSpacing) */
  --s-xxs:4px; --s-xs:8px; --s-sm:12px; --s-md:16px; --s-lg:24px;
  --s-xl:32px; --s-xxl:48px; --s-xxxl:64px;

  /* Shadows */
  --glow:        0 18px 60px -12px rgba(176, 95, 158, .55);
  --glow-strong: 0 28px 90px -10px rgba(203, 168, 242, .45);
  --card-shadow: 0 8px 16px rgba(0,0,0,.35);
  --lift:        0 24px 70px -20px rgba(0,0,0,.7);

  --maxw: 1160px;
  --nav-h: 70px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: .002em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(203,168,242,.3); color: #fff; }

/* ---- Atmosphere: the candlelight background ----------------------------- */
/* Mirrors CandlelightBackground(): plum gradient + two drifting glow orbs +
   a faint film grain. Fixed so it sits behind everything as you scroll. */
.atmosphere {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, var(--bg-2) 0%, var(--bg) 55%);
}
.atmosphere::before,
.atmosphere::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .9;
}
.atmosphere::before {
  width: 70vw; height: 70vw; left: -22vw; top: -18vh;
  background: radial-gradient(circle, rgba(176,123,224,.30), transparent 65%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.atmosphere::after {
  width: 62vw; height: 62vw; right: -20vw; bottom: -22vh;
  background: radial-gradient(circle, rgba(176,95,158,.26), transparent 65%);
  animation: drift2 26s var(--ease) infinite alternate;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, -5vh, 0) scale(1.08); } }

/* cursor-follow glow (set by JS) */
.cursor-glow {
  position: fixed; z-index: -1; width: 480px; height: 480px; border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(203,168,242,.10), transparent 60%);
  transition: opacity .4s ease; opacity: 0;
}

/* ---- Layout primitives -------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vw, 140px) 0; }

.overline {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .22em; color: var(--muted);
}
.overline.accent { color: var(--amethyst); }

.serif { font-family: "Fraunces", Georgia, serif; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; line-height: 1.05; letter-spacing: -.018em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); letter-spacing: -.01em; }

.lede { color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 46ch; }

.gradient-text {
  background: var(--ribbon-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.italic-accent { font-style: italic; color: var(--lilac); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 15px 28px; border-radius: var(--r-pill); border: 0;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--ribbon); color: var(--ink); box-shadow: var(--glow); }
.btn-primary::after { /* sheen */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn-primary:hover::after { transform: translateX(130%); }
.btn-ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--amethyst); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* App Store badge button */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px 12px 20px; border-radius: 16px;
  background: #050308; border: 1px solid var(--hairline); color: #fff;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .35s var(--ease);
}
.appstore:hover { transform: translateY(-2px); border-color: var(--amethyst); box-shadow: var(--glow); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .small { font-size: 11px; color: var(--text-2); line-height: 1; letter-spacing: .02em; }
.appstore .big { font-family: "Fraunces", Georgia, serif; font-size: 19px; font-weight: 500; line-height: 1.15; }

/* ---- Brand mark (the "L." token) --------------------------------------- */
.mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--lilac), var(--orchid) 75%);
  box-shadow: var(--glow);
  font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--ink);
  font-size: 21px; line-height: 1;
}
.mark .dot { /* the period after L */ }
.wordmark { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }

/* ---- Nav ---------------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(21,12,30,.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: rgba(74,51,96,.5);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand .mark { width: 34px; height: 34px; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 90px)); padding-bottom: clamp(60px, 9vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); margin: 18px 0 22px; }
.hero h1 .line { display: block; }
.hero .lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.hero-trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 12px var(--orchid); }

/* ---- Phone mockup ------------------------------------------------------- */
.phone {
  position: relative; width: 300px; max-width: 78vw; aspect-ratio: 372 / 806;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, #3a2750, #1a0f28);
  box-shadow: var(--lift), inset 0 1px 0 rgba(255,255,255,.08);
  border: 1px solid rgba(203,168,242,.18);
}
.phone::before { /* notch */
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 16px; background: #000; z-index: 3;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone-glow { position: absolute; inset: -14% -8%; z-index: -1; background: radial-gradient(circle, rgba(176,123,224,.4), transparent 62%); filter: blur(40px); }

.hero-phone { position: relative; display: flex; justify-content: center; }
.hero-phone .phone { animation: float 7s ease-in-out infinite; will-change: transform; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(-2deg); } }

/* floating chips around the hero phone */
.chip {
  position: absolute; z-index: 4; padding: 11px 16px; border-radius: 16px;
  background: rgba(40,26,56,.92); border: 1px solid var(--hairline);
  font-size: 13.5px; color: var(--text); box-shadow: var(--card-shadow);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  will-change: transform;
}
.chip .serif { font-style: italic; color: var(--lilac); }
.chip-1 { top: 12%; left: -6%;  animation: float 6s ease-in-out infinite; }
.chip-2 { top: 44%; right: -10%; animation: float 7.5s ease-in-out .6s infinite; }
.chip-3 { bottom: 11%; left: 2%; animation: float 6.8s ease-in-out 1.1s infinite; }

/* ---- Marquee (vibes ticker) -------------------------------------------- */
.marquee { padding: 26px 0; border-block: 1px solid rgba(74,51,96,.4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: scroll-x 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; color: var(--text-2); display: flex; align-items: center; gap: 40px; font-style: italic; }
.marquee-item::after { content: "·"; color: var(--magenta-rose); font-style: normal; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---- Feature rows ------------------------------------------------------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(80px, 11vw, 150px); }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy h2 { margin: 16px 0 18px; }
.feature-media { display: flex; justify-content: center; }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature-list .tick { color: var(--orchid); flex: none; margin-top: 3px; }

/* ---- Small feature grid ------------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; }
.fcard {
  background: linear-gradient(180deg, rgba(54,36,74,.5), rgba(40,26,56,.5));
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: 28px; box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.fcard:hover { transform: translateY(-5px); border-color: rgba(203,168,242,.45); box-shadow: var(--glow); }
.fcard .ficon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--ribbon-soft); border: 1px solid var(--hairline); margin-bottom: 18px;
}
.fcard .ficon svg { width: 22px; height: 22px; color: var(--lilac); }
.fcard h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fcard p { color: var(--muted); font-size: 15px; }
.fcard .soon { font-size: 11px; color: var(--amethyst); border: 1px solid var(--hairline); padding: 2px 9px; border-radius: var(--r-pill); margin-left: 8px; vertical-align: middle; }

/* ---- Chat demo ---------------------------------------------------------- */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px,6vw,72px); align-items: center; }
.chat-window {
  background: linear-gradient(180deg, rgba(36,19,56,.7), rgba(21,12,30,.85));
  border: 1px solid var(--hairline); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--lift); min-height: 420px;
  display: flex; flex-direction: column; gap: 14px;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(74,51,96,.5); }
.chat-head .mark { width: 38px; height: 38px; font-size: 19px; }
.chat-head .who { font-family:"Fraunces",serif; font-size: 18px; font-weight: 500; }
.chat-head .status { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head .status::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--orchid); box-shadow: 0 0 8px var(--orchid); }
.chat-body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bubble {
  max-width: 78%; padding: 12px 16px; border-radius: 20px; font-size: 15.5px; line-height: 1.5;
  opacity: 0; transform: translateY(10px); animation: pop .5s var(--ease) forwards;
}
.bubble.ai { align-self: flex-start; background: var(--ai-bubble); color: var(--text);
  font-family: "Fraunces", Georgia, serif; border: 1px solid rgba(74,51,96,.5); border-bottom-left-radius: 7px; }
.bubble.me { align-self: flex-end; background: linear-gradient(160deg, var(--user-top), var(--user-bottom));
  color: var(--ink); font-weight: 500; border-bottom-right-radius: 7px; }
.bubble.typing { display: inline-flex; gap: 5px; align-self: flex-start; background: var(--ai-bubble); padding: 16px; border:1px solid rgba(74,51,96,.5); }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2){ animation-delay:.2s } .bubble.typing span:nth-child(3){ animation-delay:.4s }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes blink { 0%,60%,100%{ opacity:.3; transform: translateY(0) } 30%{ opacity:1; transform: translateY(-3px) } }

/* ---- How it works ------------------------------------------------------- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 54px; }
.flow-node {
  text-align: center; padding: 32px 22px; border-radius: var(--r-card);
  background: rgba(40,26,56,.45); border: 1px solid var(--hairline); position: relative;
}
.flow-node .glyph { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display:grid; place-items:center; background: var(--ribbon-soft); border: 1px solid var(--hairline); }
.flow-node .glyph svg { width: 28px; height: 28px; color: var(--lilac); }
.flow-node h3 { font-size: 1.1rem; margin-bottom: 8px; }
.flow-node p { color: var(--muted); font-size: 14.5px; }
.flow-arrow { display:grid; place-items:center; color: var(--magenta-rose); }
.flow-note { text-align:center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* ---- Pricing ------------------------------------------------------------ */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 54px; max-width: 880px; margin-inline: auto; }
.price {
  border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 34px;
  background: rgba(40,26,56,.4); display: flex; flex-direction: column;
}
.price.featured { border-color: rgba(203,168,242,.5); background: linear-gradient(180deg, rgba(54,36,74,.6), rgba(40,26,56,.5)); box-shadow: var(--glow); position: relative; }
.price .tier { display:flex; align-items:center; justify-content:space-between; margin-bottom: 8px; }
.price .tier h3 { font-size: 1.4rem; }
.price .badge { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--ribbon); padding: 4px 12px; border-radius: var(--r-pill); }
.price .amount { font-family:"Fraunces",serif; font-size: 2.6rem; font-weight: 500; margin: 6px 0 2px; }
.price .amount small { font-size: 1rem; color: var(--muted); font-family: inherit; }
.price .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; }
.price li { display:flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.price li .tick { color: var(--orchid); flex: none; margin-top: 3px; }
.price .foot { margin-top: auto; }

/* ---- Privacy promise ---------------------------------------------------- */
.promise { background: linear-gradient(180deg, rgba(36,19,56,.55), rgba(21,12,30,.2)); border-block: 1px solid rgba(74,51,96,.45); }
.promise .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.promise-list { display: grid; gap: 18px; margin-top: 28px; }
.promise-list .row { display: flex; gap: 14px; }
.promise-list .glyph { width: 40px; height: 40px; flex:none; border-radius: 11px; display:grid; place-items:center; background: var(--ribbon-soft); border: 1px solid var(--hairline); }
.promise-list .glyph svg { width: 20px; height: 20px; color: var(--lilac); }
.promise-list h3 { font-size: 1.05rem; margin-bottom: 3px; }
.promise-list p { color: var(--muted); font-size: 14.5px; }

/* ---- Final CTA ---------------------------------------------------------- */
.final { text-align: center; }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 20px; }
.final .lede { margin: 0 auto 34px; }
.final-actions { display:flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ------------------------------------------------------------- */
.footer { border-top: 1px solid rgba(74,51,96,.5); padding: 56px 0 40px; }
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand-col { max-width: 320px; }
.footer .brand-col p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer h3 { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer ul a:hover { color: var(--text); }
.footer-base { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(74,51,96,.4);
  display:flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-base .rating { border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 7px; margin-right: 8px; color: var(--text-2); font-weight: 600; }

/* ---- Legal pages -------------------------------------------------------- */
.legal { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 90px; }
.legal .wrap { max-width: 780px; }
.legal-head { margin-bottom: 44px; padding-bottom: 28px; border-bottom: 1px solid rgba(74,51,96,.5); }
.legal-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 14px; }
.legal-head .meta { color: var(--muted); font-size: 14px; }
.legal-body h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.legal-body h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.legal-body p, .legal-body li { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 9px; }
.legal-body li::marker { color: var(--orchid); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .callout {
  background: rgba(40,26,56,.55); border: 1px solid var(--hairline);
  border-left: 3px solid var(--amethyst); border-radius: var(--r-md);
  padding: 18px 22px; margin: 24px 0;
}
.legal-body .callout p:last-child { margin-bottom: 0; }
.toc { background: rgba(40,26,56,.4); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px 26px; margin-bottom: 40px; }
.toc .toc-title { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.toc a { color: var(--text-2); font-size: 15px; }
.toc a:hover { color: var(--lilac); }

/* ---- Reveal-on-scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---- Hero load stagger -------------------------------------------------- */
.load { opacity: 0; transform: translateY(20px); animation: load-in .9s var(--ease) forwards; }
.load.l1{animation-delay:.05s} .load.l2{animation-delay:.18s} .load.l3{animation-delay:.31s}
.load.l4{animation-delay:.44s} .load.l5{animation-delay:.57s}
@keyframes load-in { to { opacity: 1; transform: none; } }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.menu-open { background: rgba(21,12,30,.96); backdrop-filter: blur(18px); }
  .nav.menu-open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 18px 24px 28px; gap: 20px; border-bottom: 1px solid var(--hairline);
    background: rgba(21,12,30,.98); align-items: flex-start;
  }
  .hero .wrap, .demo, .promise .wrap, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .hero-phone, .feature-media { order: 2; }
  .feature-row.reverse .feature-media { order: 2; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .card-grid, .flow, .prices { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .chip-1 { left: -2%; } .chip-2 { right: -2%; }
}
