/* ProveStack site stylesheet. The build inlines these imports, in order, into one file. */
/*
 * IBM Plex Sans and Mono, Latin subset, served from this site (SIL Open Font License 1.1, see
 * assets/fonts/OFL.txt): no request leaves for a third-party font service.
 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

/*
 * Design read: an evidence ledger for small software vendors preparing for the CRA, ISO/IEC 27001, GDPR and
 * SOC 2. Calm, precise, factual, with an audit-record character: monospaced "record lines" (legal reference,
 * date, source, hash) attached to claims and screenshots, numbered ledger rows instead of feature cards.
 * Palette aligned with the product (apps/web/src/styles/tokens.css): white page, soft neutrals, one slate-blue
 * accent, muted status colours; colour is reserved for action and state.
 * Contrast (computed, WCAG 2.x): fg/bg 15.2, muted/bg 5.8, muted/sunken 5.4, subtle/sunken 5.0, accent/bg 6.5,
 * white/accent 6.5, fg/band 13.5, muted/band 5.2, status text on its subtle fill 5.1 or more, control
 * borders 3.1, focus ring (accent) 6.5. Dark: fg/bg 15.0, muted/surface 8.1, subtle/surface 6.3, accent/surface 9.1.
 */
:root {
  color-scheme: light;
  --bg: #ffffff;               /* page background */
  --surface: #ffffff;          /* panels, screenshot frames, forms */
  --surface-sunken: #f3f5f8;   /* insets: record lines, table heads, code */
  --fg: #1f2633;               /* body text and headings */
  --fg-muted: #5a6676;         /* secondary prose */
  --fg-subtle: #5f6b7b;        /* metadata and mono record lines */
  --border: #e6e8ec;           /* hairlines between groups */
  --border-strong: #8a93a1;    /* form control outlines (non-text 3:1) */
  --accent: #3f5f8f;           /* primary action, links, focus ring */
  --accent-hover: #34507a;     /* hover/pressed state of accent */
  --accent-subtle: #edf2f8;    /* selected option fill */
  --on-accent: #ffffff;        /* text on accent */
  --band-bg: #edf2f8;          /* soft band (closing CTA, key dates) */
  --band-fg: #1f2633;
  --band-muted: #5a6676;
  --band-accent: #3f5f8f;
  --band-border: #d3dce8;
  --ok: #2c7451;               /* confirmed, accepted, available */
  --ok-subtle: #ecf6f0;
  --warn: #8a5d0c;             /* uncertain, limited, in development */
  --warn-subtle: #fcf5e6;
  --danger: #b23b3b;           /* open, unresolved */
  --danger-subtle: #fbeeee;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --text-xs: 0.8125rem;                                  /* 13: mono labels, tags */
  --text-sm: 0.9375rem;                                  /* 15: captions, dense lists */
  --text-md: 1.0625rem;                                  /* 17: body */
  --text-lg: 1.3125rem;                                  /* 21: lead, h3 */
  --text-xl: 1.625rem;                                   /* 26: h3 large */
  --text-2xl: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);  /* 28-40: section titles */
  --text-3xl: clamp(2.125rem, 1.45rem + 3vw, 3.5rem);   /* 34-56: page titles */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(var(--space-8), 8vw, var(--space-9));

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-ring: 0 0 0 1px var(--border);
  --shadow-raised: 0 1px 2px rgb(31 38 51 / 4%), 0 14px 32px -18px rgb(31 38 51 / 18%);

  --duration-fast: 140ms;
  --duration-base: 200ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --container: 74rem;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #11151d;
    --surface: #171c26;
    --surface-sunken: #0d1118;
    --fg: #e6e9ef;
    --fg-muted: #aab3c2;
    --fg-subtle: #949eae;
    --border: #283040;
    --border-strong: #6b7586;
    --accent: #a9bfe0;
    --accent-hover: #c3d3ea;
    --accent-subtle: #1e2a3d;
    --on-accent: #11151d;
    --band-bg: #1a2231;
    --band-fg: #e6e9ef;
    --band-muted: #aab3c2;
    --band-accent: #a9bfe0;
    --band-border: #2e384a;
    --ok: #7fc8a2;
    --ok-subtle: #13261d;
    --warn: #e6c27a;
    --warn-subtle: #2a2210;
    --danger: #f0a3a3;
    --danger-subtle: #2c1616;
    --shadow-raised: 0 1px 2px rgb(0 0 0 / 40%), 0 18px 40px -18px rgb(0 0 0 / 70%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-3xl);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.3;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-md);
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-3);
}

.visually-hidden {
  position: absolute !important;
  left: 0; /* keep the 1px box inside the viewport when its static position is at a line end */
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-6));
}

/* Sections */
.section {
  padding-block: var(--section-y);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}

.section-head > * + * {
  margin-top: var(--space-4);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose {
  max-width: var(--measure);
  color: var(--fg-muted);
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

/* Page intro used by every inner page */
.page-intro {
  padding-block: var(--space-8) var(--space-7);
}

.page-intro > * + * {
  margin-top: var(--space-4);
}

.page-intro h1 {
  max-width: 22ch;
}

/* Two-column split: text and media. Stacks below 60rem. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-8);
  }

  .split-even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding-block: var(--space-7);
  border-top: 1px solid var(--border);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
}

@media (min-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1.4fr;
  }
}

.footer-brand {
  color: var(--fg);
  margin-bottom: var(--space-2);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--fg-muted);
}

.footer-legal > * + * {
  margin-top: var(--space-3);
}

/*
 * Header. Wide screens (>= 64rem): brand | nav | CTA in one row. Narrow screens: brand | CTA | menu
 * button, with the nav opening below as a full-width list. Without JavaScript (no "js" class on
 * <html>) the menu button is hidden and the nav stays visible as a wrapped row.
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: "brand cta menu" "nav nav nav";
  align-items: center;
  column-gap: var(--space-3);
  padding-block: var(--space-2);
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--fg);
  text-decoration: none;
}

.brand:hover {
  color: var(--fg);
}

.brand-mark {
  fill: currentColor;
  flex: none;
}

.brand-mark-top {
  fill: var(--accent);
}

.brand-name {
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand-by {
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  padding-top: 2px;
  white-space: nowrap;
}

.header-actions {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Language switch: a short visible code, followed by the language name for assistive technology. */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.lang-switch:hover {
  color: var(--fg);
  background: var(--surface-sunken);
}

.menu-toggle {
  grid-area: menu;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
}

.menu-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.js .menu-toggle {
  display: inline-grid;
}

.site-nav {
  grid-area: nav;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-1);
  margin: 0 calc(var(--space-2) * -1);
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-2);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--fg);
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

@media (max-width: 63.99rem) {
  .js .site-nav {
    display: none;
  }

  .js .site-header.is-open .site-nav {
    display: block;
    padding-top: var(--space-2);
  }

  .js .site-header.is-open .site-nav ul {
    flex-direction: column;
    margin: 0;
  }

  .js .site-header.is-open .site-nav a {
    display: flex;
    min-height: 48px;
    padding-inline: var(--space-3);
    font-size: var(--text-md);
    border-bottom: 1px solid var(--border);
  }

  .js .site-header.is-open .site-nav a[aria-current="page"] {
    border-bottom-color: var(--border);
    box-shadow: inset 3px 0 0 var(--accent);
  }
}

@media (min-width: 64rem) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav cta";
  }

  .js .menu-toggle {
    display: none;
  }

  .site-nav ul {
    flex-wrap: nowrap;
    justify-content: center;
    gap: var(--space-2);
  }
}

@media (max-width: 30rem) {
  .brand-by {
    display: none;
  }
}

/* Smallest phones: brand + CTA + menu do not fit; the pilot page stays reachable from the menu. */
@media (max-width: 22.5rem) {
  .header-inner .header-cta {
    display: none;
  }
}

/*
 * Capability status. Shape carries the status as well as colour: filled dot = available in the pilot,
 * half dot = in development, hollow dot = planned. The text label is always present.
 */
.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 2px var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.status::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  box-sizing: border-box;
}

.status-available::before {
  background: var(--ok);
}

.status-in_development::before {
  border: 1.5px solid var(--warn);
  background: linear-gradient(90deg, var(--warn) 50%, transparent 50%);
}

.status-planned::before {
  border: 1.5px solid var(--fg-subtle);
}

.status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.status-legend > span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Capability list: one status badge per line, then what it does. */
.caps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.caps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.caps .status {
  justify-self: start;
}

.caps strong {
  color: var(--fg);
  font-weight: 600;
}

@media (min-width: 40rem) {
  .caps li {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: var(--space-3);
    align-items: baseline;
  }
}

/* Concept panel: describes an in-development capability. Never styled like a product screenshot. */
.concept {
  padding: var(--space-5);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-sunken);
}

.concept > * + * {
  margin-top: var(--space-4);
}

.concept-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.concept-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

@media (min-width: 40rem) {
  .concept-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.concept h3 {
  font-size: var(--text-md);
  margin-bottom: var(--space-2);
}

.concept ol {
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.concept pre {
  margin: var(--space-2) 0 0;
  padding: var(--space-3);
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg);
}

.concept-foot {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.concept-head .status {
  text-transform: none;
  letter-spacing: 0;
}

/* CRA requirements page: summary strip, then one group per obligation family. */
.req-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--fg);
}

.req-summary > div {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.req-summary dt {
  order: 2;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.req-summary dd {
  order: 1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 500;
}

@media (min-width: 52rem) {
  .req-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--space-5);
  }

  .req-summary > div {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
}

.req-group {
  padding-block: var(--space-8) 0;
}

.req-group > h2 {
  font-size: var(--text-xl);
}

.req-group > .lead {
  margin-top: var(--space-2);
  font-size: var(--text-md);
}

.req-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.req {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.req > * + * {
  margin-top: var(--space-3);
}

.req-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  align-items: baseline;
}

@media (min-width: 52rem) {
  .req-head {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    gap: var(--space-4);
  }

  .req > .record {
    margin-left: calc(7.5rem + var(--space-4));
  }
}

.req-head .status {
  justify-self: start;
}

.req-code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
}

.req-head h3 {
  font-size: var(--text-lg);
}

.req-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

@media (min-width: 52rem) {
  .req-body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-6);
  }
}

.req-body h4 {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.req-body > div > p:not(.req-note, .req-limit) {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.req-note {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--fg-subtle);
}

.req-limit {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  font-size: var(--text-sm);
  color: var(--fg);
}

.req-sources {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  overflow-wrap: anywhere;
}

.req-callout {
  margin-top: var(--space-5);
}

.req-toc {
  margin-top: var(--space-5);
}

.req-groups {
  padding-bottom: var(--section-y);
}

.toc .count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

@media (min-width: 52rem) {
  .req-summary-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .req-summary-compact > div {
    grid-template-columns: 4rem minmax(0, 1fr);
    align-content: center;
  }
}

/* Buttons: one primary per view; secondary is outlined ink, never a second accent fill. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--text-md);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.btn-sm {
  min-height: 40px;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  text-decoration: none;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--fg);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.link-arrow {
  font-weight: 500;
  text-decoration: none;
}

.link-arrow::after {
  content: " \2192";
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Kicker: numbered ledger label above a section title. */
.kicker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.kicker-num {
  color: var(--accent);
  font-weight: 500;
}

/* Record line: the signature. Mono metadata separated by middots. */
.record {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--fg-subtle);
}

.record > * {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record > * + *::before {
  content: "\00b7";
  margin-right: var(--space-3);
  color: var(--border-strong);
}

.hash {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  overflow-wrap: anywhere;
}

/* Tags: small state labels. Colour carries state only, text always says it. */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  background: var(--surface-sunken);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.tag-ok {
  background: var(--ok-subtle);
  color: var(--ok);
  border-color: transparent;
}

.tag-warn {
  background: var(--warn-subtle);
  color: var(--warn);
  border-color: transparent;
}

.tag-danger {
  background: var(--danger-subtle);
  color: var(--danger);
  border-color: transparent;
}

/* Screenshot frame: a record header (path + fictional-data tag) above the real capture. */
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.shot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
  min-width: 0;
}

.shot-bar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot a {
  display: block;
}

.shot img {
  width: 100%;
  background: #f5f6fa;
}

.shot-caption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--fg-subtle);
}

.shot-phone {
  max-width: 300px;
  border-radius: 28px;
  padding: 10px;
  background: var(--band-bg);
  border-color: var(--band-border);
}

.shot-phone img {
  border-radius: 20px;
}

/* Bullets with a short rule instead of a dot: reads as a ledger entry. */
.ticks {
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.ticks li {
  position: relative;
  padding-left: var(--space-5);
  color: var(--fg-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}

.ticks strong {
  color: var(--fg);
  font-weight: 600;
}

/* Callout: honest limits and disclaimers. */
.callout {
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  background: var(--warn-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--fg);
}

.callout-neutral {
  border-color: var(--border);
  background: var(--surface-sunken);
}

/* Dark band: key dates and closing CTA. */
.band {
  background: var(--band-bg);
  color: var(--band-fg);
}

.band .lead,
.band .prose {
  color: var(--band-muted);
}

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

.band .kicker-num {
  color: var(--band-accent);
}

.band a:not(.btn) {
  color: var(--band-accent);
}

.band .btn-primary {
  background: var(--band-accent);
  color: var(--band-bg);
}

.band .btn-primary:hover {
  background: var(--band-fg);
}

.band .btn-secondary {
  background: transparent;
  color: var(--band-fg);
  border-color: var(--band-muted);
}

.band :focus-visible {
  outline-color: var(--band-accent);
}

/* Data table (components, obligations). Scrolls inside its own box, never the page. */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--surface-sunken);
  font-weight: 500;
  color: var(--fg-muted);
  white-space: nowrap;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* Hero: left-aligned copy, then the real product view at full container width. */
.hero {
  padding-block: var(--space-8) var(--space-8);
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  max-width: 50rem;
}

.hero-copy > * + * {
  margin-top: var(--space-5);
}

.hero-copy h1 {
  max-width: 20ch;
}

.hero-copy .btn-row {
  margin-top: var(--space-6);
}

.hero-shot {
  margin-top: var(--space-7);
}

/* At phone width the hero shows the real phone capture, cropped to its top. */
@media (max-width: 40rem) {
  .hero-shot img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top;
  }
}

/* Roles as a definition list with ruled rows. */
.roles {
  display: grid;
  border-top: 1px solid var(--border);
  margin-bottom: var(--space-5);
}

.roles > div {
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 40rem) {
  .roles > div {
    grid-template-columns: 9rem 1fr;
    gap: var(--space-4);
  }
}

.roles dt {
  font-weight: 600;
}

.roles dd {
  margin: 0;
  color: var(--fg-muted);
}

/* Ledger: numbered rows, not cards. */
.ledger {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--fg);
}

.ledger > li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.ledger-num {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  padding-top: 3px;
}

.ledger-body > * + * {
  margin-top: var(--space-2);
}

.ledger-body p {
  color: var(--fg-muted);
  max-width: 44rem;
}

.ledger-meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

@media (min-width: 60rem) {
  .ledger > li {
    grid-template-columns: 4rem minmax(0, 1fr) 15rem;
  }

  .ledger-meta {
    grid-column: 3;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 3px;
  }
}

/* How it works: a numbered sequence joined by a rule. */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: var(--space-5);
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-7);
}

.steps > li > * + * {
  margin-top: var(--space-2);
}

.steps > li p:not(.record) {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(1rem - 0.5px);
  top: 2.25rem;
  bottom: calc(var(--space-5) * -1 + 0.25rem);
  width: 1px;
  background: var(--border-strong);
}

.steps .record {
  flex-direction: column;
}

.steps .record > * + *::before {
  content: none;
}

.steps h3 {
  font-size: var(--text-md);
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .steps > li {
    padding-left: 0;
    padding-top: var(--space-7);
  }

  .steps > li:not(:last-child)::after {
    left: 2.5rem;
    right: calc(var(--space-5) * -1 + 0.5rem);
    top: 1rem;
    bottom: auto;
    width: auto;
    height: 1px;
  }
}

/* Six steps (the landing page's learning-to-report path) on one row. */
@media (min-width: 64rem) {
  .steps.steps-six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.steps-more {
  margin-top: var(--space-6);
}

/* Key dates */
.dates {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5);
}

.dates > li {
  padding-top: var(--space-4);
  border-top: 2px solid var(--band-border);
}

.dates time {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--band-fg);
  margin-bottom: var(--space-2);
}

.dates p {
  color: var(--band-muted);
  font-size: var(--text-sm);
}

@media (min-width: 52rem) {
  .dates {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dates-source {
  margin-top: var(--space-6);
  color: var(--band-muted);
}

/* Closing CTA */
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: end;
}

.cta > div > * + * {
  margin-top: var(--space-4);
}

.cta-note {
  font-size: var(--text-sm);
  color: var(--fg-subtle);
  max-width: var(--measure);
}

@media (min-width: 60rem) {
  .cta {
    grid-template-columns: 1fr auto;
  }
}

/* Product, security and pilot pages. */
.toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin-top: var(--space-2);
  list-style: none;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: var(--text-sm);
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent);
}

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

.feature-text > * + * {
  margin-top: var(--space-5);
}

@media (min-width: 60rem) {
  .feature-text {
    position: sticky;
    top: 6rem;
  }
}

.mobile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.mobile-row .shot-phone {
  justify-self: center;
  width: min(100%, 300px);
}

.mobile-row .section-head {
  margin-bottom: 0;
}

@media (min-width: 52rem) {
  .mobile-row {
    grid-template-columns: 300px 1fr;
    gap: var(--space-8);
  }
}

/* Controls grid on the security page: title, explanation, how it is enforced. */
.controls {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--fg);
}

.controls > article {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.controls p {
  color: var(--fg-muted);
  max-width: 44rem;
}

@media (min-width: 60rem) {
  .controls > article {
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: var(--space-7);
  }

  .controls > article > :not(h3) {
    grid-column: 2;
  }

  .controls > article > h3 {
    grid-row: span 2;
  }
}

/* "What we do not do" list */
.nots {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-5) var(--space-7);
}

@media (min-width: 52rem) {
  .nots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.nots li {
  padding-top: var(--space-4);
  border-top: 1px solid var(--fg);
}

.nots strong {
  display: block;
  margin-bottom: var(--space-1);
}

.nots span {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

/* Pilot page: two lists side by side, then the process. */
.pilot-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

@media (min-width: 52rem) {
  .pilot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pilot-cols h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-5);
}

.status-note {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  flex-wrap: wrap;
}

/* Product tour: wider media column so captured UI text stays legible; alternate sides for rhythm. */
@media (min-width: 60rem) {
  .feature .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-7);
  }

  .feature-flip .split {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  }

  .feature-flip .feature-text {
    order: 2;
  }
}

/* In the narrow text column of a feature, stack each status above its description. */
.feature-text .caps li {
  grid-template-columns: minmax(0, 1fr);
}

/* Two screenshots in one feature's media column: stacked, each with its own caption. */
.shot-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

/* Roadmap page: capabilities by status, then the framework sequence. */
.roadmap-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-7);
}

@media (min-width: 60rem) {
  .roadmap-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.roadmap-cols h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--fg);
  font-size: var(--text-md);
}

.roadmap-cols .ticks {
  font-size: var(--text-sm);
}

/* Framework track: numbered stations joined by a rule. */
.track {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  counter-reset: track;
}

.track > li {
  counter-increment: track;
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.track > li:first-child {
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.track > li > * + * {
  margin-top: var(--space-3);
}

.track h3::before {
  content: counter(track, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
}

.track p {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

@media (min-width: 52rem) {
  .track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .track > li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(var(--space-5) * -1);
    width: var(--space-5);
    height: 1px;
    background: var(--border-strong);
  }
}

.roadmap-notes {
  margin-top: var(--space-7);
}

/* CRA check: form on the left, live result on the right (sticky); stacked on phones. */
.check-section {
  padding-bottom: var(--section-y);
}

.check {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 64rem) {
  .check {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-7);
  }

  .result {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
  }
}

.check-help {
  color: var(--fg-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.q {
  margin: 0 0 var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  min-width: 0;
}

.q legend {
  display: flex;
  gap: var(--space-3);
  float: left;
  width: 100%;
  margin-bottom: var(--space-4);
  padding: 0;
  font-weight: 500;
  line-height: 1.45;
}

.q legend + * {
  clear: both;
}

.q-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent);
  padding-top: 1px;
}

.q-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease), background-color var(--duration-fast) var(--ease);
}

.opt:hover {
  border-color: var(--fg);
}

.opt input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--accent);
  flex: none;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-subtle);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Move the focus ring to the whole option only where :has() exists; otherwise the radio keeps its own. */
@supports selector(:has(*)) {
  .opt:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .opt input:focus-visible {
    outline-color: transparent;
  }
}

.check-actions {
  display: flex;
  justify-content: flex-end;
}

/* Result panel */
.result {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.result-outcome {
  margin-top: var(--space-2);
  padding-left: var(--space-3);
  border-left: 4px solid var(--warn);
  font-size: var(--text-xl);
}

.result-outcome[data-outcome="likely_in_scope"] {
  border-left-color: var(--accent);
}

.result-outcome[data-outcome="likely_out_of_scope"] {
  border-left-color: var(--border-strong);
}

.result-block {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.result-block h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.result-block .ticks {
  font-size: var(--text-sm);
  gap: var(--space-2);
}

.count {
  font-weight: 400;
  color: var(--fg-subtle);
}

.obligations {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.obligation-title {
  font-size: var(--text-sm);
  font-weight: 500;
}

.key-dates {
  margin-top: var(--space-4);
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.key-dates div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.key-dates dt {
  color: var(--fg-muted);
}

.key-dates dd {
  margin: 0;
  font-family: var(--font-mono);
}

.sources {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.result-next p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.result-disclaimer {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.result .record {
  margin-top: var(--space-2);
}

/* Phone-only shortcut to the result, hidden while the panel is on screen. */
.result-peek {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--band-bg);
  color: var(--band-fg);
  font-size: var(--text-sm);
  text-decoration: none;
  box-shadow: var(--shadow-raised);
}

.result-peek span {
  margin-left: auto;
  color: var(--band-accent);
}

.result-peek:hover {
  color: var(--band-fg);
}

.result-peek.is-covered {
  visibility: hidden;
}

@media (min-width: 64rem) {
  .result-peek {
    display: none;
  }
}

/* Explainer */
.explain {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-7);
}

@media (min-width: 52rem) {
  .explain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.explain article > * + * {
  margin-top: var(--space-3);
}

.explain p {
  color: var(--fg-muted);
}

.mini-dates {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  color: var(--fg-muted);
}

.mini-dates time {
  display: inline-block;
  min-width: 7.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--fg);
}

.explain-disclaimer {
  margin-top: var(--space-7);
}

@media (max-width: 63.99rem) {
  body:has(.result-peek:not([hidden])) .site-footer {
    padding-bottom: calc(var(--space-7) + 4rem);
  }
}

/* Demo journey: sticky step index beside the steps on wide screens, plain list above them on phones. */
.journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  padding-bottom: var(--section-y);
}

@media (min-width: 64rem) {
  .journey {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--space-8);
  }

  .journey-nav {
    position: sticky;
    top: 6rem;
    align-self: start;
  }
}

.journey-nav ol {
  list-style: none;
  padding: 0;
  counter-reset: jstep;
  border-left: 1px solid var(--border);
}

.journey-nav li {
  counter-increment: jstep;
}

.journey-nav a {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-height: 40px;
  padding-left: var(--space-4);
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--fg-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.journey-nav a::before {
  content: counter(jstep);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

.journey-nav a:hover {
  color: var(--fg);
}

.journey-nav a[aria-current] {
  color: var(--fg);
  font-weight: 500;
  border-left-color: var(--accent);
}

.journey-nav a[aria-current]::before {
  color: var(--accent);
}

.step {
  padding-block: var(--space-7);
  border-top: 1px solid var(--border);
}

.step:first-child {
  border-top: 0;
  padding-top: 0;
}

.step > * + * {
  margin-top: var(--space-5);
}

.step-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.step > h2 {
  margin-top: var(--space-2);
  font-size: var(--text-xl);
}

.step-intro {
  color: var(--fg-muted);
  max-width: var(--measure);
}

/* Facts: key/value record */
.facts {
  display: grid;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: var(--text-sm);
}

.facts > div {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.facts > div:last-child {
  border-bottom: 0;
}

@media (min-width: 40rem) {
  .facts > div {
    grid-template-columns: 10rem minmax(0, 1fr);
    gap: var(--space-4);
  }
}

.facts dt {
  color: var(--fg-subtle);
}

.facts dd {
  margin: 0;
  min-width: 0;
}

.cell-note {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--fg-subtle);
}

/* Findings from the packet */
.findings {
  display: grid;
  gap: var(--space-4);
}

.finding {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--surface);
}

.finding-uncertain {
  border-left-color: var(--warn);
  border-left-style: dashed;
}

.finding > * + * {
  margin-top: var(--space-3);
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.finding h3 {
  font-size: var(--text-md);
  overflow-wrap: anywhere;
}

.finding-summary {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.finding .ticks {
  font-size: var(--text-sm);
  gap: var(--space-2);
}

/* Journal: timeline of recorded events */
.journal {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--border-strong);
  margin-left: var(--space-2);
}

.journal li {
  position: relative;
  padding: 0 0 var(--space-3) var(--space-5);
}

.journal li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 2px solid var(--accent);
}

.journal-label {
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Packet card */
.packet {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-top: 3px solid var(--fg);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}

.packet > * + * {
  margin-top: var(--space-4);
}

.packet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.packet-title {
  font-family: var(--font-mono);
  font-weight: 500;
}

.packet-sub {
  font-size: var(--text-sm);
  padding-top: var(--space-3);
}

.unresolved {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.unresolved li {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.unresolved-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}

/* Pricing: offer columns, storage extensions and FAQ. One status badge per capability, none on terms. */
.status-on_request::before {
  border-radius: 2px;
  background: var(--accent);
}

.offers {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 60rem) {
  .offers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.offer {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.offer h3 {
  font-size: var(--text-xl);
}

.offer-summary {
  color: var(--fg-muted);
}

.offer-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.offer-amount {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.offer-unit {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.offer-features {
  flex: 1;
  align-content: start;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.offer-term {
  position: relative;
  padding-left: var(--space-4);
}

.offer-term::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--fg-subtle);
}

.offer-cta {
  align-self: flex-start;
}

.pricing-terms {
  margin-top: var(--space-4);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.faq {
  display: grid;
  gap: var(--space-2);
  max-width: var(--measure);
}

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

.faq summary {
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--fg-muted);
}

/* In an offer column, each status sits above its text. */
.offer-features li {
  grid-template-columns: minmax(0, 1fr);
}

/* News block, news list, one entry, and the screenshot gallery. */
.feed-items {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

@media (min-width: 60rem) {
  .feed-items:not(.feed-items-page) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feed-item {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
}

.feed-item h2,
.feed-item h3 {
  font-size: var(--text-lg);
}

.feed-item a {
  color: var(--fg);
}

.feed-item p:last-child {
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.feed-empty {
  color: var(--fg-muted);
}

.feed-more {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
}

.feed-filter ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.feed-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--fg-muted);
  font-size: var(--text-sm);
  text-decoration: none;
}

.feed-filter a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--fg);
}

.entry {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-7);
  max-width: calc(var(--measure) + 2 * var(--space-5));
}

.entry-body {
  display: grid;
  gap: var(--space-4);
}

.entry-body h2 {
  font-size: var(--text-xl);
}

.entry-body ul,
.entry-body ol {
  padding-left: var(--space-5);
}

.entry-body blockquote {
  margin: 0;
  padding-left: var(--space-4);
  border-left: 3px solid var(--border-strong);
  color: var(--fg-muted);
}

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6) var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 56rem) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery figcaption {
  margin-top: var(--space-2);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

/* Contact form, form messages, the "site in preparation" notice and the legal pages. */
.prep-notice {
  margin: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--warn-subtle);
  color: var(--warn);
  font-size: var(--text-sm);
  text-align: center;
}

.contact-form,
.admin-form {
  display: grid;
  gap: var(--space-4);
  max-width: var(--measure);
}

.field {
  display: grid;
  gap: var(--space-1);
}

.field label {
  font-weight: 500;
}

.field-required {
  color: var(--fg-subtle);
  font-size: var(--text-sm);
  font-weight: 400;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: var(--text-sm);
}

.field-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: var(--space-3);
}

.field-check .field-error {
  grid-column: 1 / -1;
}

.field-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.field-check label {
  font-weight: 400;
}

/* Honeypot: out of sight and out of the tab order. People never fill it; bots often do. */
.field-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors,
.form-notice {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--danger);
  border-radius: var(--radius-md);
  background: var(--danger-subtle);
  color: var(--danger);
}

.form-errors ul {
  margin-top: var(--space-2);
  padding-left: var(--space-5);
}

.form-errors a {
  color: inherit;
}

.legal-list {
  display: grid;
  gap: var(--space-3);
  max-width: var(--measure);
}

.legal-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-1);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 40rem) {
  .legal-list div {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

.legal-list dt {
  color: var(--fg-muted);
}

.prose-block {
  display: grid;
  gap: var(--space-4);
  max-width: var(--measure);
}

.prose-block h2 {
  margin-top: var(--space-4);
  font-size: var(--text-xl);
}

.prose-block ul {
  padding-left: var(--space-5);
}

mark.placeholder {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--warn-subtle);
  color: var(--warn);
}

.section-tight {
  padding-bottom: var(--section-y);
}

