/* Huge File Viewer landing. Plain CSS, no build step.
   Large tight sans headlines, soft surfaces, pill buttons, generous section rhythm. */

:root {
  --accent: #5B35D5;          /* 7.1:1 on white */
  --accent-bright: #A58BFF;   /* accent on dark surfaces */
  --accent-soft: #EEE9FC;
  --accent-faint: #D9CEF8;    /* decorative numerals */
  --accent-glow: rgba(91, 53, 213, .22);

  --bg: #FFFFFF;
  --paper: #F7F6FC;
  --surface: #F4F2FB;
  --line: #E6E3F0;
  --ink: #1B1830;
  --ink-2: #2A2640;
  --prose: #3E3A52;
  --soft: #8A86A0;            /* large text only */
  --body: #615D76;            /* 6:1 on white */
  --bullet: #A19DB5;
  --nav-bg: rgba(255, 255, 255, .82);
  --btn-hover: #2E2950;
  --on-ink: #FFFFFF;

  --pro-bg: #1B1830;
  --pro-ink: #FFFFFF;
  --pro-muted: #B4AFCB;
  --pro-line: #34304D;

  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --section: clamp(80px, 10vw, 152px);

  --font: "Inter", -apple-system, "SF Pro Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  --shot-shadow: 30px 48px 80px -36px rgba(40, 20, 110, .38), 0 22px 44px -26px rgba(27, 24, 48, .25);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #A58BFF;
    --accent-bright: #B9A4FF;
    --accent-soft: #221B3F;
    --accent-faint: #352A63;
    --accent-glow: rgba(140, 110, 255, .24);

    --bg: #0E0C17;
    --paper: #13111D;
    --surface: #17152A;
    --line: #2A2740;
    --ink: #F3F1FA;
    --ink-2: #E4E1F0;
    --prose: #C9C5D9;
    --soft: #7F7A97;
    --body: #A9A4BF;
    --bullet: #6D6886;
    --nav-bg: rgba(14, 12, 23, .78);
    --btn-hover: #DAD5EE;
    --on-ink: #0E0C17;

    --pro-bg: #17152A;
    --pro-ink: #F3F1FA;
    --pro-muted: #A9A4BF;
    --pro-line: #2F2B48;

    --shot-shadow: 26px 44px 80px -34px rgba(0, 0, 0, .85), 0 22px 44px -24px rgba(0, 0, 0, .6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--bg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overflow-wrap: break-word;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink);
  font-weight: 600; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.container, .wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.display, .h2, .h3 { font-weight: 700; color: var(--ink); text-wrap: balance; }
.display {
  font-size: clamp(42px, 7.4vw, 100px);
  line-height: .98;
  letter-spacing: -0.052em;
}
.h2 {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.048em;
}
.h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 650;
}
.display > span, .h2 > span { display: block; }
.soft { color: var(--soft); }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, #9B6BFF 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad { background-image: linear-gradient(100deg, #B9A4FF 10%, #E1B8FF 90%); }
}

.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--body);
  text-wrap: pretty;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--body);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; flex: none;
  background: var(--accent);
}
.fine { font-size: 14px; color: var(--body); letter-spacing: -0.005em; }
.center { text-align: center; }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: var(--on-ink);
  font-size: 16px; font-weight: 600; letter-spacing: -0.015em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-light { background: var(--pro-ink); color: var(--pro-bg); }
.btn-light:hover { background: var(--pro-ink); opacity: .9; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 16px; letter-spacing: -0.015em;
  color: var(--ink); text-decoration: none;
  padding: 12px 6px;
}
.link-arrow span[aria-hidden] { display: inline-block; transition: transform .15s ease; }
.link-arrow:hover span[aria-hidden] { transform: translateX(3px); }

/* Google Play button. Self-drawn, no Google artwork loaded. Always black, as store badges are. */
.store-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 18px;
}
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; min-width: 196px; padding: 0 24px 0 18px;
  border-radius: 15px;
  background: #000; color: #FFF;
  box-shadow: inset 0 0 0 1px #3A3A3C;
  text-decoration: none; text-align: start;
  transition: transform .15s ease, background-color .15s ease;
}
.store-badge:hover { background: #1C1C1E; }
.store-badge:active { transform: scale(.98); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.sb-k { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.1; color: #D1D1D6; }
.sb-v { display: block; font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -0.025em; }

/* ---------- Nav ---------- */

.nav, 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 var(--line);
}
.nav-inner, nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.03em;
  color: var(--ink); flex: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links, nav .links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, nav .links > a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--body); text-decoration: none;
}
.nav-links > a:hover, nav .links > a:hover, nav .links > a[aria-current] { color: var(--ink); background: var(--surface); }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 340px) { .brand span { display: none; } }
@media (max-width: 400px) { .brand { font-size: 16.5px; gap: 8px; } .nav .btn-sm { padding: 0 14px; } }

/* ---------- Screenshot frames ---------- */

.shot-frame {
  --sw: 260px;
  position: relative;
  flex: none;
  width: var(--sw);
  aspect-ratio: 540 / 960;
  border-radius: calc(var(--sw) * .075);
  overflow: hidden;
  background: linear-gradient(180deg, #8C6CF2, #4626B8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shot-shadow);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(44px, 8vw, 100px); text-align: center; }
.hero-icon {
  width: clamp(76px, 7vw, 96px); height: auto; margin: 0 auto 28px;
  border-radius: 22.5%;
  box-shadow: 0 14px 32px -12px rgba(60, 30, 160, .45);
}
.hero .display { max-width: 14ch; margin-inline: auto; }
.hero .lead { max-width: 660px; margin: 28px auto 0; }
.hero .store-row { margin-top: 36px; }
.hero .fine { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.chips li {
  padding: 5px 13px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0;
}

.hero-stage {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(52px, 7vw, 88px);
  padding: 8px 0 clamp(72px, 9vw, 120px);
}
.hero-stage::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 16%; width: min(960px, 120%); height: 74%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-glow), transparent);
}
.hero-shots { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 38px); }
.hero-shots .shot-frame { --sw: clamp(200px, 22vw, 300px); }
.hero-shots .s-side { --sw: clamp(160px, 18vw, 250px); margin-top: clamp(36px, 5vw, 72px); }
@media (max-width: 700px) {
  .hero-shots .shot-frame { --sw: 210px; }
  .hero-shots .s-side { --sw: 166px; margin-top: 44px; }
}

/* ---------- Statement + stats ---------- */

.statement { padding-block: var(--section) 0; text-align: center; }
.statement .h2 { max-width: 20ch; margin-inline: auto; }
.statement .lead { max-width: 640px; margin: 22px auto 0; }
.stats {
  margin: clamp(40px, 5vw, 64px) auto 0; max-width: 980px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.stat { background: var(--surface); border-radius: 24px; padding: 28px 24px; text-align: center; }
.stat b {
  display: block; font-size: clamp(40px, 4.6vw, 60px); font-weight: 800;
  line-height: 1; letter-spacing: -0.05em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; color: var(--body); font-size: 15.5px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Section heads ---------- */

.sec-head { text-align: center; }
.sec-head .h2 { max-width: 18ch; margin: 16px auto 0; }
.sec-head .lead { max-width: 620px; margin: 22px auto 0; }

/* ---------- Tiles ---------- */

.benefits { padding-block: var(--section); }
.benefits + .benefits { padding-top: 0; }
.tiles {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.tile { background: var(--surface); border-radius: 24px; padding: 28px 26px 30px; }
.tile > svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 13px;
  background: var(--accent-soft); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.tile .h3 { margin-top: 20px; font-size: 19px; }
.tile p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.5; }
.tile.is-new { background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { padding: 24px 22px; } }

.tag {
  display: inline-block; margin-inline-start: 6px; padding: 1px 8px;
  border-radius: 999px; background: var(--accent); color: var(--bg);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 2px;
}
.tag-new { background: var(--ink); color: var(--on-ink); }

.more {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 24px;
  padding: 24px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.more .t { font-weight: 650; letter-spacing: -0.02em; margin-inline-end: 6px; }
.more ul { display: flex; flex-wrap: wrap; gap: 8px; }
.more li { padding: 5px 13px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 14.5px; font-weight: 500; }

/* ---------- How it works ---------- */

.how { padding-bottom: var(--section); }
.steps {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.step { border: 1px solid var(--line); border-radius: 24px; padding: 26px 26px 30px; }
.step-num {
  display: block; font-size: clamp(56px, 5vw, 76px); line-height: .85; font-weight: 800;
  letter-spacing: -0.06em; color: var(--accent-faint); font-variant-numeric: tabular-nums;
}
.step .h3 { margin-top: 22px; }
.step p { margin-top: 8px; color: var(--body); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */

.gallery { --inset: max(var(--gutter), calc((100% - var(--maxw)) / 2)); padding-bottom: var(--section); }
.shots {
  display: flex; gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(36px, 4vw, 56px);
  padding: 8px var(--inset) 64px;
  scroll-padding-inline: var(--inset);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
@media (min-width: 1180px) { .shots { justify-content: center; } }
.shots:focus-visible { outline-offset: -4px; border-radius: 24px; }
.shot { flex: none; scroll-snap-align: start; }
.shot .shot-frame { --sw: clamp(220px, 22vw, 262px); }
.shot figcaption {
  margin-top: 22px; max-width: 262px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink-2);
}
.shot figcaption span { display: block; margin-top: 2px; font-weight: 500; color: var(--body); font-size: 14px; }

/* ---------- Free and Pro ---------- */

.pricing { padding-bottom: var(--section); }
.price-grid {
  max-width: 980px; margin: clamp(40px, 5vw, 64px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px;
}
.card {
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line); background: var(--bg);
  display: flex; flex-direction: column;
}
.card-name { font-size: 15px; font-weight: 650; color: var(--body); }
.card-title { margin-top: 8px; font-size: clamp(28px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; }
.ticks { margin-top: 26px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.015em; }
.ticks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--accent); }
.card-foot { margin-top: auto; padding-top: 26px; font-size: 14px; color: var(--body); }
.card-pro { background: var(--pro-bg); color: var(--pro-ink); border-color: var(--pro-bg); }
.card-pro .card-name, .card-pro .card-foot { color: var(--pro-muted); }
.card-pro .ticks li { color: var(--pro-ink); }
.card-pro .ticks svg { color: var(--accent-bright); }
.card-pro .btn { align-self: flex-start; margin-top: 26px; }
@media (prefers-color-scheme: dark) { .card-pro { border-color: var(--pro-line); } }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */

.privacy-band { padding-bottom: var(--section); }
.privacy-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 980px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .privacy-grid { grid-template-columns: 1fr; } }


/* ---------- More apps ---------- */

.more-apps { padding-bottom: var(--section); }
.app-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.app-card {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 18px 20px; border-radius: 22px; background: var(--surface);
  color: var(--ink); text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.app-card:hover { background: var(--accent-soft); transform: translateY(-2px); }
.app-card img { flex: none; width: 56px; height: 56px; border-radius: 14px; }
.app-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.app-name { font-weight: 650; font-size: 16.5px; letter-spacing: -0.01em; }
.app-desc { color: var(--body); font-size: 14.5px; line-height: 1.45; }
.app-go { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-card:hover .app-go { stroke: var(--accent); }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } .app-card { padding: 16px; } }

/* ---------- FAQ ---------- */

.faq { padding-bottom: var(--section); }
.faq-grid {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.faq-head { position: sticky; top: 100px; }
.faq-head .h2 { margin-top: 16px; }
.faq-head .lead { margin-top: 22px; }
.faq-head .lead a { color: var(--ink); font-weight: 600; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 2px;
  font-size: clamp(17px, 1.4vw, 19px); font-weight: 600; letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 999px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1.75px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.75px 11px no-repeat,
    var(--surface);
  transition: transform .2s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 44px 24px 2px; color: var(--body); }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
  .qa .ans { padding-inline-end: 8px; }
}

/* ---------- Final CTA ---------- */

.final { padding-bottom: var(--section); text-align: center; }
.final-box {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background: radial-gradient(120% 90% at 50% 0%, #7A57F0 0%, #5B35D5 45%, #2C1580 100%);
  color: #FFF;
}
.final-box .hero-icon { margin-bottom: 30px; box-shadow: 0 16px 36px -14px rgba(0, 0, 0, .55); }
.final-box .h2 { color: #FFF; max-width: 15ch; margin-inline: auto; }
.final-box .lead { color: rgba(255, 255, 255, .86); max-width: 560px; margin: 22px auto 0; }
.final-box .store-row { margin-top: 34px; }
.final-box .fine { margin-top: 18px; color: rgba(255, 255, 255, .78); }
.final-box :focus-visible { outline-color: #FFF; }

/* ---------- Footer ---------- */

.footer, footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px 64px; }
.footer-brand p { margin-top: 14px; color: var(--body); font-size: 15px; max-width: 340px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 32px 56px; }
.fh { font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 12px; }
.footer-cols li + li { margin-top: 8px; }
.footer-cols a { font-size: 14.5px; font-weight: 550; text-decoration: none; letter-spacing: -0.01em; word-break: break-word; }
.footer-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 13px; color: var(--body);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Simple footer used on the legal pages */
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13.5px; color: var(--body); }
footer .wrap > div { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer .wrap a { color: var(--ink); font-weight: 550; text-decoration: none; word-break: break-word; }
footer .wrap a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages and 404 ---------- */

.doc { max-width: 820px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) var(--section); }
.doc h1 {
  font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; line-height: 1.03;
  letter-spacing: -0.048em; margin: 0 0 clamp(28px, 4vw, 48px); text-wrap: balance;
}
.doc .box { color: var(--prose); }
.doc .box > p:first-child {
  background: var(--surface); border-radius: 24px; padding: clamp(20px, 3vw, 28px);
  color: var(--ink-2); margin-bottom: 40px;
}
.doc h2 {
  font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.2; margin: 40px 0 12px; color: var(--ink);
}
.doc p + p, .doc ul + p, .doc p + ul { margin-top: 12px; }
.doc ul { margin-top: 10px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-inline-start: 20px; }
.doc ul li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: .68em;
  width: 6px; height: 6px; border-radius: 999px; background: var(--bullet);
}
.doc a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; word-break: break-word; }
.doc strong { color: var(--ink); font-weight: 650; }
.doc code { background: var(--surface); padding: 1px 7px; border-radius: 6px; }

.nf { min-height: calc(100vh - 68px - 160px); display: grid; place-items: center; text-align: center; padding: 72px var(--gutter); }
.nf .nf-num {
  font-size: clamp(96px, 18vw, 200px); font-weight: 800; line-height: .9; letter-spacing: -0.07em;
  color: var(--accent-faint);
}
.nf h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1.05; margin: 18px 0 0; }
.nf p:not(.nf-num) { margin-top: 14px; color: var(--body); }
.nf .btn { margin-top: 30px; }

/* ---------- Reveal on scroll (only when JS has run) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
@media (max-width: 560px) { nav .links a.h { display: none; } }
nav .links > a.btn { color: var(--on-ink); background: var(--ink); margin-inline-start: 6px; }
nav .links > a.btn:hover { background: var(--btn-hover); }
