/* Omnery marketing site. Tokens mirror the app's design system (DS-001): warm theme for light, dark theme for dark. */
:root {
  --ground: #FFF8F0;
  --surface: #FFFFFF;
  --sunken: #F6EBDD;
  --line: #F0E2D3;
  --ink: #2B2420;
  --muted: #6B5D52;
  --brand: #1E4D3E;
  --on-brand: #FFFFFF;
  --brand-soft: #DDF0E6;
  --brand-band: #1E4D3E;
  --on-band: #F5F4EF;
  --income: #1D7A43;   --income-soft: #DDF3E4;
  --expense: #A6461A;  --expense-soft: #FCE4D6;
  --asset: #2457C5;    --asset-soft: #DCE7FB;
  --liability: #6F3FC4; --liability-soft: #EBE2FA;
  --goal: #8A6508;     --goal-soft: #F8EFD0;
  --insurance: #0C7680; --insurance-soft: #D7F1F3;
  --warning: #9A6200;
  --focus: #2457C5;
  --bezel: #1A1D1B;
  --shadow: 0 30px 60px -30px rgba(43, 36, 32, .35);

  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, 1, .45);
  --t-fast: 160ms;
  --t-mid: 320ms;
  --t-slow: 700ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121615; --surface: #1B211F; --sunken: #252C29; --line: #2F3734;
    --ink: #EEF1EF; --muted: #A3B1AB; --brand: #4CC2A8; --on-brand: #0B1F19; --brand-soft: #163A33;
    --brand-band: #163A33; --on-band: #EEF1EF;
    --income: #5BCB85; --income-soft: #17382A; --expense: #F09361; --expense-soft: #3F2516;
    --asset: #7FA8F5; --asset-soft: #182C4F; --liability: #B596F0; --liability-soft: #2E2149;
    --goal: #E6B94A; --goal-soft: #3C3114; --insurance: #52C6CF; --insurance-soft: #113A3E;
    --warning: #E9A93C; --focus: #7FA8F5; --bezel: #000;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121615; --surface: #1B211F; --sunken: #252C29; --line: #2F3734;
  --ink: #EEF1EF; --muted: #A3B1AB; --brand: #4CC2A8; --on-brand: #0B1F19; --brand-soft: #163A33;
  --brand-band: #163A33; --on-band: #EEF1EF;
  --income: #5BCB85; --income-soft: #17382A; --expense: #F09361; --expense-soft: #3F2516;
  --asset: #7FA8F5; --asset-soft: #182C4F; --liability: #B596F0; --liability-soft: #2E2149;
  --goal: #E6B94A; --goal-soft: #3C3114; --insurance: #52C6CF; --insurance-soft: #113A3E;
  --warning: #E9A93C; --focus: #7FA8F5; --bezel: #000;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-mid), color var(--t-mid);
}
h1, h2, h3 { margin: 0; line-height: 1.3; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--ground);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid), background-color var(--t-mid);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; }
.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
  text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500;
  padding: 8px 12px; border-radius: 10px; transition: color var(--t-fast), background-color var(--t-fast);
}
.main-nav a:hover { color: var(--ink); background: var(--sunken); }
.header-tools { display: flex; gap: 8px; margin-left: auto; }
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .header-tools { margin-left: 8px; }
}
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: border-color var(--t-fast), transform var(--t-fast);
  touch-action: manipulation;
}
.tool-btn:hover { border-color: var(--muted); }
.tool-btn:active { transform: scale(.96); }
.tool-btn.icon-only { padding: 0; }
.tool-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tool-btn .i-sun { display: none; }
:root[data-theme="dark"] .tool-btn .i-sun { display: block; }
:root[data-theme="dark"] .tool-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .tool-btn .i-moon { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 112px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: .9rem; font-weight: 600;
}
.soon-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
h1 {
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.center { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: var(--ink); color: var(--ground);
  font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  cursor: not-allowed; user-select: none;
}
.store-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.store-btn > span { display: flex; flex-direction: column; }
.store-btn small { font-size: .75rem; font-weight: 500; opacity: .75; }
.store-btn.inverse { background: var(--on-band); color: var(--brand-band); }
.text-link {
  color: var(--brand); font-weight: 600; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1.5px;
  padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center;
}
.text-link:hover { text-decoration-thickness: 2.5px; }

/* Load sequence: one orchestrated moment on first paint */
.load-in { animation: rise var(--t-slow) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-device { display: flex; justify-content: center; }

/* ---------- Phone mockup ---------- */
.phone {
  position: relative;
  width: 300px; max-width: 100%;
  aspect-ratio: 300 / 620;
  border-radius: 46px;
  border: 10px solid var(--bezel);
  background: var(--ground);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; z-index: 3;
  width: 84px; height: 22px; margin-left: -42px; border-radius: 12px; background: var(--bezel);
}
.screen {
  position: absolute; inset: 0;
  padding: 46px 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 12px; line-height: 1.45;
  color: var(--ink);
  opacity: 0; transform: translateY(10px) scale(.985);
  transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.screen[hidden] { display: flex; visibility: hidden; }
.screen.is-active { opacity: 1; transform: none; visibility: visible; }
.screen.is-leaving { opacity: 0; transform: translateY(-6px); transition-duration: 200ms; transition-timing-function: var(--ease-in); visibility: visible; }

.s-head { display: flex; flex-direction: column; padding: 0 2px; }
.s-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.s-sub, .cap { font-size: 11px; color: var(--muted); }
.card { border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.card.nw { background: var(--brand); color: var(--on-brand); }
.card.nw .on-brand-muted { color: var(--on-brand); opacity: .82; }
.card.plain { background: var(--surface); border: 1px solid var(--line); }
.big { font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.mid { font-size: 15px; font-weight: 600; }
.mid small { font-size: 11px; font-weight: 500; color: var(--muted); }
.sec { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.c-income { color: var(--income); } .c-expense { color: var(--expense); } .c-asset { color: var(--asset); }
.c-liability { color: var(--liability); } .c-insurance { color: var(--insurance); }

.spark { width: 100%; height: 44px; margin-top: 6px; overflow: visible; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.spark-fill { fill: currentColor; opacity: .14; }
.hero .spark-line { animation: draw 1400ms var(--ease-out) 500ms both; }
.hero .spark-fill { animation: fade 900ms ease 1300ms both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: .14; } }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; }

.stack-bar { display: flex; gap: 3px; height: 10px; border-radius: 6px; overflow: hidden; margin: 4px 0 6px; }
.seg { width: var(--w); height: 100%; border-radius: 3px; transform-origin: left center; }
.hero .seg, .screen.is-active .seg { animation: grow 800ms var(--ease-out) both; animation-delay: calc(700ms + var(--i) * 120ms); }
.feat-device .screen.is-active .seg { animation-delay: calc(120ms + var(--i) * 90ms); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.b-asset { background: var(--asset); } .b-asset2 { background: color-mix(in srgb, var(--asset) 55%, var(--surface)); } .b-goal { background: var(--goal); }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; flex: none; }
.legend span { flex: 1; color: var(--muted); }
.legend b { font-weight: 600; }

.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.flow > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; }
.flow.boxed { grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.flow.boxed > div { border: 0; border-radius: 0; background: none; padding: 10px 10px; }
.flow.boxed > div + div { border-left: 1px solid var(--line); }
.flow.boxed .mid { font-size: 13.5px; }

.rows { list-style: none; margin: 0; padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.rows li + li { border-top: 1px solid var(--line); }
.rows.compact li { padding: 7px 0; }
.rows li.total b { font-weight: 700; }
.rows .num { font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.r-ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--cs); color: var(--c); display: flex; align-items: center; justify-content: center; }
.r-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.r-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.r-txt b { font-weight: 500; font-size: 12.5px; }
.r-txt small { font-size: 10.5px; color: var(--muted); }

.progress { height: 8px; border-radius: 99px; background: var(--sunken); overflow: hidden; margin: 6px 0 4px; }
.progress span { display: block; height: 100%; width: var(--p); background: var(--c); border-radius: inherit; transform-origin: left center; }
.screen.is-active .progress span { animation: grow 900ms var(--ease-out) 150ms both; }

.goals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.goals li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.g-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.g-row b { font-weight: 600; font-size: 13px; }
.g-row .num { font-weight: 600; font-size: 12.5px; }
.g-row small, .goals small { font-size: 10.5px; color: var(--muted); }
.note { border-radius: 14px; padding: 9px 12px; background: var(--sunken); color: var(--muted); font-size: 11px; display: flex; flex-direction: column; gap: 2px; }
.note b { color: var(--ink); font-weight: 600; }
.note.warn { background: var(--goal-soft); }
.note.warn b { color: var(--goal); }
.fab {
  position: absolute; right: 16px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 16px -6px rgba(0,0,0,.35);
}
.fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Sections ---------- */
section { position: relative; }
.features, .support { padding: 88px 0; }
.faq { padding: 88px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .features, .support, .faq { padding: 120px 0; } }
.section-head { max-width: 40rem; display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; }
.section-head h2, .privacy h2, .faq h2, .final h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem); font-weight: 700; letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Features */
.features { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) {
  .feat-grid { grid-template-columns: 1fr 340px; gap: 72px; align-items: start; }
  .feat-device { position: sticky; top: 104px; }
}
.feat-tabs { display: grid; gap: 8px; }
.feat-caption { display: none; }
/* Small screens: compact two-column chips, active description shown once above the phone */
@media (max-width: 959px) {
  .feat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-tab { align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .feat-tab .ic { width: 36px; height: 36px; border-radius: 11px; }
  .feat-tab .ic svg { width: 20px; height: 20px; }
  .ft-text { padding-top: 0; }
  .ft-name { font-size: .95rem; line-height: 1.35; }
  .ft-desc { display: none; }
  .feat-caption { display: block; color: var(--muted); font-size: 1rem; min-height: 5.1em; margin: -16px 0 -8px; }
  .feat-caption b { display: block; color: var(--ink); font-weight: 600; }
}
@media (min-width: 600px) and (max-width: 959px) { .feat-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat-tab {
  display: flex; align-items: flex-start; gap: 16px; width: 100%;
  padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--ground);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-mid), box-shadow var(--t-mid);
  touch-action: manipulation;
}
.feat-tab:hover { border-color: var(--c); }
.feat-tab[aria-selected="true"] { border-color: var(--c); background: var(--surface); box-shadow: inset 0 0 0 1px var(--c); }
.feat-tab .ic {
  width: 44px; height: 44px; flex: none; border-radius: 13px;
  background: var(--cs); color: var(--c);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-mid) var(--ease-out);
}
.feat-tab[aria-selected="true"] .ic { transform: scale(1.06); }
.feat-tab .ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ft-text { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.ft-name { font-weight: 600; font-size: 1.1rem; line-height: 1.45; }
.ft-desc { color: var(--muted); font-size: .97rem; line-height: 1.65; }
.feat-device { display: flex; justify-content: center; }
.feat-device .phone { box-shadow: var(--shadow); }

/* Getting started */
.steps { padding: 88px 0; }
@media (min-width: 960px) { .steps { padding: 120px 0 80px; } }
.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.steps-device { display: none; }
.step-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 48px; position: relative; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 1.1rem;
  position: relative; z-index: 1;
}
.step-body { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.step-body h3 { font-size: 1.35rem; font-weight: 600; }
.step-body p { color: var(--muted); max-width: 32em; }
/* Mini phones on small screens: the full 300px phone scaled down */
.mini-wrap { width: 216px; height: 446px; margin-top: 12px; }
.phone.mini { width: 300px; max-width: none; transform: scale(.72); transform-origin: top left; box-shadow: 0 24px 40px -24px rgba(43, 36, 32, .35); }

@media (min-width: 960px) {
  .steps-grid { grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
  .steps-device { display: flex; justify-content: center; position: sticky; top: calc(50vh - 310px); }
  .mini-wrap { display: none; }
  .step-list { gap: 0; padding-bottom: 140px; }
  .step { min-height: 62vh; align-content: center; transition: opacity var(--t-mid) var(--ease-out); opacity: .4; }
  .step.is-current { opacity: 1; }
  .step-num { background: var(--surface); color: var(--muted); border: 1.5px solid var(--line); transition: background-color var(--t-mid), color var(--t-mid), border-color var(--t-mid); }
  .step.is-done .step-num, .step.is-current .step-num { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
  .step-body h3 { font-size: 1.6rem; }
  .step-body p { font-size: 1.1rem; }
  /* Track that fills as the reader moves through the steps */
  .step-list::before, .step-list::after {
    content: ""; position: absolute; left: 21px; width: 2px; top: 31vh; bottom: calc(31vh + 140px); border-radius: 2px;
  }
  .step-list::before { background: var(--line); }
  .step-list::after { background: var(--brand); transform-origin: top; transform: scaleY(var(--progress)); transition: transform 500ms var(--ease-out); }
}
@media (min-width: 960px) and (max-height: 700px) { .steps-device { top: 84px; } }

/* Step screens */
.s-bar { display: flex; justify-content: center; font-size: 14px; font-weight: 600; padding-bottom: 2px; }
.s-title.sm { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.s-title.sm svg { width: 18px; height: 18px; fill: none; stroke: var(--goal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-btn {
  margin-top: auto; height: 42px; border-radius: 12px; background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; flex: none;
}
.f-label { font-size: 12px; font-weight: 600; margin-top: 6px; }
.f-input {
  height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; padding: 0 12px; font-size: 14px; letter-spacing: 1px;
}
.f-input.focus { border: 1.5px solid var(--brand); }
.caret { width: 1.5px; height: 18px; background: var(--brand); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.strength i { height: 4px; border-radius: 2px; background: var(--sunken); }
.strength i:nth-child(-n+3) { background: var(--brand); }
.screen.is-active .strength i:nth-child(-n+3) { animation: grow 400ms var(--ease-out) both; transform-origin: left; }
.screen.is-active .strength i:nth-child(2) { animation-delay: 150ms; }
.screen.is-active .strength i:nth-child(3) { animation-delay: 300ms; }
.f-row {
  min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: 12.5px;
}
.f-row > span:first-of-type { flex: 1; }
.f-row svg { width: 18px; height: 18px; fill: none; stroke: var(--brand); stroke-width: 1.75; stroke-linecap: round; }
.f-row b { font-weight: 600; }
.toggle { width: 34px; height: 20px; border-radius: 10px; background: var(--brand); position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--on-brand); }
.vault-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.vault-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.s-vault .s-title { font-size: 20px; }

.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--sunken); font-size: 12.5px; text-align: center; }
.seg2 > * { padding: 7px 0; border-radius: 9px; color: var(--muted); }
.seg2 b { background: var(--surface); color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.amount { text-align: center; font-size: 32px; font-weight: 700; color: var(--expense); line-height: 1.2; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 10.5px; }
.cat i { width: 28px; height: 28px; border-radius: 8px; background: var(--expense-soft); color: var(--expense); display: flex; align-items: center; justify-content: center; }
.cat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.cat.on { border: 2px solid var(--expense); font-weight: 600; padding: 5px 1px; }
.screen.is-active .cat.on { animation: pick 600ms var(--ease-out) 300ms both; }
@keyframes pick { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); } }
.rows-box { display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; }
.rows-box > span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; font-size: 12px; color: var(--muted); }
.rows-box > span + span { border-top: 1px solid var(--line); }
.rows-box b { color: var(--ink); font-weight: 500; text-align: right; }

.goal-art { width: 100%; height: 104px; border-radius: 14px; flex: none; }
.goal-result { background: var(--goal-soft); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.goal-result .g-row span { font-size: 12px; }
.goal-result .g-row b { font-size: 20px; font-weight: 700; }
.goal-result .progress { background: var(--surface); }
.goal-result .cap { color: var(--ink); }

.bk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bk-steps i { height: 4px; border-radius: 2px; background: var(--line); }
.bk-steps i.done { background: var(--brand); }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.words i { font-style: normal; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; padding: 4px 6px; border-radius: 6px; background: var(--sunken); display: flex; gap: 4px; }
.words s { text-decoration: none; color: var(--muted); min-width: 1.4em; }
.screen.is-active .words i { animation: rise 360ms var(--ease-out) both; animation-delay: calc(var(--n, 0) * 30ms + 100ms); }

/* Privacy */
.privacy { background: var(--brand-band); color: var(--on-band); padding: 88px 0; }
@media (min-width: 960px) { .privacy { padding: 120px 0; } }
.privacy-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .privacy-grid { grid-template-columns: 340px 1fr; gap: 80px; } }
.privacy .lede { color: var(--on-band); opacity: .85; margin-top: 18px; }
.vault { display: flex; justify-content: center; }
.vault-svg { width: min(220px, 60vw); height: auto; overflow: visible; }
.v-body { fill: none; stroke: var(--on-band); stroke-width: 6; }
.v-shackle { fill: none; stroke: var(--on-band); stroke-width: 6; stroke-linecap: round; transform: translateY(-18px); transition: transform 700ms cubic-bezier(.34, 1.56, .64, 1) 200ms; }
.v-hole { fill: none; stroke: var(--on-band); stroke-width: 6; stroke-linecap: round; opacity: .6; }
.vault.locked .v-shackle { transform: none; }
.priv-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .priv-list { grid-template-columns: repeat(3, 1fr); } }
.priv-list li { display: flex; flex-direction: column; gap: 12px; }
.p-ic { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--on-band) 14%, transparent); }
.p-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--on-band); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.priv-list h3 { font-size: 1.1rem; font-weight: 600; }
.priv-list p { opacity: .82; font-size: .98rem; margin-top: 4px; }
.honest { margin-top: 36px; padding: 16px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--on-band) 30%, transparent); font-size: .98rem; max-width: 44em; }

/* Support */
.sup-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .sup-grid { grid-template-columns: 1fr 1fr; } .sup-card.tips { grid-column: 1 / -1; } }
@media (min-width: 1080px) { .sup-grid { grid-template-columns: .8fr .9fr 1.3fr; } .sup-card.tips { grid-column: auto; } }
.sup-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.sup-card h3 { font-size: 1.2rem; font-weight: 600; }
.sup-card.pro { border-color: var(--goal); }
.sup-card.pro h3 { color: var(--goal); }
.price { font-size: 2.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: .98rem; line-height: 1.6; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%231E4D3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
:root[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%234CC2A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%234CC2A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); } }
.fine { color: var(--muted); font-size: .92rem; }
.tip-grid { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tip-grid li {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 6px; border-radius: 18px; background: var(--ground); border: 1px solid var(--line); text-align: center;
}
.tip-grid svg { width: 44px; height: 44px; margin-bottom: 4px; transition: transform var(--t-mid) var(--ease-out); }
.tip-grid li:hover svg { transform: translateY(-3px) rotate(-4deg); }
.tip-grid span { font-size: .88rem; }
.tip-grid b { font-size: .95rem; font-weight: 700; }
.sup-note { margin-top: 20px; color: var(--muted); font-size: .95rem; }

/* FAQ */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 72px; } }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; line-height: 1.5; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform var(--t-mid) var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq-list details p { color: var(--muted); padding: 0 44px 22px 0; max-width: 40em; }
.faq-list details[open] p { animation: rise 320ms var(--ease-out) both; }

/* Final CTA */
.final { background: var(--brand-band); color: var(--on-band); padding: 96px 0; text-align: center; }
.final-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final-mark { width: 64px; height: 64px; color: var(--on-band); margin-bottom: 6px; }
.final p { opacity: .85; font-size: 1.1rem; margin-bottom: 10px; }

/* Footer */
.site-footer { padding: 32px 0 40px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .footer-row { flex-direction: row; justify-content: space-between; gap: 40px; } }
.disclaimer, .copy { color: var(--muted); font-size: .9rem; }
.disclaimer { max-width: 48em; }

/* ---------- Sound toggle ---------- */
.sound-btn { position: relative; }
.sound-btn .eq { display: none; gap: 2px; align-items: flex-end; height: 16px; }
.sound-btn .eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand); transform-origin: bottom; animation: eq 900ms ease-in-out infinite; }
.sound-btn .eq i:nth-child(2) { animation-delay: -300ms; }
.sound-btn .eq i:nth-child(3) { animation-delay: -600ms; }
.sound-btn.is-on svg { display: none; }
.sound-btn.is-on .eq { display: flex; }
.sound-btn.is-on { border-color: var(--brand); }
.sound-btn.is-waiting::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 380px) { .header-tools { gap: 6px; } .tool-btn { padding: 0 10px; } }

.main-nav a[aria-current="page"] { color: var(--ink); background: var(--sunken); }
.copy a { color: var(--muted); }
.band-link { color: var(--on-band); font-weight: 600; text-underline-offset: 4px; margin-top: 8px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Cross-page transition (Chrome, Edge, Safari 18+; others just navigate) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 200ms var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in 380ms var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Feedback page ---------- */
.fb-other[hidden], .fb-done[hidden], #fbForm[hidden] { display: none; }
.fb-page { padding: 48px 0 96px; }
@media (min-width: 960px) { .fb-page { padding: 80px 0 120px; } }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
@media (min-width: 960px) { .fb-grid { grid-template-columns: 1fr 1.25fr; gap: 80px; } .fb-intro { position: sticky; top: 120px; } }
.fb-intro { display: flex; flex-direction: column; gap: 20px; }
.fb-h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); }
.fb-other { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.fb-other h2 { font-size: 1rem; font-weight: 600; color: var(--muted); }
.fb-channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color var(--t-fast); }
.fb-channel:hover { border-color: var(--asset); }
.fb-channel > span:last-child { display: flex; flex-direction: column; }
.fb-channel small { color: var(--muted); font-size: .9rem; }
.fb-ic { background: var(--asset-soft); }
.fb-ic svg { stroke: var(--asset); }

.fb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 24px 20px; position: relative; }
@media (min-width: 600px) { .fb-card { padding: 36px; } }
#fbForm { display: flex; flex-direction: column; gap: 22px; transition: opacity 240ms var(--ease-in), transform 240ms var(--ease-in); }
#fbForm.is-leaving { opacity: 0; transform: scale(.98); }

.fb-types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fb-types legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; padding: 0; }
.fb-type {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--ground); cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-mid), transform var(--t-fast);
}
.fb-type:hover { border-color: var(--c); }
.fb-type:active { transform: scale(.98); }
.fb-type input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-type:has(input:checked) { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: var(--surface); }
.fb-type:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.fb-type .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--cs); color: var(--c); display: flex; align-items: center; justify-content: center; transition: transform var(--t-mid) var(--ease-out); }
.fb-type:has(input:checked) .ic { transform: scale(1.08) rotate(-4deg); }
.fb-type .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.fb-type .t { display: flex; flex-direction: column; line-height: 1.4; }
.fb-type b { font-weight: 600; font-size: 1rem; }
.fb-type small { color: var(--muted); font-size: .85rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .98rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--ground); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 14px; min-height: 50px; transition: border-color var(--t-fast), background-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: var(--surface); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--danger, #B3261E); }
.hint { color: var(--muted); font-size: .9rem; }
.hint:empty { display: none; }
.err { color: #B3261E; font-size: .92rem; font-weight: 500; }
:root[data-theme="dark"] .err { color: #F2766C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .err { color: #F2766C; } }
.err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb-privacy { font-size: .88rem; }

/* Type-dependent bits */
.lbl-bug, .lbl-beta, .when-bug, .when-beta, .bug-fields { display: none; }
#fbForm[data-type="bug"] .lbl-msg, #fbForm[data-type="beta"] .lbl-msg { display: none; }
#fbForm[data-type="bug"] .lbl-bug, #fbForm[data-type="bug"] .when-bug { display: inline; }
#fbForm[data-type="beta"] .lbl-beta, #fbForm[data-type="beta"] .when-beta { display: inline; }
#fbForm[data-type="beta"] .when-opt, #fbForm[data-type="beta"] .opt-tag { display: none; }
#fbForm[data-type="bug"] .bug-fields { display: flex; flex-direction: column; gap: 22px; animation: rise 320ms var(--ease-out) both; }
#fbForm[data-type="beta"] textarea { min-height: 90px; }

.send-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border: 0; border-radius: 16px; background: var(--brand); color: var(--on-brand);
  font: inherit; font-size: 1.08rem; font-weight: 600; cursor: pointer; touch-action: manipulation;
  transition: transform var(--t-fast), filter var(--t-fast);
}
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: scale(.98); }
.send-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; transition: transform 400ms var(--ease-out); }
.send-btn:hover svg { transform: translate(3px, -3px); }
.send-btn .lbl-busy { display: none; }
.send-btn.is-busy { cursor: progress; }
.send-btn.is-busy .lbl { display: none; }
.send-btn.is-busy .lbl-busy { display: inline; }
.send-btn.is-busy svg { animation: fly 900ms var(--ease-in-out, ease-in-out) infinite; }
@keyframes fly { 0% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(18px, -18px); opacity: 0; } 61% { transform: translate(-18px, 18px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }

.fb-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 40px 8px; outline: none; }
.fb-done h2 { font-size: 1.9rem; }
.fb-done p { color: var(--muted); max-width: 26em; }
.fb-done .when-beta { display: none; }
.fb-done.is-beta .when-beta { display: inline; }
.done-mark { width: 120px; height: 120px; }
.dm-ring { fill: none; stroke: var(--brand-soft); stroke-width: 6; }
.dm-heart { fill: var(--brand); stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; transform-origin: 60px 64px; }
.dm-check { fill: none; stroke: var(--on-brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fb-done.is-in .dm-ring { stroke-dasharray: 1; animation: draw 700ms var(--ease-out) both; }
.fb-done.is-in .dm-heart { animation: pop 600ms cubic-bezier(.34, 1.56, .64, 1) 250ms both; }
.fb-done.is-in .dm-check { animation: draw 450ms var(--ease-out) 700ms both; }
.fb-done.is-in h2, .fb-done.is-in p, .fb-done.is-in .as-btn { animation: rise 500ms var(--ease-out) both; }
.fb-done.is-in p { animation-delay: 80ms; }
.fb-done.is-in .as-btn { animation-delay: 160ms; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.as-btn { background: none; border: 0; font: inherit; cursor: pointer; }

/* ---------- Privacy policy page ---------- */
[data-lang-block][hidden] { display: none; }
.legal-page { padding: 48px 0 96px; }
@media (min-width: 960px) { .legal-page { padding: 80px 0 120px; } }
.eyebrow { color: var(--brand); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.legal-h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.6rem); line-height: 1.15; margin-top: 10px; text-wrap: balance; }
.legal-hero .lede { margin-top: 18px; }
.legal-date { margin-top: 12px; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.legal-summary { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 720px) { .legal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.legal-summary li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.legal-summary .p-ic { background: var(--brand-soft); }
.legal-summary .p-ic svg { stroke: var(--brand); }
.legal-summary h2 { font-size: 1.08rem; font-weight: 600; }
.legal-summary p { color: var(--muted); font-size: .96rem; }

.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 56px; align-items: start; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; margin-top: 80px; } .legal-toc { position: sticky; top: 104px; } }
.legal-toc { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; background: var(--surface); }
.toc-title { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.legal-toc ol { margin: 0; padding-left: 1.3em; color: var(--muted); font-size: .93rem; display: grid; gap: 2px; }
.legal-toc a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.legal-toc a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 959px) { .legal-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 24px; } }

.legal-body { max-width: 46em; }
.legal-body section { scroll-margin-top: 96px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.legal-body section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal-body h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); margin-bottom: 14px; }
.legal-body p, .legal-body li { line-height: 1.75; }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body .table-wrap + ul { margin-top: 14px; }
.legal-body ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body a { color: var(--brand); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-body code { font-size: .9em; background: var(--sunken); padding: 1px 6px; border-radius: 6px; }
.legal-body .rights { list-style: none; padding: 0; margin-top: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.legal-body .rights li { background: var(--sunken); border-radius: 12px; padding: 10px 14px; line-height: 1.5; }
.legal-body .rights + p { margin-top: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin-top: 4px; background: var(--surface); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 12px 16px; line-height: 1.6; }
.legal-body thead th { background: var(--sunken); font-weight: 600; font-size: .9rem; }
.legal-body tbody tr + tr td { border-top: 1px solid var(--line); }
.legal-body tbody td:first-child { font-weight: 500; }
/* Phones: each table row becomes a small card, with the column name above each value */
@media (max-width: 639px) {
  .table-wrap { overflow: visible; border: 0; background: none; border-radius: 0; }
  .legal-body table { min-width: 0; }
  .legal-body thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-body tbody { display: grid; gap: 12px; }
  .legal-body tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 0; }
  .legal-body td { display: block; padding: 8px 16px; }
  .legal-body tbody tr + tr td { border-top: 0; }
  .legal-body td[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: .82rem; font-weight: 500; }
  .legal-body tbody td:first-child { font-weight: 600; }
  .legal-body tbody td:first-child::before { display: none; }
}
.fb-privacy a { color: var(--brand); text-underline-offset: 3px; white-space: nowrap; }
.copy a[aria-current] { color: var(--ink); }

/* ---------- Reduced motion: render final states ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .sound-btn .eq i { animation: none; transform: scaleY(.7); }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
