/* Zoggyfin website. One stylesheet for every page.
   Tokens follow docs/design/theme.ts. Dark and light follow the system;
   the toggle in the header sets data-theme on <html> (see /theme.js). */

@font-face {
  font-family: 'Inter Zf';
  src: url('/fonts/inter-latin-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #0B0B0E;
  --bg-2: #101014;
  --surface: #16161A;
  --surface-2: #202026;
  --surface-3: #2A2A31;
  --text: #F5F5F7;
  --text-2: #A8A8B3;
  --text-3: #96969F;
  --accent: #FF7A59;
  --accent-hover: #FF8B6E;
  --accent-pressed: #E8684A;
  --on-accent: #1A0B06;
  --accent-soft: rgba(255, 122, 89, 0.14);
  --accent-text: #FF7A59;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --nav-bg: rgba(11, 11, 14, 0.72);
  --btn-2: rgba(255, 255, 255, 0.08);
  --btn-2-hover: rgba(255, 255, 255, 0.13);
  --glow-1: rgba(255, 106, 77, 0.30);
  --glow-2: rgba(255, 162, 112, 0.16);
  --glow-3: rgba(120, 120, 150, 0.10);
  --shadow-device: 0 40px 80px -24px rgba(0, 0, 0, 0.75), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --success: #3DD68C;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter Zf', system-ui, 'Segoe UI', 'Noto Sans', 'Noto Sans Arabic', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter Zf', system-ui, 'Segoe UI', 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg: #FFFFFF;
    --bg-2: #F6F6F8;
    --surface: #F2F2F5;
    --surface-2: #EBEBEF;
    --surface-3: #E2E2E7;
    --text: #111114;
    --text-2: #595963;
    --text-3: #63636C;
    --accent: #B53A17;
    --accent-hover: #A43414;
    --accent-pressed: #9C3113;
    --on-accent: #FFFFFF;
    --accent-soft: rgba(181, 58, 23, 0.08);
    --accent-text: #B53A17;
    --line: rgba(17, 17, 20, 0.10);
    --line-strong: rgba(17, 17, 20, 0.16);
    --nav-bg: rgba(255, 255, 255, 0.74);
    --btn-2: rgba(17, 17, 20, 0.06);
    --btn-2-hover: rgba(17, 17, 20, 0.10);
    --glow-1: rgba(255, 122, 89, 0.24);
    --glow-2: rgba(255, 176, 120, 0.22);
    --glow-3: rgba(255, 214, 190, 0.40);
    --shadow-device: 0 40px 70px -28px rgba(20, 20, 26, 0.45), 0 10px 22px -10px rgba(20, 20, 26, 0.30);
    --shadow-card: 0 1px 2px rgba(20, 20, 26, 0.04);
    --success: #12703F;
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-2: #F6F6F8;
  --surface: #F2F2F5;
  --surface-2: #EBEBEF;
  --surface-3: #E2E2E7;
  --text: #111114;
  --text-2: #595963;
  --text-3: #63636C;
  --accent: #B53A17;
  --accent-hover: #A43414;
  --accent-pressed: #9C3113;
  --on-accent: #FFFFFF;
  --accent-soft: rgba(181, 58, 23, 0.08);
  --accent-text: #B53A17;
  --line: rgba(17, 17, 20, 0.10);
  --line-strong: rgba(17, 17, 20, 0.16);
  --nav-bg: rgba(255, 255, 255, 0.74);
  --btn-2: rgba(17, 17, 20, 0.06);
  --btn-2-hover: rgba(17, 17, 20, 0.10);
  --glow-1: rgba(255, 122, 89, 0.24);
  --glow-2: rgba(255, 176, 120, 0.22);
  --glow-3: rgba(255, 214, 190, 0.40);
  --shadow-device: 0 40px 70px -28px rgba(20, 20, 26, 0.45), 0 10px 22px -10px rgba(20, 20, 26, 0.30);
  --shadow-card: 0 1px 2px rgba(20, 20, 26, 0.04);
  --success: #12703F;
}

@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; color: var(--text); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }
code { font: 0.88em/1.4 var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
ul, ol { padding-left: 1.3em; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top 160ms var(--ease);
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 8px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 600 21px/1 var(--font-display); letter-spacing: -0.01em; margin-right: auto; padding: 6px 4px 6px 0; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { text-decoration: none; }
.nav-links { display: none; gap: 2px; margin-right: 6px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--text); background: var(--btn-2); }
@media (min-width: 760px) { .nav-links { display: flex; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 90ms var(--ease);
}
.icon-btn:hover { color: var(--text); background: var(--btn-2); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .moon { display: none; }
  :root:not([data-theme='light']) .theme-toggle .sun { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 17px/1.15 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  transition: background-color 160ms var(--ease), transform 90ms var(--ease), box-shadow 160ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); background: var(--accent-pressed); }
.btn:focus-visible { outline-offset: 3px; border-radius: 999px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.secondary { background: var(--btn-2); color: var(--text); }
.btn.secondary:hover { background: var(--btn-2-hover); }
.btn.secondary:active { background: var(--btn-2-hover); }
.btn.small { --h: 40px; padding: 0 16px; font-size: 15px; }
.btn.block { display: flex; width: 100%; }
.btn .badge { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 3px 8px; border-radius: 999px; background: var(--btn-2-hover); color: var(--text-2); }
.btn.quiet { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.quiet:hover { color: var(--text); background: var(--btn-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
@media (max-width: 520px) {
  .hero .actions .btn, .end .actions .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 0; text-align: center; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: -64px 0 auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 32% at 50% 72%, var(--glow-1), transparent 70%),
    radial-gradient(34% 30% at 18% 18%, var(--glow-3), transparent 70%),
    radial-gradient(30% 26% at 84% 26%, var(--glow-2), transparent 70%);
}
.app-icon { width: 88px; height: 88px; margin: 0 auto 28px; border-radius: 22.5%; box-shadow: 0 18px 40px -12px rgba(255, 106, 77, 0.45), 0 0 0 1px var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 8px;
  border-radius: 999px; background: var(--btn-2); color: var(--text-2); font-size: 14px; font-weight: 500; line-height: 1.3;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.eyebrow .dot svg { width: 13px; height: 13px; }
.hero h1 {
  font-size: clamp(44px, 9.4vw, 84px); line-height: 1.0; font-weight: 700; letter-spacing: -0.045em;
  max-width: 13ch; margin: 0 auto;
}
.hero h1 .soft { color: var(--text-2); }
.hero .lede { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 600px; margin: 22px auto 34px; }
.hero .fine { font-size: 14px; color: var(--text-3); margin: 18px auto 0; max-width: 560px; line-height: 1.5; }

.stage { position: relative; height: clamp(440px, 118vw, 540px); margin: 48px auto 0; max-width: 980px; }
.stage .device { position: absolute; left: 50%; top: 0; }
.stage .d-center { --w: clamp(222px, 60vw, 290px); transform: translateX(-50%); z-index: 3; }
.stage .d-left, .stage .d-right { --w: clamp(186px, 48vw, 248px); top: 54px; z-index: 2; }
.stage .d-left { transform: translateX(calc(-50% - min(52vw, 290px))) rotate(-5deg); }
.stage .d-right { transform: translateX(calc(-50% + min(52vw, 290px))) rotate(5deg); }
.stage::after {
  /* the horizon */
  content: ''; position: absolute; left: 50%; bottom: 0; width: min(1120px, 100vw); height: 1px; transform: translateX(-50%); z-index: 4;
  background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--accent) 50%, var(--line-strong) 80%, transparent);
  opacity: 0.8;
}
.stage-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 3; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.stage { overflow: hidden; }
@media (min-width: 900px) {
  .stage { height: 600px; }
  .stage .d-center { --w: 300px; }
  .stage .d-left, .stage .d-right { --w: 262px; top: 64px; }
  .stage .d-left { transform: translateX(calc(-50% - 300px)) rotate(-5deg); }
  .stage .d-right { transform: translateX(calc(-50% + 300px)) rotate(5deg); }
}

/* entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero .app-icon, .hero .eyebrow, .hero h1, .hero .lede, .hero .actions, .hero .fine { animation: rise 700ms var(--ease-out) both; }
  .hero .eyebrow { animation-delay: 40ms; }
  .hero h1 { animation-delay: 80ms; }
  .hero .lede { animation-delay: 140ms; }
  .hero .actions { animation-delay: 200ms; }
  .hero .fine { animation-delay: 240ms; }
  .stage .d-center { animation: rise-center 900ms var(--ease-out) 220ms both; }
  .stage .d-left { animation: rise-left 900ms var(--ease-out) 320ms both; }
  .stage .d-right { animation: rise-right 900ms var(--ease-out) 380ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise-center { from { opacity: 0; transform: translateX(-50%) translateY(40px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes rise-left { from { opacity: 0; transform: translateX(calc(-50% - min(52vw, 300px) + 40px)) translateY(50px) rotate(-2deg); } }
@keyframes rise-right { from { opacity: 0; transform: translateX(calc(-50% + min(52vw, 300px) - 40px)) translateY(50px) rotate(2deg); } }

/* ---------- Device frames ---------- */
.device { --w: 280px; width: var(--w); flex: none; }
.phone {
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.168);
  background: linear-gradient(160deg, #3A3A42 0%, #17171B 38%, #0E0E11 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 0 0 calc(var(--w) * 0.012) #0A0A0C, var(--shadow-device);
}
.phone img, .tablet img { width: 100%; height: auto; background: #0B0B0E; }
.phone img { border-radius: calc(var(--w) * 0.137); aspect-ratio: 360 / 782; }
.phone.land { padding: calc(var(--w) * 0.016); border-radius: calc(var(--w) * 0.078); }
.phone.land img { border-radius: calc(var(--w) * 0.064); aspect-ratio: 720 / 332; }
.tablet {
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.062);
  background: linear-gradient(160deg, #3A3A42 0%, #17171B 38%, #0E0E11 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), var(--shadow-device);
}
.tablet img { border-radius: calc(var(--w) * 0.034); aspect-ratio: 520 / 694; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--bg-2); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent-text); margin: 0 0 14px; }
.kicker svg { width: 18px; height: 18px; }
.h2 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.sub { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--text-2); margin-top: 18px; max-width: 560px; }
.center-head { text-align: center; }
.center-head .sub { margin-left: auto; margin-right: auto; }

.split { display: grid; gap: 48px; align-items: center; }
.split .copy { max-width: 520px; }
.split .visual { display: flex; justify-content: center; gap: 20px; position: relative; isolation: isolate; }
.split .visual::before {
  content: ''; position: absolute; inset: 8% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-1), transparent);
  filter: blur(10px); opacity: 0.8;
}
.split .visual .phone { --w: min(270px, 68vw); }
.split .visual.pair .phone { --w: min(240px, 42vw); }
.split .visual.pair .phone:nth-child(2) { margin-top: 56px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split.flip .copy { order: 2; }
  .split .visual .phone { --w: 290px; }
  .split .visual.pair .phone { --w: 250px; }
}

.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--text-2); line-height: 1.5; }
.points li strong { color: var(--text); font-weight: 600; }
.points svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: var(--btn-2); color: var(--text); line-height: 1.2; }
.center-head .chips { justify-content: center; }

.wide-visual { display: flex; justify-content: center; margin-top: 56px; position: relative; isolation: isolate; }
.wide-visual::before { content: ''; position: absolute; inset: 10% 10%; z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent); filter: blur(20px); }
.wide-visual .phone.land { --w: min(860px, calc(100vw - var(--gutter) * 2)); }

.stat {
  display: inline-grid; gap: 10px; margin-top: 28px; padding: 16px 18px; min-width: min(100%, 340px);
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.stat .row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.stat .row b { color: var(--text); font-weight: 600; }
.stat .bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.stat .bar i { display: block; height: 100%; width: 58%; border-radius: inherit; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .stat.reveal .bar i { transform-origin: left; transform: scaleX(0.15); transition: transform 1400ms var(--ease-out) 300ms; }
  .js .stat.reveal.in .bar i { transform: none; }
}

/* cards and grids */
.grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .grid.two, .grid.four { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.card h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; margin: 0 0 8px; }
.card p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-text);
}
.card .ic svg { width: 22px; height: 22px; }
.card .tag { position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--btn-2); padding: 4px 9px; border-radius: 999px; }
.card.lift { transition: transform 240ms var(--ease), border-color 240ms var(--ease); }
@media (hover: hover) { .card.lift:hover { transform: translateY(-3px); border-color: var(--line-strong); } }

/* hairline feature list, like a spec sheet */
.specs { display: grid; margin-top: 44px; border-top: 1px solid var(--line); }
.specs > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.specs h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 6px; }
.specs p { color: var(--text-2); font-size: 16px; line-height: 1.55; }
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* together cards inside a split */
.mini-cards { display: grid; gap: 12px; margin-top: 28px; }
.mini-cards .card { padding: 20px 22px; border-radius: var(--radius); }
.mini-cards .card h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.mini-cards .card h3 svg { width: 20px; height: 20px; color: var(--accent-text); }
.mini-cards .card p { font-size: 15px; }

/* manifest card (extensions) */
.code-card { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.code-card .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text-2); font-family: var(--mono); }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.code-card pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13.5px/1.7 var(--mono); color: var(--text); }
.code-card pre .k { color: var(--accent-text); }
.code-card pre .s { color: var(--text-2); }
.code-card .rows > div { padding: 16px 20px; border-top: 1px solid var(--line); }
.code-card .rows b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.code-card .rows span { font-size: 14.5px; color: var(--text-2); line-height: 1.5; }

/* privacy band */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px; padding: clamp(32px, 6vw, 64px); background: var(--surface); border: 1px solid var(--line);
}
.band::before { content: ''; position: absolute; inset: auto -10% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.band .grid { margin-top: 36px; }
.band .grid .card { background: var(--bg); }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 17px; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: 2px; }
@media (min-width: 760px) { .check-list.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* platform cards (landing and /download) */
.platforms { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 820px) { .platforms { grid-template-columns: repeat(3, 1fr); } }
.platform { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.platform .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.platform .ic svg { width: 26px; height: 26px; }
.platform h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 650; }
.platform p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.platform .btn { margin-top: auto; }
.platform .meta { font-size: 13.5px; color: var(--text-3); }
.platform.soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font: 600 18px/1.4 var(--font-display); letter-spacing: -0.012em; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 12px; height: 12px; margin-right: 6px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg); transition: transform 240ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .a { padding: 0 0 24px; color: var(--text-2); max-width: 680px; }
.faq .a p + p { margin-top: 10px; }

/* end CTA */
.end { text-align: center; padding: 104px 0 112px; position: relative; isolation: isolate; overflow: hidden; }
.end::before { content: ''; position: absolute; left: 50%; bottom: -260px; width: 900px; height: 520px; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent); }
.end .app-icon { width: 72px; height: 72px; margin-bottom: 24px; }
.end h2 { font-size: clamp(40px, 7vw, 68px); letter-spacing: -0.045em; line-height: 1.02; font-weight: 700; }
.end p { color: var(--text-2); font-size: 19px; margin: 16px auto 32px; max-width: 520px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--text-2); }
.footer .top { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer .top { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .brand { margin-bottom: 12px; }
.footer p { line-height: 1.55; max-width: 360px; }
.footer h2 { font: 600 13px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin: 6px 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer ul a { color: var(--text-2); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer ul a:hover { color: var(--text); }
.footer .bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: var(--text-3); }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal.d1 { transition-delay: 80ms; }
  .js .reveal.d2 { transition-delay: 160ms; }
  .js .reveal.d3 { transition-delay: 240ms; }
}

/* ---------- Inner pages ---------- */
.page-head { position: relative; isolation: isolate; padding: 64px 0 40px; }
.page-head::before {
  content: ''; position: absolute; inset: -64px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 20% 30%, var(--glow-2), transparent 70%), radial-gradient(36% 46% at 85% 10%, var(--glow-3), transparent 70%);
}
.page-head h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 700; }
.page-head .lede { font-size: clamp(18px, 2.2vw, 20px); color: var(--text-2); margin-top: 16px; max-width: 620px; line-height: 1.55; }
.page-head .meta { margin-top: 14px; font-size: 14px; color: var(--text-3); }
.page-head.center { text-align: center; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }

.prose { padding-bottom: 96px; }
.prose h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; margin: 48px 0 12px; }
.prose h3 { font-size: 18px; font-weight: 650; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text-2); }
.prose p + p { margin-top: 12px; }
.prose li { margin: 6px 0; }
.prose li strong, .prose p strong { color: var(--text); }
.prose .card { margin: 8px 0 0; }
.prose .card h2 { margin-top: 0; font-size: 20px; }
.prose .card p { color: var(--text-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc a { display: inline-block; font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--btn-2); color: var(--text); }
.toc a:hover { background: var(--btn-2-hover); }

/* /download */
.dl-hero-card { display: grid; gap: 28px 48px; align-items: start; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.dl-hero-card::before { content: ''; position: absolute; inset: auto -20% -70% 20%; height: 130%; z-index: -1; background: radial-gradient(closest-side, var(--glow-1), transparent); }
@media (min-width: 860px) { .dl-hero-card { grid-template-columns: 1.1fr 0.9fr; } }
.dl-hero-card h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.dl-hero-card .version { font-size: 15px; color: var(--text-2); margin: 10px 0 22px; font-variant-numeric: tabular-nums; }
.dl-hero-card .req { font-size: 14px; color: var(--text-3); margin-top: 14px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.steps li strong, .steps li code { color: var(--text); }
.notes { grid-column: 1 / -1; margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.notes h3 { font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.notes ul { color: var(--text-2); margin: 0; font-size: 15.5px; }
.notes li { margin: 4px 0; }

/* /join */
.page-head.join { padding: 48px 0 96px; }
.join-card { text-align: left; max-width: 560px; margin: 0 auto; padding: clamp(24px, 5vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.join-card .app-icon { width: 64px; height: 64px; margin: 0 0 20px; }
.join-card h1 { font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.join-card .lede { color: var(--text-2); font-size: 18px; margin: 12px 0 24px; overflow-wrap: anywhere; }
.join-card .steps { margin: 20px 0 24px; }
.join-card .actions { margin-top: 8px; }
.join-card .actions .btn { flex: 1 1 200px; }
.join-card .muted { color: var(--text-2); font-size: 15px; line-height: 1.55; margin-top: 16px; }
.join-card .secure { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-3); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.join-card .secure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: 15px; }
.tunnel { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 15px; line-height: 1.5; }
.others { margin-top: 24px; border-top: 1px solid var(--line); }
.others summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0 0; font-weight: 600; min-height: 44px; }
.others summary::-webkit-details-marker { display: none; }
.others summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); margin-right: 6px; transition: transform 240ms var(--ease); }
.others[open] summary::after { transform: rotate(-135deg); }
.others h3 { font-size: 16px; font-weight: 650; margin: 20px 0 4px; }
.others p { color: var(--text-2); font-size: 15.5px; }
.qr { background: #fff; border-radius: 14px; padding: 0; image-rendering: pixelated; margin-top: 12px; width: 232px; height: 232px; }

[hidden] { display: none !important; }

/* split visuals: tablet and code card */
.split .visual .tablet { --w: min(460px, calc(100vw - var(--gutter) * 2)); }
.split .visual .code-card { width: 100%; max-width: 500px; }
.split > *, .grid > *, .platforms > * { min-width: 0; }
.split .visual { max-width: 100%; }
.prose .kicker { color: var(--accent-text); }
.prose .dl-hero-card h2, .prose .platform h3 { margin: 0; }
.prose .platforms { margin-top: 16px; }
.prose .notes h3 { margin-top: 0; }
