/* ---------------------------------------------------------------
   KLYK Care marketing site.

   The product's own grammar: calm light working surfaces framed by
   the KLYK dark chrome (the app has a dark sidebar and light
   screens; so does this site). One green, which is both the brand
   dot and the colour of "met". Space Grotesk display over an Inter
   body, both self-hosted, Krona One for the wordmark only.

   Retheming means editing the :root block. Everything else reads
   from it.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* The wordmark face: Krona One subset to the four glyphs the logo uses
   (K, L, Y and the full stop), 1.7KB. Logo only, never headings or body. */
@font-face {
  font-family: "Krona One";
  src: url("fonts/krona-one-kly.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* light working surfaces, blue-cast like the rest of the family */
  --paper: #f4f6fa;
  --white: #ffffff;
  --surface: #f8fafc;
  --ink: #0b101c;
  --ink-soft: #1e293b;
  --muted: #5b6577;
  --faint: #8a94a6;
  --line: #dbe1ea;
  --line-soft: #edf0f5;

  /* the one green, plus the statuses the sector reads at a glance */
  --green: #047857;
  --green-hover: #065f46;
  --green-bright: #34d399;
  --green-glow: #6ee7b7;
  --green-ink: #03150e;
  --tint-green: #e6f7ef;
  --amber: #9a5b00;
  --amber-bar: #d97706;
  --tint-amber: #fff4dc;
  --red: #a32020;
  --tint-red: #fde8e8;
  --blue: #1d4f91;
  --tint-blue: #e4effc;
  --tint-grey: #eef1f6;

  /* the KLYK dark chrome */
  --dark: #05070d;
  --dark-raised: #0b101c;
  --dark-ink: #e6edf7;
  --dark-muted: #96a2b8;
  --dark-nav: #b7c0d1;
  --dark-line: rgba(230, 237, 247, 0.1);
  --dark-line-strong: rgba(230, 237, 247, 0.2);

  /* type */
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Krona One", "Space Grotesk", system-ui, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-lede: clamp(1.1rem, 1rem + 0.4vw, 1.2rem);
  --t-h3: clamp(1.2rem, 1.1rem + 0.4vw, 1.35rem);
  --t-h2: clamp(1.85rem, 1.35rem + 1.9vw, 2.5rem);
  --t-h1: clamp(2.4rem, 1.5rem + 3.6vw, 3.9rem);
  --t-figure: clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);

  /* layout */
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(4rem, 8vw, 6rem);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-frame: 0 30px 60px -30px rgba(11, 16, 28, 0.35), 0 2px 6px rgba(11, 16, 28, 0.06);

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
}
main {
  flex: 1;
  background: var(--paper);
}
::selection {
  background: var(--green-bright);
  color: var(--green-ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 {
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
p + p {
  margin-top: 1em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--green-hover);
}
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
img,
svg {
  max-width: 100%;
  display: block;
}
figure,
dl,
dt,
dd {
  margin: 0;
}
.num {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--green-bright);
  color: var(--green-ink);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------
   Words that carry structure
   --------------------------------------------------------------- */
.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}
.on-dark .eyebrow {
  color: var(--green-bright);
}
.lede {
  font-size: var(--t-lede);
  line-height: 1.6;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stack > .eyebrow + h1,
.stack > .eyebrow + h2 {
  margin-top: -0.25rem;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.125rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--green);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--green-hover);
  color: var(--white);
}
.btn--ghost {
  border-color: #c9d2df;
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn--bright {
  background: var(--green-bright);
  color: var(--green-ink);
}
.btn--bright:hover {
  background: var(--green-glow);
  color: var(--green-ink);
}
.on-dark .btn--bright,
.on-dark .btn--bright:hover {
  color: var(--green-ink);
}
.on-dark .btn--ghost {
  border-color: var(--dark-line-strong);
  color: var(--dark-ink);
}
.on-dark .btn--ghost:hover {
  border-color: var(--dark-ink);
  color: var(--dark-ink);
}
.btn--small {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.9375rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}
@media (max-width: 30rem) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: relative;
  background: var(--dark);
  color: var(--dark-ink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--logo);
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--dark-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover {
  color: var(--dark-ink);
}
.brand__dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--green-bright);
  margin: 0 0.1em 0 0.12em;
  transform: translateY(-0.02em);
}
.brand__product {
  font-family: var(--display);
  font-weight: 400;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  color: var(--dark-muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--dark-nav);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.nav a:hover {
  color: var(--dark-ink);
}
.nav a[aria-current="page"] {
  color: var(--dark-ink);
  border-bottom-color: var(--green-bright);
}
.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dark-ink);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
@media (max-width: 52rem) {
  .header-right {
    gap: 0.75rem;
  }
  .header-cta {
    min-height: 2.5rem;
    padding: 0 1rem;
    font-size: 0.9rem;
  }
  html.js .nav-toggle {
    display: flex;
  }
  html.js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--dark-raised);
    border-top: 1px solid var(--dark-line);
    border-bottom: 1px solid var(--dark-line);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
  }
  html.js .site-header[data-open] .nav {
    display: flex;
  }
  html.js .nav a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--dark-line);
  }
  html.js .nav a[aria-current="page"] {
    border-bottom-color: var(--dark-line);
    color: var(--green-bright);
  }
  .site-header[data-open] .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-header[data-open] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .site-header[data-open] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  html:not(.js) .nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
@media (max-width: 40rem) {
  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    padding-block: 0.75rem;
  }
}

/* ---------------------------------------------------------------
   Sections and bands
   --------------------------------------------------------------- */
.section {
  padding-block: var(--section);
}
.section--tight {
  padding-block: calc(var(--section) * 0.7);
}
.band--white {
  background: var(--white);
}
.band--paper {
  background: var(--paper);
}
.band--dark,
.on-dark {
  background: var(--dark-raised);
  color: var(--dark-ink);
}
.on-dark h1,
.on-dark h2,
.on-dark h3 {
  color: var(--dark-ink);
}
.on-dark .lede,
.on-dark .muted {
  color: var(--dark-muted);
}
.on-dark a {
  color: var(--green-glow);
}
.on-dark a:hover {
  color: var(--green-bright);
}
.band--line {
  border-top: 1px solid var(--line);
}

/* A section head that reads left to right: heading, then the lede
   beside it on wide screens, under it on narrow ones. */
.section-head {
  display: grid;
  gap: 1.25rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 64rem) {
  .section-head {
    grid-template-columns: minmax(0, 26rem) minmax(0, 40rem);
  }
  .section-head--wide {
    grid-template-columns: minmax(0, 30rem) minmax(0, 40rem);
  }
}
.section-head .lede {
  margin: 0;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 7vw, 6rem);
  background: var(--paper);
}
.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 64rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 29rem) minmax(0, 1fr);
    gap: 3.5rem;
  }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.hero__copy .lede {
  max-width: 30rem;
}
.hero__note {
  font-size: var(--t-sm);
  color: var(--muted);
  max-width: 30rem;
}
.hero__visual {
  min-width: 0;
}
.hero--page {
  padding-block: clamp(3rem, 6vw, 5rem);
}
.hero--page .hero__copy {
  max-width: 46rem;
}

/* ---------------------------------------------------------------
   Product frames: the app, drawn in HTML so it stays crisp
   --------------------------------------------------------------- */
.frame {
  display: flex;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-frame);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #0f172a;
}
.frame__side {
  display: none;
  width: 11.5rem;
  flex: none;
  background: var(--dark);
  padding: 1.25rem 0.75rem;
  flex-direction: column;
  gap: 0.25rem;
}
@media (min-width: 72rem) {
  .frame--with-side .frame__side {
    display: flex;
  }
}
@media (max-width: 90rem) {
  .frame--hero .frame__side {
    display: none;
  }
}
.frame__logo {
  padding: 0 0.625rem 1.125rem;
  font-family: var(--logo);
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--dark-ink);
}
.frame__logo .brand__product {
  font-size: 0.93em;
}
.frame__navitem {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 2rem;
  padding: 0 0.625rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--dark-muted);
}
.frame__navitem::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}
.frame__navitem--active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dark-ink);
}
.frame__main {
  container-type: inline-size;
  container-name: frame;
  flex: 1;
  min-width: 0;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.frame__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.frame__title {
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.frame__sub {
  margin-top: 0.25rem;
  color: #64748b;
}
.frame__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.frame__button {
  display: inline-flex;
  align-items: center;
  height: 1.875rem;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: var(--white);
  font-weight: 500;
  color: #0f172a;
  white-space: nowrap;
}
.frame__row {
  display: grid;
  gap: 0.875rem;
}
@container frame (min-width: 40rem) {
  .frame__row--score {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }
}
.tile {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  padding: 0.875rem 1rem;
}
.tile__label {
  font-weight: 500;
  font-size: 0.75rem;
  color: #64748b;
}
.tile__value {
  margin-top: 0.375rem;
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.tile__value--red {
  color: var(--red);
}
.tile__sub {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.bars {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
}
.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4rem, 9rem) 2.75rem;
  gap: 0.375rem 0.75rem;
  align-items: center;
  font-weight: 500;
  color: #0f172a;
}
@container frame (max-width: 26rem) {
  .bar {
    grid-template-columns: minmax(0, 1fr) 2.75rem;
  }
  .bar > span:first-child {
    grid-column: 1 / -1;
  }
}
.bar__track {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  overflow: hidden;
}
.bar__fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 3px;
  background: var(--green);
}
.bar__fill--amber {
  background: var(--amber-bar);
}
.bar__fill--todo {
  background: #e2e8f0;
}
.bar__pct {
  text-align: right;
  font-weight: 600;
}
.bar__pct--todo {
  font-weight: 400;
  color: #94a3b8;
}
/* The hero's one orchestrated moment: section scores fill in once
   on load, the overdue flag arrives last. Reduced motion freezes it. */
html.js .frame--hero .bar__fill {
  animation: bar-fill 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.25s + var(--i, 0) * 70ms);
}
@keyframes bar-fill {
  from {
    width: 0;
  }
  to {
    width: var(--w);
  }
}
html.js .frame--hero .chip--late {
  animation: chip-in 0.4s ease-out both;
  animation-delay: 1.1s;
}
@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Small table inside a frame: header row, then rows */
.ftable {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.ftable__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  color: #0f172a;
}
.ftable__count {
  font-weight: 400;
  color: #64748b;
}
.frow {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #0f172a;
}
.frow:last-child {
  border-bottom: 0;
}
.frow--th {
  padding-block: 0.5rem;
}
.frow .dim {
  color: #475569;
}
.th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Column recipes */
.frow--actions {
  grid-template-columns: 3.25rem minmax(0, 1fr) 5.5rem;
}
.frow--actions .frow__who,
.frow--actions .frow__due {
  display: none;
}
@container frame (min-width: 38rem) {
  .frow--actions {
    grid-template-columns: 3.25rem minmax(0, 1fr) 8rem 5.75rem 5.5rem;
  }
  .frow--actions .frow__who,
  .frow--actions .frow__due {
    display: block;
  }
}
.frow--tracker {
  grid-template-columns: minmax(0, 1fr) 5.5rem;
}
.frow--tracker .frow__home,
.frow--tracker .frow__who,
.frow--tracker .frow__due {
  display: none;
}
@container frame (min-width: 30rem) {
  .frow--tracker {
    grid-template-columns: 6.5rem minmax(0, 1fr) 5.5rem;
  }
  .frow--tracker .frow__home {
    display: block;
  }
}
@container frame (min-width: 44rem) {
  .frow--tracker {
    grid-template-columns: 6.75rem minmax(0, 1fr) 8rem 5.75rem 5.5rem;
  }
  .frow--tracker .frow__who,
  .frow--tracker .frow__due {
    display: block;
  }
}
.frow--staff {
  grid-template-columns: minmax(0, 1fr) 6rem;
}
.frow--staff .frow__dbs,
.frow--staff .frow__rtw,
.frow--staff .frow__sup {
  display: none;
}
@container frame (min-width: 30rem) {
  .frow--staff {
    grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 6rem;
  }
  .frow--staff .frow__dbs,
  .frow--staff .frow__sup {
    display: block;
  }
}
@container frame (min-width: 40rem) {
  .frow--staff {
    grid-template-columns: minmax(0, 1fr) 5.5rem 5.5rem 5.5rem 6rem;
  }
  .frow--staff .frow__rtw {
    display: block;
  }
}
.frow--weights {
  grid-template-columns: minmax(0, 1fr) 3.5rem 3.5rem 3.75rem 5rem;
}
.frow--weights .frow__bmi {
  display: none;
}
@container frame (min-width: 28rem) {
  .frow--weights {
    grid-template-columns: minmax(0, 1fr) 3.75rem 3.75rem 4rem 3.25rem 5rem;
  }
  .frow--weights .frow__bmi {
    display: block;
  }
}
.frow--docs {
  grid-template-columns: minmax(0, 1fr) 6.5rem;
}
.frow--import {
  grid-template-columns: 3.5rem minmax(0, 1fr);
}
.right {
  text-align: right;
}

/* Status chips: the sector's RAG, as the product draws it */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.375rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip--green {
  background: var(--tint-green);
  color: var(--green);
}
.chip--amber {
  background: var(--tint-amber);
  color: var(--amber);
}
.chip--red {
  background: var(--tint-red);
  color: var(--red);
}
.chip--blue {
  background: var(--tint-blue);
  color: var(--blue);
}
.chip--grey {
  background: var(--tint-grey);
  color: var(--muted);
}
.chip--plain::before {
  display: none;
}

/* Enquiry pipeline timeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  padding: 1rem;
}
.pipeline__step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.pipeline__dot {
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}
.pipeline__step--done .pipeline__dot {
  background: var(--green);
}
.pipeline__step--skipped .pipeline__dot {
  background: repeating-linear-gradient(90deg, #cbd5e1 0 6px, transparent 6px 10px);
}
.pipeline__step--next .pipeline__dot {
  background: var(--amber-bar);
}
.pipeline__label {
  font-weight: 500;
  font-size: 0.75rem;
  color: #0f172a;
}
.pipeline__step--skipped .pipeline__label {
  color: #94a3b8;
}
.pipeline__meta {
  font-size: 0.7rem;
  color: #64748b;
}
@container frame (max-width: 30rem) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Import report */
.report {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}
.report__head {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  background: var(--tint-amber);
  color: var(--amber);
  font-weight: 600;
}
.report .frow--import .dim {
  color: #475569;
}

/* ---------------------------------------------------------------
   Proof band (figures)
   --------------------------------------------------------------- */
.proof {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: end;
}
@media (min-width: 64rem) {
  .proof {
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
  }
}
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
@media (min-width: 64rem) {
  .figures {
    border-left: 1px solid var(--dark-line);
    padding-left: 3rem;
  }
}
@media (max-width: 40rem) {
  .figures {
    gap: 1.25rem;
    border-top: 1px solid var(--dark-line);
    padding-top: 1.5rem;
  }
}
.figure__value {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-figure);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dark-ink);
}
.figure__label {
  margin-top: 0.625rem;
  font-size: var(--t-sm);
  line-height: 1.45;
  color: var(--dark-muted);
}

/* ---------------------------------------------------------------
   Modules: hairlines, not cards
   --------------------------------------------------------------- */
.modules {
  display: grid;
  border-top: 1px solid var(--line);
  gap: 0 3rem;
}
@media (min-width: 48rem) {
  .modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 72rem) {
  .modules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.module {
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.module::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  margin-bottom: 0.375rem;
}
.module p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.module h3 a {
  color: inherit;
  text-decoration: none;
}
.module h3 a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ---------------------------------------------------------------
   Audits: the table the sector actually reads
   --------------------------------------------------------------- */
.split {
  display: grid;
  gap: 2.5rem 4.5rem;
  align-items: start;
}
@media (min-width: 64rem) {
  .split {
    grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  }
  .split--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 25rem);
  }
  .split--flip .split__copy {
    order: 2;
  }
  .split--center {
    align-items: center;
  }
}
.split__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.split__copy p {
  color: var(--muted);
}
.split__copy .eyebrow + h2 {
  margin-top: -0.25rem;
}

.legend {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem 1rem;
  padding: 1.125rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legend .th {
  grid-column: 1 / -1;
  margin-bottom: 0.25rem;
}
.legend__item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--t-sm);
  color: var(--muted);
}

.audit-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: var(--t-sm);
}
.audit-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.audit-table th,
.audit-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.audit-table thead th {
  padding-block: 0.875rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.audit-table tbody tr:last-child td {
  border-bottom: 0;
}
.audit-table .right {
  text-align: right;
}
.audit-table .name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.audit-table .desc {
  margin-top: 0.2rem;
  color: var(--muted);
}
.audit-table .count {
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.audit-table .scoring {
  color: var(--muted);
}
.rag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  vertical-align: middle;
}
.rag i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
@media (max-width: 40rem) {
  .audit-table .scoring,
  .audit-table .desc {
    display: none;
  }
  .audit-table th,
  .audit-table td {
    padding: 0.875rem 1rem;
  }
}
.audit-table-wrap {
  overflow-x: auto;
}

/* ---------------------------------------------------------------
   Steps and plain columns
   --------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.step__num {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--green);
}
.step p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.columns {
  display: grid;
  gap: 2rem 3rem;
}
@media (min-width: 56rem) {
  .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.column {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.column p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Facts list beside copy */
.points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  color: var(--ink-soft);
}
.points li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  line-height: 1.5;
}
.points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 0.4rem;
}

/* ---------------------------------------------------------------
   Ledger: what shipped, when (features page)
   --------------------------------------------------------------- */
.ledger {
  list-style: none;
  border-top: 1px solid var(--line);
}
.ledger__row {
  display: grid;
  gap: 0.5rem 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .ledger__row {
    grid-template-columns: 11rem minmax(0, 1fr);
  }
}
.ledger__date {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ledger__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.ledger__items strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------
   Prose (about)
   --------------------------------------------------------------- */
.prose {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.prose p {
  color: var(--muted);
}
.prose .eyebrow + h2 {
  margin-top: -0.25rem;
}
.prose h2 {
  margin-bottom: 0.25rem;
}

/* ---------------------------------------------------------------
   Demo page
   --------------------------------------------------------------- */
.demo-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 56rem) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: 2rem;
    align-items: start;
  }
}
.demo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.demo-card p {
  color: var(--muted);
}
.demo-card__addr {
  font-size: var(--t-sm);
}
.demo-aside {
  background: var(--dark-raised);
  color: var(--dark-ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.demo-aside h2 {
  color: var(--dark-ink);
  font-size: var(--t-h3);
}
.demo-aside ol {
  list-style: none;
  counter-reset: next;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.demo-aside li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.5rem;
}
.demo-aside li::before {
  content: counter(next);
  font-family: var(--display);
  font-weight: 600;
  color: var(--green-bright);
}

/* ---------------------------------------------------------------
   Closing call to action
   --------------------------------------------------------------- */
.cta {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}
@media (min-width: 64rem) {
  .cta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  }
}
.cta__copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 46rem;
}
.cta__copy h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.cta__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
}
.cta__after {
  font-size: var(--t-sm);
  color: var(--dark-muted);
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--dark);
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
  padding-block: 3.5rem 2.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--dark-line);
}
@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) 12rem 12rem;
  }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.footer-brand .brand {
  font-size: 1.125rem;
}
.footer-brand p {
  max-width: 26rem;
  font-size: var(--t-sm);
  line-height: 1.55;
}
.footer-h {
  font: 600 var(--t-xs) / 1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink);
  margin: 0 0 0.875rem;
}
.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: var(--t-sm);
}
.footer-list a {
  color: var(--dark-muted);
  text-decoration: none;
}
.footer-list a:hover {
  color: var(--dark-ink);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  font-size: var(--t-xs);
  color: #6b7686;
}
.footer-base p {
  margin: 0;
}
.site-footer--slim .footer-base {
  padding-top: 0;
}

/* ---------------------------------------------------------------
   404
   --------------------------------------------------------------- */
.error-hero {
  padding-block: clamp(4rem, 10vw, 8rem);
}
.error-hero__code {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-figure);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}
