/* =====================================================================
   Motio — marketing site (landing, support, privacy)
   Dark Pro: near-black canvas, signal-yellow accent, mono headings.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: oklch(13% .004 260);
  --bg-2: oklch(16% .005 260);
  --surface: oklch(18.5% .005 260);
  --surface-2: oklch(23% .006 260);
  --fg: oklch(96% .003 260);
  --muted: oklch(66% .008 260);
  --border: oklch(27% .006 260);
  --border-strong: oklch(40% .008 260);
  --accent: oklch(87% .17 92);
  --accent-fg: oklch(17% .02 92);
  --success: oklch(74% .17 150);
  --warn: oklch(80% .15 75);
  --danger: oklch(66% .21 25);

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", "Cascadia Mono", Menlo, monospace;

  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow { font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow.accent { color: var(--accent); }
.display { font: 600 clamp(36px, 5vw, 68px)/1 var(--font-mono); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.h2 { font: 600 clamp(28px, 4vw, 48px)/1.04 var(--font-mono); letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.h3 { font: 600 20px/1.25 var(--font-body); letter-spacing: -.01em; }
.lede { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); max-width: 560px; text-wrap: pretty; }
.mono { font-family: var(--font-mono); }
.hl { color: var(--accent); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: oklch(13% .004 260 / .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--border); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px/1 var(--font-body); letter-spacing: -.01em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; list-style: none; }
.nav-links a { font-size: 15px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { margin-left: 4px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; border-radius: var(--radius-sm); }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-links, .nav-cta { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--pad) 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .nav.open .nav-links a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
}

/* ---------- Buttons ---------- */
.btn { height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .1s, background .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: oklch(91% .16 92); }
.btn-line { border: 1px solid var(--border-strong); }
.btn-line:hover { border-color: var(--fg); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 8px; }
.store { height: 56px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); text-decoration: none; transition: border-color .15s, background .15s; }
.store:hover { border-color: var(--fg); background: var(--surface-2); }
.store .i { width: 26px; height: 26px; }
.store small { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.store b { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 1; }
.store.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.store.primary small { color: oklch(30% .03 92); }
.store.is-soon { opacity: .55; cursor: default; }
.store.is-soon:hover { border-color: var(--border-strong); background: var(--surface); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Synthetic video frames (same renderer as the app) ---------- */
.frame {
  --sx: 50%; --sy: 45%; --ha: 220; --hb: 280;
  background:
    radial-gradient(circle at var(--sx) var(--sy), oklch(95% .06 var(--ha)) 0, oklch(90% .1 var(--ha) / .55) 9%, transparent 26%),
    radial-gradient(ellipse at calc(100% - var(--sx)) calc(var(--sy) + 22%), oklch(72% .16 var(--hb) / .8) 0, transparent 42%),
    radial-gradient(ellipse at 20% 110%, oklch(30% .08 var(--hb)) 0, transparent 60%),
    linear-gradient(165deg, oklch(66% .13 var(--ha)), oklch(30% .09 var(--hb)));
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero-copy .lede { margin: 26px 0 34px; }
.hero-note { margin-top: 18px; font: 500 12px/1.5 var(--font-mono); color: var(--muted); letter-spacing: .02em; }
.phones { position: relative; height: 640px; }
.phone { position: absolute; width: calc(417px * var(--s)); height: calc(876px * var(--s)); border-radius: calc(66px * var(--s)); overflow: hidden; }
.phone iframe { width: 417px; height: 876px; max-width: none; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: transparent; }
.phone.front { --s: .72; right: 6%; top: 0; z-index: 2; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .9); }
.phone.back { --s: .6; left: 0; top: 70px; opacity: .55; transform: rotate(-6deg); filter: saturate(.8); }
.phone-tag { position: absolute; z-index: 3; right: 0; bottom: 40px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.phone-tag b { color: var(--accent); font-weight: 600; }
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 440px; margin: 0 auto; width: 100%; }
  .phone.front { --s: .62; right: 0; left: 0; margin: 0 auto; }
  .phone.back, .phone-tag { display: none; }
}

/* ---------- Problem strip ---------- */
.problem { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.problem-in { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(36px, 5vw, 56px) 0; }
.alert-mock { width: 270px; padding: 16px 18px; border-radius: 14px; background: oklch(26% .004 260); text-align: center; position: relative; }
.alert-mock b { display: block; font-size: 15px; }
.alert-mock span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.alert-mock::after { content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 3px; background: var(--accent); transform: rotate(-8deg); box-shadow: 0 0 12px oklch(87% .17 92 / .5); }
.problem p { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 680px; }
.problem p strong { color: var(--fg); font-weight: 600; }
@media (max-width: 720px) { .problem-in { grid-template-columns: 1fr; } .alert-mock { margin: 0 auto; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .lede { justify-self: end; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } .section-head .lede { justify-self: start; } }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.feature-vis { position: relative; height: 280px; border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }
.feature-body { padding: 24px 26px 28px; }
.feature-body .eyebrow { display: flex; justify-content: space-between; margin-bottom: 12px; }
.feature-body p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tag { padding: 3px 6px; border-radius: 4px; border: 1px solid currentColor; font: 600 10px/1 var(--font-mono); letter-spacing: .1em; }
.tag.free { color: var(--success); }
.tag.pro { color: var(--accent); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }

/* vis: wallpaper-ready */
.v-ready { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 24px 28px; height: 100%; }
.mini-lock { position: relative; width: 150px; height: 232px; border-radius: 26px; border: 5px solid oklch(22% .004 260); overflow: hidden; color: #fff; text-align: center; }
.mini-lock .frame { position: absolute; inset: 0; }
.mini-lock .t { position: relative; display: block; margin-top: 30px; font: 300 44px/1 var(--font-body); letter-spacing: -.02em; }
.mini-lock .d { position: relative; display: block; margin-top: 18px; font-size: 9px; font-weight: 600; }
.ready-chip { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); height: 22px; padding: 0 8px 0 5px; display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; background: var(--success); color: oklch(15% 0 0); font: 700 10px/1 var(--font-mono); letter-spacing: .08em; animation: chip 6s infinite; }
.ready-chip .i { width: 12px; height: 12px; stroke-width: 3; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 14px; }
.checks .ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--success); color: oklch(15% 0 0); flex: none; }
.checks .ck .i { width: 12px; height: 12px; stroke-width: 3; }
.checks .meter { margin-left: auto; width: 64px; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; }
.checks .meter i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; animation: meter 6s infinite; }
.checks li.motion .ck { animation: ck 6s infinite; }
@keyframes meter { 0%, 35% { width: 88%; background: var(--warn); } 50%, 100% { width: 42%; background: var(--success); } }
@keyframes ck { 0%, 35% { background: var(--warn); } 50%, 100% { background: var(--success); } }
@keyframes chip { 0%, 40% { opacity: 0; transform: translateX(-50%) scale(.8); } 52%, 100% { opacity: 1; transform: translateX(-50%) scale(1); } }
@media (max-width: 480px) { .v-ready { grid-template-columns: 1fr; justify-items: center; } .mini-lock { display: none; } .checks { width: 100%; } }

/* vis: smart moment */
.v-smart { padding: 34px 28px 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.v-heat { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 70px; margin-bottom: 10px; }
.v-heat i { flex: 1; border-radius: 2px 2px 0 0; background: var(--surface-2); }
.v-heat i.hot { background: color-mix(in srgb, var(--accent) 70%, var(--surface-2)); }
.v-peak { position: absolute; top: -28px; width: 22px; height: 22px; margin-left: -11px; border-radius: 5px; background: var(--fg); color: var(--bg); font: 700 11px/22px var(--font-mono); text-align: center; }
.v-peak.best { background: var(--accent); color: var(--accent-fg); }
.v-strip { position: relative; height: 64px; display: flex; border-radius: 8px; overflow: hidden; }
.v-strip .frame { flex: 1; box-shadow: inset -1px 0 0 rgb(0 0 0 / .25); }
.v-win { position: absolute; top: 0; bottom: 0; width: 22%; border: 3px solid var(--fg); border-left-width: 10px; border-right-width: 10px; border-radius: 8px; box-shadow: 0 0 0 999px rgb(0 0 0 / .55); animation: win 6s cubic-bezier(.6,0,.2,1) infinite; }
.v-win::after { content: ""; position: absolute; left: 55%; top: -14px; bottom: -6px; width: 3px; background: var(--accent); border-radius: 2px; }
@keyframes win { 0%, 25% { left: 6%; } 45%, 100% { left: var(--best, 58%); } }
.v-caption { margin-top: 16px; font: 500 12px/1 var(--font-mono); color: var(--muted); display: flex; justify-content: space-between; }
.v-caption b { color: var(--accent); font-weight: 600; }

/* vis: motion brush */
.v-brush { position: absolute; inset: 0; }
.v-brush .frame { position: absolute; inset: 0; }
.v-brush .move { -webkit-mask-image: radial-gradient(ellipse 32% 42% at 58% 46%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 32% 42% at 58% 46%, #000 70%, transparent 100%); }
.v-brush .ring { position: absolute; left: 58%; top: 46%; width: 64%; height: 84%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed oklch(87% .17 92 / .9); }
.v-brush .cursor { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .4); offset-path: path("M 300 60 C 380 110, 360 200, 280 220 C 200 240, 180 140, 240 100 Z"); animation: brushpath 7s linear infinite; }
@keyframes brushpath { to { offset-distance: 100%; } }
.v-brush .lbl { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 8px; }
.v-brush .lbl span { height: 26px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 6px; background: rgb(0 0 0 / .55); color: #fff; font: 600 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.v-brush .lbl span:first-child { color: var(--accent); }

/* vis: perfect loop */
.v-loop { height: 100%; display: grid; place-items: center; padding: 24px; }
.loop-stack { position: relative; width: 200px; height: 200px; }
.loop-stack .frame { position: absolute; inset: 0; border-radius: 16px; }
.loop-stack .b { animation: seam 3s ease-in-out infinite; }
@keyframes seam { 0%, 55% { opacity: 0; } 85%, 100% { opacity: 1; } }
.loop-ring { position: absolute; inset: -18px; }
.loop-ring circle { fill: none; stroke-width: 3; }
.loop-ring .track { stroke: var(--border); }
.loop-ring .prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 690; stroke-dashoffset: 690; animation: prog 3s linear infinite; transform: rotate(-90deg); transform-origin: center; }
.loop-ring .seam { stroke: var(--fg); stroke-width: 5; stroke-dasharray: 60 690; transform: rotate(-90deg) rotate(-31deg); transform-origin: center; opacity: .5; }
@keyframes prog { to { stroke-dashoffset: 0; } }
.loop-label { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); white-space: nowrap; font: 500 12px/1 var(--font-mono); color: var(--muted); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; counter-reset: s; }
.steps li { padding: 28px 26px 30px; border-top: 2px solid var(--border); position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font: 600 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 18px; }
.steps li p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.steps li:first-child { border-top-color: var(--accent); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Privacy band ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 96px) 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fact { padding: 22px; background: var(--bg-2); }
.fact .i { width: 22px; height: 22px; color: var(--accent); margin-bottom: 14px; }
.fact b { display: block; font-size: 16px; }
.fact span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.band .text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; font-weight: 600; color: var(--accent); text-decoration: none; }
.band .text-link .i { width: 16px; height: 16px; }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.platform { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); }
.platform-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.platform-head .h3 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .02em; font-size: 18px; }
.platform dl { display: grid; grid-template-columns: 120px 1fr; gap: 12px 16px; font-size: 15px; }
.platform dt { font: 500 12px/1.6 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .platform dl { grid-template-columns: 1fr; gap: 2px; } .platform dd { margin-bottom: 10px; } }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; }
.billing button { height: 36px; padding: 0 16px; border-radius: 7px; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.billing button[aria-pressed="true"] { background: var(--surface-2); color: var(--accent); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); }
.plan.pro { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan-name { font: 600 14px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.price { margin: 22px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.price b { font: 600 48px/1 var(--font-mono); letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.price-note { color: var(--muted); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; margin: 24px 0 28px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .i { width: 18px; height: 18px; color: var(--success); margin-top: 2px; }
.plan li.off { color: var(--muted); }
.plan li.off .i { color: var(--border-strong); }
.plan .btn { margin-top: auto; }
.price-disclaimer { margin-top: 18px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ / accordion ---------- */
.faq { max-width: 860px; }
.qa { border-top: 1px solid var(--border); }
.qa:last-child { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { width: 18px; height: 18px; color: var(--muted); transition: transform .2s; }
.qa[open] summary .i { transform: rotate(45deg); color: var(--accent); }
.qa .ans { padding: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 720px; }
.qa .ans p + p, .qa .ans p + ol, .qa .ans ol + p, .qa .ans p + ul { margin-top: 10px; }
.qa .ans ol, .qa .ans ul { padding-left: 20px; }
.qa .ans li + li { margin-top: 4px; }
.qa .ans strong { color: var(--fg); font-weight: 600; }
.qa .ans a { color: var(--accent); }

/* ---------- Final CTA ---------- */
.cta { text-align: center; padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
.cta .display { max-width: 900px; margin: 0 auto; }
.cta .lede { margin: 22px auto 34px; }
.cta .store-row { justify-content: center; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border); padding: 40px 0 48px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot nav a:hover { color: var(--fg); }
.foot small { color: var(--muted); font: 500 12px/1.5 var(--font-mono); }

/* =====================================================================
   Support page
   ===================================================================== */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero .lede { margin-top: 18px; }
.search { position: relative; max-width: 620px; margin-top: 32px; }
.search .i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 58px; padding: 0 18px 0 52px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 17px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cats button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.cats button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.support-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.support-grid .faq { max-width: none; }
.no-results { padding: 32px 0; color: var(--muted); }
.cat-label { margin: 34px 0 6px; }
.cat-label:first-child { margin-top: 0; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.card .h3 { margin-bottom: 6px; }
.card > p { color: var(--muted); font-size: 14px; }
.quick { list-style: none; margin-top: 14px; display: grid; gap: 2px; }
.quick a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--border); }
.quick a:hover { color: var(--accent); }
.quick .i { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } .aside { position: static; } }

/* contact form */
.form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg); font-size: 15px; }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; font-size: 12px; color: var(--danger); }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-ok { display: none; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); font-size: 14px; }
.form-ok.on { display: block; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }

/* =====================================================================
   Privacy page (long-form legal)
   ===================================================================== */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.toc { position: sticky; top: 88px; }
.toc ol { list-style: none; display: grid; gap: 2px; margin-top: 14px; counter-reset: t; }
.toc a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--border); color: var(--muted); font-size: 14px; text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover, .toc a.active { color: var(--fg); border-left-color: var(--accent); }
.legal { max-width: 720px; }
.summary { padding: 26px 28px; border: 1px solid var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); margin-bottom: 48px; }
.summary .eyebrow { margin-bottom: 14px; }
.summary ul { list-style: none; display: grid; gap: 10px; }
.summary li { display: flex; gap: 12px; font-size: 16px; }
.summary li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.legal section { scroll-margin-top: 90px; padding-top: 8px; }
.legal section + section { margin-top: 44px; }
.legal h2 { font: 600 22px/1.2 var(--font-mono); letter-spacing: -.01em; text-transform: uppercase; margin-bottom: 14px; display: flex; gap: 14px; }
.legal h2 span { color: var(--accent); }
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 8px; }
.legal p, .legal li { color: oklch(82% .006 260); font-size: 16px; line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--fg); }
.legal a { color: var(--accent); }
.table-wrap { overflow-x: auto; margin-top: 14px; border: 1px solid var(--border); border-radius: 10px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.legal th { text-align: left; padding: 12px 14px; font: 600 11px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.legal td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: top; color: oklch(82% .006 260); line-height: 1.5; }
.legal td:first-child { color: var(--fg); font-weight: 600; white-space: nowrap; }
.meta-line { margin-top: 18px; font: 500 12px/1.6 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .toc { position: static; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
.legal-grid > *, .support-grid > *, .hero-in > * { min-width: 0; }
