/* vidimu.com — single stylesheet. Poppins is self-hosted (SIL OFL 1.1, see /assets/fonts/OFL.txt). */

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dark: #1c1e21;
  --dark-2: #25282c;
  --dark-line: #3a3e44;
  --page: #f4f4f4;
  --surface: #ffffff;
  --ink: #16181b;
  --muted: #6b6f76;
  --muted-on-dark: #b4b8bf;
  --accent: #e55e30;          /* brand orange: wordmark, icons, accents */
  --accent-strong: #c4491e;   /* buttons with white text (4.8:1) */
  --accent-hover: #ad3f18;
  --accent-text: #b93f15;     /* links on light backgrounds (5:1) */
  --accent-soft: #fdf1ec;
  --line: #e2e3e5;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl,
table,
address {
  margin: 0 0 1em;
}

address {
  font-style: normal;
}

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

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

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

strong {
  font-weight: 600;
}

code,
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.site-header {
  background: var(--dark);
  color: #f4f4f4;
}

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

.wordmark {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
  color: #f4f4f4;
  white-space: nowrap;
}

.wordmark:hover {
  color: #ffffff;
}

.wordmark span {
  color: var(--accent);
}

.wordmark--ink {
  color: var(--ink);
}

.wordmark--ink:hover {
  color: var(--ink);
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--dark-2);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  color: #f4f4f4;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

.lang-switch:hover {
  color: #ffffff;
  border-color: #5a5f66;
}

.lang-switch svg {
  width: 16px;
  height: 16px;
}

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

  .lang-switch {
    margin-left: auto;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--accent-strong);
  color: #ffffff;
}

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

.btn-outline-dark {
  border-color: var(--dark-line);
  color: #f4f4f4;
}

.btn-outline-dark:hover {
  border-color: #5a5f66;
  color: #ffffff;
}

/* ---------- Hero (home) ---------- */

.hero {
  background: var(--dark);
  color: #f4f4f4;
  padding: 40px 0 64px;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 56px 0 88px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
  }
}

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

.hero h1 {
  font-size: clamp(2rem, 1.35rem + 2.9vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero .lead {
  font-size: 1.0625rem;
  color: var(--muted-on-dark);
  max-width: 36em;
  margin-bottom: 28px;
}

@media (min-width: 960px) {
  .hero .lead {
    font-size: 1.125rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

@media (max-width: 479px) {
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  color: #f4f4f4;
  line-height: 1.2;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  color: var(--muted-on-dark);
}

.store-badge small {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted-on-dark);
  letter-spacing: 0.02em;
}

.store-badge span {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* Photo mock-up */

.shot-figure {
  margin: 0;
}

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe6ec;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.shot > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-stamp {
  position: absolute;
  left: 4%;
  bottom: 5%;
  max-width: 70%;
  padding: 10px 14px 10px 12px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(22, 24, 27, 0.78);
  color: #ffffff;
  font-size: clamp(0.625rem, 0.5rem + 0.45vw, 0.8125rem);
  line-height: 1.45;
}

.shot-stamp .t {
  display: block;
  font-size: 1.6em;
  font-weight: 600;
  line-height: 1.15;
}

.shot-stamp .d {
  color: #d9dce0;
}

.shot-stamp .p {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: #ffffff;
}

.shot-code {
  position: absolute;
  top: 50%;
  right: 1.8%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.5625rem, 0.45rem + 0.35vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.shot-caption {
  margin-top: 14px;
  color: var(--muted-on-dark);
  font-size: 0.8125rem;
  text-align: center;
}

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

.section {
  padding: 64px 0;
}

@media (min-width: 960px) {
  .section {
    padding: 88px 0;
  }
}

.section--white {
  background: var(--surface);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0;
}

.section--white .section-head p,
.section--white .muted {
  color: var(--muted);
}

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

/* Steps */

.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

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

.step {
  position: relative;
  min-width: 0;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step .code-sample {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--page);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Features */

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

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

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

.feature {
  padding: 24px;
  background: var(--page);
  border-radius: var(--radius);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
}

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

.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.feature h3:has(.tag) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.feature h3 .tag {
  margin-left: 0;
  vertical-align: baseline;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 2px;
  white-space: nowrap;
}

.features-more {
  margin: 24px 0 0;
  color: var(--muted);
}

.industries-title {
  margin: 36px 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.industries li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--surface);
}

/* Verify form */

.verify-box {
  display: grid;
  gap: 32px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 900px) {
  .verify-box {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    padding: 44px 48px;
    gap: 48px;
  }
}

.verify-box h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
}

.verify-box p {
  color: var(--muted);
}

.verify-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.verify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.verify-row input {
  flex: 999 1 220px;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #9ea2a8;
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verify-row input::placeholder {
  color: #767a81;
  letter-spacing: 0.04em;
  text-transform: none;
}

.verify-row input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--ink);
}

.verify-row input[aria-invalid="true"] {
  border-color: #b3261e;
}

.verify-row .btn {
  flex: 1 0 auto;
  min-height: 52px;
}

.form-hint {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.verify-form .form-error {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #b3261e;
}

.verify-form .form-error:empty {
  display: none;
}

/* Privacy highlight */

.verify-box + .note-band {
  margin-top: 24px;
}

.note-band {
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #f4f4f4;
}

@media (min-width: 860px) {
  .note-band {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 32px 40px;
  }
}

.note-band svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.note-band h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: #ffffff;
}

.note-band p {
  margin: 0;
  color: var(--muted-on-dark);
}

.note-band a {
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.note-band a:hover {
  color: var(--accent);
}

/* Plans */

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

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.plan h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.plan p {
  color: var(--muted);
  margin-bottom: 20px;
}

.plan .price {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ---------- Page header (inner pages) ---------- */

.page-hero {
  background: var(--dark);
  color: #f4f4f4;
  padding: 36px 0 44px;
}

@media (min-width: 960px) {
  .page-hero {
    padding: 48px 0 56px;
  }
}

.page-hero .wrap {
  max-width: calc(820px + 64px);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-hero p {
  margin: 0;
  color: var(--muted-on-dark);
  max-width: 44rem;
}

.page-hero a {
  color: #ffffff;
}

.page-hero a:hover {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.page-hero .updated {
  margin-top: 12px;
  font-size: 0.875rem;
}

/* ---------- Document (legal / support) ---------- */

.doc-wrap {
  padding: 32px 0 72px;
}

@media (min-width: 960px) {
  .doc-wrap {
    padding: 48px 0 96px;
  }
}

.doc {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .doc {
    padding: 48px 56px;
  }
}

.doc h2 {
  font-size: 1.375rem;
  margin-top: 2.2em;
  padding-top: 0.2em;
  scroll-margin-top: 16px;
}

.doc h2:first-child,
.doc .toc + h2 {
  margin-top: 0;
}

.doc h3 {
  font-size: 1.0625rem;
  margin-top: 1.6em;
  margin-bottom: 0.4em;
}

.doc ul,
.doc ol {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.4em;
}

.doc li::marker {
  color: var(--muted);
}

.doc .summary {
  padding: 18px 18px;
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  background: var(--page);
}

.doc .summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .doc .summary {
    padding: 20px 22px;
  }
}

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

.toc {
  margin-bottom: 36px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .toc {
    padding: 18px 22px;
  }
}

.toc h2 {
  font-size: 0.9375rem;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  columns: 1;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .toc ol {
    columns: 2;
    column-gap: 32px;
  }
}

.toc li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.doc table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.doc th,
.doc td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.doc table.wide {
  min-width: 560px;
}

.doc thead th {
  background: var(--page);
  font-weight: 600;
}

.doc tbody tr:last-child td,
.doc tbody tr:last-child th {
  border-bottom: 0;
}

@media (max-width: 639px) {
  .doc table.stack {
    min-width: 0;
  }

  .doc table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .doc table.stack,
  .doc table.stack tbody,
  .doc table.stack tr,
  .doc table.stack td {
    display: block;
  }

  .doc table.stack tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  .doc table.stack tbody tr:last-child {
    border-bottom: 0;
  }

  .doc table.stack td {
    padding: 0;
    border: 0;
  }

  .doc table.stack td + td {
    margin-top: 10px;
  }

  .doc table.stack td:first-child {
    font-weight: 600;
  }

  .doc table.stack td + td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

.doc dl dt {
  font-weight: 600;
}

.doc dl dd {
  margin: 0 0 0.8em;
}

.doc ul.lettered {
  list-style: none;
  padding-left: 0;
}

.doc ul.lettered > li {
  position: relative;
  padding-left: 2em;
}

.doc ul.lettered .lt {
  position: absolute;
  left: 0;
  font-weight: 600;
}

.callout {
  margin: 0 0 1.2em;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
}

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

.contact-card {
  margin-top: 2em;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--page);
}

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

.doc .contact-card h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

/* FAQ */

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
}

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

.faq .answer {
  padding: 0 0 18px;
}

.faq .answer > :last-child {
  margin-bottom: 0;
}

.faq-group {
  margin-top: 2.2em;
}

.faq-group:first-of-type {
  margin-top: 0;
}

/* Steps list in docs */

.doc ol.numbered {
  counter-reset: n;
  list-style: none;
  padding-left: 0;
}

.doc ol.numbered > li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  counter-increment: n;
}

.doc ol.numbered > li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- 404 ---------- */

.error-page {
  padding: 72px 0 96px;
}

.error-page .doc {
  text-align: left;
}

.error-page .doc + .doc {
  margin-top: 20px;
}

.error-page h1 {
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  font-weight: 700;
}

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

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.btn-outline-light {
  border-color: #9ea2a8;
  color: var(--ink);
}

.btn-outline-light:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 32px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 40px 64px;
  }
}

.footer-brand p,
.footer-brand address {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .toc {
    display: none;
  }

  .page-hero {
    background: none;
    color: #000;
    padding: 0 0 12px;
  }

  .page-hero h1,
  .page-hero p {
    color: #000;
  }

  .doc {
    border: 0;
    padding: 0;
    max-width: none;
  }
}
