/* Ambifold website. No external resources; light and dark follow
   prefers-color-scheme. Inter (OFL 1.1) is self-hosted. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400 720;
  src: url("/assets/fonts/inter-latin-var-400-720.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f8f9fb;
  --bg-alt: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --text: #121826;
  --text-2: #354052;
  --muted: #4f5b6d;
  --border: #dde3eb;
  --border-strong: #c3ccd8;
  --input-border: #7b8697;
  --accent: #2459c7;
  --accent-hover: #1c479f;
  --accent-text: #ffffff;
  --accent-soft: #e7eefc;
  --accent-ink: #1d4aa8;
  --focus: #2459c7;
  --ok: #17703a;
  --ok-soft: #e3f4ea;
  --warn: #8a5300;
  --warn-soft: #fdf1dc;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --glow: rgb(36 89 199 / 14%);
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 6%);
  --shadow-lg: 0 24px 48px -12px rgb(16 24 40 / 18%), 0 2px 6px rgb(16 24 40 / 6%);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f16;
    --bg-alt: #121a27;
    --surface: #141a25;
    --surface-2: #1a2130;
    --text: #e8ecf2;
    --text-2: #c5cdd9;
    --muted: #a3aebd;
    --border: #253043;
    --border-strong: #34415a;
    --input-border: #75819a;
    --accent: #86abff;
    --accent-hover: #a7c2ff;
    --accent-text: #0b1222;
    --accent-soft: #17233d;
    --accent-ink: #a9c3ff;
    --focus: #a7c2ff;
    --ok: #5fd07a;
    --ok-soft: #10281a;
    --warn: #e9b44c;
    --warn-soft: #2c2210;
    --danger: #ff8a80;
    --danger-soft: #3a1614;
    --glow: rgb(134 171 255 / 12%);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
    --shadow-lg: 0 24px 48px -12px rgb(0 0 0 / 60%), 0 0 0 1px rgb(255 255 255 / 4%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The sticky header is 65px tall: linked headings and keyboard focus land below it. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.35rem + 3.9vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.032em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.05em 0.35em;
}

strong {
  font-weight: 640;
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

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

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

.narrow {
  max-width: calc(680px + 2 * var(--gutter));
}

/* ---------- Header ---------- */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand svg,
.brand img {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 520;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav a:not(.btn):hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav .btn {
  margin-left: 8px;
}

@media (max-width: 860px) {
  .nav .nav-extra {
    display: none;
  }
}

@media (max-width: 400px) {
  :root {
    --gutter: 16px;
  }
  .nav .btn {
    margin-left: 0;
    padding-inline: 12px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.btn:hover {
  border-color: var(--input-border);
  text-decoration: none;
}

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

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

.btn-large {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1.0625rem;
  border-radius: 12px;
}

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.lead {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

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

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 9vw, 112px);
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero h1 {
  max-width: 14ch;
  margin-inline: auto;
  margin-bottom: 24px;
}

.hero .lead {
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 540;
  box-shadow: var(--shadow-sm);
}

.pill .short {
  display: none;
}

@media (max-width: 400px) {
  .pill .long {
    display: none;
  }
  .pill .short {
    display: inline;
  }
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex: none;
}

@media (max-width: 600px) {
  .facts {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    gap: 10px 20px;
    text-align: left;
  }
  .cta-row .btn {
    flex: 1 1 100%;
    max-width: 320px;
  }
}

@media (max-width: 440px) {
  /* One column on narrow phones, so no item wraps and the checkmarks line up. */
  .facts {
    grid-template-columns: auto;
  }
}

/* A browser-window frame around app screenshots. */
.window {
  margin: clamp(48px, 7vw, 80px) auto 0;
  max-width: 1000px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.window-url {
  flex: 1;
  max-width: 340px;
  margin-inline: auto;
  padding: 3px 12px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window picture,
.window img {
  display: block;
  width: 100%;
}

@media (max-width: 600px) {
  /* The phone screenshot (art-directed in the same <picture>) fades out at the bottom. */
  .window img {
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
    mask-image: linear-gradient(to bottom, #000 78%, transparent);
  }
  .window {
    max-width: 440px;
  }
}

.caption {
  margin: 14px auto 0;
  max-width: 1000px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

/* ---------- Why now ---------- */

.why {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 900px) {
  .why {
    grid-template-columns: 1.1fr 1fr;
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-strong);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 40px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--border-strong);
}

.timeline li.now::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.timeline .when {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline .what {
  display: block;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.timeline .note {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 2px;
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 700px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.icon svg {
  width: 22px;
  height: 22px;
}

.step {
  position: relative;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 1rem;
  font-feature-settings: "tnum";
}

/* ---------- Safety ---------- */

.split {
  display: grid;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.split > div {
  max-width: 720px;
}

@media (min-width: 1080px) {
  .split {
    /* The preview screenshot is 760px wide: this keeps its text at 12px or more. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

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

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}

.checklist svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--ok);
}

.checklist strong {
  display: block;
  color: var(--text);
  font-size: 1.0625rem;
  margin-bottom: 2px;
}

.checklist span {
  color: var(--text-2);
  font-size: 1rem;
}

.shot-frame-img {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.shot-frame img {
  width: 100%;
}

.shot-frame figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 1079px) {
  /* One column: the phone capture of the preview, cropped, fading out. */
  .shot-frame {
    width: 100%;
    max-width: 440px;
  }
  .shot-frame img {
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
  }
}

/* ---------- Status and limits ---------- */

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.status-list li {
  display: grid;
  align-items: start;
  gap: 6px 24px;
  padding: 20px clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--border);
}

.status-list li:first-child {
  border-top: 0;
}

@media (min-width: 760px) {
  .status-list li {
    grid-template-columns: 220px 1fr;
  }
}

.status-list .label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 620;
  color: var(--text);
}

.status-list p {
  margin: 0;
  max-width: 36em; /* about 80 characters per line */
  color: var(--text-2);
  font-size: 1rem;
}

.tag {
  display: inline-block;
  flex: none;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag-limit {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag-note {
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tag-next {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

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

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 620;
  font-size: 1.0625rem;
  color: var(--text);
  border-radius: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.faq .answer {
  padding: 0 22px 20px;
  color: var(--text-2);
}

.faq .answer p {
  font-size: 1rem;
}

.faq .answer p,
.faq .answer ul {
  max-width: 36em; /* about 80 characters per line */
}

.faq .answer p:last-child,
.faq .answer ul:last-child {
  margin-bottom: 0;
}

.faq .answer ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
  font-size: 1rem;
}

.faq .answer li {
  margin-bottom: 0.5em;
}

/* ---------- Signup ---------- */

.signup {
  max-width: 640px;
  margin-inline: auto;
}

.signup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.field .hint {
  font-weight: 450;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--input-border);
  border-radius: 10px;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-radius: 10px;
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.9375rem;
  font-weight: 540;
}

.field-error:empty {
  display: none;
}

/* The honeypot: invisible to people, still in the DOM for bots. */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 4px 0 20px;
  line-height: 1.55;
}

.signup-card .btn {
  width: 100%;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* Kept in the accessibility tree when empty, so screen readers announce what appears in it. */
.form-status:empty {
  margin: 0;
  padding: 0;
}

.form-status.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.form-status.error {
  background: var(--danger-soft);
  color: var(--danger);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 40px 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .site-footer .wrap {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-2);
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 0.875rem;
  max-width: 60ch;
}

.site-footer .brand {
  font-size: 1.0625rem;
}

.site-footer .brand svg {
  width: 24px;
  height: 24px;
}

/* ---------- Prose pages (privacy, 404, thanks) ---------- */

.page-hero {
  padding-block: clamp(48px, 7vw, 88px) clamp(24px, 3vw, 40px);
}

.page-hero h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
}

.prose {
  padding-bottom: clamp(56px, 8vw, 104px);
}

.prose h2 {
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  margin-top: 2.2em;
  padding-top: 0.2em;
}

.prose h3 {
  margin-top: 1.6em;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.1em;
}

.prose li {
  margin-bottom: 0.45em;
}

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

.summary-box {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 2em;
}

.summary-box h2 {
  margin-top: 0;
  font-size: 1.1875rem;
}

.summary-box ul {
  margin-bottom: 0;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 24px;
  margin: 0 0 2em;
}

.toc h2 {
  font-size: 1rem;
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  columns: 2 240px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
  font-size: 0.9375rem;
}

.quote {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 0 0 1.2em;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}

.prose thead th {
  border-top: 0;
  color: var(--text);
  background: var(--surface-2);
  font-weight: 620;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.center-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.center-page .lead {
  max-width: 36rem;
  margin-inline: auto;
}

.big-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
}

.error-reason {
  display: none;
}

.error-reason:target,
.error-reason.show {
  display: block;
}

.error-reasons:has(.error-reason:target) .error-generic {
  display: none;
}

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

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

figure.shot-frame {
  margin: 0;
}

@media (max-width: 1079px) {
  figure.shot-frame {
    margin-inline: auto;
  }
}

/* Tables become labelled stacks on phones. */
@media (max-width: 600px) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
  }
  .stack-table tr {
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }
  .stack-table tr:first-child {
    border-top: 0;
  }
  .prose .stack-table td {
    border: 0;
    padding: 4px 16px;
  }
  .stack-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.8125rem;
    font-weight: 640;
    color: var(--text);
  }
}
