:root {
  color-scheme: light dark;
  --bg: #f6f9fc;
  --bg-subtle: #edf3f9;
  --surface: #ffffff;
  --surface-tint: #eaf4fd;
  --surface-code: #15181d;
  --text: #14202b;
  --text-secondary: #42505f;
  --text-muted: #5f6d7c;
  --border: #dbe4ee;
  --border-strong: #c3d1df;
  --accent: #2f78be;
  --accent-hover: #24619c;
  --accent-fg: #ffffff;
  --sky: #9ad6ff;
  --graphite: #3b4048;
  --badge-blue-bg: #dcebff;
  --badge-blue-text: #084da8;
  --badge-green-bg: #dff6e7;
  --badge-green-text: #146333;
  --badge-amber-bg: #fff1cc;
  --badge-amber-text: #7c5000;
  --badge-red-bg: #ffe4e4;
  --badge-red-text: #9b1c1c;
  --shadow-subtle: 0 12px 32px rgba(20, 45, 80, 0.07);
  --shadow-float: 0 22px 54px rgba(20, 56, 110, 0.14);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --radius-card: 14px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --bg-subtle: #161a20;
    --surface: #1c2128;
    --surface-tint: #1a2633;
    --surface-code: #0b0d10;
    --text: #eef4fa;
    --text-secondary: #a3b2c2;
    --text-muted: #7d8c9a;
    --border: #262d36;
    --border-strong: #35404c;
    --accent: #6cb6f5;
    --accent-hover: #8fc8f8;
    --accent-fg: #0b1620;
    --badge-blue-bg: rgba(108, 182, 245, 0.16);
    --badge-blue-text: #9ccdf8;
    --badge-green-bg: rgba(46, 204, 113, 0.16);
    --badge-green-text: #7ee6a6;
    --badge-amber-bg: rgba(245, 176, 65, 0.16);
    --badge-amber-text: #ffd07b;
    --badge-red-bg: rgba(235, 87, 87, 0.16);
    --badge-red-text: #ff9b9b;
    --shadow-subtle: 0 12px 34px rgba(0, 0, 0, 0.34);
    --shadow-float: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

main p a,
main li a,
main td a,
.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main p a:hover,
main li a:hover,
main td a:hover,
.text-link:hover {
  color: var(--accent-hover);
}

code,
pre,
kbd {
  font-family: var(--font-mono);
}

p code,
li code,
td code {
  font-size: 0.86em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

button {
  font: inherit;
  color: inherit;
}

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

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* The app's steering wheel without its blue square, standing on the page in soft smoke (SD-015). */
.brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  filter:
    drop-shadow(0 1px 1px rgba(40, 50, 65, 0.16))
    drop-shadow(0 2px 2px rgba(40, 50, 65, 0.1))
    drop-shadow(0 4px 4px rgba(40, 50, 65, 0.08))
    drop-shadow(0 8px 8px rgba(40, 50, 65, 0.06));
}

/* The name: raised a little, with a light top edge and the same soft smoke under it. */
.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(40, 50, 65, 0.18),
    0 2px 2px rgba(40, 50, 65, 0.1),
    0 4px 4px rgba(40, 50, 65, 0.08),
    0 8px 8px rgba(40, 50, 65, 0.06);
}

@media (prefers-color-scheme: dark) {
  .brand-mark svg {
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.28))
      drop-shadow(0 2px 2px rgba(0, 0, 0, 0.4))
      drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
  }

  .brand-name {
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.45),
      0 2px 2px rgba(0, 0, 0, 0.3),
      0 4px 4px rgba(0, 0, 0, 0.25),
      0 8px 8px rgba(0, 0, 0, 0.2);
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links .nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
}

.nav-links .nav-gh:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  /* Not a full-height screen: the story ("Why it exists") starts right under it, on the first screen. */
  display: flex;
  align-items: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 80% 24%, color-mix(in srgb, var(--sky) 22%, transparent), transparent 46%),
    radial-gradient(circle at 10% 88%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%);
}

/* One order for every screen (SD-014): headline, pain, car screen, buttons, what it is, facts.
   Narrow screens read it top to bottom; a wide one puts the car screen in the right column and
   centers the text beside it. */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.hero-grid > .car-figure {
  margin: 8px 0 32px;
}

@media (min-width: 981px) {
  .hero-grid {
    /* The car screen is wide and low, as in the car, so it gets the wider column. */
    grid-template-columns: 1fr 1.35fr;
    grid-template-rows: 1fr repeat(5, auto) 1fr;
    grid-template-areas:
      ".     figure"
      "title figure"
      "pain  figure"
      "ctas  figure"
      "what  figure"
      "facts figure"
      ".     figure";
    column-gap: 48px;
  }

  .hero-grid > h1 { grid-area: title; }
  .hero-grid > .hero-pain { grid-area: pain; }
  .hero-grid > .hero-ctas { grid-area: ctas; }
  .hero-grid > .hero-what { grid-area: what; }
  .hero-grid > .hero-facts { grid-area: facts; }

  .hero-grid > .car-figure {
    grid-area: figure;
    align-self: center;
    margin: 0;
  }
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 9999px;
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  /* A plain sentence, longer than a slogan: a little smaller, so it stays at three lines on a laptop. */
  font-size: clamp(2.2rem, 3.9vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 18px;
  max-width: 17ch;
}

.hero-subtext {
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 40ch;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Buttons share the look of the header's "View on GitHub" (SD-003): an icon, a light top edge,
   a 2 px key edge and soft smoke; a little larger than it, so a finger hits them on a phone. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  flex: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid var(--edge-accent);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 26%, transparent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Car-screen illustration */
.car-figure {
  display: grid;
  gap: 14px;
}

.car {
  --car-bg: #1f1b18;
  --car-surface: #2e2823;
  --car-text: #f8f4ef;
  --car-accent: #d2824a;
  --car-on-accent: #1a120b;
  --car-yellow: #fdd835;
  background: linear-gradient(180deg, #1d2025, #0c0d10);
  border-radius: 22px;
  padding: 12px;
  box-shadow: var(--shadow-float), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.car[data-tone="glacier"] {
  --car-bg: #16212b;
  --car-surface: #213242;
  --car-text: #f2f7fb;
  --car-accent: #8ccbf2;
  --car-on-accent: #0b1620;
}

.car[data-tone="moss"] {
  --car-bg: #101712;
  --car-surface: #1a261d;
  --car-text: #eef3ea;
  --car-accent: #a3c293;
  --car-on-accent: #0f1a12;
}

.car-screen {
  display: grid;
  /* As in the test car: the app takes about two thirds of the width, the navigation app the rest. */
  grid-template-columns: 2fr 1fr;
  gap: 6px;
  padding: 6px;
  border-radius: 12px;
  background: #050607;
  overflow: hidden;
}

.car-app {
  /* The app window in the test car is 862 x 536 points (doc/testing-on-dhu.md); sizes inside follow its width. */
  container-type: inline-size;
  aspect-ratio: 862 / 536;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* Percent padding follows the panel's own width (cqi here would read the page, not the panel). */
  padding: 2.4% 2.6% 3%;
  border-radius: 8px;
  background: var(--car-bg);
  color: var(--car-text);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 0;
}

.car-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.car-mode {
  font-size: max(11px, 3.4cqi);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.car-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.car-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: max(22px, 6cqi);
  padding: 0 max(7px, 2.2cqi);
  border: 0;
  border-radius: 9999px;
  background: var(--car-surface);
  color: var(--car-text);
  font-size: max(8.5px, 2.3cqi);
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-chip:hover {
  background: color-mix(in srgb, var(--car-surface) 80%, var(--car-text));
}

.car-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--car-text);
  text-align: left;
  cursor: pointer;
  padding: 4px 6px;
  /* In the car the rows and tiles stand in from the panel's edges; the header does not. */
  margin-inline: calc(9cqi - 6px);
  transition: background-color 0.2s ease;
}

.car-row:hover {
  background: color-mix(in srgb, var(--car-surface) 70%, transparent);
}

.car-row-text {
  display: grid;
  min-width: 0;
}

.car-title {
  font-size: max(11px, 3.4cqi);
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-sub {
  font-size: max(9.5px, 2.7cqi);
  line-height: 1.35;
  opacity: 0.74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-source {
  border-top: 1px solid color-mix(in srgb, var(--car-text) 14%, transparent);
  border-radius: 0 0 6px 6px;
  padding-top: 7px;
  font-size: max(10.5px, 3.1cqi);
  font-weight: 500;
}

.car-source svg {
  width: 16px;
  height: 16px;
  flex: none;
  /* The finger and the star are yellow in the app (CarIcons), in every tone. */
  fill: var(--car-yellow);
}

.car-source .chev {
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.6;
}

.car-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2cqi;
  margin: auto 9cqi 0;
  padding-bottom: 1cqi;
}

.tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 6 / 5;
  border: 0;
  border-radius: max(8px, 2.4cqi);
  color: var(--car-text);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--car-surface) 78%, #ffffff) 0%,
    var(--car-surface) 50%,
    color-mix(in srgb, var(--car-surface) 68%, #000000) 100%
  );
  box-shadow:
    0 6px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.7),
    inset 12px 0 10px -8px rgba(0, 0, 0, 0.45),
    inset -12px 0 10px -8px rgba(0, 0, 0, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.tile svg {
  width: 46%;
  height: auto;
  fill: currentColor;
  pointer-events: none;
}

.tile-primary {
  color: var(--car-on-accent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--car-accent) 80%, #ffffff) 0%,
    var(--car-accent) 50%,
    color-mix(in srgb, var(--car-accent) 72%, #000000) 100%
  );
}

.tile-primary svg {
  width: 62%;
}

.tile.is-tapped,
.tile.is-pressed {
  transform: translateY(5px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 1.5px rgba(0, 0, 0, 0.7),
    inset 12px 0 10px -8px rgba(0, 0, 0, 0.45),
    inset -12px 0 10px -8px rgba(0, 0, 0, 0.45),
    inset 0 14px 14px -8px rgba(0, 0, 0, 0.55);
}

/* The list screens Folder and LIKED open (ADR-014, ADR-015 in the app): over the home screen, same window. */
.car-app {
  position: relative;
}

.car-list {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.4cqi;
  padding: 2.4% 2.6% 2%;
  border-radius: 8px;
  background: var(--car-bg);
  color: var(--car-text);
}

.car-list[hidden] {
  display: none;
}

.car-list-head {
  display: flex;
  align-items: center;
  gap: 2cqi;
}

.car-back {
  flex: none;
  display: grid;
  place-items: center;
  width: max(24px, 6.6cqi);
  height: max(24px, 6.6cqi);
  border: 0;
  border-radius: 50%;
  background: var(--car-surface);
  color: var(--car-text);
  cursor: pointer;
}

.car-back svg {
  width: 58%;
  height: 58%;
  fill: currentColor;
}

.car-list-title {
  flex: 1;
  min-width: 0;
  font-size: max(11px, 3.4cqi);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-list-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  /* Rows stand in from the panel's edges, as on the home screen. */
  margin-inline: calc(9cqi - 6px);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--car-text) 30%, transparent) transparent;
}

.car-list-row {
  display: flex;
  align-items: center;
  gap: 2.4cqi;
  width: 100%;
  min-height: max(30px, 10.4cqi);
  padding: 0 1.6cqi;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--car-text) 12%, transparent);
  background: transparent;
  color: var(--car-text);
  font: inherit;
  font-size: max(10.5px, 3.1cqi);
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.car-list-row:first-child {
  border-top: 0;
}

.car-list-row:hover {
  background: color-mix(in srgb, var(--car-surface) 70%, transparent);
}

.car-list-row-text {
  display: grid;
  min-width: 0;
}

.car-list-row-text,
.car-list-row-text small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.car-list-row-text small {
  font-size: max(9.5px, 2.7cqi);
  font-weight: 400;
  opacity: 0.74;
}

/* Folder and playlist icons take the host's own tint; the star is yellow, as in the app (CarIcons). */
.car-list-row svg {
  flex: none;
  width: max(14px, 3.8cqi);
  height: max(14px, 3.8cqi);
  fill: color-mix(in srgb, var(--car-text) 82%, transparent);
}

.car-list-row svg.icon-star {
  fill: var(--car-yellow);
}

.car-list-row .chev {
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  opacity: 0.6;
}

.car-list-message {
  margin: auto;
  padding: 3cqi;
  font-size: max(10.5px, 3.1cqi);
  line-height: 1.4;
  text-align: center;
  opacity: 0.82;
}

.car-list-question {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.car-list-question .car-list-message {
  margin: 0;
  font-size: max(11px, 3.4cqi);
  font-weight: 600;
  opacity: 1;
}

.car-list-question div {
  display: flex;
  gap: 3cqi;
}

.car-list-question .car-chip {
  min-width: 18cqi;
  min-height: max(26px, 7.4cqi);
}

@media (prefers-reduced-motion: no-preference) {
  .car-list:not([hidden]) {
    animation: car-list-in 0.18s ease-out;
  }

  @keyframes car-list-in {
    from { opacity: 0; transform: translateY(2%); }
  }
}

.car-nav {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 28px),
    #181b1f;
  color: #8f98a3;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

.car-controls {
  display: flex;
  align-items: center;
  /* The tone switch stands in the middle under the car screen on every screen (SD-014). */
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.tone-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.tone-label {
  padding: 0 8px 0 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tone-btn {
  border: 0;
  border-radius: 7px;
  padding: 5px 11px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.tone-btn:hover {
  color: var(--accent);
}

.tone-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
}

/* What the last tap did: a callout right under the car screen, pointing up at it. */
.car-caption {
  /* Fixed to the longest message (measured 2026-11-13: two lines from tablet width up, three on a
     phone, four at 320 px), so a shorter or longer message never moves the page below. */
  --caption-lines: 2;
  position: relative;
  box-sizing: border-box;
  height: calc(var(--caption-lines) * 1.45em + 20px);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: var(--radius-card);
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.car-caption::before {
  /* The tail points up at the middle of the app panel (two thirds of the screen width are the app). */
  content: "";
  position: absolute;
  top: -11px;
  left: calc(33.3% - 11px);
  border: 11px solid transparent;
  border-top: 0;
  border-bottom-color: var(--badge-blue-bg);
  /* A thin grey outline, so the light tail reads on a light page. */
  filter: drop-shadow(0 -1px 0 var(--tail-edge, rgba(40, 50, 65, 0.16)));
}

@media (prefers-color-scheme: dark) {
  .car-caption::before {
    --tail-edge: rgba(0, 0, 0, 0.5);
  }
}

.car-caption-icon {
  flex: none;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .car-caption::before {
    left: calc(50% - 11px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .car-caption.is-new {
    animation: caption-flash 0.9s ease-out;
  }

  @keyframes caption-flash {
    0% { background: color-mix(in srgb, var(--accent) 26%, var(--badge-blue-bg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
    100% { background: var(--badge-blue-bg); box-shadow: 0 0 0 0 transparent; }
  }
}

.car-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */
.section {
  padding: 88px 0;
  border-bottom: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-subtle);
}

.section-header {
  /* Section intros run across the full page width (Alexei, 2026-11-13: narrow ones looked cramped). */
  max-width: none;
  margin-bottom: 44px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.14rem;
  line-height: 1.55;
}

/* How it works: four cards, then the deep dive */
.feature-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-subtle);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  color: var(--accent);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.detail-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.detail-pane {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.detail-pane h3 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.detail-pane p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.kv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.kv-item dt {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.kv-item dd {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* Two modes: two cards side by side (SD-008) */
.mode-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  min-width: 0;
}

.mode-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.mode-card-head .feature-icon {
  margin-bottom: 0;
}

.mode-card-head h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.mode-default {
  padding: 2px 10px;
  border-radius: 9999px;
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  font-size: 0.76rem;
  font-weight: 600;
}

.mode-row {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.mode-row dt {
  margin-bottom: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mode-row dd {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text);
}

@media (max-width: 760px) {
  .mode-cards {
    grid-template-columns: 1fr;
  }

  .mode-card {
    padding: 22px;
  }
}

/* Privacy: bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow-subtle);
  min-width: 0;
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-cell.tinted {
  background: var(--surface-tint);
}

.bento-cell h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.bento-cell p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Privacy: what the app does and never does, in plain words; exact names live in the Privacy Policy (SD-017). */
.perm-groups h4 {
  margin: 4px 0 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.perm-groups h4 + .perm-list {
  margin-bottom: 14px;
}

.perm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.perm-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text);
}

.perm-list svg {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  fill: currentColor;
}

.perm-yes svg {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.perm-no svg {
  background: var(--badge-red-bg);
  color: var(--badge-red-text);
}

.bento-cell .perm-more {
  font-size: 1rem;
  font-weight: 600;
}

.diagram {
  width: 100%;
  height: auto;
  display: block;
}

.diagram text {
  font-family: var(--font-sans);
}

.dg-frame {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.dg-box {
  fill: var(--surface-tint);
  stroke: var(--border-strong);
  stroke-width: 1.2;
}

.dg-main {
  fill: color-mix(in srgb, var(--accent) 16%, var(--surface));
  stroke: var(--accent);
  stroke-width: 1.5;
}

.dg-car {
  fill: var(--surface-code);
  stroke: var(--border-strong);
  stroke-width: 1.5;
}

.dg-label {
  fill: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dg-text {
  fill: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.dg-text-on-dark {
  fill: #eef4fa;
  font-size: 14px;
  font-weight: 600;
}

.dg-sub {
  fill: var(--text-secondary);
  font-size: 11.5px;
}

.dg-sub-on-dark {
  fill: #a7b1bd;
  font-size: 11.5px;
}

.dg-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.dg-arrow {
  fill: var(--accent);
}

/* What you get: a plain list of everything the app has (SD-010) */
.have-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.have-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.have-list svg {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 9px;
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  fill: currentColor;
}

.have-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.have-list span {
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.have-footnote {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 980px) {
  .have-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .have-list {
    grid-template-columns: 1fr;
  }
}

/* Try it: driver ways first, then the developer way (SD-011) */
.install-group {
  margin: 8px 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.install-grid + .install-group {
  margin-top: 36px;
}

#install .install-card > div > p {
  font-size: 1rem;
  line-height: 1.55;
}

.install-foot .btn {
  text-decoration: none;
}

/* Try it */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-subtle);
  min-width: 0;
}

.install-card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.install-card > div > p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.step-list {
  display: grid;
  gap: 12px;
  padding-left: 1.3em;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.step-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.step-list strong {
  color: var(--text);
}

.install-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.terminal-box {
  background: var(--surface-code);
  border: 1px solid #262c36;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8b95a5;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #dce3ec;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.terminal-box pre {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #e6edf3;
  overflow-x: auto;
}

.terminal-box .prompt {
  color: #6cb6f5;
  user-select: none;
}

.strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: var(--shadow-subtle);
}

.strip h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.strip p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  padding: 44px 0 52px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-top {
  /* Three columns kept together in the middle: the name, then the two link groups (SD-012). */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 56px;
}

/* Footer links in two groups: for people who use it, and for developers (SD-012). */
.footer-groups {
  display: contents;
}

.footer-group h3 {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-legal {
  /* One line as wide as the page allows; it wraps only at the page edge. */
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero-grid,
  .detail-split,
  .install-grid,
  .strip {
    grid-template-columns: 1fr;
  }

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

  /* In one column the hero text runs the full width, as the section intros do (Alexei, 2026-11-13:
     on a tablet the 40ch column left the right half empty). */
  .hero-subtext {
    max-width: none;
  }

  .feature-track {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  /* A phone shows the page without the top bar: the headline is the first thing (SD-014). */
  .site-header {
    display: none;
  }

  html {
    scroll-padding-top: 16px;
  }

  .hero {
    min-height: auto;
    padding: 32px 0 48px;
  }

  .car {
    padding: 8px;
    border-radius: 16px;
  }

  .car-screen {
    aspect-ratio: auto;
    grid-template-columns: 1fr;
    padding: 4px;
  }

  .car-nav {
    display: none;
  }

  .tile {
    border-radius: 11px;
  }

  .section {
    padding: 60px 0;
  }

  .feature-track,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .bento-cell,
  .install-card,
  .detail-pane {
    padding: 22px;
  }

}

/* What it is: under the buttons, after the visitor has seen the car screen (SD-014). */
.hero-subtext.hero-what {
  margin: 24px 0 0;
}

.section-header p + p {
  margin-top: 12px;
}

/* Car header as in the app since 2026-11-13: the app icon and "Drive Deck", then "LIKED" and the mode switch. */
.car-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.car-app-icon {
  flex: none;
  width: max(14px, 3.6cqi);
  height: max(14px, 3.6cqi);
  border-radius: 4px;
}

.car-brand .car-mode {
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.car-chip-liked {
  gap: 4px;
}

.car-chip-liked svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

@media (max-width: 640px) {
  .car-chip {
    padding: 4px 8px;
    letter-spacing: 0.03em;
  }

  .car-head-actions {
    gap: 4px;
  }
}

/* The car screen is interactive: say so above it, and let Play/Pause pulse until the first tap. */
.car-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 9999px;
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.car-hint svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .car.is-untouched .tile-primary::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--car-accent);
    animation: tile-hint 1.8s ease-out infinite;
    pointer-events: none;
  }

  @keyframes tile-hint {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.18); }
  }
}

@media (max-width: 640px) {
  .car-hint {
    border-radius: var(--radius-sm);
  }
}

/* The story starts close under the first screen, so its title shows without scrolling on a laptop. */
#why {
  padding-top: 44px;
}

/* The story reads like the hero subtext: the same size and spacing, across the full page width (SD-006). */
#why .section-header {
  max-width: none;
  margin-bottom: 0;
}

#why .section-header p {
  font-size: 1.14rem;
  line-height: 1.55;
}

#why .section-header p + p {
  margin-top: 14px;
}

/* One quiet line of facts under the hero buttons (it replaced the pill above the headline on 2026-11-13). */
.hero-facts {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .car-caption {
    --caption-lines: 3;
  }
}

@media (max-width: 360px) {
  .car-caption {
    --caption-lines: 4;
  }
}

/* ------------------------------------------------------------------
   Depth (SD-005): a "smoke" shadow. Six very faint shadows of growing size lie on top of
   each other, so the shadow has no visible edge but the part still floats. Headings get the
   same smoke as text-shadow. Buttons keep a key edge under them and press down.
   ------------------------------------------------------------------ */
:root {
  --top-light: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --edge-accent: #3a7cbd;
  --edge-neutral: #e1e6ec;
  --smoke:
    0 1px 1px rgba(40, 50, 65, 0.025),
    0 2px 2px rgba(40, 50, 65, 0.025),
    0 4px 4px rgba(40, 50, 65, 0.03),
    0 8px 8px rgba(40, 50, 65, 0.035),
    0 16px 16px rgba(40, 50, 65, 0.04),
    0 32px 32px rgba(40, 50, 65, 0.045);
  --smoke-lifted:
    0 1px 1px rgba(40, 50, 65, 0.035),
    0 2px 2px rgba(40, 50, 65, 0.035),
    0 4px 4px rgba(40, 50, 65, 0.045),
    0 8px 8px rgba(40, 50, 65, 0.05),
    0 16px 16px rgba(40, 50, 65, 0.06),
    0 32px 32px rgba(40, 50, 65, 0.07);
  --smoke-accent:
    0 1px 1px rgba(47, 120, 190, 0.06),
    0 2px 2px rgba(47, 120, 190, 0.06),
    0 4px 4px rgba(47, 120, 190, 0.06),
    0 8px 8px rgba(47, 120, 190, 0.06),
    0 16px 16px rgba(47, 120, 190, 0.06),
    0 32px 32px rgba(47, 120, 190, 0.06);
  --smoke-text:
    0 1px 1px rgba(40, 50, 65, 0.05),
    0 2px 2px rgba(40, 50, 65, 0.05),
    0 4px 4px rgba(40, 50, 65, 0.05),
    0 8px 8px rgba(40, 50, 65, 0.05),
    0 16px 16px rgba(40, 50, 65, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --top-light: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --edge-accent: #3a80c4;
    --edge-neutral: #0c0f13;
    --smoke:
      0 1px 1px rgba(0, 0, 0, 0.08),
      0 2px 2px rgba(0, 0, 0, 0.08),
      0 4px 4px rgba(0, 0, 0, 0.09),
      0 8px 8px rgba(0, 0, 0, 0.1),
      0 16px 16px rgba(0, 0, 0, 0.11),
      0 32px 32px rgba(0, 0, 0, 0.12);
    --smoke-lifted:
      0 1px 1px rgba(0, 0, 0, 0.1),
      0 2px 2px rgba(0, 0, 0, 0.1),
      0 4px 4px rgba(0, 0, 0, 0.12),
      0 8px 8px rgba(0, 0, 0, 0.13),
      0 16px 16px rgba(0, 0, 0, 0.15),
      0 32px 32px rgba(0, 0, 0, 0.17);
    --smoke-accent: var(--smoke);
    --smoke-text:
      0 1px 1px rgba(0, 0, 0, 0.2),
      0 2px 2px rgba(0, 0, 0, 0.2),
      0 4px 4px rgba(0, 0, 0, 0.2),
      0 8px 8px rgba(0, 0, 0, 0.2),
      0 16px 16px rgba(0, 0, 0, 0.2);
  }
}

.hero h1,
.section-header h2 {
  text-shadow: var(--smoke-text);
}

.btn {
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

/* The blue key is as soft as the light one: an almost flat gradient, a border in its own tone and a
   key edge only a little darker (Alexei, 2026-11-13: the stronger one looked rough). */
.btn-primary,
.btn-primary:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 90%, #ffffff) 0%,
    var(--accent) 100%
  );
  border-color: color-mix(in srgb, var(--accent) 92%, #000000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 0 color-mix(in srgb, var(--accent) 84%, #000000),
    var(--smoke-accent);
}

/* As the header button: on hover the blue one gets a little lighter, the light one takes the accent. */
.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
  box-shadow: var(--top-light), 0 2px 0 var(--edge-neutral), var(--smoke);
}

.btn-primary:active,
.btn-secondary:active {
  transform: translateY(2px);
}

.btn-primary:active {
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 0 transparent, 0 2px 4px rgba(47, 120, 190, 0.08);
}

.btn-secondary:active {
  box-shadow: inset 0 2px 4px rgba(40, 50, 65, 0.08), 0 0 0 var(--edge-neutral), 0 2px 4px rgba(40, 50, 65, 0.04);
}

.nav-links .nav-gh {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-subtle) 100%);
  box-shadow: var(--top-light), 0 2px 0 var(--edge-neutral), var(--smoke);
}

.feature-card,
.bento-cell,
.install-card,
.have-list li,
.mode-card,
.car-hint,
.tone-switch,
.car-caption {
  box-shadow: var(--top-light), var(--smoke);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--top-light), var(--smoke-lifted);
}

/* Headline in two parts (SD-002): first, in the accent color, what it is good at; then, smaller, what it is. */
.hero h1 .h1-accent,
.hero h1 .h1-main {
  display: block;
  white-space: nowrap;
}

.hero h1 .h1-accent {
  color: var(--accent);
}

/* 0.6 keeps "Android Auto music player" on one line down to 320 px and about as wide as the blue line. */
.hero h1 .h1-main {
  margin-top: 6px;
  font-size: 0.6em;
  letter-spacing: -0.025em;
}

/* On a phone the two hero buttons are one width, one under the other (SD-003). */
@media (max-width: 640px) {
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   Privacy Policy page, privacy/ (SD-016): the site's header, plain text
   in the page's type sizes, the footer's trademark line.
   ------------------------------------------------------------------ */
.policy {
  padding: 48px 0 72px;
}

.policy h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.15rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 18px;
  text-shadow: var(--smoke-text);
}

.policy-lead {
  font-size: 1.14rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.policy-date {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.policy section {
  margin-top: 40px;
}

.policy h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-shadow: var(--smoke-text);
}

.policy h3 {
  font-size: 1.08rem;
  margin: 20px 0 6px;
}

.policy p,
.policy li {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.policy p + p,
.policy ul + p,
.policy p + ul {
  margin-top: 10px;
}

.policy ul {
  padding-left: 1.3em;
}

.policy li + li {
  margin-top: 6px;
}

.policy strong {
  color: var(--text);
}

.policy code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.policy a,
.policy-back {
  color: var(--accent);
}

.policy-back {
  font-size: 0.9rem;
  font-weight: 600;
}

/* On a phone the header is hidden (SD-014), so the way back stands above the title. */
.policy-back-top {
  display: none;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .policy {
    padding-top: 28px;
  }

  .policy-back-top {
    display: inline-block;
  }
}
