/* Wimnova site styles.
   Tokens first, then base, layout, components, pages. Mobile-first. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Colour: the navy and teal are sampled from the Wimnova logo. */
  --bg: #030c1a;
  --surface: #081526;
  --surface-2: #0e1e33;
  --line: #1b2c43;
  --line-strong: #2a3f5c;
  --text: #eef2f6;
  --muted: #a3b1c2;
  --accent: #1eb9c8;
  --accent-hover: #4dcbd8;
  --accent-ink: #02131b;
  --danger: #ff9b8a;
  --amber: #e7b765;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
  --step-4: clamp(2.375rem, 1.3rem + 4.8vw, 4.5rem);

  --space-section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --container: 75rem;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 12px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

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

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
fieldset { border: 0; padding: 0; min-width: 0; }

h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: var(--step-4); line-height: 1.04; letter-spacing: -0.028em; }
h2 { font-size: var(--step-3); line-height: 1.1; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-hover); }

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

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(46rem + 2 * var(--gutter)); }
.narrow > * + * { margin-top: 1.25rem; }
.narrow > h2 { margin-bottom: 0.5rem; }
.narrow p { color: var(--muted); }

.section { padding-block: var(--space-section); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-tight { padding-block: clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-section); }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head p, .split-head p { color: var(--muted); margin-top: 1.25rem; }
.section-foot { margin-top: 2.5rem; }

.split { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
@media (min-width: 60em) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .split-head { position: sticky; top: 7rem; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.75rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 0.9375rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 29.99em) { .btn-row { flex-direction: column; align-items: stretch; } }

.text-link { font-weight: 600; }

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

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(3, 12, 26, 0.92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(3, 12, 26, 0.78); backdrop-filter: blur(12px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 4.5rem; column-gap: 1.5rem; }
.logo-link { display: inline-flex; padding-block: 0.5rem; }
.logo-img { width: 10.5rem; height: auto; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 2rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.75rem; }
.site-nav ul a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--text); }
.site-nav ul a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 53.99em) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
  .nav-toggle-bars { display: grid; gap: 5px; width: 18px; }
  .nav-toggle-bars span { display: block; height: 1.5px; background: currentColor; transition: transform 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1rem; padding-block: 0.5rem 1.5rem; }
  .site-nav.site-nav { display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: flex; min-height: 3.25rem; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .site-nav .btn { width: 100%; min-height: 3rem; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--space-section); }
.hero-copy { max-width: 68rem; }
.hero h1 { text-wrap: wrap; }
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem); line-height: 1.55; color: var(--muted); max-width: 42rem; margin-top: 1.5rem; }
.hero .btn-row { margin-top: 2.25rem; }

.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2rem, 1.5rem + 3vw, 4rem); }
.page-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem); max-width: 22ch; }
.page-hero .btn-row { margin-top: 2.25rem; }
.not-found { min-height: 60vh; }

/* ---------- Dashboard visual ---------- */

.dash-figure { margin-top: clamp(3rem, 2rem + 4vw, 5rem); }
.dash-figure figcaption { margin-top: 0.875rem; font-size: var(--step--1); color: var(--muted); }
.dash { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; }
.dash-inner { font-size: 0.8125rem; line-height: 1.4; }

.dash-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1.25rem; border-bottom: 1px solid var(--line); }
.dash-title { font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.dash-range { color: var(--muted); white-space: nowrap; }
.dash-demo { margin-left: auto; padding: 0.2rem 0.6rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 0.75rem; white-space: nowrap; }

.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.dash-stat { padding: 1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dash-stat:nth-child(2n) { border-right: 0; }
.dash-stat:nth-last-child(-n + 2) { border-bottom: 0; }
.dash-stat-label { color: var(--muted); }
.dash-stat-value { font-family: var(--font-display); font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.dash-stat-note { color: var(--muted); font-size: 0.75rem; margin-top: 0.125rem; }

.dash-grid { display: grid; }
.dash-panel { padding: 1.25rem; border-bottom: 1px solid var(--line); min-width: 0; }
.dash-panel:last-child { border-bottom: 0; }
.panel-title { font-weight: 600; margin-bottom: 0.875rem; }

.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.stage { min-width: 0; }
.stage-head { display: flex; justify-content: space-between; gap: 0.5rem; color: var(--muted); padding-bottom: 0.5rem; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line-strong); }
.stage-count { color: var(--text); font-variant-numeric: tabular-nums; }
.stage:last-child .stage-head { border-bottom-color: var(--accent); }
.deal { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.5rem 0.625rem; }
.deal + .deal { margin-top: 0.375rem; }
.deal-who { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-what { color: var(--muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: start; padding-block: 0.625rem; border-bottom: 1px solid var(--line); }
.feed-item:first-child { padding-top: 0; }
.feed-item:last-child { border-bottom: 0; padding-bottom: 0; }
.feed-dot { width: 0.5rem; height: 0.5rem; margin-top: 0.375rem; border-radius: 50%; background: var(--line-strong); }
.is-missed .feed-dot { background: var(--amber); }
.is-booked .feed-dot { background: var(--accent); }
.feed-title { font-weight: 500; }
.is-booked .feed-title { color: var(--accent); }
.feed-detail { color: var(--muted); font-size: 0.75rem; }
.feed-time { color: var(--muted); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; align-items: end; height: 8.5rem; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 0.375rem; height: 100%; text-align: center; }
.bar { display: block; background: var(--line-strong); border-radius: 3px 3px 0 0; }
.bar-1 { height: 34%; } .bar-2 { height: 52%; } .bar-3 { height: 47%; } .bar-4 { height: 76%; background: var(--accent); }
.bar-value { font-variant-numeric: tabular-nums; }
.bar-label { color: var(--muted); font-size: 0.75rem; }

@media (min-width: 40em) {
  .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-stat, .dash-stat:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .dash-stat:last-child { border-right: 0; }
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 60em) {
  .dash-inner { font-size: 0.875rem; }
  .dash-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto; }
  .dash-pipeline { grid-column: 1; grid-row: 1; }
  .dash-revenue { grid-column: 1; grid-row: 2; border-bottom: 0; }
  .dash-feed { grid-column: 2; grid-row: 1 / span 2; border-left: 1px solid var(--line); border-bottom: 0; }
  .dash-stat { padding: 1.25rem 1.5rem; }
  .dash-panel { padding: 1.5rem; }
  .dash-bar { padding-inline: 1.5rem; }
}

/* One orchestrated moment: the follow-up thread plays in on load. */
@media (prefers-reduced-motion: no-preference) {
  .feed-item { opacity: 0; transform: translateY(6px); animation: feed-in 0.5s ease forwards; }
  .feed-item:nth-child(1) { animation-delay: 0.5s; }
  .feed-item:nth-child(2) { animation-delay: 1.1s; }
  .feed-item:nth-child(3) { animation-delay: 1.9s; }
  .feed-item:nth-child(4) { animation-delay: 2.5s; }
  .feed-item:nth-child(5) { animation-delay: 3.3s; }
  @keyframes feed-in { to { opacity: 1; transform: none; } }
}

/* ---------- Content components ---------- */

.ruled-list > li { padding-block: 1.5rem; border-top: 1px solid var(--line-strong); }
.ruled-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.ruled-list p { color: var(--muted); margin-top: 0.375rem; max-width: 38rem; }

.icon { color: var(--accent); width: 1.75rem; height: 1.75rem; }

.feature-grid { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.feature-grid > li { padding: 1.75rem 0; border-bottom: 1px solid var(--line-strong); }
.feature-grid h3 { margin-top: 1rem; }
.feature-grid h3 a { color: var(--text); text-decoration: none; }
.feature-grid h3 a:hover { color: var(--accent); text-decoration: underline; }
.feature-grid p { color: var(--muted); margin-top: 0.5rem; font-size: 1rem; }
.feature-grid .feature-benefit { color: var(--text); font-weight: 500; }
@media (min-width: 40em) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
}
@media (min-width: 68em) {
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; }
}

.flow { counter-reset: flow; }
.flow > li { counter-increment: flow; position: relative; display: grid; gap: 0.25rem; padding: 0 0 2rem 3.25rem; }
.flow > li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.875rem; font-weight: 600; color: var(--text); background: var(--bg); }
.flow > li::after { content: ""; position: absolute; left: calc(1rem - 0.5px); top: 2rem; bottom: 0; width: 1px; background: var(--line-strong); }
.flow > li:last-child { padding-bottom: 0; }
.flow > li:last-child::after { display: none; }
.flow > li:nth-child(3)::before { border-color: var(--accent); color: var(--accent); }
.flow-step { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.flow-note { color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 2.5rem; }
.steps > li { counter-increment: step; padding-top: 1.25rem; border-top: 1px solid var(--line-strong); }
.steps > li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; color: var(--accent); letter-spacing: -0.02em; margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); margin-top: 0.5rem; font-size: 1rem; }
@media (min-width: 40em) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; } }
@media (min-width: 68em) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 2.5rem; } }

.handoff { display: grid; gap: 2.5rem; }
@media (min-width: 40em) { .handoff { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.handoff h3 { padding-bottom: 1rem; border-bottom: 1px solid var(--line-strong); }
.tick-list > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
.tick { color: var(--accent); margin-top: 0.3rem; }
.tick-list-muted .tick { color: var(--muted); }

.timeline { counter-reset: tl; }
.timeline > li { counter-increment: tl; position: relative; padding: 0 0 2.5rem 3.5rem; }
.timeline > li::before { content: counter(tl); position: absolute; left: 0; top: -0.125rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 600; font-size: 0.9375rem; background: var(--bg); }
.timeline > li::after { content: ""; position: absolute; left: calc(1.125rem - 0.5px); top: 2.125rem; bottom: 0; width: 1px; background: var(--line-strong); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline p { color: var(--muted); margin-top: 0.5rem; }

.jump-nav ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.375rem 0.875rem; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); text-decoration: none; font-size: 0.9375rem; }
.jump-nav a:hover { border-color: var(--accent); color: var(--accent); }

.solution .split-head h2 { margin-top: 1.25rem; font-size: var(--step-2); letter-spacing: -0.02em; }
.detail-grid { display: grid; gap: 0; }
.detail-grid > div { padding-block: 1.5rem; border-top: 1px solid var(--line-strong); }
.detail-grid > div:last-child { border-bottom: 1px solid var(--line-strong); }
.detail-grid dt { font-weight: 600; color: var(--text); }
.detail-grid dd { color: var(--muted); margin-top: 0.5rem; }
@media (min-width: 40em) {
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .detail-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--line-strong); }
}

.cta-band { border-top: 1px solid var(--line); background: var(--surface); }
.cta-inner { display: grid; gap: 1.5rem; justify-items: start; }
.cta-inner h2 { max-width: 22ch; }
.cta-inner p { color: var(--muted); max-width: 38rem; }
.cta-inner .btn { margin-top: 0.5rem; }

/* ---------- Form ---------- */

.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 60em) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; } }

.form { display: grid; gap: 2.5rem; }
.form fieldset { display: grid; gap: 1.25rem; }
.form legend { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; letter-spacing: -0.02em; padding: 0; margin-bottom: 1.25rem; }
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label { font-weight: 500; font-size: 0.9375rem; }
.optional { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: var(--step--1); }

.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.875rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.2rem) 50%, calc(100% - 0.85rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input::placeholder { color: #71829a; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #3c5577; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: var(--step--1); font-weight: 500; }
.error::before { content: "Error: "; }

.field-check { grid-template-columns: auto minmax(0, 1fr); gap: 0.875rem; align-items: start; }
.field-check input { width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.form-legal { color: var(--muted); font-size: var(--step--1); }
.form > .btn { justify-self: start; }
@media (max-width: 39.99em) { .form > .btn { justify-self: stretch; } }

.form-status { padding: 1.25rem 1.5rem; border: 1px solid var(--line-strong); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--surface); }
.form-status-error { border-left-color: var(--danger); }
.form-status > * + * { margin-top: 0.75rem; }
.form-status h2 { font-size: var(--step-2); }
.form-status p { color: var(--muted); }
.form-status-error p { color: var(--text); }

.contact-aside h2 { font-size: var(--step-2); letter-spacing: -0.02em; }
.next-steps { counter-reset: ns; margin-top: 1.5rem; }
.next-steps > li { counter-increment: ns; padding: 1.25rem 0 1.25rem 2.75rem; border-top: 1px solid var(--line-strong); position: relative; }
.next-steps > li::before { content: counter(ns); position: absolute; left: 0; top: 1.25rem; color: var(--accent); font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; }
.next-steps h3 { font-size: var(--step-0); }
.next-steps p { color: var(--muted); font-size: 1rem; margin-top: 0.25rem; }
.contact-direct { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); }
.contact-direct p { margin-top: 0.75rem; }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--space-section); }
.legal h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.5rem); }
.legal h2 { font-size: var(--step-2); letter-spacing: -0.02em; margin-top: 3rem; }
.legal h3 { font-size: var(--step-0); margin-top: 1.75rem; color: var(--text); }
.legal ul { list-style: disc; padding-left: 1.25rem; color: var(--muted); }
.legal li + li { margin-top: 0.5rem; }
.legal li strong { color: var(--text); font-weight: 600; }
.legal-date { font-size: var(--step--1); }

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

.site-footer { border-top: 1px solid var(--line); padding-block: 4rem 2rem; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.logo-img-footer { width: 9.5rem; }
.footer-brand p { margin-top: 1rem; }
.footer-note { color: var(--muted); max-width: 26rem; }
.footer-head { font-weight: 600; margin-bottom: 0.75rem; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 2.5rem; color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); align-items: center; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

/* ---------- Analytics consent ---------- */

.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; max-width: 34rem; margin-left: auto; padding: 1.25rem; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); font-size: 0.9375rem; }
.consent[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

[hidden] { display: none !important; }

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

@media print {
  .site-header, .site-footer, .cta-band, .consent, .dash-figure { display: none; }
  body { background: #fff; color: #000; }
}
