/* ==========================================================================
   Whisper-Line — whisper-line.com
   Single shared stylesheet. No build step, no preprocessor, no libraries.
   Mobile-first. Light + dark via prefers-color-scheme.
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */

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

* { margin: 0; }

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;
  }
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

button, input, select, textarea { font: inherit; color: inherit; }


/* --- 2. Design tokens ---------------------------------------------------- */

:root {
  /* ---- Brand constants, sampled from the official logo -----------------
     teal ring #259091 · orange sunburst #fd7414 · amber core #fdc914
     summit near-black #0f1417 · snow/flag #f2f0ec
     These five never change between themes.                             */
  --brand-teal:      #259091;
  --brand-teal-deep: #1e7f79;
  --brand-orange:    #fd7414;
  --brand-amber:     #fdc914;
  --brand-black:     #0f1417;
  --brand-snow:      #f2f0ec;

  /* Warm paper light theme */
  --bg:          #fcfbf8;
  --bg-elev:     #ffffff;
  --bg-sunken:   #f3f1eb;
  --bg-ink:      #0f1417;   /* inverted panels, same in both themes */

  --ink:         #14181b;
  --ink-2:       #4a5157;
  --ink-3:       #656c72;
  --ink-on-dark: #eceff1;
  --ink-2-on-dark:#a6b0b5;

  --line:        #e4e0d7;
  --line-strong: #cfcabe;

  /* A darkened sibling of the brand teal, so body-size links clear WCAG AA
     on paper. The lighter --brand-teal stays for rules, fills and icons. */
  --accent:      #17706b;
  --accent-hov:  #0f5a56;
  --accent-ink:  #ffffff;
  --accent-soft: #e6f1f0;
  --accent-line: #b4d8d4;

  --focus:       #17706b;

  --radius:      14px;
  --radius-sm:   9px;
  --radius-lg:   22px;

  --shadow-sm: 0 1px 2px rgba(16, 19, 21, .05), 0 1px 3px rgba(16, 19, 21, .04);
  --shadow-md: 0 2px 4px rgba(16, 19, 21, .04), 0 12px 28px -12px rgba(16, 19, 21, .16);
  --shadow-lg: 0 4px 10px rgba(16, 19, 21, .05), 0 28px 60px -24px rgba(16, 19, 21, .28);

  --font-display: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
             Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --wrap: 1120px;
  --wrap-narrow: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0b0f10;
    --bg-elev:     #131819;
    --bg-sunken:   #070a0b;
    --bg-ink:      #131819;

    --ink:         #eceff1;
    --ink-2:       #a6b0b5;
    --ink-3:       #7b868c;

    --line:        #212829;
    --line-strong: #313a3c;

    /* A lifted sibling of the brand teal, for contrast on near-black. */
    --accent:      #4fc7bc;
    --accent-hov:  #6fdbd0;
    --accent-ink:  #04231f;
    --accent-soft: #0f2726;
    --accent-line: #235049;

    --focus:       #4fc7bc;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 4px 10px rgba(0, 0, 0, .4), 0 28px 60px -24px rgba(0, 0, 0, .8);
  }
}


/* --- 3. Base ------------------------------------------------------------- */

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.0625rem; font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; }

p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hov); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.875em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

::selection { background: var(--accent); color: var(--accent-ink); }


/* --- 4. Layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }

.section-sunken { background: var(--bg-sunken); }
.section-bordered { border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--accent-ink);
}


/* --- 5. Type helpers ----------------------------------------------------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}

.eyebrow-accent { color: var(--accent); }

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.6; }
.fine  { font-size: 0.8125rem; line-height: 1.6; color: var(--ink-3); }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.mt-0 { margin-top: 0; }

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.25rem);
}
.section-head.center { margin-inline: auto; }
.section-head p { margin-top: 1rem; }


/* --- 6. Buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hov); color: var(--accent-ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn-block { display: flex; width: 100%; }

.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-row.center { justify-content: center; }


/* --- 7. Site header ------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; border-radius: 7px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 15px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-menu {
  display: none;
  list-style: none;
  padding: 0.5rem 0 1.25rem;
  margin: 0;
  width: 100%;
}
.nav-menu.is-open { display: block; }

.nav-menu li + li { margin-top: 0.15rem; }

.nav-menu a:not(.btn) {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.nav-menu a:not(.btn):hover { color: var(--accent); }
/* Must exclude .btn — the button already sets its own contrasting text
   colour, and overriding it here put dark ink on the teal fill. */
.nav-menu a:not(.btn)[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-menu .btn { margin-top: 0.6rem; }

@media (min-width: 62em) {
  .nav { min-height: 4.5rem; }
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    padding: 0;
  }
  .nav-menu li + li { margin-top: 0; }
  .nav-menu a:not(.btn) { padding: 0.5rem 0.85rem; }
  .nav-menu .btn { margin-top: 0; margin-left: 0.5rem; }
}


/* --- 8. Hero ------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 4rem);
}

/* The sunburst from the logo, spread across the top of the page: an amber
   core fading through orange, with the teal ring's colour cooling one
   corner. Same three hues, same order as the mark. */
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -12%;
  height: 100%;
  width: 124%;
  background:
    radial-gradient(32% 42% at 26% 32%,
      color-mix(in srgb, var(--brand-amber) 16%, transparent) 0%, transparent 68%),
    radial-gradient(48% 58% at 22% 30%,
      color-mix(in srgb, var(--brand-orange) 11%, transparent) 0%, transparent 72%),
    radial-gradient(46% 58% at 80% 14%,
      color-mix(in srgb, var(--brand-teal) 14%, transparent) 0%, transparent 74%);
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    background:
      radial-gradient(30% 40% at 26% 32%,
        color-mix(in srgb, var(--brand-amber) 9%, transparent) 0%, transparent 68%),
      radial-gradient(48% 58% at 22% 30%,
        color-mix(in srgb, var(--brand-orange) 9%, transparent) 0%, transparent 72%),
      radial-gradient(46% 58% at 80% 14%,
        color-mix(in srgb, var(--brand-teal) 14%, transparent) 0%, transparent 74%);
  }
}

.hero > .wrap { position: relative; z-index: 1; }

/* ---- Logo lockup -------------------------------------------------------
   Two files, swapped by <picture media="(prefers-color-scheme: dark)"> so
   only one is ever downloaded. The mark is identical in both; only the
   wordmark is recoloured, so the black summit is never asked to sit on a
   near-black page and no white plate is needed behind it. */
.lockup { display: block; height: auto; }

.hero-lockup {
  width: min(340px, 74vw);
  margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}
@media (min-width: 48em) { .hero-lockup { width: 380px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero h1 { max-width: 14ch; }

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.3;
  font-style: italic;
  color: var(--accent);
  margin-top: 0.35rem;
}

.hero-lede {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.hero .btn-row { margin-top: 2.25rem; }

.hero-meta {
  margin-top: 1.1rem;
  color: var(--ink-3);
  font-size: 0.8125rem;
}


/* --- 9. Video slot ------------------------------------------------------- */

.video-figure { margin-top: clamp(2.5rem, 1.5rem + 4vw, 4rem); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-ink);
  box-shadow: var(--shadow-lg);
}

.video-frame > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.video-poster-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(56px, 9vw, 84px);
  height: clamp(56px, 9vw, 84px);
  border-radius: 50%;
  background: rgba(255, 255, 255, .93);
  color: #101315;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
  transition: transform .2s ease, background-color .2s ease;
}
.video-poster:hover .video-play { transform: translate(-50%, -50%) scale(1.07); }

.video-caption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
  text-align: center;
}

.video-missing {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #cfd8dc;
  background: rgba(0, 0, 0, .55);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}


/* --- 10. Benefit rows ---------------------------------------------------- */

.benefit {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 1.5rem + 5vw, 5rem);
}
.benefit + .benefit { border-top: 1px solid var(--line); }

@media (min-width: 56em) {
  .benefit { grid-template-columns: 1fr 1fr; }
  .benefit-flip .benefit-text { order: 2; }
}

.benefit-text h2 { margin-bottom: 1rem; }
.benefit-text p + p { margin-top: 0.9rem; }

.benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.benefit-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}


/* --- 11. Illustrative panels (decorative product sketches) --------------- */

.panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.panel-dark {
  background: var(--bg-ink);
  border-color: #262d31;
  color: var(--ink-on-dark);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-3);
  font-family: var(--font-mono);
}
.panel-dark .panel-bar {
  border-bottom-color: #262d31;
  color: #8b969c;
}
.panel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}
.panel-dark .panel-dot { background: #39434a; }
.panel-dot-live { background: var(--accent); }

.panel-body { padding: 1.1rem; display: grid; gap: 0.85rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--bg-sunken);
}
.panel-dark .chip { border-color: #2b3439; color: #8b969c; background: #1a1f23; }
.chip-on {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.speech {
  font-size: 0.875rem;
  color: var(--ink-2);
  border-left: 2px solid var(--line-strong);
  padding-left: 0.8rem;
}
.panel-dark .speech { color: #a8b2b8; border-left-color: #39434a; }
.speech b { color: var(--ink); font-weight: 600; }
.panel-dark .speech b { color: var(--ink-on-dark); }

.card-mini {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  padding: 0.8rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.55;
}
.panel-dark .card-mini { border-color: #2b3439; background: #191e22; }
.card-mini-accent {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.card-mini-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.caret {
  display: inline-block;
  width: 0.5em;
  height: 1.05em;
  vertical-align: -0.18em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1.1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.code-mini {
  margin: 0;
  padding: 0.9rem 1rem;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
  color: var(--ink-2);
  white-space: pre;
}
.panel-dark .code-mini { background: #191e22; border-color: #2b3439; color: #a8b2b8; }

/* The dark panel keeps its own palette in both themes, so muted text inside
   it cannot use the light theme's --ink-3. */
.panel-dark .fine,
.panel-dark .muted,
.panel-dark .small { color: #8b969c; }
.panel-dark .card-mini { color: var(--ink-on-dark); }
.panel-dark .card-mini-accent {
  border-color: #235049;
  background: #102a28;
  color: var(--ink-on-dark);
}
.panel-dark .card-mini-label { color: #4fc7bc; }
.panel-dark code { color: #c9d3d9; }
.code-mini .k { color: var(--accent); }


/* --- 12. Feature grid ---------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 40em) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feature:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}
.feature p { font-size: 0.9375rem; color: var(--ink-2); }

.feature-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 1rem;
  color: var(--accent);
}


/* --- 13. Steps ----------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 56em) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.step { position: relative; padding-top: 3.25rem; }
/* The three step markers walk the logo's sunburst outwards: amber core,
   orange mid, teal ring. */
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-amber);
  color: var(--brand-black);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.step:nth-child(2)::before { background: var(--brand-orange); color: var(--brand-black); }
.step:nth-child(3)::before { background: var(--brand-teal-deep); color: #ffffff; }
.step::after {
  content: "";
  position: absolute;
  top: 1.2rem;
  left: 2.9rem;
  right: -1rem;
  height: 1px;
  background: var(--line-strong);
  display: none;
}
@media (min-width: 56em) {
  .step:not(:last-child)::after { display: block; }
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--ink-2); font-size: 0.9375rem; }


/* --- 14. Callout / note -------------------------------------------------- */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  padding: 1.25rem 1.4rem;
}
.note h3 { font-family: var(--font-ui); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.4rem; }
.note p { font-size: 0.9375rem; color: var(--ink-2); }
.note + .note { margin-top: 1rem; }

/* Breathing room when a note or a button row follows a block above it. */
.grid + .note,
.steps + .note,
.split-band + .note { margin-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); }

.prose + .btn-row,
.steps + .btn-row,
.grid + .btn-row { margin-top: clamp(1.75rem, 1rem + 2.5vw, 3rem); }

.note-draft {
  border-left-color: #b8860b;
  background: var(--bg-sunken);
}
@media (prefers-color-scheme: dark) {
  .note-draft { border-left-color: #d6a83c; }
}

.split-band {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 56em) {
  .split-band { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}


/* --- 15. Pricing --------------------------------------------------------- */

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  height: 100%;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.plan-name {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.7rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.plan-price small {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-top: 0.4rem;
}
.plan-desc { margin-top: 1rem; color: var(--ink-2); font-size: 0.9375rem; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.plan ul li { position: relative; padding-left: 1.55rem; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.52em;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan ul li.is-pending::before {
  border: 0;
  background: var(--ink-3);
  height: 2px;
  width: 0.65rem;
  top: 0.72em;
  transform: none;
}
.plan-foot { margin-top: auto; padding-top: 1.75rem; }


/* --- 16. Download -------------------------------------------------------- */

.dl-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-md);
}
.dl-card-quiet { box-shadow: none; background: var(--bg-sunken); }

.dl-os {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.dl-os svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.dl-os h2 { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.9rem); }

.meta-list {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}
.meta-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.meta-list dt { color: var(--ink-3); }
.meta-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.meta-list dd code { font-size: 0.8125rem; }

.slot {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-3);
  background: var(--bg-sunken);
  border: 1px dashed var(--line-strong);
  border-radius: 5px;
  padding: 0.1rem 0.45rem;
}
.dl-card .slot { background: var(--bg); }


/* --- 17. Prose (legal pages) --------------------------------------------- */

.prose { max-width: 44rem; }
.prose h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.7vw, 1.65rem);
  margin-top: 3rem;
  margin-bottom: 0.85rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 2.5rem; }
.prose h3 {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.prose p, .prose ul, .prose ol { color: var(--ink-2); }
.prose p + p { margin-top: 1rem; }
.prose ul, .prose ol { margin: 1rem 0 0; padding-left: 1.35rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--accent); }

.toc {
  margin: 2rem 0 0;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
}
.toc h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; gap: 0.35rem; font-size: 0.9375rem; }


/* --- 18. CTA band -------------------------------------------------------- */

.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: clamp(2rem, 1.25rem + 3.5vw, 3.5rem);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.cta-band p { margin: 1rem auto 0; max-width: 34rem; }
.cta-band .btn-row { margin-top: 2rem; }


/* --- 19. Footer ---------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem) 2rem;
  margin-top: auto;
}

.footer-top {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 48em) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 26rem;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.footer-col h2 {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.9375rem;
}
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.footer-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-2);
}


/* --- 20. Error page ------------------------------------------------------ */

.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 2rem + 10vw, 9rem);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 3rem + 9vw, 8rem);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}
.error-mark {
  width: clamp(96px, 22vw, 132px);
  margin: 0 auto 1.5rem;
}
.error-page .lede { margin-inline: auto; max-width: 34rem; }


/* --- 21. Page shell ------------------------------------------------------ */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.page-head {
  padding-block: clamp(2.75rem, 1.75rem + 4vw, 5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem); }
.page-head .lede { margin-top: 1.1rem; max-width: 38rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
