/* Reusable content components: buttons, tables, cards, alerts, disclosure. */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: var(--border-width) solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.btn-primary { background: var(--color-primary); color: var(--color-text-on-primary); }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0.45rem 0.9rem; font-size: var(--text-xs); }

/* ---- Prose / lede ---- */
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: var(--measure); }
.fine-print { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-md); }

/* ---- Alerts ---- */
.alert {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--color-border);
  background: var(--color-surface-raised);
  font-size: var(--text-sm);
  max-width: var(--measure);
}
.alert--info { border-color: var(--color-primary); background: var(--color-primary-surface); }

/* ---- Homepage entry tiles ---- */
.entry-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.entry-tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-md);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.entry-tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); text-decoration: none; }
/* Fixed, controlled size regardless of viewport — function (faster
   recognition of which of the 3 categories), never decoration; see
   pages.py::page_home for why these three specifically get an icon. */
.entry-tile__icon { width: 24px; height: 24px; color: var(--color-primary); }
.entry-tile__price { font-size: var(--text-2xl); font-weight: 700; }
.entry-tile p { margin: 0; }
.entry-tile__cta { font-weight: 600; color: var(--color-primary); font-size: var(--text-sm); }

/* ---- Fact grid (label/value pairs) — a real <dl>, not <div>/<span>.
   render.py::fact_list(). A hairline top border + bold value gives each
   fact a clear visual boundary on its own, independent of whatever
   caused the pre-polish version to look run-together on first human
   visual QA (a stale-CSS bug, since fixed — see docs/DEPLOYMENT.md). */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg) var(--space-xl);
  margin: 0;
  /* A contained card, not a bare list floating on the section
     background — reads as a considered piece of design rather than "a
     database with CSS" (the risk explicitly flagged for this round). */
  background: var(--color-surface-raised);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}
.fact-row {
  display: flex; flex-direction: column; gap: 0.3rem;
  padding-top: var(--space-xs);
  border-top: var(--border-width) solid var(--color-border);
}
.fact-row dt, .fact-row dd { margin: 0; }
.fact-row dd { font-size: var(--text-base); font-weight: 600; color: var(--color-text); }

/* ---- Closing section ---- */
.closing {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: space-between;
  align-items: flex-start;
}
.closing__main h2 { margin-bottom: var(--space-sm); }
.closing__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.closing__routes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); }
.closing__routes a { font-weight: 600; text-decoration: none; }
.closing__routes a:hover { text-decoration: underline; }

/* ---- Tables (comparison / spec) ----
   One real <table> throughout — desktop gets a dense grid, narrow
   viewports get the same table restacked into a labelled block per row
   (data-label + ::before), never a horizontally-scrolling table. Screen
   readers keep correct header/row association at every width because
   the underlying markup never changes, only its visual presentation. */
.table-wrap { border: var(--border-width) solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.compare caption { text-align: left; padding: var(--space-sm); font-weight: 700; }
table.compare th, table.compare td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--border-width) solid var(--color-border);
  vertical-align: middle;
}
table.compare thead th { background: var(--color-surface); font-weight: 700; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover td { background: var(--color-primary-surface); }

/* Plan name and price are the two facts a buyer actually decides on —
   given real visual weight so they read as the row's anchor points
   rather than sitting at the same weight as every other cell (NN/g:
   explicit visual hierarchy speeds scanning in a spec-dense table). */
table.compare th[scope="row"] { font-size: var(--text-base); font-weight: 700; }
table.compare td[data-label="Price"] { font-weight: 700; font-size: var(--text-base); white-space: nowrap; }
table.compare td[data-label="Order"] { white-space: nowrap; }

tr.plan-table__group th {
  background: var(--color-surface);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 700;
  padding-block: var(--space-xs);
  border-left: 3px solid var(--color-primary);
}
tr.plan-table__group:hover td, tr.plan-table__group:hover th { background: var(--color-surface); }

/* Extra columns, real content already in the DOM, shown only where
   there's genuinely room for them — ultrawide gets more real
   information, not more margin (CLAUDE.md 2026-09-13 brief section 10). */
table.compare th.plan-table__wide-only,
table.compare td.plan-table__wide-only { display: none; }
@media (min-width: 1440px) {
  table.compare th.plan-table__wide-only,
  table.compare td.plan-table__wide-only { display: table-cell; }
}

@media (max-width: 767px) {
  table.compare thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: 100%; }
  table.compare tr { border-bottom: var(--border-width) solid var(--color-border); padding: var(--space-sm) 0; }
  table.compare tr:last-child { border-bottom: none; }
  table.compare th[scope="row"] {
    font-size: var(--text-lg); font-weight: 700; border: none; padding: 0 0 var(--space-2xs);
  }
  table.compare td {
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm);
    border: none; padding: var(--space-3xs) 0;
  }
  table.compare td::before { content: attr(data-label); font-weight: 600; color: var(--color-text-muted); flex-shrink: 0; }
  table.compare td[data-label="Order"] { display: block; margin-top: var(--space-xs); }
  table.compare td[data-label="Order"]::before { content: none; }
  table.compare td[data-label="Order"] .btn { width: 100%; }
  tr.plan-table__group { padding-top: var(--space-md); }
  tr.plan-table__group th { padding: 0; }
}

/* ---- FAQ (native <details>/<summary>) ---- */
.faq-list { max-width: var(--measure); margin-top: var(--space-md); }
.faq-item {
  border-bottom: var(--border-width) solid var(--color-border);
  padding-block: var(--space-sm);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
  min-height: 44px; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: 1.2em; color: var(--color-primary); font-weight: 700; }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { margin-top: var(--space-xs); }

/* ---- Billing cycles disclosure (always-open, on product/VPS pages) ---- */
.cycles-open h2 { margin-bottom: var(--space-sm); }
.cycles-list { list-style: none; margin: 0; padding: 0; }
.cycles-list li {
  display: flex; justify-content: space-between; gap: var(--space-sm);
  padding-block: var(--space-2xs); border-top: var(--border-width) dashed var(--color-border);
  font-size: var(--text-base);
}
.cycles-list li:first-child { border-top: none; }
.cycles-list .cycle-name { color: var(--color-text-muted); }
.cycles-list .cycle-amount { color: var(--color-text); font-weight: 600; }
.cycles-disclosure__setup { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2xs); }

/* ---- Product detail (and VPS) layout — sticky order sidebar at wide
   viewports (a well-tested e-commerce pattern): price/CTA stays visible
   while reading specs. Below 1024px there's no room for two columns, so
   it stacks in document order (sidebar first, main content after). ---- */
.product-detail-layout { display: block; }
.product-detail__sidebar { margin-bottom: var(--space-xl); }
/* --space-xl (not --space-2xl): four blocks (features/spec/cycles/
   compare-alert) at 96px apart read as oversized dead gaps on real
   visual QA, especially when a block's own content is short. 64px
   keeps a clear break between blocks without the empty-hallway feel. */
.product-detail__block { margin-bottom: var(--space-xl); }
.product-detail__block:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .product-detail-layout {
    display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: var(--space-2xl); align-items: start;
  }
  .product-detail__sidebar {
    position: sticky; top: calc(64px + var(--space-md));
    margin-bottom: 0; padding: var(--space-md); background: var(--color-surface-raised);
    border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg);
  }
}
.product-detail__head { margin: var(--space-sm) 0; }
.price-display { display: flex; align-items: baseline; gap: var(--space-3xs); margin: 0; }
.price-display strong { font-size: var(--text-2xl); color: var(--color-text); }
.price-display span { color: var(--color-text-muted); font-size: var(--text-sm); }
.product-detail__trust {
  margin: var(--space-md) 0 0; padding-top: var(--space-sm);
  border-top: var(--border-width) solid var(--color-border);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.feature-list { list-style: none; margin: 0; padding: 0; font-size: var(--text-base); }
.feature-list li { padding-block: var(--space-2xs); border-top: var(--border-width) solid var(--color-border); }
.feature-list li:first-child { border-top: none; }
.sibling-links { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-md); }
.sibling-link {
  display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box;
  color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm);
}
.sibling-link:hover { color: var(--color-primary); text-decoration: underline; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* ---- Contact page routes + company facts ---- */
.route-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}
.route-item {
  display: block; padding: var(--space-md);
  border: var(--border-width) solid var(--color-border); border-radius: var(--radius-lg);
  background: var(--color-surface-raised); text-decoration: none; color: var(--color-text);
  transition: border-color var(--duration-fast);
}
.route-item:hover { border-color: var(--color-primary); text-decoration: none; }
.route-item h3 { margin-bottom: var(--space-2xs); }
.route-item p { margin: 0; }
.company-facts { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--border-width) solid var(--color-border); }
.company-facts h2 { margin-bottom: var(--space-md); }

/* ---- Domains "how it works" list ---- */
.steps-list { max-width: var(--measure); padding-left: 1.25rem; }
.steps-list li { padding-block: var(--space-2xs); }

/* ---- 404 ---- */
.error-page { padding-block: var(--space-2xl); max-width: var(--measure); }
.error-page__links { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }

/* =====================================================================
   HOMEPAGE V2 (2026-09-17) — docs/reports/2026-09-17/…homepage-v2.md
   ===================================================================== */

/* ---- Dark-section colour scoping ----
   Redefines the same tokens base.css/components.css already read
   (--color-text, --color-text-muted, --color-link, --color-focus) on a
   section wrapper — every existing rule (headings, p, a, :focus-visible,
   .btn-ghost) adapts automatically with zero duplicated CSS. See
   tokens.css for the contrast ratios behind each value. */
.on-navy {
  background: var(--color-navy);
  color: var(--color-on-navy);
  --color-text: var(--color-on-navy);
  --color-text-muted: var(--color-on-navy-muted);
  --color-link: var(--color-on-navy);
  --color-focus: var(--color-cyan-accent);
  --color-border: rgba(244, 247, 251, 0.16);
  --color-border-strong: rgba(244, 247, 251, 0.4);
}
.on-navy .btn-primary { background: var(--color-on-navy); color: var(--color-navy); }
.on-navy .btn-primary:hover { background: #FFFFFF; }
.on-navy .btn-ghost { color: var(--color-on-navy); border-color: rgba(244, 247, 251, 0.4); }
.on-navy .btn-ghost:hover { border-color: var(--color-on-navy); color: var(--color-on-navy); }

.on-blue {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  --color-text: var(--color-text-on-primary);
  --color-text-muted: var(--color-on-blue-muted);
  --color-link: var(--color-text-on-primary);
  --color-focus: #FFFFFF;
  --color-border: rgba(255, 255, 255, 0.22);
  --color-border-strong: rgba(255, 255, 255, 0.5);
}
.on-blue .btn-primary { background: #FFFFFF; color: var(--color-primary-dark); }
.on-blue .btn-primary:hover { background: var(--color-on-blue-muted); }
.on-blue .btn-ghost { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.5); }
.on-blue .btn-ghost:hover { border-color: #FFFFFF; }

/* ---- Hero ---- */
.hero-v2 { padding-block: var(--space-2xl); overflow: hidden; }
.hero-v2__grid {
  display: grid;
  gap: var(--space-xl);
}
.hero-v2__eyebrow { color: var(--color-cyan-accent); }
.hero-v2 h1 { font-size: var(--text-4xl); max-width: 18ch; }
.hero-v2 .lede { max-width: 52ch; }
.hero-v2__tertiary {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  text-decoration: none;
}
.hero-v2__tertiary:hover { text-decoration: underline; }
.trust-micro-row {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: 600;
}
.trust-micro-row li { display: flex; align-items: center; gap: var(--space-2xs); }
.trust-micro-row li::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-cyan-accent);
  flex-shrink: 0;
}
/* Decorative only (aria-hidden in markup) — an abstract line-art
   composition, not a photo: no image asset exists yet (see the report's
   ASSET REQUEST LIST), and the hero must never depend on one loading
   (CLAUDE.md 2026-09-17 brief sections 109-110). Hidden below 1024px
   entirely — mobile hero is text-first (section 57), not a shrunk
   two-column layout. */
.hero-v2__visual { display: none; }
.hero-v2__visual-panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(244, 247, 251, 0.14);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(34, 211, 238, 0.10), transparent 55%),
    radial-gradient(rgba(244, 247, 251, 0.10) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(180deg, var(--color-navy-soft), var(--color-navy));
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(244, 247, 251, 0.06), var(--shadow-md);
}
.hero-v2__visual-panel svg { width: 68%; color: rgba(244, 247, 251, 0.55); }
.hero-v2__visual-panel svg .accent { color: var(--color-cyan-accent); }
@media (min-width: 1024px) {
  .hero-v2__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
  .hero-v2__visual { display: block; }
}

/* ---- Domain search band ---- */
.domain-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-sm);
  max-width: 40rem;
}
.domain-search-form input[type="text"] {
  flex: 1 1 14rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.6rem var(--space-sm);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font-mono);
  color: var(--color-text);
  background: var(--color-surface-raised);
}
.domain-search-form input[type="text"]:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 1px; }
.tld-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.tld-card {
  padding: var(--space-md);
  border: var(--border-width) solid var(--color-border-cool);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
  text-align: left;
}
.tld-card__tld { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-lg); display: block; }
.tld-card__price { display: block; margin-top: var(--space-3xs); font-size: var(--text-sm); color: var(--color-text-muted); }
.tld-card__price strong { color: var(--color-text); font-family: var(--font-mono); }

/* ---- /domains/ hero search panel (2026-09-17 UX polish pass) ----
   Mobile-first source order: copy first, search panel immediately
   after it in the DOM, so a stacked single-column layout already
   reads "text, then search" with no CSS reordering needed — the
   search panel is /domains/'s primary functionality, so it must never
   be visually or structurally buried on narrow viewports. */
.domains-hero__grid { display: grid; gap: var(--space-xl); align-items: start; }
.domains-hero__copy .hero-actions { margin-top: var(--space-lg); }
@media (min-width: 900px) {
  .domains-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.domain-search-panel {
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  border: var(--border-width) solid var(--color-border-cool);
  background:
    radial-gradient(rgba(36, 97, 217, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--color-surface-blue);
  box-shadow: var(--shadow-sm);
}
.domain-search-panel__icon { width: 26px; height: 26px; color: var(--color-primary); margin-bottom: var(--space-sm); }
.domain-search-panel h2 { font-size: var(--text-xl); margin: var(--space-3xs) 0 var(--space-2xs); }
.domain-search-panel > p { margin: 0; }
.domain-search-panel .domain-search-form { max-width: none; }
.domain-search-panel__helper { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---- Hosting plan preview cards ---- */
.plan-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.plan-preview-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  border: var(--border-width) solid var(--color-border-cool);
  border-radius: var(--radius-xl);
  background: var(--color-surface-raised);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-fast), transform var(--duration-fast);
}
.plan-preview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-preview-card h3 { margin: var(--space-2xs) 0 var(--space-3xs); font-size: var(--text-xl); }
.plan-preview-card h3 a { color: inherit; text-decoration: none; }
.plan-preview-card h3 a:hover { text-decoration: underline; }
.plan-preview-card__audience { font-size: var(--text-sm); min-height: 2.6em; }
.plan-preview-card .price-display { margin: var(--space-xs) 0 var(--space-sm); }
.plan-preview-card .price-display strong { font-size: var(--text-2xl); }
.plan-preview-card__specs {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  flex-grow: 1;
  font-size: var(--text-sm);
}
.plan-preview-card__specs li {
  padding-block: var(--space-3xs);
  border-top: var(--border-width) solid var(--color-border);
}
.plan-preview-card__specs li:first-child { border-top: none; }
.section__cta { margin-top: var(--space-lg); }

/* ---- VPS band ---- */
.vps-band { background: var(--color-surface-blue); }
.vps-band__grid { display: grid; gap: var(--space-xl); align-items: center; }
.vps-band__specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm) var(--space-lg);
  margin: var(--space-lg) 0;
}
.vps-band__specs div { display: flex; flex-direction: column; gap: 0.2rem; }
.vps-band__specs dt { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; color: var(--color-text-muted); }
.vps-band__specs dd { margin: 0; font-weight: 700; font-family: var(--font-mono); }
.vps-band__visual { display: none; }
.vps-band__visual-panel {
  border-radius: var(--radius-xl);
  border: var(--border-width) solid var(--color-border-cool);
  background:
    radial-gradient(rgba(36, 97, 217, 0.07) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--color-surface-raised);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.vps-band__visual-panel svg { width: 72%; color: var(--color-primary); }
@media (min-width: 1024px) {
  .vps-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vps-band__visual { display: block; }
}

/* ---- Why PIVIHOST cards ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.why-card { padding: var(--space-md) 0; }
.why-card__icon { width: 28px; height: 28px; color: var(--color-primary); margin-bottom: var(--space-sm); }
.why-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.why-card p { margin: 0; font-size: var(--text-sm); }

/* ---- Trust strip (dark band) ---- */
.trust-strip { padding-block: var(--space-lg); }
.trust-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  text-align: center;
}
.trust-strip__list li {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding-inline: var(--space-sm);
  border-left: var(--border-width) solid rgba(244, 247, 251, 0.2);
}
.trust-strip__list li:first-child { border-left: none; }
@media (max-width: 639px) {
  .trust-strip__list li { border-left: none; border-top: var(--border-width) solid rgba(244, 247, 251, 0.2); padding-top: var(--space-sm); }
  .trust-strip__list li:first-child { border-top: none; }
}

/* ---- Use-case cards ---- */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.use-case-card {
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  background: var(--color-surface-raised);
  border: var(--border-width) solid var(--color-border-cool);
}
.use-case-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.use-case-card p { margin: 0; font-size: var(--text-sm); }

/* ---- About ---- */
.about-grid { display: grid; gap: var(--space-xl); align-items: start; }
.about-grid__copy { max-width: var(--measure); }
.about-grid__copy p:not(.lede) { color: var(--color-text-muted); }
.about-grid__link { display: inline-block; margin-top: var(--space-sm); font-weight: 600; text-decoration: none; }
.about-grid__link:hover { text-decoration: underline; }
.about-grid__facts .fact-grid { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* ---- Final CTA band ---- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 20ch; margin-inline: auto; }
.final-cta .hero-actions { justify-content: center; margin-top: var(--space-lg); }

/* =====================================================================
   LEGAL PAGES (2026-09-17) — docs/reports/2026-09-17/…legal-foundation-v1.md
   Terms, Privacy, AUP, Domain Terms, Cookie Notice, Company page — one
   shared shell, render.py::render_legal_page(). Design brief: compact
   navy intro (not a marketing hero), readable content column, numbered
   sections via CSS counters (never hand-typed), on-page TOC, print-
   friendly, zero JS.
   ===================================================================== */

.legal-hero { padding-block: var(--space-lg) var(--space-xl); }
.legal-hero h1 { max-width: 22ch; }
.legal-hero .lede { max-width: 60ch; }
.legal-hero__eyebrow { color: var(--color-cyan-accent); }
.legal-hero__note { max-width: 60ch; font-size: var(--text-sm); }
.legal-hero__dates {
  display: flex; flex-wrap: wrap; gap: var(--space-lg);
  margin: var(--space-md) 0 0; padding-top: var(--space-md);
  border-top: 1px solid rgba(244, 247, 251, 0.16);
}
.legal-hero__dates div { display: flex; flex-direction: column; gap: 0.2rem; }
.legal-hero__dates dt { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.legal-hero__dates dd { margin: 0; font-weight: 700; }

.legal-layout { display: block; }
.legal-toc {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  border: 1px solid var(--color-border-cool);
  border-radius: var(--radius-lg);
  background: var(--color-surface-raised);
}
.legal-toc__title { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-sm); }
.legal-toc ol {
  list-style: none; margin: 0; padding: 0; counter-reset: legal-toc;
  display: flex; flex-direction: column; gap: var(--space-2xs);
}
.legal-toc li { counter-increment: legal-toc; font-size: var(--text-sm); }
.legal-toc a {
  display: block; min-height: 32px; text-decoration: none;
  color: var(--color-text); padding-block: 0.2rem;
}
.legal-toc a::before { content: counter(legal-toc) ". "; color: var(--color-primary); font-weight: 700; }
.legal-toc a:hover { color: var(--color-primary); text-decoration: underline; }

.legal-content { max-width: 74ch; counter-reset: legal-section; }
.legal-section { counter-increment: legal-section; scroll-margin-top: calc(64px + var(--space-md)); }
.legal-section + .legal-section { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-border); }
.legal-section h2::before { content: counter(legal-section) ". "; color: var(--color-primary); }
.legal-section h3 { margin-top: var(--space-md); }
.legal-content p, .legal-content li { max-width: 74ch; }
.legal-content table.compare { margin-block: var(--space-md); font-size: var(--text-sm); }
.legal-content ul, .legal-content ol { margin-bottom: var(--space-md); }

/* Terms §Definitions — a plain glossary <dl>, not the fact-grid card
   pattern (render.py::fact_list) used elsewhere for company facts; a
   glossary reads better as a simple flowing list within the article
   column than as a bordered card grid. */
.legal-definitions { margin: 0 0 var(--space-md); }
.legal-definitions dt { font-weight: 700; margin-top: var(--space-sm); }
.legal-definitions dt:first-child { margin-top: 0; }
.legal-definitions dd { margin: 0.2rem 0 0; color: var(--color-text-muted); }

.legal-callout {
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  border-left: 3px solid var(--color-primary);
  background: var(--color-primary-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
}
.legal-callout strong { color: var(--color-primary-dark); }

@media (min-width: 1024px) {
  .legal-layout {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
  }
  .legal-toc {
    position: sticky;
    top: calc(64px + var(--space-md));
    margin-bottom: 0;
    max-height: calc(100vh - 64px - var(--space-xl));
    overflow-y: auto;
  }
}

/* ---- Print (sections 74/111/142): full readable document, no chrome ---- */
@media print {
  .site-header, .site-footer, .breadcrumbs-wrap, .legal-toc, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-hero { background: #fff !important; color: #000 !important; padding-block: var(--space-md); }
  .legal-hero__eyebrow, .legal-hero h1, .legal-hero .lede, .legal-hero__dates dt, .legal-hero__dates dd { color: #000 !important; }
  .legal-hero__dates { border-top-color: #000; }
  .legal-layout { display: block; }
  .legal-content { max-width: none; }
  .legal-section { break-inside: avoid-page; }
  .legal-section + .legal-section { border-top-color: #000; }
  a { color: #000; text-decoration: underline; }
  .legal-callout { border-left-color: #000; background: #fff; }
}
