/* Handler — marketing site styles.
   System fonts only: the site makes zero third-party requests, which is the point. */

:root {
  --bg: #fbfbfd;
  --bg-elev: #ffffff;
  --bg-sunk: #f2f2f5;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0a58ca;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 88, 202, 0.09);
  --warm: #6e3fd6;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1080px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", "Iowan Old Style", "Charter", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elev: #161618;
    --bg-sunk: #0c0c0d;
    --ink: #f5f5f7;
    --ink-2: #c7c7cc;
    --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #5aa0ff;
    --accent-ink: #001433;
    --accent-soft: rgba(90, 160, 255, 0.15);
    --warm: #b08cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; }
.nav ul { display: flex; gap: clamp(14px, 3vw, 28px); list-style: none; margin: 0; padding: 0; font-size: 14px; }
.nav ul a { color: var(--ink-2); }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); text-decoration: none; }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent);
  margin: 0 0 14px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
.display {
  font-size: clamp(44px, 9vw, 96px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
}
.headline { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.42; color: var(--ink-2); letter-spacing: -0.018em; text-wrap: pretty; }
.muted { color: var(--ink-3); }
.serif { font-family: var(--font-serif); font-weight: 500; font-style: italic; letter-spacing: -0.02em; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--warm) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { color: var(--accent); }
.btn-ghost::after { content: "›"; font-size: 22px; line-height: 1; transform: translateY(-1px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 14vw, 160px) 0; }
.section-sunk { background: var(--bg-sunk); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; max-width: 680px; }

/* Hero */
.hero { padding: clamp(64px, 12vw, 140px) 0 clamp(48px, 8vw, 96px); text-align: center; overflow: hidden; }
.hero .lede { max-width: 640px; margin: 24px auto 32px; }
.hero .cta-row { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 70%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, var(--accent-soft), transparent 70%),
    radial-gradient(35% 45% at 72% 30%, color-mix(in srgb, var(--warm) 12%, transparent), transparent 70%);
  filter: blur(10px);
}

/* Product vignette: abstract UI cards, deliberately not an Apple device rendering */
.stage {
  position: relative; margin: clamp(48px, 8vw, 88px) auto 0; max-width: 880px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; text-align: left;
}
@media (max-width: 720px) { .stage { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.receipt { font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-2); position: relative; }
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-family: var(--font); }
.receipt-head strong { font-size: 17px; color: var(--ink); letter-spacing: -0.02em; }
.receipt-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.receipt-row:last-of-type { border-bottom: 0; }
.receipt-total { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.scanline {
  position: absolute; left: 12px; right: 12px; height: 2px; top: 20%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent); border-radius: 2px; opacity: .85;
  animation: scan 3.2s cubic-bezier(.45,0,.55,1) infinite alternate;
}
@keyframes scan { from { top: 18%; } to { top: 86%; } }

.stack { display: grid; gap: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 980px;
  background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600;
}
.chip.warm { background: color-mix(in srgb, var(--warm) 13%, transparent); color: var(--warm); }
.chip.neutral { background: var(--bg-sunk); color: var(--ink-2); }
.stat { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat-label { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 16px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--accent-soft); }
.bars span.on { background: var(--accent); }
.lock-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.lock-line svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(40px, 7vw, 72px); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 30px; }
.pillar .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.pillar .icon svg { width: 22px; height: 22px; }
.pillar p { color: var(--ink-2); margin: 10px 0 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 12vw, 140px); }
.feature.flip .feature-copy { order: 2; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}
.feature-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 19px; margin: 18px 0 0; text-wrap: pretty; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a58ca' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.feature-visual { min-height: 280px; }

/* Privacy band */
.privacy-band { background: #000; color: #f5f5f7; }
.privacy-band h2, .privacy-band .stat { color: #f5f5f7; }
.privacy-band .lede { color: #a1a1a6; }
.privacy-band .eyebrow { color: #5aa0ff; }
.ledger { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 7vw, 72px); }
@media (max-width: 760px) { .ledger { grid-template-columns: 1fr; } }
.ledger div { background: #0b0b0c; padding: 28px; }
.ledger dt { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #8e8e93; }
.ledger dd { margin: 8px 0 0; font-size: 20px; letter-spacing: -0.02em; color: #f5f5f7; }

/* FAQ */
.faq { margin-top: clamp(32px, 6vw, 56px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 300; color: var(--ink-3); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 680px; }

/* Final CTA */
.final { text-align: center; }
.final .lede { margin: 20px auto 32px; max-width: 560px; }
.final .cta-row { justify-content: center; }

/* ---------- Document pages (privacy, support) ---------- */
.doc { padding: clamp(56px, 10vw, 112px) 0 clamp(64px, 10vw, 120px); }
.doc h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; }
.doc .updated { color: var(--ink-3); font-size: 15px; margin: 14px 0 0; }
.doc h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; margin: 56px 0 14px; font-weight: 700; }
.doc h3 { font-size: 19px; margin: 32px 0 8px; }
.doc p:not(.eyebrow), .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .summary { margin-top: 36px; padding: 26px 28px; }
.doc .summary h2 { margin-top: 0; font-size: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.toc li + li { margin-top: 0 !important; }
.toc { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.toc a { display: inline-block; padding: 7px 14px; border-radius: 980px; background: var(--bg-sunk); color: var(--ink-2); font-size: 14px; }
.toc a:hover { color: var(--ink); text-decoration: none; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid .card h2 { margin: 0 0 6px; font-size: 20px; }
.contact-grid .card p { margin: 0 0 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--ink-3); }
.footer .wrap { display: grid; gap: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer nav a { color: var(--ink-2); }
.footer p { margin: 0; }

/* ---------- Scroll-driven motion ----------
   Content is fully visible by default; motion is layered on only where the browser
   supports scroll-driven animations and the visitor hasn't asked for reduced motion. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    .reveal-scale {
      animation: reveal-scale linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 35%;
    }
    .parallax-up {
      animation: parallax-up linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .hero-title {
      animation: hero-out linear both;
      animation-timeline: scroll(root);
      animation-range: 0 60vh;
    }
    .progress {
      position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
      background: linear-gradient(90deg, var(--accent), var(--warm));
      transform-origin: 0 50%;
      animation: progress linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes reveal-scale { from { opacity: .2; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes parallax-up { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
@keyframes hero-out { to { opacity: .15; transform: scale(.94) translateY(-20px); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progress { display: none; }
@supports (animation-timeline: view()) { @media (prefers-reduced-motion: no-preference) { .progress { display: block; } } }

@media (prefers-reduced-motion: reduce) {
  .scanline { animation: none; top: 50%; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
