/*
 * Verso's site: product first, in light and dark. Tokens are the app's own
 * (apps/mobile/src/ui/theme.ts) and docs/brand.md. System fonts on purpose: they
 * cover Devanagari, and the site loads nothing from anyone else.
 */
:root {
  color-scheme: light;
  --paper: #F3F4F0; --surface: #FFFFFF; --tint: #ECEDE7;
  --ink: #141A26; --ink-2: #4A5468; --ink-3: #5C6679;
  --rule: #D8DBD3; --line: rgba(20, 26, 38, 0.1);
  --accent: #2E3F91; --accent-ink: #FFFFFF;
  --risk: #A82A20; --risk-soft: #F6DFDC; --warn: #8A5A08; --warn-soft: #F5EAD5; --ok: #2C6E49; --ok-soft: #DFEBE2;
  --card: #FFFFFF; --card-line: rgba(20, 26, 38, 0.08); --shadow: 0 18px 40px -30px rgba(20, 26, 38, 0.35);
  --bar: rgba(255, 255, 255, 0.82);
  /* The hero band is the icon's field. */
  --band: #2E3F91; --band-glow: #4053B4; --band-ink: #FFFFFF; --band-ink-2: rgba(255, 255, 255, 0.86); --band-ink-3: rgba(255, 255, 255, 0.72);
  --band-button: #FFFFFF; --band-button-ink: #2E3F91;
  --app-paper: #F3F4F0; --app-ink: #141A26;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1160px;
  --gutter: clamp(18px, 4vw, 44px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D1017; --surface: #171C26; --tint: #11151E;
    --ink: #E7EAE3; --ink-2: #AEB6C6; --ink-3: #8B96AB;
    --rule: #2E3644; --line: rgba(255, 255, 255, 0.09);
    --accent: #93A2F2; --accent-ink: #0D1017;
    --risk: #EE8577; --risk-soft: #301917; --warn: #D9A33F; --warn-soft: #2C2311; --ok: #6EC08D; --ok-soft: #152A1E;
    --card: #171C26; --card-line: rgba(255, 255, 255, 0.07); --shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.8);
    --bar: rgba(23, 28, 38, 0.8);
    --band: #121938; --band-glow: #1F2A5C; --band-ink: #E7EAE3; --band-ink-2: #AEB6C6; --band-ink-3: #8B96AB;
    --band-button: #93A2F2; --band-button-ink: #0D1017;
    --app-paper: #0D1017; --app-ink: #E7EAE3;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1017; --surface: #171C26; --tint: #11151E;
  --ink: #E7EAE3; --ink-2: #AEB6C6; --ink-3: #8B96AB;
  --rule: #2E3644; --line: rgba(255, 255, 255, 0.09);
  --accent: #93A2F2; --accent-ink: #0D1017;
  --risk: #EE8577; --risk-soft: #301917; --warn: #D9A33F; --warn-soft: #2C2311; --ok: #6EC08D; --ok-soft: #152A1E;
  --card: #171C26; --card-line: rgba(255, 255, 255, 0.07); --shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.8);
  --bar: rgba(23, 28, 38, 0.8);
  --band: #121938; --band-glow: #1F2A5C; --band-ink: #E7EAE3; --band-ink-2: #AEB6C6; --band-ink-3: #8B96AB;
  --band-button: #93A2F2; --band-button-ink: #0D1017;
  --app-paper: #0D1017; --app-ink: #E7EAE3;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.4rem + 5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: calc(var(--page) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font: 650 0.75rem/1.2 var(--font-mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.lead { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.25rem); color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.meta { font: 500 0.8rem/1.5 var(--font-mono); color: var(--ink-3); }
.center { text-align: center; }
.section { padding-block: clamp(80px, 10vw, 136px); }
.tint { background: var(--tint); }
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; margin: 0 auto clamp(40px, 5vw, 64px); max-width: 46rem; }
.section-head .lead { margin-inline: auto; }
.card { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), var(--shadow); padding: 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--card); }
.skip:focus { left: 12px; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 7px 0 1.4rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; transition: transform 0.2s ease; }
.button:hover { transform: translateY(-1px); }
.knob { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: var(--accent); font-weight: 700; }
.button.small { min-height: 44px; padding-left: 1.05rem; gap: 10px; font-size: 0.95rem; }
.button.small .knob { width: 32px; height: 32px; }
.text-link { font-weight: 650; text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); padding-bottom: 2px; }
.text-link:hover { border-bottom-color: currentColor; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding-block: 12px; margin-bottom: -82px; }
.bar { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 7px 7px 7px 12px; border-radius: 999px; background: var(--bar); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: inset 0 0 0 1px var(--card-line), 0 10px 30px -24px rgba(10, 14, 30, 0.5); }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 12px; border-radius: 999px; font-size: 0.93rem; font-weight: 550; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (max-width: 920px) { .nav { display: none; } }
.theme-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme-toggle .fill { fill: currentColor; stroke: none; }
.theme-toggle:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.js .theme-toggle { display: grid; place-items: center; }

/* Hero: the icon's field */
.hero { padding-top: 82px; background: radial-gradient(60% 75% at 78% 42%, var(--band-glow), transparent 72%), var(--band); color: var(--band-ink); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 104px) clamp(64px, 7vw, 104px); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero .eyebrow { color: var(--band-ink-3); }
.hero .lead { color: var(--band-ink-2); }
.hero .meta { color: var(--band-ink-3); }
.hero h1 { max-width: 9em; }
.hero .button { background: var(--band-button); color: var(--band-button-ink); }
.hero .knob { background: var(--band-button-ink); color: var(--band-button); }
.hero .text-link { color: var(--band-ink); }
.hero-device { position: relative; justify-self: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* A phone: the bezel and status bar are drawn here; the video is the app's 390 x 800 pt screen. */
.phone { --pw: clamp(250px, 24vw, 316px); position: relative; width: var(--pw); margin: 0; padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.155); background: #0A0D13; box-shadow: inset 0 0 0 1.5px #2B3241, 0 50px 90px -40px rgba(6, 10, 32, 0.6); transform: rotate(-2.5deg); }
.screen { overflow: hidden; border-radius: calc(var(--pw) * 0.128); background: var(--app-paper); }
.status { display: flex; align-items: center; justify-content: space-between; aspect-ratio: 390 / 44; padding: 0 7.5%; color: var(--app-ink); font: 650 calc(var(--pw) * 0.043)/1 var(--font-body); }
.status .island { width: 31%; height: 62%; border-radius: 999px; background: #000; }
.status svg { width: 17%; fill: currentColor; }
.phone video { width: 100%; aspect-ratio: 390 / 800; object-fit: cover; background: var(--app-paper); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font: 650 0.72rem/1 var(--font-mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--c); background: var(--c-soft); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tone-risk { --c: var(--risk); --c-soft: var(--risk-soft); }
.tone-warn { --c: var(--warn); --c-soft: var(--warn-soft); }
.tone-ok { --c: var(--ok); --c-soft: var(--ok-soft); }
.hero-device .chip { position: absolute; z-index: 2; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line), 0 20px 40px -22px rgba(4, 8, 30, 0.7); }
.hero-device .chip i { background: var(--c); }
/* The chips catch the phone's corners, over the status bar and the bottom edge, not over the app's text. */
.chip-a { top: 2.5%; left: -26%; }
.chip-b { bottom: 3%; right: -28%; }
@media (max-width: 520px) { .chip-a { left: -8%; } .chip-b { right: -8%; } }

/* Proof strip */
.proof { border-bottom: 1px solid var(--line); }
.proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px; }
.proof ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.proof li { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }

/* The film */
.film { margin: 0 auto 16px; max-width: 980px; border-radius: 22px; overflow: hidden; background: #0A0D13; box-shadow: inset 0 0 0 1px var(--card-line), 0 40px 80px -50px rgba(10, 14, 30, 0.6); }
.film video { width: 100%; aspect-ratio: 16 / 9; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps .card { display: grid; align-content: start; gap: 12px; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }
.num { font: 700 0.85rem/1 var(--font-mono); color: var(--accent); letter-spacing: 0.06em; }
.stat { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 0.8rem/1.4 var(--font-mono); color: var(--ink) !important; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Story rows: a phone beside the words */
.story { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(36px, 6vw, 96px); }
.story.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.story-copy { display: grid; gap: 22px; justify-items: start; }
.story-device { justify-self: center; }
.story .phone { transform: rotate(2deg); }
.story.flip .phone { transform: rotate(-2deg); }
@media (max-width: 860px) {
  .story, .story.flip { grid-template-columns: minmax(0, 1fr); }
  .story.flip .story-device { order: 2; }
}
.findings { display: grid; gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.findings li { display: grid; gap: 8px; justify-items: start; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.findings p { font-size: 1rem; }
.cite { font: 500 0.78rem/1.45 var(--font-mono); color: var(--ink-3); }
.quote { max-width: 32rem; }
.quote p:first-child { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }

/* Numbers on hairlines */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); }
.numbers div { padding: 28px 22px 8px 0; border-right: 1px solid var(--rule); }
.numbers div + div { padding-left: 22px; }
.numbers div:last-child { border-right: 0; }
.numbers dt { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.numbers dd { margin: 12px 0 0; color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 860px) {
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div { border-bottom: 1px solid var(--rule); padding-bottom: 22px; }
  .numbers div:nth-child(2n) { border-right: 0; }
  .numbers div:nth-child(2n + 1) { padding-left: 0; }
}

/* Sources table */
.table-wrap { overflow-x: auto; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--card-line); }
.sources { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.sources th, .sources td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sources tr:last-child td { border-bottom: 0; }
.sources th { font: 650 0.72rem/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.sources td:first-child { font-weight: 650; min-width: 14rem; }
.sources td:nth-child(2) { color: var(--ink-2); }
.sources a { text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.sources a:hover { border-bottom-color: var(--accent); }
.num-col { text-align: right !important; font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
@media (max-width: 640px) {
  /* Each list becomes a block: its name and count on one line, what Verso reads below. */
  .sources thead { display: none; }
  .sources tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .sources tr:last-child { border-bottom: 0; }
  .sources td { padding: 0; border: 0; }
  .sources td:first-child { min-width: 0; }
  .sources td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 0.92rem; }
  .sources td.num-col { grid-column: 2; grid-row: 1; }
}

/* Code */
.code { display: grid; gap: 14px; }
.code pre { margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--tint); overflow-x: auto; }
.code code { font: 500 0.88rem/1.7 var(--font-mono); }

/* Footer */
.site-footer { padding-block: 56px 40px; border-top: 1px solid var(--line); }
.footer-mark { margin: 0 0 32px; font-size: clamp(4.5rem, 1rem + 16vw, 14rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.2px color-mix(in srgb, var(--ink) 18%, transparent); user-select: none; }
.note { max-width: 52rem; color: var(--ink-2); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.9rem; }
.footer-row a { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.footer-row a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
