/* naviscroll.com, Direction A (document-first). Tokens are the product's own values. */
:root {
  --brand: #0154f1; --brand-h: #0146c8; --ink: #00122a; --dark: #151515;
  --text: #1b2230; --dim: #4a5163; --muted: #6a7183;
  --bg: #f3f5f9; --s2: #f5f7fb; --s3: #eef1f6; --border: #e3e8f0; --border-s: #c7cedb;
  --weak: #e8f0ff; --ok: #15784f; --red: #e53935;
  --shadow-sm: 0 1px 2px rgba(20,30,60,.06), 0 1px 3px rgba(20,30,60,.08);
  --shadow-md: 0 4px 14px rgba(20,30,60,.10);
  --shadow-pop: 0 12px 34px rgba(15,25,50,.18);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --wrap: 1120px; --gutter: 40px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-h); }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: 36px; }
h3 { font-size: 20px; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: 6px; z-index: 50; }
.skip:focus { top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.header { background: #fff; border-bottom: 1px solid var(--border); }
.header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; margin-right: 8px; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--dim); text-decoration: none; }
.nav a:hover { background: var(--s3); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand); color: #fff; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border-s); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; font-size: 16px; font-weight: 700; text-decoration: none; border: 1px solid var(--border-s); background: #fff; color: var(--text); }
.btn:hover { background: var(--s2); color: var(--ink); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-h); border-color: var(--brand-h); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections and text */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0 32px; }
.section--tint { background: var(--s2); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 24px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--dim); }
.small { font-size: 14px; color: var(--muted); }
.intro { max-width: 760px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.check-list svg { flex: 0 0 auto; margin-top: 3px; color: var(--ok); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.grid-2--top { align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.card { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.shot { border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-pop); }
.shot--card { border: 0; }
.center { display: flex; justify-content: center; }

/* Home */
.hero { padding: 72px 0 88px; }
.hero h1 { font-size: 52px; }
.hero p.lede { font-size: 20px; max-width: 32em; }
.hero-visual { position: relative; display: flex; justify-content: flex-end; }
.hero-visual img { width: 560px; max-width: 100%; }
.pill { position: absolute; left: 24px; top: -18px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-md); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step .num { width: 40px; height: 40px; border-radius: 999px; background: var(--s3); color: var(--ink); font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step p { color: var(--dim); }
.area-card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }
.area-card:hover { border-color: var(--border-s); color: var(--text); }
.area-card .icon { color: var(--brand); }
.area-card h3 { font-size: 18px; }
.area-card p { font-size: 15px; color: var(--dim); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.finals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 18px; }
.final { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.final img { border-radius: 10px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.final b { font-size: 15px; color: var(--ink); line-height: 1.25; }
.final span { font-size: 13px; color: var(--muted); }
.final:hover b { color: var(--brand); }
.privacy-box { padding: 32px; }
.quote { font-size: 24px; line-height: 1.4; color: var(--ink); font-weight: 600; text-wrap: pretty; }
.cta-band { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 56px 40px; border-radius: 12px; background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: #c8cbd2; max-width: 36em; font-size: 17px; }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 40px; border-radius: 12px; background: var(--s2); border: 1px solid var(--border); }
.cta-strip h2 { font-size: 26px; }
.cta-strip p { color: var(--dim); margin-top: 6px; }

/* Features */
.feature-rows { display: flex; flex-direction: column; gap: 96px; }
.feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-text { display: flex; flex-direction: column; gap: 18px; }
.feature-text .icon { color: var(--brand); }
.feature-text .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.feature-text h2 { font-size: 32px; margin-top: 8px; }

/* How it works */
.how-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); }
.how-row .big { font-size: 64px; font-weight: 700; color: var(--s3); line-height: 1; letter-spacing: -.03em; }
.how-row h2 { font-size: 28px; }
.how-row p { color: var(--dim); }

/* Download */
.store-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.store-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.store-card h3 { font-size: 22px; }
.store-card p { color: var(--dim); font-size: 15px; }
.numbered { display: flex; flex-direction: column; gap: 14px; }
.numbered li { display: flex; gap: 14px; list-style: none; }
.numbered .num { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 999px; background: var(--s3); color: var(--ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.numbered p { padding-top: 4px; }
.perm { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; }
.perm b { color: var(--ink); font-weight: 600; }
.perm span { color: var(--dim); }

/* Releases */
.release { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; }
.release aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; }
.release aside h2 { font-size: 32px; }
.release aside p { color: var(--dim); }
.release-lists { display: flex; flex-direction: column; gap: 36px; }
.release-lists h3 { font-size: 18px; }
.release-lists ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; color: var(--dim); }
.prev-row { display: grid; grid-template-columns: 120px 180px minmax(0, 1fr); gap: 24px; padding: 18px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); }
.prev-row b { color: var(--ink); }
.prev-row .date { color: var(--muted); }
.prev-row .what { color: var(--dim); }

/* Support */
.support { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--border); }
.faq h3 { font-size: 18px; }
.faq p { color: var(--dim); }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.side .card { display: flex; flex-direction: column; gap: 12px; }
.side .card.tint { background: var(--s2); box-shadow: none; }
.side .icon { color: var(--brand); }
.side a.plain { text-decoration: none; font-size: 15px; }

/* Content pages */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.prose { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.prose h2 { font-size: 24px; margin-top: 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.placeholder { padding: 14px 16px; border: 1px dashed var(--border-s); border-radius: 8px; background: var(--s2); font-size: 14px; color: var(--muted); }
.toc { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--s2); }
.toc .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc a { font-size: 14px; text-decoration: none; }
.diagram { display: grid; grid-template-columns: minmax(0, 1.4fr) 48px minmax(0, 1fr); gap: 16px; align-items: center; padding: 28px; border-radius: 12px; background: var(--s2); border: 1px solid var(--border); }
.diagram .label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.diagram .boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.box { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 15px; }
.box .label { color: var(--muted); }
.box--dark { background: var(--dark); border-color: #2f2f2f; color: #fff; }
.box--dark .label { color: #c8cbd2; }
.diagram .arrow { display: flex; justify-content: center; color: var(--muted); }
.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 120px 0; }
.notfound .code { font-size: 96px; font-weight: 700; color: var(--s3); line-height: 1; letter-spacing: -.04em; }
.notfound p { color: var(--dim); max-width: 32em; font-size: 17px; }

/* Footer */
.footer { background: var(--s2); padding: 56px 0 36px; }
.footer .wrap { display: flex; flex-direction: column; gap: 36px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot-col a { font-size: 14px; color: var(--text); text-decoration: none; }
.foot-col a:hover { color: var(--brand); }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
.foot-line img { width: 28px; height: 28px; }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-row { grid-template-columns: 80px minmax(0, 1fr); }
  .how-row .visual { grid-column: 2; }
  .release { grid-template-columns: minmax(0, 1fr); }
  .release aside { position: static; }
  .support, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .side, .toc { position: static; }
  .diagram { grid-template-columns: minmax(0, 1fr); }
  .diagram .arrow { transform: rotate(90deg); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  h1, .hero h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 48px 0 24px; }
  .hero { padding: 40px 0 56px; }
  .hero p.lede { font-size: 17px; }
  .grid-2, .feature-row, .store-cards, .grid-3, .grid-4, .steps, .finals { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-row:nth-child(even) .feature-text { order: 0; }
  .feature-rows { gap: 56px; }
  .feature-text h2, .how-row h2 { font-size: 24px; }
  .hero-visual { justify-content: flex-start; padding-top: 30px; }
  .hero-visual img { width: 100%; }
  .pill { left: 12px; top: 0; }
  .btn-row .btn { width: 100%; }
  .how-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 32px 0; }
  .how-row .big { font-size: 40px; }
  .how-row .visual { grid-column: 1; }
  .perm, .prev-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cta-band { padding: 32px 20px; }
  .cta-band h2 { font-size: 24px; }
  .cta-strip { padding: 24px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .footer { padding: 36px 0; }
  .notfound { padding: 64px 0; }
  .notfound .code { font-size: 64px; }
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 16px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); z-index: 20; }
  .nav a { min-height: 44px; }
  .header { position: relative; }
  .header.is-open .nav { display: flex; }
  .header .btn { display: none; }
  .header.is-open .btn { display: inline-flex; margin: 8px 16px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .header, .footer, .skip { display: none; } }
