/* Lungdei website. Same design language as the app (Northearts 2.0 light
   on white, Midnight Teal for dark), laid out as an editorial site. */

@font-face { font-family: "Bricolage"; src: url("assets/fonts/BricolageGrotesque-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("assets/fonts/BricolageGrotesque-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/fonts/InstrumentSerif-400Italic.ttf") format("truetype"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/Manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --canvas: #ffffff;
  --surface: #ffffff;
  --sunken: #f7f1ec;
  --raised: #ffffff;
  --ink: #1d1a1c;
  --ink-muted: #4a4046;
  --ink-faint: #6f6369;
  --line: rgba(29, 26, 28, .10);
  --line-strong: rgba(29, 26, 28, .20);
  --accent: #8c2b4e;
  --accent-ink: #8c2b4e;
  --accent-soft: #f8e3e6;
  --on-primary: #ffffff;
  --primary: linear-gradient(110deg, #cf5a4a 0%, #c23f63 55%, #8c2b4e 100%);
  --primary-shadow: 0 14px 30px -12px rgba(194, 63, 99, .55);
  --strong: #2d1223;
  --on-strong: #fff0f4;
  --coral: #e2664f;
  --gold: #8a6326;
  --gold-soft: #f7e6c8;
  --glow: #f6dadd;
  --shadow: 0 30px 60px -30px rgba(45, 18, 35, .30);
  /* The always-dark band (safety), Midnight Teal in both themes. */
  --night: #0b1416;
  --night-surface: #13201f;
  --night-ink: #eaf4f2;
  --night-muted: #a9bdba;
  --night-accent: #7ee0d1;
  --night-line: rgba(234, 244, 242, .14);

  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r-pill: 999px;
  --r-lg: 24px;
  --r-xl: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b1416; --surface: #13201f; --sunken: #071012; --raised: #1b2b2a;
    --ink: #eaf4f2; --ink-muted: #a9bdba; --ink-faint: #86a09c;
    --line: rgba(234, 244, 242, .12); --line-strong: rgba(234, 244, 242, .24);
    --accent: #5fd3c1; --accent-ink: #7ee0d1; --accent-soft: #15383a;
    --on-primary: #052320; --primary: linear-gradient(110deg, #9bebdd 0%, #5fd3c1 50%, #3aae9e 100%);
    --primary-shadow: none; --strong: #eaf4f2; --on-strong: #0b1416;
    --coral: #ff8a73; --gold: #e7c28a; --gold-soft: #33291a; --glow: #1e5c57;
    --shadow: 0 0 0 1px rgba(234, 244, 242, .10);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0b1416; --surface: #13201f; --sunken: #071012; --raised: #1b2b2a;
  --ink: #eaf4f2; --ink-muted: #a9bdba; --ink-faint: #86a09c;
  --line: rgba(234, 244, 242, .12); --line-strong: rgba(234, 244, 242, .24);
  --accent: #5fd3c1; --accent-ink: #7ee0d1; --accent-soft: #15383a;
  --on-primary: #052320; --primary: linear-gradient(110deg, #9bebdd 0%, #5fd3c1 50%, #3aae9e 100%);
  --primary-shadow: none; --strong: #eaf4f2; --on-strong: #0b1416;
  --coral: #ff8a73; --gold: #e7c28a; --gold-soft: #33291a; --glow: #1e5c57;
  --shadow: 0 0 0 1px rgba(234, 244, 242, .10);
  color-scheme: dark;
}

/* Cross-page transitions (Chromium): pages fade into each other. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .28s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .42s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--strong); color: var(--on-strong); padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type */
.index { font: 400 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.display { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .98; margin: 0; text-wrap: balance; }
.display em, .h2 em, .h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--accent-ink); }
.h1 { font-size: clamp(48px, 7.4vw, 104px); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--ink-muted); max-width: 34em; margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }

/* Buttons */
.btn {
  --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 16px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--primary-shadow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(194, 63, 99, .6); }
.btn-strong { background: var(--strong); color: var(--on-strong); }
.btn-strong:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: transparent;
  border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
/* Frosted only once content scrolls under it, so the hero glow runs to the top. */
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.hero { margin-top: -74px; padding-top: calc(74px + clamp(40px, 7vw, 96px)) !important; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }
.wordmark { font: 700 27px/1 var(--display); letter-spacing: -.045em; text-decoration: none; display: inline-flex; align-items: flex-start; }
.wordmark .dei { background: var(--primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--coral); margin: 2px 0 0 3px; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--sunken); color: var(--ink); transition: transform .18s var(--ease);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-actions .btn-sm.hide-sm { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 74px; left: 0; right: 0;
    background: var(--canvas); padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); margin: 0;
  }
  .nav.open a { padding: 12px 0; font-size: 18px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -380px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent); opacity: .9; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .h1 { margin: 22px 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.voiceline { width: 100%; height: 64px; margin-top: 8px; }
.voiceline path { fill: none; stroke: url(#vl-grad); stroke-width: 2.4; stroke-linecap: round; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Phones */
.phones { position: relative; height: clamp(520px, 52vw, 680px); }
.phone {
  position: absolute; width: clamp(230px, 22vw, 300px); aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px;
  background: #0e0d0e; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  transition: transform .9s var(--ease);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone .light-img { display: block; } .phone .dark-img { display: none; }
:root[data-theme="dark"] .phone .light-img { display: none; }
:root[data-theme="dark"] .phone .dark-img { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone .light-img { display: none; }
  :root:not([data-theme="light"]) .phone .dark-img { display: block; }
}
.phone.back { right: 4%; top: 0; transform: rotate(5deg); }
.phone.front { left: 4%; bottom: 0; transform: rotate(-4deg); z-index: 2; }
.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: 18px; background: var(--raised); border: 1px solid var(--line); box-shadow: var(--shadow);
  font: 700 14px/1.2 var(--sans);
}
.float-chip small { display: block; font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.float-chip .live { width: 9px; height: 9px; border-radius: 50%; background: #2fbf8f; box-shadow: 0 0 0 5px rgba(47, 191, 143, .18); }
.chip-a { left: -4%; bottom: 22%; }
.chip-b { right: 0; bottom: 10%; }
@media (max-width: 960px) {
  .phones { height: 560px; max-width: 520px; margin: 12px auto 0; width: 100%; }
}
@media (max-width: 480px) {
  .phones { height: 470px; }
  .phone { width: 210px; }
  .chip-a { left: 0; bottom: 12%; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .index { grid-column: 1 / -1; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* How it works: steps + sticky phone */
.steps-wrap { display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 6vw, 96px); }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 40px 0; border-top: 1px solid var(--line); min-height: 46vh; align-content: center; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step .num { font: italic 400 64px/1 var(--serif); color: var(--accent-ink); }
.step p { color: var(--ink-muted); margin: 12px 0 0; max-width: 30em; }
.step-phone { position: sticky; top: 110px; height: max-content; }
.step-phone .phone { position: relative; width: 300px; margin-inline: auto; transform: none; }
.step-phone img { transition: opacity .45s var(--ease); }
.step-phone .swap { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; }
.step-phone .swap.on { opacity: 1; }
@media (max-width: 960px) {
  .steps-wrap { grid-template-columns: 1fr; }
  .step-phone { display: none; }
  .step { min-height: 0; }
}

/* Safety: the always-dark band */
.night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.night::before {
  content: ""; position: absolute; width: 1100px; height: 1100px; left: -380px; bottom: -700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30, 92, 87, .7), transparent); pointer-events: none;
}
.night .wrap { position: relative; }
.night .index { color: #86a09c; }
.night .h2 em { color: var(--night-accent); }
.night .lede { color: var(--night-muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--night-line); }
.fact { padding: 34px 28px 34px 0; border-bottom: 1px solid var(--night-line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.fact:nth-child(odd) { border-right: 1px solid var(--night-line); }
.fact:nth-child(even) { padding-left: 28px; }
.fact svg { width: 26px; height: 26px; color: var(--night-accent); margin-top: 3px; }
.fact h3 { font: 700 20px/1.25 var(--display); letter-spacing: -.015em; margin: 0 0 6px; }
.fact p { margin: 0; color: var(--night-muted); font-size: 16px; }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:nth-child(even) { padding-left: 0; }
}

/* Voice or video */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .phones { height: 600px; }
.speed { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.speed li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.speed li:last-child { border-bottom: 1px solid var(--line); }
.speed b { font: 700 18px/1.3 var(--display); letter-spacing: -.01em; }
.speed span { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.speed p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-muted); font-size: 16px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } .split .phones { height: 540px; } }

/* Plans */
.plans { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.plans table { width: 100%; border-collapse: collapse; font-size: 16px; }
.plans th, .plans td { text-align: left; padding: 22px clamp(16px, 3vw, 32px); border-top: 1px solid var(--line); vertical-align: top; }
.plans thead th { border-top: 0; background: var(--sunken); font: 400 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.plans thead th.premium { color: var(--gold); }
.plans tbody th { font: 700 17px/1.3 var(--display); letter-spacing: -.01em; width: 34%; }
.plans td { color: var(--ink-muted); }
.plans td.premium { color: var(--ink); font-weight: 700; }
.crown { display: inline-block; width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; color: var(--gold); }
.plan-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; color: var(--ink-faint); font-size: 15px; }
@media (max-width: 560px) { .plans th, .plans td { padding: 16px 14px; font-size: 14.5px; } .plans tbody th { width: auto; } }

/* Download */
.download {
  border-radius: var(--r-xl); background: var(--sunken); padding: clamp(36px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px 10px 18px; border-radius: 16px;
  background: var(--strong); color: var(--on-strong); text-decoration: none; position: relative; cursor: default;
}
.store svg { width: 26px; height: 26px; }
.store small { display: block; font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.store b { font: 700 18px/1.15 var(--display); letter-spacing: -.01em; }
.store .soon { position: absolute; top: -9px; right: -8px; font: 400 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--gold-soft); color: var(--gold); padding: 5px 8px; border-radius: var(--r-pill); }
.browser-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.browser-card .dots { display: flex; gap: 6px; margin-bottom: 20px; }
.browser-card .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
@media (max-width: 860px) { .download { grid-template-columns: 1fr; } }

/* FAQ */
.faq { 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; gap: 24px; align-items: center;
  padding: 26px 0; font: 700 clamp(18px, 1.6vw, 22px)/1.3 var(--display); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none; border-right: 2px solid var(--ink-faint); border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg) translateY(-4px); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.faq details > div { padding: 0 0 26px; color: var(--ink-muted); max-width: 46em; }

/* Final CTA */
.final { text-align: left; }
.final .h1 { font-size: clamp(44px, 6.4vw, 92px); margin: 18px 0 30px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 400 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 400; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.legal-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 28px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-faint); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .brandcol { grid-column: 1 / -1; } }

/* Legal pages (terms, privacy, guidelines, delete account, support) */
.doc { padding: clamp(40px, 6vw, 80px) 0 40px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.03em; line-height: 1.02; margin: 14px 0 18px; }
.doc .meta { font: 400 13px/1.5 var(--mono); color: var(--ink-faint); letter-spacing: .02em; margin: 0 0 36px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 56px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font-family: var(--display); font-size: 20px; margin: 30px 0 10px; }
.doc p, .doc li { color: var(--ink-muted); }
.doc li { margin: 6px 0; }
.doc strong { color: var(--ink); }
.doc a { color: var(--accent-ink); text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.doc thead th { background: var(--sunken); border-top: 0; font: 400 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.doc td:first-child { color: var(--ink); font-weight: 700; min-width: 160px; }
.doc .callout { background: var(--accent-soft); border-radius: 18px; padding: 18px 20px; color: var(--ink); margin: 20px 0; }
.doc ol.steps { padding-left: 22px; }
.doc .placeholder { background: var(--gold-soft); color: var(--gold); border-radius: 6px; padding: 1px 6px; font-family: var(--mono); font-size: .85em; }
.doc .index-links { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 24px; }
.doc .index-links a { display: flex; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 700 20px/1.3 var(--display); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
