/* Sovrasign marketing site. Tokens: brand/tools/palette.mjs ("b-line", the final identity) and
   chapter 13 §4.2 neutrals with the brand session's contrast fixes (faint, control-border), from
   design/tokens.json: the token blocks below are generated (UX-001, tools/tokens/generate.mjs).
   Contrast checks: brand/contrast.md. No inline styles anywhere (strict CSP). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2");
}

/* tokens:begin. Generated from design/tokens.json by tools/tokens/generate.mjs: edit the JSON, then run `node tools/tokens/generate.mjs`. */
:root {
  color-scheme: light dark;
  --ink: #0b6573;
  --ink-strong: #074b56;
  --ink-soft: #e1f0f1;
  --on-ink: #ffffff;
  --accent: #8a5a00;
  --accent-graphic: #e9a23b;
  --bg: #ffffff;
  --bg-alt: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --line: #dfe2ec;
  --line-strong: #c7cbda;
  --control-border: #8289a0;
  --text: #151a2d;
  --muted: #565e78;
  --faint: #6a718b;
  --ok: #157a4a;
  --ok-soft: #e3f4ea;
  --warn: #9a5a00;
  --warn-soft: #fdf0d9;
  --info: #3d4a7a;
  --info-soft: #eceef6;
  --bad: #b3261e;
  --shadow: 0 1px 2px rgb(21 26 45 / 6%), 0 8px 24px rgb(21 26 45 / 8%);
  --radius: 16px;
  --radius-sm: 10px;
  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #5cc8d4;
    --ink-strong: #93dde5;
    --ink-soft: #10313a;
    --on-ink: #04232a;
    --accent: #f2b85b;
    --accent-graphic: #e9a23b;
    --bg: #0d1020;
    --bg-alt: #121628;
    --surface: #151a2e;
    --surface-2: #1a2036;
    --line: #283050;
    --line-strong: #37406a;
    --control-border: #6a739a;
    --text: #e7eaf6;
    --muted: #a6aeca;
    --faint: #8d95b3;
    --ok: #5fd39a;
    --ok-soft: #12301f;
    --warn: #f2b85b;
    --warn-soft: #33260c;
    --info: #b8c2ea;
    --info-soft: #1f2644;
    --bad: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}
/* tokens:end */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.2vw + 1rem, 3.25rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.45rem, 1.2vw + 1.1rem, 1.9rem);
}
h3 {
  font-size: 1.2rem;
}
p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--ink-strong);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 4px;
}
main:focus {
  outline: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}
code.hash {
  word-break: break-all;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.wrap.narrow {
  max-width: 46rem;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--ink);
  color: var(--on-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
  color: var(--on-ink);
}

/* Draft notes (draft builds only) */
.draft-note {
  max-width: 46rem;
  margin: 1.5rem auto;
  padding: 0.9rem 1.1rem;
  border: 2px dashed var(--accent-graphic);
  border-radius: var(--radius-sm);
  background: var(--warn-soft);
  font-size: 0.95rem;
}
.wrap .draft-note {
  margin-left: 0;
}
.draft-note p {
  margin: 0;
}
.draft-note strong {
  color: var(--warn);
}
mark.tbd {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: 4px;
  padding: 0 0.25em;
  font-weight: 600;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
}
.brand img {
  display: block;
  height: 30px;
  width: auto;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink-strong);
}
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--ink-soft);
}
@media (max-width: 52rem) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin: 0 -0.5rem;
  }
  .site-nav ul {
    gap: 0;
  }
  .site-nav a {
    white-space: nowrap;
    padding: 0 0.5rem;
  }
  .header-cta {
    padding: 0 1rem;
  }
}
@media (max-width: 24rem) {
  .header-cta {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.2rem;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--on-ink);
}
.btn-primary:hover {
  background: var(--ink-strong);
  color: var(--on-ink);
}
.btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--ink-soft);
}
.btn-large {
  min-height: 52px;
  padding: 0 1.6rem;
  font-size: 1.05rem;
}
.btn[disabled],
fieldset[disabled] .btn {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Icons and chips */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  vertical-align: -0.35em;
  color: var(--ink);
}
.chip {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
  border: 1px solid currentColor;
}
.chip-built {
  color: var(--ok);
  background: var(--ok-soft);
}
.chip-coming {
  color: var(--info);
  background: var(--info-soft);
}
.chip-decided {
  color: var(--ink);
  background: var(--ink-soft);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section.tight {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
}
.section.alt {
  background: var(--bg-alt);
}
.section-title {
  margin-bottom: 0.4em;
}
.section-lede,
.lede {
  color: var(--muted);
  max-width: 46rem;
}
.lede {
  font-size: 1.2rem;
}
.legend,
.small,
.hint {
  color: var(--muted);
  font-size: 0.93rem;
}
.page-head {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1rem;
}
.crumb {
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.notice {
  border-left: 4px solid var(--info);
  background: var(--info-soft);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  max-width: 46rem;
}
.notice.warn {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.more {
  font-weight: 600;
}
.more::after {
  content: " \2192";
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, var(--ink-soft), var(--bg) 85%);
}
.hero-grid {
  display: grid;
  /* minmax(0, 1fr), not auto: the column never grows past a 320 px screen (reflow, DEV-08). */
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.verify-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
}
.verify-head {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-weight: 700;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}
.verify-head .icon {
  color: var(--ok);
}
.verify-list {
  margin: 0;
}
.verify-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.verify-list dt {
  color: var(--muted);
  font-size: 0.9rem;
  grid-row: span 2;
  min-width: 6.5rem;
}
.verify-list dd {
  margin: 0;
  font-weight: 600;
  grid-column: 2;
}
.verify-list dd.how {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.92rem;
}
.verify-foot {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.verify-card figcaption {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--faint);
}

/* Cards */
.card-grid,
.teaser-grid,
.plan-grid,
.steps {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
@media (min-width: 40rem) {
  .card-grid.three,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .teaser-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  /* Three columns at 100 %, fewer when the text is larger, so long words never push a card out. */
  .card-grid.three,
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  }
  /* As many columns as fit at the text size in use (four at 100 %, two at 200 %; DEV-08). */
  .teaser-grid,
  .plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  }
}
.card,
.step,
.teaser,
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  overflow-wrap: break-word;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.card-top .icon {
  width: 2rem;
  height: 2rem;
}
.card .proof {
  font-size: 0.95rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.card .small,
.card p:last-child {
  margin-bottom: 0;
}
.step .icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.5rem;
}
.steps {
  counter-reset: step;
}

/* Split sections */
.split,
.two-col {
  display: grid;
  gap: 2rem;
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem;
}

/* Pricing teaser */
.teaser .price {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 0.2rem 0 0.5rem;
}
.teaser .price span {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
}
.teaser.featured,
.plan.featured {
  border: 2px solid var(--ink);
}

/* Pricing page */
.plan h2 {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.plan-for {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 3em;
}
.price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0 0.5rem;
}
.price-pair.single {
  grid-template-columns: 1fr;
}
.price-pair > div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
}
.price-pair .amount {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin: 0.1rem 0 0.1rem;
  line-height: 1.1;
}
.price-pair .unit {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.2rem;
  line-height: 1.35;
}
.price-note {
  font-size: 0.88rem;
  color: var(--muted);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.85rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.packs,
.always-free {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.always-free ul {
  padding-left: 1.2rem;
}

/* Pricing switches and seat calculator (BIZ-13): shown by assets/pricing.mjs */
[hidden] {
  display: none !important;
}
.price-switches {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin: 0 0 0.75rem;
}
.switch-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}
.switch {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.switch legend {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  padding: 0;
}
.switch-options {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1.5px solid var(--control-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--surface);
}
.switch-options label {
  position: relative;
  cursor: pointer;
}
.switch-options input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.switch-options span {
  display: inline-block;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}
.switch-options input:checked + span {
  background: var(--ink);
  color: var(--on-ink);
}
.switch-options input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.price-switches .field,
.seat-calc .field {
  margin-bottom: 0;
}
.price-switches .field select {
  width: auto;
  min-width: 14rem;
}
.tax-note {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0.25rem;
}
.seat-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.seat-calc h2 {
  flex-basis: 100%;
  font-size: 1.3rem;
  margin: 0;
}
.seat-calc .field label {
  font-size: 0.9rem;
}
.seat-calc input[name="seats"] {
  width: 7rem;
}
.seat-calc .calc-result {
  flex-basis: 100%;
  font-weight: 600;
  margin: 0;
}
.seat-calc .small {
  flex-basis: 100%;
  margin: 0;
}
.compare-all {
  margin: 1.5rem 0;
}
.compare-all summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.15rem;
  min-height: 44px;
  padding: 0.5rem 0;
}
table.compare-features {
  min-width: 34rem;
}
table.compare-features th[scope="row"] {
  font-weight: 400;
}
table.compare-features tr.group th {
  background: var(--surface-2);
  font-weight: 700;
}
.promises {
  background: var(--surface);
  border: 2px solid var(--accent-graphic);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.promise-list {
  display: grid;
  gap: 0.8rem 2rem;
  padding-left: 1.4rem;
}
@media (min-width: 56rem) {
  .promise-list {
    grid-template-columns: 1fr 1fr;
  }
}
.promise-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-weight: 700;
  padding: 0.8rem 1rem 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
thead th {
  background: var(--surface-2);
  font-weight: 700;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody th {
  font-weight: 600;
}
table.compare {
  table-layout: fixed;
  min-width: 34rem;
}
table.compare th:first-child {
  width: 36%;
}
.wrap > h2:not(:first-child),
.wrap > h3:not(:first-child) {
  margin-top: 2.25rem;
}
table.breach th[scope="row"] {
  min-width: 12rem;
}
@media (max-width: 40rem) {
  table.breach thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  table.breach,
  table.breach tbody,
  table.breach tr,
  table.breach th,
  table.breach td {
    display: block;
    min-width: 0;
  }
  table.breach tr {
    border-bottom: 1px solid var(--line-strong);
  }
  table.breach th[scope="row"] {
    background: var(--surface-2);
    border-bottom: 0;
  }
  table.breach td {
    border-bottom: 0;
    padding-top: 0.4rem;
  }
  table.breach td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* Lists */
ul.plain {
  padding-left: 1.2rem;
}
ul.plain li,
ol.numbered li,
.checks li {
  margin-bottom: 0.6rem;
}
.checks {
  list-style: none;
  padding: 0;
}
.checks li {
  position: relative;
  padding-left: 1.7rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.5em;
  width: 0.75rem;
  height: 0.4rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.status-list {
  list-style: none;
  padding: 0;
}
.status-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.status-list li .chip {
  flex: none;
}
.step-title {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.step-title .icon {
  width: 2rem;
  height: 2rem;
}
.sources li {
  margin-bottom: 0.5rem;
}
.doc-list {
  list-style: none;
  padding: 0;
}
.doc-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.doc-list a {
  font-weight: 600;
}

/* Help center search (BIZ-03) */
.help-search {
  margin-top: 1.5rem;
  max-width: 36rem;
}
.help-search label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.help-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.help-search input {
  flex: 1 1 14rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--control-border);
  border-radius: 8px;
}
.help-search .small {
  display: block;
  margin-top: 0.35rem;
}
.help-results li {
  display: block;
}
.help-results li > span.small {
  margin-left: 0.5rem;
}
.help-results p {
  margin: 0.3rem 0 0;
}
.help-results mark {
  background: var(--warn-soft);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

/* Legal text */
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}
.legal h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
}
.legal blockquote {
  margin: 1rem 0;
  padding: 0.9rem 1.2rem;
  background: var(--surface-2);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.legal blockquote > :last-child {
  margin-bottom: 0;
}
/* Tables with many columns (subprocessors, cookies, retention) get the page's full width instead
   of the narrow text column, centred on it; cells keep a readable width and the table scrolls
   sideways inside its frame when the screen is still too narrow. */
.legal .table-wrap {
  width: min(72rem, calc(100vw - 2rem));
  max-width: none;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.legal th,
.legal td {
  min-width: 9rem;
  overflow-wrap: break-word;
}
.legal th:first-child,
.legal td:first-child {
  min-width: 11rem;
}
.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.toc h2 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.toc ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  columns: 2 16rem;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--on-ink);
}
.cta-band h2 {
  color: var(--on-ink);
}
.cta-band p {
  color: var(--on-ink);
  opacity: 0.92;
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.cta-inner > div {
  max-width: 40rem;
}
.cta-band .btn-primary {
  background: var(--on-ink);
  color: var(--ink-strong);
}
.cta-band .btn-primary:hover {
  background: var(--ink-soft);
  color: var(--ink-strong);
}
.cta-band :focus-visible {
  outline-color: var(--on-ink);
}

/* Waitlist form */
.waitlist fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.field {
  margin-bottom: 1.25rem;
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input,
.field select {
  width: 100%;
  max-width: 28rem;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--control-border);
  border-radius: 8px;
}
.field input[aria-invalid="true"] {
  border-color: var(--bad);
}
.field .hint {
  margin: 0.35rem 0 0;
}
fieldset[disabled] input,
fieldset[disabled] select {
  background: var(--surface-2);
  color: var(--muted);
}
.privacy {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 34rem;
}
.field-error {
  color: var(--bad);
  font-weight: 600;
}
.form-status {
  margin-top: 1rem;
  font-weight: 600;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: var(--bad);
}

/* Footer */
/* Footer, in the style of most product sites: link columns in small type, then a bottom bar with
   the fine print (imprint, no-cookies line) and the language menu in smaller muted type. Muted text
   stays above 4.5:1 on --bg-alt in both themes (WCAG AA), and links keep a 24px target (2.5.8). */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3rem 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
}
.footer-grid {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.footer-col h2 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--muted);
  text-decoration: none;
}
.footer-col li a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-brand img {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: var(--muted);
  max-width: 22rem;
  margin: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-legal p {
  margin: 0 0 0.25rem;
}
.footer-legal p:last-child {
  margin-bottom: 0;
}
/* The language menu (GAP-15): the page in each of the ten languages. */
.lang-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--muted);
}
.lang-nav a:hover {
  color: var(--ink);
}
.lang-nav a[aria-current] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .site-nav a {
    transition: background-color 0.15s ease, color 0.15s ease;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .skip {
    display: none;
  }
  body {
    font-size: 11pt;
  }
}

/* Product video on "How it works": the landscape cut on wide screens, the 9:16 cut on phones held
   upright. Only the visible one can load (preload="none"). */
.film { margin: 0; }
.film video { display: block; width: 100%; height: auto; border-radius: var(--radius); background: #0b1a20; }
.film .film-tall { display: none; }
@media (max-width: 600px) and (orientation: portrait) {
  .film .film-wide { display: none; }
  .film .film-tall { display: block; max-height: 85vh; width: auto; max-width: 100%; margin-inline: auto; }
}
.film figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.transcript { margin-top: 1rem; }
.transcript summary { cursor: pointer; font-weight: 600; }
.transcript p { margin: 0.6rem 0 0; }

/* Template gallery (BIZ-18): facts, the "Use this template" area and the document preview. */
.template-facts {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin: 1.25rem 0;
}
@media (min-width: 40rem) {
  .template-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.template-facts div {
  border-block-start: 1px solid var(--line);
  padding-block-start: 0.5rem;
}
.template-facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.template-facts dd {
  margin: 0;
}
.template-page .notice {
  margin-block: 0.75rem;
}
.gallery-use {
  margin-block-start: 1.25rem;
}
.gallery-use .actions {
  flex-wrap: wrap;
}
.template-list {
  list-style: none;
  padding: 0;
}
.template-list h3 {
  font-size: 1.1rem;
}
.doc-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(1rem, 4vw, 2.5rem);
  max-width: 46rem;
  overflow-wrap: anywhere;
}
.doc-preview .doc-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  text-align: center;
}
.doc-preview h3 {
  font-size: 1rem;
  margin-block-start: 1.25rem;
}
.blank {
  border-block-end: 1px solid var(--control-border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88em;
  padding: 0 0.3em;
}
.blank-who {
  color: var(--faint);
}
.blank-box {
  display: block;
  border: 1px solid var(--control-border);
  min-height: 4.5rem;
  padding: 0.4rem 0.6rem;
}
.doc-signatures {
  display: grid;
  gap: 1.25rem;
  margin-block-start: 1.5rem;
}
@media (min-width: 40rem) {
  .doc-signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.doc-signer p {
  margin: 0 0 0.4rem;
}
.blank-sign {
  display: block;
  min-height: 3rem;
  padding-block-start: 1.7rem;
}
