/* SPREETZ-PUBLIC-MARKETING-HOMEPAGE-01 — public marketing surface.
 *
 * Tokens below mirror apps/mobile/lib/theme (colors.ts / tokens.ts) so the public site and the app
 * read as one product. They are COPIED rather than imported: the marketing surface is deliberately
 * dependency-free static HTML/CSS with no build step, and importing the app's TypeScript theme
 * would couple a public page to the authenticated app's runtime. Values that must stay in step:
 * navy #0d1b3e, teal #0e7a68, blue #0068a8, green #1f9d57, and the 4-based spacing rhythm.
 */

:root {
  /* Brand + semantic colour (apps/mobile/lib/theme/colors.ts) */
  --navy: #0d1b3e;
  --navy-dark: #06122c;
  --teal: #0e7a68;
  --teal-text: #0a5f52;
  --teal-bright: #2fc79c;
  --blue: #0068a8;
  --blue-text: #0a5a8a;
  --green: #1f9d57;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f3f7f6;
  --surface-subtle: #f7faf9;

  --text: var(--navy);
  --text-secondary: #475467;
  --text-muted: #667085;
  --on-primary: #ffffff;

  --border: #d0d5dd;
  --border-subtle: #eeeeee;

  --info-surface: #eaf4fb;
  --info-border: #b8dcf0;
  --success-surface: #eafaf0;
  --success-border: #b6e8c8;

  /* Spacing — 4-based, matching tokens.ts */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 20px;
  --s-2xl: 24px;
  --s-3xl: 32px;
  --s-4xl: 48px;
  --s-5xl: 72px;
  --s-6xl: 104px;

  /* Radii — tokens.ts */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(13, 27, 62, 0.06);
  --shadow-md: 0 6px 24px rgba(13, 27, 62, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 62, 0.12);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;

  --measure: 65ch;
  --wrap: 1160px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* One visible focus treatment everywhere, never removed. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--s-sm);
  z-index: 100;
  padding: var(--s-md) var(--s-lg);
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus {
  left: var(--s-lg);
}

.svg-defs {
  position: absolute;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--s-2xl);
}
.wrap-narrow {
  max-width: 780px;
}

/* ── Reveal ────────────────────────────────────────────────────────────────────────────── */
/* Content is visible by default. Only when JS confirms motion is welcome does it start hidden,
   so a visitor with JS off or reduced motion never sees a blank page. */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.has-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ───────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  min-height: 44px; /* touch target */
  padding: var(--s-md) var(--s-xl);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.btn-lg {
  min-height: 52px;
  padding: var(--s-lg) var(--s-3xl);
  font-size: 16px;
}
.btn-primary {
  background: var(--teal);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: #0c6a5b;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--surface-alt);
}
.btn-quiet {
  background: transparent;
  color: var(--text-secondary);
  padding-inline: var(--s-md);
}
.btn-quiet:hover {
  color: var(--text);
}
.btn-onDark {
  background: #fff;
  color: var(--navy);
}
.btn-onDark:hover {
  background: #eafaf0;
  transform: translateY(-1px);
}

/* ── Header ────────────────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand-mark {
  display: block;
  width: 34px;
  height: 26px;
}
.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-word-sm {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-2xl);
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2xl);
}
.nav-list a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-list a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: var(--s-5xl) var(--s-6xl);
  background:
    radial-gradient(60ch 40ch at 78% 8%, var(--success-surface), transparent 70%),
    radial-gradient(50ch 36ch at 4% 0%, var(--info-surface), transparent 68%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: var(--s-5xl);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: var(--s-lg);
  padding: 6px var(--s-md);
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--info-border);
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
}
.lede {
  margin-top: var(--s-2xl);
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-md);
  margin-top: var(--s-3xl);
}
.hero-note {
  margin-top: var(--s-lg);
  font-size: 14px;
  color: var(--text-muted);
}

/* ── Product visual ────────────────────────────────────────────────────────────────────── */
/* Room for the floating cards to sit at the frame's edges without being clipped by the grid cell. */
.hero-visual {
  position: relative;
  padding: 26px 30px 34px;
}
.frame {
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--s-md) var(--s-lg);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border-subtle);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5dbe4;
}
.frame-url {
  margin-left: var(--s-md);
  font-size: 12px;
  color: var(--text-muted);
}
.frame-body {
  padding: var(--s-2xl);
  padding-bottom: var(--s-4xl); /* clearance for the overlapping progress card */
}
.q-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-bottom: var(--s-lg);
}
.chip {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.chip-info {
  background: var(--info-surface);
  border: 1px solid var(--info-border);
  color: var(--blue-text);
}
.chip-neutral {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.q-stem {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: var(--s-lg);
}
.q-options {
  display: grid;
  gap: var(--s-sm);
}
.q-options li {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--text-secondary);
}
.q-options .key {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-alt);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.q-options .is-correct {
  background: var(--success-surface);
  border-color: var(--success-border);
  color: #0a7d3f;
  font-weight: 600;
}
.q-options .is-correct .key {
  background: var(--green);
  color: #fff;
}
.tick {
  margin-left: auto;
  color: var(--green);
  font-weight: 700;
}
.q-explain {
  margin-top: var(--s-lg);
  margin-right: 96px; /* keeps the explanation clear of the progress card */
  padding: var(--s-md) var(--s-lg);
  border-left: 3px solid var(--teal-bright);
  background: var(--surface-subtle);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: var(--s-lg);
}
/* Positioned to overlap the frame's CHROME and outer edges only — never its text. An accent card
   that covers the question stem or the explanation reads as a broken layout, not as depth. */
.float-progress {
  right: 0;
  bottom: 0;
  width: 186px;
}
.float-streak {
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: var(--s-md);
}
.float-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.float-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.float-value-sm {
  font-size: 17px;
}
.float-unit {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.streak-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--success-surface);
  color: var(--green);
  font-size: 13px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 42px;
  margin-top: var(--s-md);
}
.bars span {
  flex: 1;
  height: var(--h);
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
}

/* ── Sections ──────────────────────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--s-6xl);
}
.section-alt {
  background: var(--surface-subtle);
  border-block: 1px solid var(--border-subtle);
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  max-width: 28ch;
  margin-inline: auto;
}
.section-title-left {
  text-align: left;
  margin-inline: 0;
}
.section-lede {
  margin: var(--s-lg) auto 0;
  max-width: 60ch;
  text-align: center;
  color: var(--text-secondary);
}
.section-lede-left {
  text-align: left;
  margin-inline: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-2xl);
  margin-top: var(--s-4xl);
}
.value-card {
  padding: var(--s-2xl);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.value-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--success-surface);
  color: var(--teal);
  font-size: 13px;
  margin-bottom: var(--s-lg);
}
.value-card h3,
.feature h3,
.step h3,
.principle h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: var(--s-sm);
}
.value-card p,
.feature p,
.step p,
.principle p {
  font-size: 15px;
  color: var(--text-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2xl);
  margin-top: var(--s-4xl);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: var(--s-2xl);
  border-top: 2px solid var(--border-subtle);
}
.step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--s-md);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-5xl);
  align-items: center;
}
.tick-list {
  display: grid;
  gap: var(--s-md);
  margin-top: var(--s-2xl);
}
.tick-list li {
  position: relative;
  padding-left: var(--s-3xl);
  color: var(--text-secondary);
  font-size: 15.5px;
}
.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.profile-card {
  padding: var(--s-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.profile-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--s-lg);
}
.profile-rows {
  display: grid;
  gap: var(--s-md);
  margin: 0;
}
.profile-rows > div {
  display: flex;
  justify-content: space-between;
  gap: var(--s-lg);
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--border-subtle);
}
.profile-rows dt {
  font-size: 14px;
  color: var(--text-muted);
}
.profile-rows dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.profile-bar {
  height: 8px;
  margin-top: var(--s-xl);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  overflow: hidden;
}
.profile-bar span {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}
.profile-foot {
  margin-top: var(--s-md);
  font-size: 13px;
  color: var(--text-muted);
}

/* Six features: 320px minimum lands them 3x2 on desktop rather than a ragged 4+2. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-xl);
  margin-top: var(--s-4xl);
}
.feature {
  padding: var(--s-xl);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-2xl);
  margin-top: var(--s-4xl);
}
.principle {
  padding-left: var(--s-xl);
  border-left: 3px solid var(--teal-bright);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────────────────── */
.faq {
  margin-top: var(--s-3xl);
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  padding: var(--s-xl) 0;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s-lg);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--teal);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding-bottom: var(--s-xl);
  max-width: var(--measure);
  color: var(--text-secondary);
  font-size: 15.5px;
}

/* ── Closing ───────────────────────────────────────────────────────────────────────────── */
.closing {
  padding-block: var(--s-6xl);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.closing-inner {
  text-align: center;
}
.closing h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  max-width: 18ch;
  margin-inline: auto;
}
.closing p {
  margin: var(--s-lg) auto var(--s-3xl);
  max-width: 46ch;
  color: #c9d4e4;
}

/* ── Footer ────────────────────────────────────────────────────────────────────────────── */
.site-footer {
  padding-block: var(--s-4xl);
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2xl);
}
.footer-tag {
  margin-top: var(--s-xs);
  font-size: 14px;
  color: var(--text-muted);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xl);
}
.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14.5px;
}
.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer-legal {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ── Responsive ────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: var(--s-4xl);
  }
  .float-progress {
    right: 0;
    bottom: -24px;
  }
  .float-streak {
    left: 0;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-lg);
    padding: var(--s-xl) var(--s-2xl) var(--s-2xl);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-header {
    position: relative;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-list a {
    display: block;
    padding: var(--s-md) 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-md);
    margin-top: var(--s-sm);
  }
  .nav-actions .btn {
    width: 100%;
  }

  .section,
  .closing {
    padding-block: var(--s-5xl);
  }
  .hero {
    padding-block: var(--s-4xl) var(--s-5xl);
  }
  .section-title {
    max-width: none;
  }
  .cta-row .btn {
    flex: 1 1 auto;
  }

  /* The floating cards overlap the frame badly on narrow screens; stack them instead. With nothing
     floating, the clearance padding would only indent the frame out of line with the hero copy. */
  .hero-visual {
    padding: 0;
  }
  .float-card {
    position: static;
    width: auto;
    margin-top: var(--s-lg);
  }
  .q-explain {
    margin-right: 0;
  }
  .float-streak {
    display: inline-flex;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding-inline: var(--s-xl);
  }
  .frame-body {
    padding: var(--s-lg);
  }
  .q-options li {
    padding: var(--s-md);
  }
  .footer-inner {
    flex-direction: column;
    gap: var(--s-xl);
  }
}

/* ── Policy documents (privacy, terms) ───────────────────────────────────────────────────── */
/* SPREETZ-PUBLIC-MARKETING-PRIVACY-AND-TERMS-01 — minimal additions only. These pages reuse the
   header, footer, buttons, tokens and breakpoints above; what follows is just the reading column. */

.wrap-doc {
  max-width: 760px; /* comfortable measure for continuous prose */
}

.doc {
  padding-block: var(--s-5xl) var(--s-6xl);
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.doc-meta {
  margin-top: var(--s-md);
  font-size: 14px;
  color: var(--text-muted);
}

.doc-callout {
  margin-top: var(--s-2xl);
  padding: var(--s-lg) var(--s-xl);
  border-left: 3px solid var(--teal-bright);
  background: var(--surface-subtle);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.doc-callout p {
  font-size: 15px;
  color: var(--text-secondary);
}

.doc-lede {
  margin-top: var(--s-2xl);
  font-size: 17px;
  color: var(--text-secondary);
}

.doc h2 {
  margin-top: var(--s-4xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

.doc h3 {
  margin-top: var(--s-3xl);
  font-size: 17px;
  font-weight: 650;
}

.doc p {
  margin-top: var(--s-lg);
  color: var(--text-secondary);
}

.doc p strong,
.doc-list strong {
  color: var(--text);
  font-weight: 650;
}

.doc-list {
  margin-top: var(--s-lg);
  display: grid;
  gap: var(--s-md);
}
.doc-list li {
  position: relative;
  padding-left: var(--s-xl);
  color: var(--text-secondary);
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
}

.doc a {
  color: var(--teal-text);
  text-decoration: underline;
}

.doc-foot {
  margin-top: var(--s-4xl);
  padding-top: var(--s-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
}

/* The document header carries a shorter nav than the homepage; it needs no mobile disclosure. */
@media (max-width: 860px) {
  .site-nav.doc-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--s-lg);
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .doc-nav .nav-list {
    flex-direction: row;
    gap: var(--s-lg);
  }
  .doc-nav .nav-list a {
    border-bottom: 0;
    padding: 0;
    font-size: 15px;
  }
  .doc-nav .nav-actions {
    flex-direction: row;
    margin-top: 0;
  }
  .doc-nav .nav-actions .btn {
    width: auto;
  }
  .doc {
    padding-block: var(--s-3xl) var(--s-5xl);
  }
}
