/* elara-site.css — Sistema Elara · marketing + legal
   Mood Serene (Sage) canónico · light/dark vía [data-theme] */

/* ─────────────────────────── Tokens ─────────────────────────── */
:root {
  --font-body: "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  --bg: #f3efe7;
  --bg-elev: #fbf8f1;
  --bg-inset: #ece6da;
  --ink: #1d2a26;
  --ink-soft: #586863;
  --ink-muted: #8a9590;
  --hairline: rgba(29, 42, 38, 0.10);
  --hairline-strong: rgba(29, 42, 38, 0.18);
  --brand: #1d4a44;
  --brand-soft: #2d6960;
  --brand-tint: #d6e4df;
  --accent: #c97a52;
  --ok: #2d6960;
  --err: #a64d3a;
  --aura-a: rgba(29, 74, 68, 0.10);
  --aura-b: rgba(201, 122, 82, 0.12);
  --shadow-card: 0 1px 2px rgba(29, 42, 38, .04), 0 12px 30px -18px rgba(29, 42, 38, .22);
  --shadow-phone: 0 50px 110px -40px rgba(29, 42, 38, .45), 0 18px 50px -30px rgba(29, 42, 38, .30);
  --on-brand: #f3efe7;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0e1614;
  --bg-elev: #16201d;
  --bg-inset: #0a1110;
  --ink: #ecefe9;
  --ink-soft: #a6b2ad;
  --ink-muted: #6b7872;
  --hairline: rgba(236, 239, 233, 0.09);
  --hairline-strong: rgba(236, 239, 233, 0.16);
  --brand: #7fc8b8;
  --brand-soft: #9adac9;
  --brand-tint: rgba(127, 200, 184, 0.13);
  --accent: #e9a07c;
  --ok: #7fc8b8;
  --err: #e07a64;
  --aura-a: rgba(127, 200, 184, 0.14);
  --aura-b: rgba(233, 160, 124, 0.12);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -24px rgba(0, 0, 0, .6);
  --shadow-phone: 0 50px 120px -40px rgba(0, 0, 0, .8), 0 18px 50px -30px rgba(0, 0, 0, .6);
  --on-brand: #0e1614;
  color-scheme: dark;
}

/* ─────────────────────────── Reset ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .35s var(--ease), color .35s var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--brand-tint); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 999px; }

/* ─────────────────────────── Type ─────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 500;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.14;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.serif-em { font-family: var(--font-display); font-style: italic; }
.lead {
  font-size: clamp(17px, 2.1vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}

/* ─────────────────────────── Layout ─────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.stack { display: flex; flex-direction: column; }

/* ─────────────────────────── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .18s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { box-shadow: 0 10px 28px -12px color-mix(in oklab, var(--brand) 70%, transparent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--bg-elev); border-color: var(--brand); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 19px; height: 19px; }

/* Google Play badge button */
.play-badge {
  display: inline-flex; align-items: center; gap: 14px;
  height: 60px; padding: 0 26px 0 22px; border-radius: 16px;
  background: var(--ink); color: var(--bg);
  transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(0,0,0,.5); }
.play-badge .pb-glyph { width: 26px; height: 28px; flex-shrink: 0; }
.play-badge .pb-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge .pb-small { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; opacity: .72; font-family: var(--font-mono); }
.play-badge .pb-big { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.play-badge .pb-small { white-space: nowrap; }

/* ─────────────────────────── Wordmark / mark ─────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.wordmark .luna { width: 26px; height: 26px; flex-shrink: 0; }
.wordmark .name { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.02em; line-height: 1; }

/* ─────────────────────────── Pills / chips ─────────────────────────── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-soft);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid color-mix(in oklab, var(--brand) 18%, transparent);
}
.badge-pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

/* ─────────────────────────── Toggles (theme + lang) ─────────────────────────── */
.seg {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--bg-inset); border: 1px solid var(--hairline);
}
.seg button {
  appearance: none; border: none; background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.seg button[aria-pressed="true"] { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow-card); }
.seg button svg { width: 15px; height: 15px; }
.icon-btn {
  appearance: none; border: 1px solid var(--hairline); background: var(--bg-elev);
  color: var(--ink-soft); width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn svg { width: 19px; height: 19px; }

/* ─────────────────────────── Nav ─────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 14px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-soft); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-elev); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-burger { display: none; }

/* mobile sheet */
.mobile-sheet {
  position: fixed; inset: 72px 0 0; z-index: 49; background: var(--bg);
  padding: 32px var(--gutter); display: none; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--hairline);
}
.mobile-sheet[data-open] { display: flex; }
.mobile-sheet a { font-family: var(--font-display); font-size: 30px; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-sheet .ms-tools { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ─────────────────────────── Cards ─────────────────────────── */
.card {
  background: var(--bg-elev); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}
.feature {
  background: var(--bg-elev); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); padding: 30px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.feature:hover { transform: translateY(-4px); border-color: var(--hairline-strong); box-shadow: 0 26px 50px -30px rgba(29,42,38,.3); }
.feature .ico {
  width: 50px; height: 50px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand); margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 12%, transparent);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 15px; color: var(--ink-soft); line-height: 1.55; }

/* ─────────────────────────── Phone frame ─────────────────────────── */
.phone {
  width: 300px; aspect-ratio: 300 / 620; flex-shrink: 0;
  border-radius: 46px; padding: 11px;
  background: linear-gradient(160deg, color-mix(in oklab, var(--ink) 88%, #000) 0%, color-mix(in oklab, var(--ink) 70%, #000) 100%);
  box-shadow: var(--shadow-phone);
  position: relative;
}
:root[data-theme="dark"] .phone { background: linear-gradient(160deg, #2a3633 0%, #161e1c 100%); }
.phone-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); color: var(--ink); position: relative;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; border-radius: 999px; background: #000; z-index: 6;
}
.statusbar {
  height: 46px; flex-shrink: 0; padding: 16px 24px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--ink); position: relative; z-index: 5;
}
.statusbar .sb-right { display: flex; align-items: center; gap: 5px; }
.statusbar .sb-right svg { width: 16px; height: 16px; }

/* mini app primitives used in phone screens */
.mono-eyebrow { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); }
.tabbar {
  margin-top: auto; height: 62px; flex-shrink: 0; border-top: 1px solid var(--hairline);
  background: var(--bg-elev); display: flex; align-items: center; justify-content: space-around; padding: 0 10px;
}
.tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--ink-muted); }
.tabbar .tab.active { color: var(--brand); }
.tabbar .tab svg { width: 20px; height: 20px; }
.tabbar .tab span { font-size: 9px; font-weight: 500; }
.tabbar .tab-add { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; }
.tabbar .tab-add svg { width: 22px; height: 22px; }
.catglyph { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.catglyph svg { width: 18px; height: 18px; }
.tnum { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum","lnum"; }

/* phone screen internals */
.ph-body { flex: 1; overflow: hidden; padding: 4px 20px 0; position: relative; }
.ph-aura { position: absolute; top: -90px; left: 50%; transform: translateX(-50%); width: 320px; height: 320px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, var(--aura-a) 0%, transparent 62%); }
.ph-hdr { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 8px; position: relative; z-index: 2; }
.ph-greet { font-family: var(--font-display); font-style: italic; font-size: 26px; line-height: 1; color: var(--ink); margin-top: 4px; }
.ph-balance { font-size: 42px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.ph-moon { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-stat { background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 14px; padding: 11px 12px; }
.ph-stat .k { font-family: var(--font-mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.ph-stat .v { font-size: 16px; font-weight: 600; margin-top: 6px; letter-spacing: -0.01em; }
.led { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.led .c { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.led .s { font-size: 10.5px; color: var(--ink-muted); margin-top: 1px; }
.led .a { margin-left: auto; font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.chat { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; position: relative; z-index: 2; }
.bub { max-width: 78%; padding: 11px 14px; border-radius: 18px; font-size: 13px; line-height: 1.45; }
.bub.them { background: var(--bg-elev); border: 1px solid var(--hairline); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.bub.me { background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 6px; align-self: flex-end; }
.chat-card { align-self: flex-start; max-width: 88%; background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 16px; padding: 13px; box-shadow: var(--shadow-card); }
.ph-input { margin-top: auto; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 12px 16px 18px; }
.ph-input .field { flex: 1; height: 42px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--hairline); display: flex; align-items: center; padding: 0 16px; color: var(--ink-muted); font-size: 12.5px; }
.ph-input .send { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ph-input .send svg { width: 18px; height: 18px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hairline); }
.acct .ring { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brand); }
.acct .ring svg { width: 15px; height: 15px; }
.goal-card { background: var(--bg-elev); border: 1px solid var(--hairline); border-radius: 16px; padding: 15px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-card); }
.bar { height: 6px; border-radius: 999px; background: var(--bg-inset); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--brand); }

/* ─────────────────────────── Showcase ─────────────────────────── */
.showcase-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.showcase-row.reverse .showcase-phone { order: -1; }
.showcase-phone { display: flex; justify-content: center; }
.showcase-copy h2 { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 18px; }
.showcase-copy .lead { margin-bottom: 26px; }
.tick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.tick-list .tick { width: 24px; height: 24px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.tick-list .tick svg { width: 14px; height: 14px; }
.tick-list b { color: var(--ink); font-weight: 600; }

/* ─────────────────────────── Steps ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step .num { font-family: var(--font-display); font-size: 46px; color: var(--brand); line-height: 1; opacity: .9; }
.step h3 { font-size: 20px; margin: 16px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ─────────────────────────── Privacy band ─────────────────────────── */
.band {
  background: var(--brand); color: var(--on-brand);
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 76px);
  position: relative; overflow: hidden; text-align: center;
}
.band h2 { color: var(--on-brand); font-size: clamp(28px, 4.4vw, 46px); margin: 0 0 18px; }
.band p { color: color-mix(in oklab, var(--on-brand) 82%, transparent); max-width: 620px; margin: 0 auto 28px; font-size: 17px; line-height: 1.6; }
.band .btn-ghost { color: var(--on-brand); border-color: color-mix(in oklab, var(--on-brand) 34%, transparent); }
.band .btn-ghost:hover { background: color-mix(in oklab, var(--on-brand) 12%, transparent); border-color: var(--on-brand); }
.band-aura { position: absolute; border-radius: 50%; pointer-events: none; }

/* ─────────────────────────── Compare table ─────────────────────────── */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--hairline); font-size: 15.5px; }
.compare thead th { font-size: 13px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.compare thead th.col-plus { color: var(--brand); }
.compare td.cell { text-align: center; width: 130px; }
.compare td.feat { color: var(--ink); font-weight: 500; }
.compare .col-plus-cell { background: color-mix(in oklab, var(--brand-tint) 50%, transparent); }
.compare .ic-yes { color: var(--brand); }
.compare .ic-no { color: var(--ink-muted); opacity: .5; }
.compare svg { width: 20px; height: 20px; display: inline-block; }
.compare-wrap { border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--bg-elev); }

/* ─────────────────────────── FAQ ─────────────────────────── */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 4px; display: flex;
  align-items: center; justify-content: space-between; gap: 20px;
  font-size: 18px; font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink-muted); transition: transform .25s var(--ease); }
.faq details[open] summary .chev { transform: rotate(45deg); color: var(--brand); }
.faq .faq-body { padding: 0 4px 26px; color: var(--ink-soft); font-size: 16px; max-width: 760px; line-height: 1.6; }

/* ─────────────────────────── Footer ─────────────────────────── */
.footer { border-top: 1px solid var(--hairline); background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 40px; padding-block: 56px 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 16px; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: var(--ink-soft); font-size: 15px; transition: color .2s var(--ease); width: fit-content; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--hairline); flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13.5px; color: var(--ink-muted); }
.footer-tools { display: flex; align-items: center; gap: 10px; }

/* ─────────────────────────── Legal pages ─────────────────────────── */
.legal-head { padding-block: clamp(48px, 7vw, 96px) 40px; border-bottom: 1px solid var(--hairline); }
.legal-head .eyebrow { margin-bottom: 18px; display: block; }
.legal-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 6vw, 60px); margin: 0 0 16px; letter-spacing: -0.015em; line-height: 1.1; }
.legal-head .meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-muted); font-size: 14px; }
.legal-head .meta .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; padding-block: 56px 96px; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 14px; font-weight: 500; }
.legal-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.legal-toc a {
  display: block; padding: 7px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-soft);
  border-left: 2px solid transparent; transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.legal-toc a:hover, .legal-toc a.active { color: var(--brand); background: var(--brand-tint); }

.prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 3.4vw, 32px); color: var(--ink); margin: 52px 0 16px; letter-spacing: -0.01em; scroll-margin-top: 96px; line-height: 1.12; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin: 30px 0 10px; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.prose a:hover { text-decoration-color: var(--brand); }
.prose ul { margin: 0 0 18px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--brand); }
.prose .muted { color: var(--ink-muted); font-size: 15px; }
.prose em { font-style: italic; }

.tldr { background: var(--brand-tint); border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent); border-radius: var(--radius-md); padding: 26px 28px; margin-bottom: 8px; }
.tldr h2 { font-family: var(--font-body); font-size: 14px !important; font-weight: 600; color: var(--brand) !important; margin: 0 0 10px !important; letter-spacing: 0.02em; text-transform: none; }
.tldr p { margin: 0; color: var(--ink); font-size: 16px; }

.callout { border-left: 3px solid var(--accent); background: color-mix(in oklab, var(--accent) 9%, transparent); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 8px 0 20px; color: var(--ink); font-size: 15.5px; }

.legal-table-wrap { overflow-x: auto; margin: 8px 0 22px; border: 1px solid var(--hairline); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.prose table th { text-align: left; padding: 13px 16px; background: var(--bg-inset); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; border-bottom: 1px solid var(--hairline); }
.prose table td { padding: 13px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-soft); }
.prose table tr:last-child td { border-bottom: none; }
.prose table td strong { color: var(--ink); }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14.5px; }
.back-link:hover { color: var(--brand); }
.back-link svg { width: 17px; height: 17px; }

/* ─────────────────────────── i18n / theme helpers ─────────────────────────── */
[data-lang-content] { display: none; }
[data-lang-content].lang-active { display: block; }
.no-fouc { visibility: hidden; }

/* ════════════════════════════════════════════════════════════════
   Organic layer — texture, depth & ambient life
   (Purely decorative. Never gates content visibility.)
   ════════════════════════════════════════════════════════════════ */

/* Living, layered colour field behind everything — kills the dead-flat fill.
   Big soft sage + terracotta glows that slowly drift and breathe. */
.ambient-field {
  position: fixed; inset: -10vmax; z-index: 0; pointer-events: none; overflow: hidden;
  contain: strict;
}
/* Lift real content above the ambient field (which sits over the body base). */
main, .footer { position: relative; z-index: 1; }
.ambient-field .blob {
  position: absolute; border-radius: 50%; will-change: transform;
}
.ambient-field .b1 {
  width: 52vmax; height: 52vmax; top: -16vmax; left: -10vmax;
  background: radial-gradient(circle at 50% 50%, var(--aura-a) 0%, transparent 62%);
  animation: drift-a 34s var(--ease) infinite alternate;
}
.ambient-field .b2 {
  width: 46vmax; height: 46vmax; top: -8vmax; right: -12vmax;
  background: radial-gradient(circle at 50% 50%, var(--aura-b) 0%, transparent 60%);
  animation: drift-b 41s var(--ease) infinite alternate;
}
.ambient-field .b3 {
  width: 60vmax; height: 60vmax; bottom: -24vmax; left: 30%;
  background: radial-gradient(circle at 50% 50%, var(--aura-a) 0%, transparent 64%);
  animation: drift-c 48s var(--ease) infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vmax,4vmax,0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-5vmax,5vmax,0) scale(.92); } }
@keyframes drift-c { from { transform: translate3d(0,0,0) scale(.95); } to { transform: translate3d(-7vmax,-4vmax,0) scale(1.1); } }

/* Film grain — a fine tactile tooth over the whole page. */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .04; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
:root[data-theme="dark"] .grain { opacity: .06; mix-blend-mode: overlay; }

/* Hand-painted underline under the hero emphasis word — adapts to theme. */
.hero-copy .serif-em { position: relative; white-space: nowrap; }
.hero-copy .serif-em::after {
  content: ""; position: absolute; left: -.04em; right: -.04em; bottom: -.02em;
  height: .14em; background: var(--accent);
  border-radius: 999px 999px 58% 42% / 999px 999px 90% 80%;
  transform: rotate(-.7deg) scaleX(.985);
  transform-origin: left center; opacity: .82;
}

/* Let the elevated panels breathe — a faint warm wash + edge glow so they
   read as paper, not a grey box. */
#features, .showcase-row { position: relative; }
.feature { background: color-mix(in oklab, var(--bg-elev) 92%, transparent); }
.feature .ico { position: relative; overflow: hidden; }
.feature:hover .ico { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--brand) 22%, transparent), 0 8px 18px -10px color-mix(in oklab, var(--brand) 50%, transparent); }

/* Slow breathing on the in-phone aura so the mockups feel alive. */
.ph-aura { animation: breathe 9s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .85; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .ambient-field .blob, .ph-aura { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════
   High-craft hero — editorial, type-led, device presented with intent
   ════════════════════════════════════════════════════════════════ */

/* The brand mark breathes: the accent core pulses, faintly alive. */
.luna circle:last-of-type {
  transform-box: fill-box; transform-origin: center;
  animation: core-pulse 4.2s ease-in-out infinite;
}
@keyframes core-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: .82; }
}

/* The hero is a full-bleed stage: copy holds a tight editorial column on the
   left, the device rises from the bottom-right and is cropped by the fold —
   confident, not decorated. */
#download.section { padding-bottom: 0; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: stretch; gap: clamp(16px, 3vw, 48px);
  min-height: min(82vh, 760px);
}
.hero-copy { align-self: center; max-width: 600px; padding-block: clamp(36px, 6vw, 72px); position: relative; z-index: 2; }

/* Statement headline — large, tight, with a hanging editorial measure. */
.hero-copy .display {
  font-size: clamp(42px, 6.6vw, 82px) !important;
  line-height: 1.02; letter-spacing: -0.025em;
  margin-top: clamp(18px, 2.4vw, 28px) !important;
}
.hero-copy .lead { font-size: clamp(18px, 2.1vw, 20px); }

/* A quiet kinetic line under the eyebrow: a sage filament that draws across. */
.hero-copy .badge-pill { position: relative; }

/* Device stage — anchored to the bottom-right, scaled up as one unit so the
   in-app proportions stay perfect, then bled past the fold. */
.hero-phone {
  align-self: end; justify-content: flex-end; align-items: flex-end;
  margin-right: clamp(-40px, -2.5vw, 0px);
}
.hero-phone .phone {
  transform: scale(1.16); transform-origin: bottom center;
  margin-bottom: clamp(-56px, -5vw, -32px);
}
/* Warm directional glow cradling the device. */
.hero-phone::before {
  content: ""; position: absolute; z-index: -1; inset: -6% -18% -2% -10%;
  background:
    radial-gradient(50% 42% at 55% 36%, var(--aura-a) 0%, transparent 70%),
    radial-gradient(40% 36% at 70% 70%, var(--aura-b) 0%, transparent 72%);
  pointer-events: none;
}

/* ── Steps read as a sequence, not three loose cards ── */
.steps { position: relative; }
.step .num { display: inline-flex; align-items: center; gap: 14px; }
.step .num::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, color-mix(in oklab, var(--brand) 35%, transparent), transparent);
}

@media (prefers-reduced-motion: reduce) {
  .luna circle:last-of-type { animation: none !important; }
}
@media (max-width: 860px) {
  #download.section { padding-bottom: clamp(40px, 8vw, 64px); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-phone { justify-content: center; align-items: center; margin-right: 0; margin-top: 28px; }
  .hero-phone .phone { transform: scale(1); margin-bottom: 0; }
  .step .num::after { display: none; }
}

/* ─────────────────────────── Reveal ─────────────────────────── */
/* Content is always visible. (Entrance transitions are intentionally avoided:
   they can freeze mid-animation in throttled/preview compositors and leave
   content stuck invisible. Visibility must never depend on an animation completing.) */
.reveal { opacity: 1; transform: none; }

/* ─────────────────────────── Responsive ─────────────────────────── */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-toc { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .showcase-row { grid-template-columns: 1fr; gap: 40px; }
  .showcase-row.reverse .showcase-phone { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .hero-grid { grid-template-columns: 1fr !important; text-align: center; }
  .hero-phone { justify-self: center; margin-top: 20px; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-tools .seg.lang-seg { display: none; }
}

/* Hero grid */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: var(--ink-muted); font-size: 13.5px; flex-wrap: wrap; }
.hero-trust .dot-sep { width: 4px; height: 4px; border-radius: 999px; background: var(--ink-muted); opacity: .5; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(28px, 4.6vw, 48px); margin: 14px 0 0; }
.section-head .lead { margin-top: 22px; }
.section-head.center { margin-inline: auto; text-align: center; }
