/*
 * The website's one stylesheet.
 *
 * Tokens first, with the same names and values as the application's
 * Malachite and Gold theme (apps/web-shell/app/globals.css), light and dark,
 * then the few the website adds for its dark bands. Nothing below the token
 * blocks names a colour: every rule reads a token (ADR-022). The test suite
 * checks that.
 *
 * Fonts are the application's own files, served from this site, never from a
 * third party: Schibsted Grotesk and JetBrains Mono.
 */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The application's tokens: Malachite and Gold, light. */
  --background: 126 12% 96.5%;
  --foreground: 144 18% 11%;
  --card: 0 0% 100%;
  --primary: 159 68% 25%;
  --primary-foreground: 0 0% 100%;
  --muted-foreground: 136 8% 39%;
  --accent: 148 33% 92%;
  --accent-foreground: 158 70% 17%;
  --border: 128 14% 89%;
  --ring: 159 68% 25%;
  --kbs-gold: 40 61% 45%;
  --kbs-gold-soft: 42 67% 89%;
  --kbs-panel: 158 62% 11%;
  --kbs-panel-foreground: 140 24% 95%;
  --info: 213 40% 40%;
  --info-soft: 213 45% 92%;
  --warning: 41 92% 30%;
  --warning-soft: 43 65% 90%;

  /* The website's own: words and lines on the dark bands, the call to
     action, and text inks dark enough to read on each payer's tint. */
  --panel-muted: 149 18% 81%;
  --panel-subtle: 149 15% 71%;
  --panel-line: 157 33% 26%;
  --panel-raised: 159 59% 15%;
  --cta: 41 70% 60%;
  --cta-foreground: 45 54% 7%;
  --gold-text: 41 74% 27%;
  --payer-employee-ink: 158 70% 17%;
  --payer-department-ink: 222 59% 28%;
  --payer-contractor-ink: 40 84% 20%;
  --shadow: 158 62% 4%;

  --radius: 0.5rem;
  --radius-control: 0.375rem;
  --font-sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* The application's tokens: Malachite and Gold, dark. */
    --background: 150 14% 8%;
    --foreground: 140 12% 92%;
    --card: 150 12% 11%;
    --primary: 157 42% 52%;
    --primary-foreground: 152 30% 8%;
    --muted-foreground: 140 7% 62%;
    --accent: 156 24% 19%;
    --accent-foreground: 150 35% 80%;
    --border: 150 9% 19%;
    --ring: 157 42% 52%;
    --kbs-gold: 42 60% 55%;
    --kbs-gold-soft: 42 30% 20%;
    --kbs-panel: 156 28% 12%;
    --kbs-panel-foreground: 140 12% 92%;
    --info: 213 45% 65%;
    --info-soft: 213 30% 18%;
    --warning: 41 70% 55%;
    --warning-soft: 42 35% 16%;

    --panel-muted: 140 9% 74%;
    --panel-subtle: 140 7% 62%;
    --panel-line: 150 12% 22%;
    --panel-raised: 155 22% 15%;
    --gold-text: 42 60% 65%;
    --payer-employee-ink: 150 35% 80%;
    --payer-department-ink: 213 45% 80%;
    --payer-contractor-ink: 42 60% 75%;
    --shadow: 150 30% 2%;
    color-scheme: dark;
  }
}

@media print {
  /* Paper: the dark bands print as words on white. */
  :root {
    --background: 0 0% 100%;
    --kbs-panel: 0 0% 100%;
    --kbs-panel-foreground: 144 18% 11%;
    --panel-muted: 136 8% 39%;
    --panel-subtle: 136 8% 39%;
    --panel-line: 128 14% 89%;
    --panel-raised: 0 0% 100%;
    --cta: 0 0% 100%;
    --cta-foreground: 144 18% 11%;
    color-scheme: light;
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

a {
  color: hsl(var(--primary));
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.section-panel :focus-visible,
.site-footer :focus-visible {
  outline-color: hsl(var(--cta));
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.375rem, 5vw, 3.875rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-control);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.draft-banner {
  padding: 0.5rem clamp(16px, 4vw, 32px);
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--warning-soft));
  color: hsl(var(--foreground));
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.stack > * + * {
  margin-top: 1.25rem;
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.section {
  padding-block: clamp(4rem, 9vw, 6rem);
}

.section-raised {
  border-block: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.site-header,
.hero,
.section-panel,
.site-footer,
.flow-start {
  background: hsl(var(--kbs-panel));
  color: hsl(var(--kbs-panel-foreground));
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 45rem;
}

.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 4rem;
}

.split-head > * {
  flex: 1 1 24rem;
  min-width: 0;
}

.narrow-heading,
.page-narrow {
  max-width: 45rem;
}

.page-narrow {
  margin-inline: auto;
}

/* ── Type helpers ─────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--primary));
}

.eyebrow-gold {
  color: hsl(var(--cta));
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.55;
}

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

.on-panel-muted {
  color: hsl(var(--panel-muted));
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.button-lg {
  min-height: 3.25rem;
  padding: 0 1.5rem;
  font-size: 1rem;
}

.button-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.button-primary:hover {
  background: hsl(var(--accent-foreground));
  color: hsl(var(--primary-foreground));
}

.button-outline {
  border-color: hsl(var(--primary));
  background: transparent;
  color: hsl(var(--accent-foreground));
}

.button-outline:hover {
  background: hsl(var(--card));
  color: hsl(var(--accent-foreground));
}

.button-cta {
  background: hsl(var(--cta));
  color: hsl(var(--cta-foreground));
  font-weight: 700;
}

.button-cta:hover {
  color: hsl(var(--cta-foreground));
  filter: brightness(1.07);
}

.button-ghost {
  border-color: hsl(var(--panel-line));
  color: hsl(var(--kbs-panel-foreground));
}

.button-ghost:hover {
  background: hsl(var(--panel-raised));
  color: hsl(var(--kbs-panel-foreground));
}

.icon {
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 1.125rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: hsl(var(--kbs-panel-foreground));
  text-decoration: none;
}

.brand:hover {
  color: hsl(var(--kbs-panel-foreground));
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-control);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 1rem;
  font-weight: 700;
}

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

.brand-suite {
  font-weight: 500;
  color: hsl(var(--panel-subtle));
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.site-nav a {
  padding-block: 0.625rem;
  color: hsl(var(--panel-muted));
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: hsl(var(--kbs-panel-foreground));
  text-decoration: underline;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid hsl(var(--panel-line));
  border-radius: var(--radius-control);
}

.lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: hsl(var(--panel-muted));
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-option[aria-current] {
  background: hsl(var(--kbs-panel-foreground));
  color: hsl(var(--kbs-panel));
}

a.lang-option:hover {
  background: hsl(var(--panel-raised));
  color: hsl(var(--kbs-panel-foreground));
}

/* ── Hero and the example record ──────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(4rem, 9vw, 6.5rem);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem;
}

.hero-copy {
  display: flex;
  flex: 1 1 28rem;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.hero-copy .actions {
  padding-top: 0.5rem;
}

.hero-note {
  color: hsl(var(--panel-subtle));
  font-size: 0.875rem;
}

.record-card {
  display: flex;
  flex: 1 1 24rem;
  flex-direction: column;
  gap: 1.125rem;
  min-width: 0;
  max-width: 32.5rem;
  padding: 1.625rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  box-shadow: 0 24px 60px hsl(var(--shadow) / 0.35);
}

.record-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.record-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.code-chip {
  display: inline-block;
  padding: 0.3125rem 0.5625rem;
  border-radius: var(--radius-control);
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.record-lines {
  width: 100%;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-control);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}

.record-lines th,
.record-lines td {
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid hsl(var(--border));
}

.record-lines tr:last-child th,
.record-lines tr:last-child td {
  border-bottom: 0;
}

.record-lines th {
  font-weight: 400;
  text-align: left;
}

.record-lines td {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.ways {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.way {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6875rem 0.875rem;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
}

.way-label {
  flex: 1;
  font-weight: 600;
}

.way-who {
  font-size: 0.8125rem;
}

/* Each payer has a tint, an ink and a shape: the shape says it too. */
.way-employee,
.tag-employee {
  background: hsl(var(--accent));
  color: hsl(var(--payer-employee-ink));
}

.way-department,
.tag-department {
  background: hsl(var(--info-soft));
  color: hsl(var(--payer-department-ink));
}

.way-contractor,
.tag-contractor {
  background: hsl(var(--kbs-gold-soft));
  color: hsl(var(--payer-contractor-ink));
}

.mark {
  display: inline-block;
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
}

.mark-employee,
.mark-dot {
  border-radius: 50%;
}

.mark-department {
  border-radius: 2px;
}

.mark-contractor,
.mark-diamond {
  transform: rotate(45deg);
}

.mark-employee {
  background: hsl(var(--primary));
}

.mark-department {
  background: hsl(var(--info));
}

.mark-contractor {
  background: hsl(var(--warning));
}

/* ── Audience ─────────────────────────────────────────────────────────── */

.audience {
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.audience-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.25rem;
  padding-block: 1.75rem;
}

.audience-title {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.25rem;
}

.audience-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.audience-list li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: hsl(var(--kbs-gold));
  content: '';
}

/* ── Product ──────────────────────────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
}

.card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.875rem;
}

.pillar h3 {
  font-size: 1.5rem;
}

.pillar-number {
  color: hsl(var(--gold-text));
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.checks li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
}

.icon-check {
  margin-top: 2px;
  color: hsl(var(--primary));
}

/* ── Settlement ───────────────────────────────────────────────────────── */

.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1.25rem;
}

.flow-start {
  display: flex;
  flex: 1 1 15rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.75rem;
  border-radius: var(--radius);
}

.flow-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
}

.payers {
  display: grid;
  flex: 3 1 35rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.75rem), 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.payer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.625rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
}

.payer h3 {
  font-size: 1.25rem;
}

.tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payer-out {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  font-size: 0.8125rem;
}

/* ── Platform ─────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.75rem), 1fr));
  gap: 2.25rem 3rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1.125rem;
  border-top: 2px solid hsl(var(--primary));
}

/* ── Security ─────────────────────────────────────────────────────────── */

.locks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr));
  gap: 1.25rem;
}

.lock {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--panel-line));
  border-radius: var(--radius);
  background: hsl(var(--panel-raised));
}

.environments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  padding: 1.75rem;
  border: 1px solid hsl(var(--panel-line));
  border-radius: var(--radius);
}

.environments-copy {
  display: flex;
  flex: 1 1 26rem;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.environments-copy h3 {
  font-size: 1.375rem;
}

.environment-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* The marks every environment carries in the application: production a
   dot, the sandbox a diamond (ADR-036). */
.environment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-control);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.environment-production {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.environment-production .mark {
  background: hsl(var(--primary-foreground));
}

.environment-sandbox {
  background: hsl(var(--cta));
  color: hsl(var(--cta-foreground));
}

.environment-sandbox .mark {
  background: hsl(var(--cta-foreground));
}

/* ── A customer, in their words ───────────────────────────────────────── */

.quote {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 53.75rem;
}

.quote blockquote p {
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

.quote figcaption {
  color: hsl(var(--muted-foreground));
}

/* ── Call to action ───────────────────────────────────────────────────── */

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem 3rem;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--accent));
}

.cta-copy {
  display: flex;
  flex: 1 1 28rem;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.cta-copy h2 {
  color: hsl(var(--accent-foreground));
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.cta-copy p {
  color: hsl(var(--accent-foreground));
  font-size: 1.0625rem;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: 4rem 2.5rem;
  color: hsl(var(--panel-muted));
}

.footer-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem 4rem;
}

.footer-brand {
  display: flex;
  flex: 2 1 17.5rem;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.footer-brand .brand-name {
  color: hsl(var(--kbs-panel-foreground));
}

.footer-brand .on-panel-muted {
  max-width: 21.25rem;
  font-size: 0.875rem;
}

.footer-col {
  flex: 1 1 9.5rem;
  min-width: 0;
}

.footer-title {
  padding-bottom: 0.375rem;
  color: hsl(var(--kbs-panel-foreground));
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-col a,
.footer-base a {
  display: inline-block;
  padding-block: 0.375rem;
  color: hsl(var(--panel-muted));
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-col a:hover,
.footer-base a:hover {
  color: hsl(var(--kbs-panel-foreground));
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--panel-line));
  font-size: 0.8125rem;
}

/* ── Legal pages and the missing page ─────────────────────────────────── */

.legal-part {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.legal-part h2 {
  font-size: 1.375rem;
}

.notice {
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--kbs-gold));
  border-radius: var(--radius-control);
  background: hsl(var(--card));
}

.code-chip-muted {
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
}

/* ── Narrow screens, motion, print ────────────────────────────────────── */

@media (max-width: 920px) {
  /* The sections are one scroll away, and listed again in the footer. */
  .site-nav {
    display: none;
  }
}

@media (max-width: 520px) {
  .header-demo {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

@media print {
  .skip,
  .draft-banner,
  .site-nav,
  .header-actions {
    display: none;
  }

  .record-card {
    box-shadow: none;
  }
}
