/* =========================================================================
   CompareAI — marketing + legal site. Single stylesheet, no build step.
   Design tokens live on :root; edit them there to re-theme the whole site.
   Palette mirrors the iOS app (warm cream canvas, blue accent) with a dark
   navy "inspection" hero taken from the app icon.
   ========================================================================= */
:root {
  /* Surfaces */
  --ink:        #0B1020;   /* near-black navy — dark sections */
  --ink-2:      #141C31;   /* raised dark surface */
  --ink-line:   rgba(255, 255, 255, .12);
  --canvas:     #FBF4EF;   /* warm cream — matches Color.canvas in the app */
  --bg:         #ffffff;
  --text:       #1A1A1E;   /* Color.ink */
  --muted:      #5E6470;
  --muted-dark: #9AA3B8;   /* muted text on dark */
  --line:       #EDE7E0;   /* Color.hairline */

  /* Accents */
  --accent:     #2F6BFF;   /* Color.accent — primary blue */
  --accent-2:   #4DA3FF;   /* scan-line blue */
  --gold:       #C9A54E;   /* icon gold, used sparingly */
  --grad:       linear-gradient(120deg, var(--accent), var(--accent-2));

  /* Severity (the same vocabulary the AI returns) */
  --minor:      #F5A623;
  --moderate:   #F97316;
  --major:      #EF4444;
  --good:       #22C55E;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 18px 50px rgba(11, 16, 32, .10);
  --shadow-sm:  0 6px 20px rgba(11, 16, 32, .07);
  --maxw:       1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .45em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-head { max-width: 680px; margin: 0 0 44px; }
.section-head.center { margin: 0 auto 48px; text-align: center; }
.lede { font-size: 1.08rem; color: var(--muted); margin: 0; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .8rem;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 .55rem;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: .97rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(47, 107, 255, .32); }
.btn-primary:hover { box-shadow: 0 14px 32px rgba(47, 107, 255, .42); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.on-dark .btn-ghost, .hero .btn-ghost, .cta .btn-ghost, .site-footer .btn-ghost { color: #fff; border-color: var(--ink-line); }
.on-dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---- Store badges ------------------------------------------------------ */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px; padding: 10px 18px 10px 16px; min-width: 178px;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .5); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .store-txt { display: block; line-height: 1.15; }
.store-badge .store-txt small { display: block; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.store-badge .store-txt strong { font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge[aria-disabled="true"] { cursor: default; opacity: .78; }
.store-badge[aria-disabled="true"]:hover { transform: none; }
.stores-note { font-size: .84rem; color: var(--muted-dark); margin: 12px 0 0; }
.on-light .store-badge { background: var(--text); border-color: transparent; }
.on-light .stores-note { color: var(--muted); }

/* ---- Header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 16, 32, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: rgba(11, 16, 32, .96); border-bottom-color: var(--ink-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-name span { color: var(--accent-2); }   /* the "AI" */
.brand-name .brand-sub {
  font-style: normal; color: #98A3BA; font-weight: 500;
  font-size: .92em; letter-spacing: .005em; margin-left: .38em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: .94rem; font-weight: 500; color: #D7DCE8; transition: color .18s ease; }
.nav a:hover { color: #fff; }
.nav .nav-cta {
  font-family: var(--display); font-weight: 600; color: #fff;
  background: var(--accent); padding: 9px 18px; border-radius: 999px;
}
.nav .nav-cta:hover { background: #1f59e8; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--ink-line);
  background: transparent; border-radius: 10px; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; flex-direction: column; gap: 2px;
  background: var(--ink-2); border-top: 1px solid var(--ink-line); padding: 10px 24px 18px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: #D7DCE8; padding: 11px 0; border-bottom: 1px solid var(--ink-line); font-weight: 500; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---- Hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(47, 107, 255, .30), transparent 62%),
    radial-gradient(700px 460px at 10% 92%, rgba(77, 163, 255, .16), transparent 60%),
    var(--ink);
  padding: 84px 0 96px;
}
.hero::after {  /* the scan line from the app icon */
  content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 163, 255, .55), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-sub { font-size: 1.12rem; color: #C6CEDF; max-width: 46ch; margin-bottom: 1.9rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; font-family: var(--display);
  letter-spacing: .06em; text-transform: uppercase;
  color: #BFD2FF; background: rgba(47, 107, 255, .14);
  border: 1px solid rgba(77, 163, 255, .30); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 20px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .84rem; color: #D7DCE8;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line);
  border-radius: 999px; padding: 7px 14px;
}
.chip svg { width: 15px; height: 15px; color: var(--accent-2); }

/* Phone mock -------------------------------------------------------------*/
.phone {
  position: relative; width: min(320px, 100%); margin: 0 auto;
  background: #0F1628; border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 38px; padding: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10);
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; background: #05080F; border-radius: 999px; z-index: 3;
}
.phone-screen { background: var(--canvas); border-radius: 28px; overflow: hidden; }
.phone-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 16px 10px; background: #fff; border-bottom: 1px solid var(--line);
}
.phone-bar strong { font-family: var(--display); font-size: .95rem; color: var(--text); }
.phone-bar .tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: rgba(47, 107, 255, .12); padding: 4px 9px; border-radius: 999px;
}
.frames { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); margin: 0; }
.frame { position: relative; margin: 0; overflow: hidden; }
.frame figcaption {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  font-family: var(--display); font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgba(11, 16, 32, .72); padding: 3px 8px; border-radius: 6px;
}
.frame .scanner {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 44%, rgba(77, 163, 255, .8) 50%, transparent 56%);
  animation: scan 3.6s ease-in-out infinite;
}
@keyframes scan { 0%, 100% { transform: translateY(-46%); } 50% { transform: translateY(46%); } }

.findings { padding: 14px 16px 18px; background: var(--canvas); }
.findings h4 {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 10px;
}
.finding {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; box-shadow: var(--shadow-sm);
}
.finding .sev { flex: none; margin-top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--minor); }
.finding.moderate .sev { background: var(--moderate); }
.finding.major .sev { background: var(--major); }
.finding p { margin: 0; font-size: .82rem; line-height: 1.45; color: var(--text); }
.finding span { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.finding-sum { font-size: .78rem; color: var(--muted); margin: 10px 2px 0; line-height: 1.5; }

/* ---- Stat strip -------------------------------------------------------- */
.strip { background: var(--ink-2); color: #fff; padding: 26px 0; border-top: 1px solid var(--ink-line); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 28px; }
.stat { min-width: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.45rem; color: #fff; }
.stat span { font-size: .86rem; color: var(--muted-dark); }

/* ---- Cards ------------------------------------------------------------ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(47, 107, 255, .10); color: var(--accent); margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-icon.warm { background: rgba(245, 166, 35, .16); color: #A66A00; }
.card-icon.rose { background: rgba(239, 68, 68, .12); color: var(--major); }
.card-icon.green { background: rgba(34, 197, 94, .13); color: #199A4C; }

/* ---- Dark sections ----------------------------------------------------- */
.on-dark { background: var(--ink); color: #fff; }
.on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .lede, .on-dark p { color: var(--muted-dark); }
.on-dark .card { background: var(--ink-2); border-color: var(--ink-line); box-shadow: none; }
.on-dark .card:hover { box-shadow: none; border-color: rgba(255, 255, 255, .22); }
.on-dark .card p { color: var(--muted-dark); }
.on-dark .eyebrow { color: var(--accent-2); }
/* Cards that live inside a dark section become dark surfaces too — otherwise the
   white-on-dark heading rule above renders their titles invisible. */
.on-dark .step, .on-dark .plan { background: var(--ink-2); border-color: var(--ink-line); box-shadow: none; }
.on-dark .step p, .on-dark .plan .price small, .on-dark .price-note { color: var(--muted-dark); }
.on-dark .plan.featured { border-color: var(--accent); box-shadow: 0 18px 50px rgba(47, 107, 255, .22); }
.on-dark .plan .price { color: var(--accent-2); }
.on-dark .price-note a { color: var(--accent-2); }

/* ---- Steps ------------------------------------------------------------ */
.steps { display: grid; gap: 20px; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: step; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .35em; }
.step > div > p { color: var(--muted); margin-bottom: .9rem; }
.step > div > p:last-child { margin-bottom: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 7px 0; font-size: .94rem; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/16px no-repeat,
          linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/16px no-repeat,
        linear-gradient(#000, #000);
}
.ticks li b { font-weight: 600; }
.on-dark .ticks li { color: #E4E8F2; }

/* ---- Feature list ------------------------------------------------------ */
.features { grid-template-columns: repeat(3, 1fr); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(47, 107, 255, .10); color: var(--accent);
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1rem; margin-bottom: .2em; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---- Split (evidence) -------------------------------------------------- */
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .ticks { margin-top: 22px; }
.doc-mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 28px; font-size: .9rem; color: var(--text);
}
.doc-mock .doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.doc-mock .doc-head strong { font-family: var(--display); font-size: 1.05rem; display: block; }
.doc-mock .doc-head span { font-size: .78rem; color: var(--muted); }
.doc-mock .doc-head div + div { text-align: right; }
.doc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.doc-row span:first-child { color: var(--muted); }
.sev-tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sev-tag.minor { background: rgba(245, 166, 35, .18); color: #8A5D00; }
.sev-tag.moderate { background: rgba(249, 115, 22, .16); color: #A8460A; }
.sev-tag.major { background: rgba(239, 68, 68, .14); color: #B91C1C; }
.sev-tag.none { background: rgba(34, 197, 94, .14); color: #15803D; }
.hashline {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--canvas); border: 1px solid var(--line);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .72rem; color: var(--muted); word-break: break-all; line-height: 1.55;
}
.hashline b { display: block; font-family: var(--display); color: var(--text); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; }

/* ---- Use cases --------------------------------------------------------- */
.usecases { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usecase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 18px 20px; box-shadow: var(--shadow-sm); }
.usecase h3 { font-size: .98rem; margin-bottom: .3em; }
.usecase p { font-size: .87rem; color: var(--muted); margin: 0; }
.usecase .dot { width: 10px; height: 10px; border-radius: 3px; margin-bottom: 12px; background: var(--accent); display: block; }
/* One colour per card, matching the per-category tints in the app. */
.usecase:nth-child(1) .dot { background: #F06B5E; }
.usecase:nth-child(2) .dot { background: #2FB8A0; }
.usecase:nth-child(3) .dot { background: #2F6BFF; }
.usecase:nth-child(4) .dot { background: #9B6BFF; }
.usecase:nth-child(5) .dot { background: #F5A623; }
.usecase:nth-child(6) .dot { background: #EF4444; }
.usecase:nth-child(7) .dot { background: #0D9488; }
.usecase:nth-child(8) .dot { background: #64748B; }

.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; justify-content: center; }
.tag-pill { font-size: .85rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; }
.tag-pill.more { color: var(--accent); border-color: rgba(47, 107, 255, .35); background: rgba(47, 107, 255, .06); font-weight: 600; }

/* ---- Pricing ----------------------------------------------------------- */
.plans { grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--accent); box-shadow: 0 18px 50px rgba(47, 107, 255, .16); position: relative; }
.plan.featured::after {
  content: "Pro"; position: absolute; top: -12px; right: 24px;
  font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 14px; border-radius: 999px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .1em; }
.plan .price { font-family: var(--display); font-size: 1.05rem; color: var(--accent); margin: 0 0 18px; font-weight: 600; }
.plan .price small { display: block; font-family: var(--body); font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.plan .ticks li { font-size: .93rem; }
.price-note { text-align: center; color: var(--muted); font-size: .88rem; margin: 26px auto 0; max-width: 640px; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); font-size: .95rem; padding-bottom: 14px; margin: 0; }
.faq details p + p { padding-top: 10px; }

/* ---- CTA band ---------------------------------------------------------- */
.cta {
  background: radial-gradient(700px 380px at 50% 0%, rgba(47, 107, 255, .28), transparent 65%), var(--ink);
  color: #fff; text-align: center; padding: 84px 0;
}
.cta h2 { color: #fff; }
.cta p { color: var(--muted-dark); max-width: 54ch; margin: 0 auto 28px; }
.cta .stores { justify-content: center; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { background: var(--ink-2); color: var(--muted-dark); padding: 54px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin: 8px 0; }
.site-footer .brand { margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom.bare { border-top: 0; padding-top: 0; }
.footer-bottom a { text-decoration: none; }

/* ---- Legal pages -------------------------------------------------------- */
.legal { background: var(--bg); }
.legal-inner { max-width: 780px; margin: 0 auto; padding: 64px 24px 88px; }
.legal .back { display: inline-block; margin-bottom: 26px; font-size: .92rem; color: var(--accent); font-weight: 500; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: .92rem; margin: 0 0 34px; }
.legal h2 { font-size: 1.18rem; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--text); line-height: 1.7; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { font-weight: 600; }
.legal .callout {
  background: var(--canvas); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0;
}
.legal .callout p:last-child { margin-bottom: 0; }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: .93rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--canvas); font-family: var(--display); font-weight: 600; }
.legal .table-wrap { overflow-x: auto; }

/* ---- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding: 62px 0 72px; }
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 62px 0; }
  .grid-3, .grid-2, .features, .usecases, .plans { grid-template-columns: 1fr; }
  .strip-inner { grid-template-columns: 1fr; gap: 16px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta .btn { width: 100%; }
  .store-badge { flex: 1 1 100%; }
}

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