/* ==========================================================================
   Arrowly — website styles
   Brand tokens mirror lib/core/app_colors.dart in the app.
   ========================================================================== */

:root {
  --brand: #6c5ce7;
  --brand-600: #5a48dc;
  --brand-700: #4a39c4;
  --brand-50: #f0eeff;
  --brand-100: #e3dfff;
  --star: #f5b400;
  --success: #22c55e;
  --error: #ef4444;

  --bg: #f7f7fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --ink: #171725;
  --text: #2a2a3c;
  --muted: #64647a;
  --line: #e6e5f0;
  --dot: #d5d3e6;
  --arrow: #171725;

  --shadow-sm: 0 1px 2px rgba(23, 23, 37, .05), 0 2px 8px rgba(31, 26, 92, .05);
  --shadow-md: 0 4px 12px rgba(31, 26, 92, .07), 0 16px 40px rgba(31, 26, 92, .08);
  --shadow-lg: 0 10px 30px rgba(31, 26, 92, .12), 0 40px 80px rgba(31, 26, 92, .14);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f18;
    --bg-alt: #14141f;
    --surface: #1b1b29;
    --ink: #f4f4fa;
    --text: #d9d9e6;
    --muted: #a0a0b8;
    --line: #2a2a3d;
    --dot: #34344a;
    --arrow: #f4f4fa;
    --brand-50: #1f1c3a;
    --brand-100: #2a2550;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: .01em;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(108, 92, 231, .35); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 28px rgba(108, 92, 231, .42); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: var(--brand-700); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }

/* Store button (two-line) */
.store-btn { --h: 58px; padding: 0 24px 0 20px; background: var(--ink); color: var(--bg); border-radius: 16px; gap: 12px; }
.store-btn:hover { box-shadow: var(--shadow-md); }
.store-btn .store-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn small { font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.store-btn strong { font-size: 17px; font-weight: 600; }
.store-btn svg { width: 26px; height: 26px; }
.store-btn.is-soon { cursor: default; }
.store-btn.is-soon:hover { transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(108, 92, 231, .3); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); background: var(--brand-50); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 880px) {
  .nav-links {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .menu-toggle { display: inline-grid; }
  .nav-cta .btn { display: none; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; }
.section-lead { margin-top: 16px; font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); }
.text-brand { color: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(108, 92, 231, .20), rgba(108, 92, 231, 0));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 20%, transparent 75%);
  opacity: .7; pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .accent { background: linear-gradient(100deg, var(--brand) 10%, #9b8cff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--success); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 18.6;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #2b2b3e, #12121c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
}
.phone::before { /* camera notch */
  content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%);
  border-radius: 999px; background: #0b0b12; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #f7f7fc; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; padding-top: 34px; background: #f7f7fc; }
.hero-visual .phone { transform: rotate(-4deg); animation: float 7s ease-in-out infinite; }
.phone.phone-back { position: absolute; width: min(250px, 60vw); right: -6%; top: 12%; transform: rotate(8deg); opacity: .95; filter: saturate(.95); animation: float 7s ease-in-out infinite reverse; z-index: -1; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; background: var(--surface);
  box-shadow: var(--shadow-md); font-size: 14px; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line);
}
.float-card small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 22px; height: 22px; }
.float-card.fc-1 { left: -2%; top: 18%; animation: float 6s ease-in-out infinite; }
.float-card.fc-2 { right: -4%; bottom: 16%; animation: float 6.5s ease-in-out .8s infinite; }
.stars { display: flex; gap: 2px; color: var(--star); }
.stars svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 520px; margin-top: 8px; }
  .float-card.fc-1 { left: 0; }
  .float-card.fc-2 { right: 0; }
}
@media (max-width: 520px) {
  .phone.phone-back { display: none; }
  .float-card { padding: 10px 12px; font-size: 13px; }
  .float-card .ico { width: 34px; height: 34px; }
  .float-card.fc-1 { top: 6%; }
  .float-card.fc-2 { bottom: 4%; }
}

/* ---------- Playable demo ---------- */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.demo-copy .section-title { text-align: left; }
.demo-copy .section-lead { text-align: left; }
.demo-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.demo-list li { display: flex; gap: 14px; align-items: flex-start; }
.demo-list .num { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 700; font-size: 14px; }
.demo-list strong { color: var(--ink); font-weight: 600; }
.board-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(14px, 2.4vw, 22px); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-width: 520px; width: 100%; margin: 0 auto;
}
.board-hud { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 14px; }
.hud-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink); }
.hud-pill svg { width: 16px; height: 16px; }
.hearts { display: inline-flex; gap: 3px; color: var(--error); }
.hearts svg { width: 18px; height: 18px; transition: opacity .2s, transform .2s; }
.hearts svg.lost { opacity: .22; transform: scale(.85); }
.board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 20px; background: var(--bg); overflow: hidden; touch-action: manipulation; }
.board svg { width: 100%; height: 100%; }
.board .arrow { cursor: pointer; transition: opacity .2s; }
.board .arrow:hover .body { stroke-width: 22; }
.board .arrow:focus { outline: none; }
.board .arrow:focus-visible .body { stroke: var(--brand); }
.board .arrow:focus-visible .head { fill: var(--brand); }
.board .arrow .hit { stroke: transparent; stroke-width: 80; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.board .arrow .body { stroke: var(--arrow); stroke-width: 20; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: stroke .15s; }
.board .arrow .head { fill: var(--arrow); stroke: var(--arrow); stroke-width: 6; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.board .arrow.is-blocked .body { stroke: var(--error); }
.board .arrow.is-blocked .head { fill: var(--error); stroke: var(--error); }
.board .arrow.is-hint .body { stroke: var(--star); }
.board .arrow.is-hint .head { fill: var(--star); stroke: var(--star); }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 4px 2px; }
.board-status { font-size: 14px; color: var(--muted); font-weight: 500; min-height: 1.5em; }
.board-actions { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; border: 0; cursor: pointer; background: var(--bg); color: var(--ink); font: 600 14px var(--font); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--brand-50); color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.win {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; border-radius: 20px;
}
.win.is-on { opacity: 1; visibility: visible; }
.win-badge { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--success); color: #fff; box-shadow: 0 10px 24px rgba(34, 197, 94, .35); }
.win-badge svg { width: 40px; height: 40px; }
.win h3 { font-size: 24px; }
.win p { color: var(--muted); margin: 6px 0 18px; }
.win .stars { justify-content: center; margin-bottom: 18px; }
.win .stars svg { width: 30px; height: 30px; }
.win.is-on .win-badge { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.board-card.is-shake { animation: shake .3s ease; }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .demo-copy .section-title, .demo-copy .section-lead { text-align: center; }
  .demo-copy .eyebrow-wrap { text-align: center; }
  .demo-list { max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 22px; }
.step-ico svg { width: 28px; height: 28px; }
.step::after { counter-increment: step; content: "0" counter(step); position: absolute; top: 24px; right: 26px; font-size: 40px; font-weight: 800; color: var(--line); letter-spacing: -0.04em; line-height: 1; }
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { padding: 26px 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.section:not(.section-alt) .feature { background: var(--surface); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.feature-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.c-violet { background: linear-gradient(140deg, #8b7cf6, #6c5ce7); }
.c-amber { background: linear-gradient(140deg, #fbbf24, #f59e0b); }
.c-green { background: linear-gradient(140deg, #4ade80, #16a34a); }
.c-pink { background: linear-gradient(140deg, #f472b6, #db2777); }
.c-blue { background: linear-gradient(140deg, #60a5fa, #2563eb); }
.c-teal { background: linear-gradient(140deg, #2dd4bf, #0d9488); }
.c-orange { background: linear-gradient(140deg, #fb923c, #ea580c); }
.c-ink { background: linear-gradient(140deg, #4b4b63, #171725); }
@media (max-width: 1040px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- Spotlight (modes) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 96px); align-items: center; }
.spotlight + .spotlight { margin-top: clamp(72px, 10vw, 120px); }
.spotlight.is-reverse .spot-media { order: 2; }
.spot-media { position: relative; display: grid; place-items: center; padding: 40px 0; }
.spot-media::before { content: ""; position: absolute; width: 82%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-100), transparent); }
.spot-media .phone { width: min(280px, 72vw); }
.spot-copy .section-title { font-size: clamp(28px, 3.6vw, 40px); }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--brand); }
@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight.is-reverse .spot-media { order: 0; }
  .checks { max-width: 440px; margin-left: auto; margin-right: auto; text-align: left; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px);
  gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 34px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--brand-100) transparent;
}
@media (min-width: 1100px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 10px 0 0; } }
.shot { scroll-snap-align: center; margin: 0; }
.shot .phone { width: 100%; border-radius: 36px; padding: 8px; }
.shot .phone::before { top: 16px; width: 60px; height: 18px; }
.shot .phone-screen { border-radius: 29px; }
.shot .phone-screen img { padding-top: 28px; }
.shot figcaption { margin-top: 16px; text-align: center; font-weight: 600; color: var(--ink); font-size: 15px; }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 28px 20px; border-radius: var(--radius); text-align: center; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(32px, 4vw, 44px); font-weight: 800; color: var(--brand); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; font-weight: 500; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow-md); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; color: var(--ink); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); transition: transform .25s ease; }
.faq summary .chev svg { width: 18px; height: 18px; }
.faq details[open] .chev { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(44px, 7vw, 80px) clamp(24px, 6vw, 72px);
  background: linear-gradient(135deg, #8577f0 0%, #6c5ce7 45%, #4a39c4 100%); color: #fff;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  box-shadow: 0 30px 70px rgba(74, 57, 196, .35);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1.4px, transparent 1.6px); background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 520px; }
.cta-band .hero-actions { margin-top: 30px; position: relative; z-index: 1; }
.cta-band .store-btn { background: #fff; color: var(--ink); }
.cta-art { position: relative; z-index: 1; justify-self: center; width: min(240px, 60vw); }
.cta-art img { width: 100%; border-radius: 26%; box-shadow: 0 30px 60px rgba(20, 10, 80, .45); transform: rotate(-8deg); }
@media (max-width: 820px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .cta-band .hero-actions { justify-content: center; }
  .cta-art { order: -1; width: 140px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 36px; border-top: 1px solid var(--line); margin-top: clamp(72px, 10vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 320px; }
.footer-grid h4 { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 15px; }
.footer-grid ul a:hover { color: var(--brand); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(48px, 8vw, 88px) 0 clamp(32px, 5vw, 48px); text-align: center; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.03em; }
.legal-hero p { margin-top: 14px; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); font-size: 14px; line-height: 1.4; }
.toc a:hover, .toc a.is-active { background: var(--brand-50); color: var(--brand); text-decoration: none; }
.prose { min-width: 0; }
.summary-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.summary-card div { padding: 18px; border-radius: var(--radius-sm); background: var(--brand-50); }
.summary-card b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.summary-card span { font-size: 14px; color: var(--muted); line-height: 1.5; display: block; }
.prose section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:first-of-type { border-top: 0; padding-top: 0; }
.prose h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n { font-size: 14px; font-weight: 600; color: var(--brand); min-width: 26px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.prose a { word-break: break-word; }
.prose .note { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .summary-card { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound b { display: block; font-size: clamp(90px, 18vw, 160px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--brand); }
.notfound h1 { font-size: clamp(26px, 4vw, 36px); margin: 12px 0 10px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
