/*
 * Future Forward Planning — public site, "Horizon" art direction.
 * Design: docs/briefs/marketing-distinct-enquiry.md §3. One shape carries the brand: the release
 * step. The plan releases its funding in four equal quarters, so the hero's paper/navy edge is
 * that four-step silhouette, drawn once more, rising the same way, where the contact band joins the
 * footer.
 * Sections sit on an editorial grid: a narrow margin column for labels, a wide column for content.
 * The base styles are the final static composition; every animation lives under
 * html[data-motion='on'] at the end of this file. Local Inter 400 and 600 only. Money is tabular.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}

:root {
  --canvas: #f3f5fa;
  --white: #fff;
  --navy: #172554;
  --band: #0b1238;
  --blue: #3f51b5;
  --teal: #00897b;
  --action: #00796b;
  --action-hover: #00695c;
  --band-accent: #4db6ac;
  --amber: #b45309;
  --ink: #172033;
  --ink-soft: #3d4a6b;
  --muted: #526079;
  --rule: #d9e0ec;
  --rule-strong: #b9c3d6;
  --field: #7a879f;
  --error: #b91c1c;
  /* Editorial: graph copy awaiting the human's rewrite. Not an error state. */
  --copy-pending: #b91c1c;
  --on-band: #cbd5e1;
  --on-band-muted: #9fb0c8;
  --on-band-rule: rgba(255, 255, 255, 0.16);
  --hatch: repeating-linear-gradient(
    135deg,
    rgba(0, 137, 123, 0.55) 0 1.5px,
    rgba(0, 137, 123, 0.08) 1.5px 6px
  );
  --unobserved: repeating-linear-gradient(135deg, #cfd6e3 0 1px, #f7f8fb 1px 7px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(20px, 3.34vw, 48px);
  --col-gap: 24px;
  /* The editorial margin column, from 1100px. */
  --margin: 208px;
  --header-h: 72px;
  --ledger: clamp(28px, 3vw, 44px);
  /* One release step of the silhouette. */
  --rise: clamp(22px, 3.3vw, 48px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--band);
}
html[data-motion='on'] {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-synthesis: none;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 639.98px) {
  body {
    font-size: 17px;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
p,
h1,
h2,
h3,
h4,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
table {
  border-collapse: collapse;
}
[hidden] {
  display: none !important;
}

.container {
  width: min(1280px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nowrap {
  white-space: nowrap;
}

/* Focus: 3px, action teal on light surfaces and white on navy. */
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
.horizon-base :focus-visible,
.contact-band :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}
main:focus {
  outline: none;
}
/* Step and success headings take focus after a step change; their ring sits clear of the text. */
.q-title:focus-visible,
.sent-heading:focus-visible {
  outline-offset: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Money and labels ---------- */
.tabular,
[data-figure],
.day-amt,
.dd-total,
.dd-rows,
.schedule,
.stack dd {
  font-variant-numeric: tabular-nums;
}
.label,
.marker,
.rail-label,
.ledger dt,
.eyebrow,
.horizon-asof,
.q-progress {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Component identity: data only, always beside the component's name. */
.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--blue));
}
.dot--daily {
  --dot: var(--blue);
}
.dot--therapy {
  --dot: var(--teal);
}
.dot--consumables {
  --dot: var(--amber);
}

/* ---------- Buttons: rectangular, at least 48px tall, wrapping rather than overflowing. `.pill`
   is the name the privacy, thanks and 404 pages still use. ---------- */
.btn,
.pill {
  --btn-bg: transparent;
  --btn-border: transparent;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 22px;
  border: 1.5px solid var(--btn-border);
  border-radius: 4px;
  background: var(--btn-bg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease);
}
.btn:active,
.pill:active {
  transform: translateY(1px);
}
.btn--primary,
.pill--primary {
  --btn-bg: var(--action);
  --btn-border: var(--action);
  color: #fff;
}
.btn--primary:hover,
.pill--primary:hover {
  --btn-bg: var(--action-hover);
  --btn-border: var(--action-hover);
}
.btn--quiet {
  --btn-bg: #fff;
  --btn-border: var(--rule-strong);
  color: var(--navy);
}
.btn--quiet:hover {
  --btn-border: var(--navy);
}
.btn--on-navy {
  --btn-border: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn--on-navy:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
}
.btn--small,
.pill--small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}
.btn[aria-disabled='true'] {
  cursor: not-allowed;
}
.btn[aria-disabled='true']:not(.is-pending) {
  opacity: 0.55;
}
.pill-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn--primary .pill-icon {
  transition: transform 160ms var(--ease);
}
.btn--primary:hover .pill-icon {
  transform: translateX(2px);
}
.pill-bg {
  display: none;
}

/* Revealed phone: the background is its own layer so it can widen without stretching text. */
.phone-link {
  background: transparent;
  border-color: transparent;
  font-variant-numeric: tabular-nums;
}
.phone-link .pill-bg {
  display: block;
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: inherit;
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  transform-origin: left center;
}
.phone-number {
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.phone-verb {
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Header: paper, hairline below ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 245, 250, 0.96);
  color: var(--navy);
  border-bottom: 1px solid var(--rule);
}
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
/* The F>> mark: navy tile, white F, muted-teal chevrons on every page (overrides SVG attributes). */
.brand-mark rect {
  fill: var(--navy);
}
.brand-mark .mark-f {
  stroke: var(--white);
}
.brand-mark .mark-chevrons {
  stroke: var(--band-accent);
}
.nav-inline ul {
  display: flex;
  gap: 4px;
}
.nav-inline a,
.signin,
.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-inline a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}
.nav-inline a:hover,
.signin:hover,
.back-link:hover {
  color: var(--navy);
}
.nav-inline a:hover::after {
  transform: scaleX(1);
}
.signin svg,
.back-link svg {
  width: 14px;
  height: 14px;
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover {
  border-color: var(--navy);
}
.menu-toggle svg {
  width: 14px;
  height: 14px;
}
.menu-panel {
  background: var(--canvas);
  border-top: 1px solid var(--rule);
}
.menu-panel ul {
  padding: 4px 0 20px;
}
.menu-panel a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
html.js .menu-panel:not(.is-open) {
  display: none;
}
html:not(.js) .menu-toggle {
  display: none;
}
/* Without JavaScript the narrow menu is always open, so that header scrolls away with the page
   instead of covering it. */
@media (max-width: 1099.98px) {
  html:not(.js) .site-header[data-header] {
    position: static;
  }
}

@media (min-width: 1100px) {
  .narrow-only {
    display: none !important;
  }
}
@media (max-width: 1099.98px) {
  .wide-only,
  .nav-inline {
    display: none !important;
  }
}
@media (max-width: 767.98px) {
  :root {
    --header-h: 64px;
  }
  .menu-toggle {
    padding: 0 12px;
  }
  .bar {
    gap: 8px;
  }
}
@media (max-width: 559.98px) {
  .cta-head {
    display: none;
  }
  .brand-name {
    display: grid;
    font-size: 15px;
  }
  .brand-mark {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Type ---------- */
.eyebrow {
  color: var(--ink-soft);
}
.h2 {
  max-width: 16em;
  font-size: clamp(34px, 4.2vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--navy);
  text-wrap: balance;
}
.lede {
  max-width: 34em;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Sections on the editorial grid ---------- */
.section {
  padding-block: clamp(80px, 9vw, 136px);
}
.section--paper {
  background: var(--canvas);
}
.section--white {
  background: var(--white);
}
.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.section-head {
  display: grid;
  gap: 4px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
@media (min-width: 1100px) {
  .frame {
    grid-template-columns: var(--margin) minmax(0, 1fr);
    column-gap: var(--col-gap);
  }
  .frame > * {
    grid-column: 2;
  }
  /* The margin column: its label, prefixed by the step glyph. Never numbers. */
  .frame > .section-head {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    margin: 0;
    padding-top: 0.9em;
  }
  .frame > .plate {
    grid-column: 1 / -1;
  }
}
.marker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}
/* The step glyph: four rising bars, the release silhouette at label size. */
.marker::before {
  content: '';
  flex: none;
  width: 15px;
  height: 12px;
  background:
    linear-gradient(var(--glyph, var(--teal)) 0 0) 0 100% / 3px 3px no-repeat,
    linear-gradient(var(--glyph, var(--teal)) 0 0) 4px 100% / 3px 6px no-repeat,
    linear-gradient(var(--glyph, var(--teal)) 0 0) 8px 100% / 3px 9px no-repeat,
    linear-gradient(var(--glyph, var(--teal)) 0 0) 12px 100% / 3px 12px no-repeat;
}
.running {
  padding-left: 25px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Hero: paper above, navy below, the release silhouette between ---------- */
.hero {
  padding-top: clamp(32px, 4vw, 56px);
  background: var(--canvas);
}
.hero-eyebrow {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.hero-title {
  margin-top: clamp(24px, 3.2vw, 44px);
  font-size: clamp(44px, 7.8vw, 112px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.hero-title .line {
  display: block;
}
.line-2 {
  color: var(--blue);
}
.hero-copy {
  max-width: 34em;
  margin-top: clamp(20px, 2.4vw, 32px);
}
/* The button belongs to the lede: directly under it, never adrift in the row. */
.cta-row {
  margin-top: clamp(20px, 2vw, 28px);
}

/*
 * The silhouette. Its four main tracks are the container's four quarters (one per release, as the
 * plan year runs left to right); the first and last steps bleed to the viewport edges. It rises
 * left to right in both places, as the funding does.
 */
.silhouette {
  display: grid;
  grid-template-columns:
    minmax(var(--gutter), 1fr) repeat(4, minmax(0, 320px))
    minmax(var(--gutter), 1fr);
  align-items: end;
  height: calc(var(--rise) * 4);
}
.tier {
  position: relative;
  grid-row: 1;
  background: var(--band);
}
.tier-1 {
  grid-column: 1 / 3;
  height: var(--rise);
}
.tier-2 {
  grid-column: 3;
  height: calc(var(--rise) * 2);
}
.tier-3 {
  grid-column: 4;
  height: calc(var(--rise) * 3);
}
.tier-4 {
  grid-column: 5 / 7;
  height: calc(var(--rise) * 4);
}
.silhouette--hero {
  margin-top: clamp(20px, 2.5vw, 36px);
}
/* Released: one solid teal tread. Scheduled: dashed treads and risers. */
.silhouette--hero .tier::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--band-accent) 0 10px, transparent 10px 16px);
}
.silhouette--hero .tier-1::before {
  background: var(--band-accent);
  transform-origin: left center;
}
.silhouette--hero .tier:not(.tier-1)::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: var(--rise);
  background: repeating-linear-gradient(180deg, var(--band-accent) 0 6px, transparent 6px 10px);
}
/* Today: the as-of date, just before the second release. */
.today {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: 2px;
  height: 16px;
  margin: 0 12px var(--rise) 0;
  background: var(--navy);
  transform-origin: center bottom;
}
.today-label {
  position: absolute;
  right: -1px;
  bottom: calc(100% + 6px);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
}
.horizon-base {
  padding: clamp(24px, 2.6vw, 36px) 0 clamp(64px, 7vw, 104px);
  background: var(--band);
  color: var(--on-band);
}
.horizon-asof {
  color: var(--on-band-muted);
}
/* The four figures: one row of quarters from 900px, under the four steps; 2 × 2 below. */
.ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 0;
  margin-top: 22px;
}
@media (min-width: 900px) {
  .ledger {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ledger-item {
  min-width: 0;
  padding: 16px 16px 0 0;
  border-top: 1px solid var(--on-band-rule);
}
.ledger dt {
  color: var(--on-band-muted);
}
.ledger dd {
  margin-top: 10px;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.ledger-item--available dd {
  color: var(--band-accent);
}

/* ---------- How it works: one route, four stops ---------- */
.stations {
  position: relative;
  isolation: isolate;
  margin-top: clamp(40px, 5vw, 72px);
  /* The token's carrier box is as long as the route and travels its own length, so its empty box
     would widen the page; the token itself always stays on the route, inside this area. */
  overflow: hidden;
  overflow: clip;
}
.station-list {
  position: relative;
  display: grid;
  gap: 40px var(--col-gap);
}
.station-list li {
  position: relative;
}
.station-mark {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--navy);
}
.station-mark::before {
  content: '';
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--canvas);
}
/* Provider paid: the token rests here, under the teal mark. */
.station-mark--done {
  z-index: 3;
  background: var(--teal);
  color: #fff;
}
.station-mark--done::before {
  display: none;
}
.station-mark svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
}
.station-list h3 {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
}
.station-list p {
  margin-top: 4px;
  font-size: 16px;
  color: var(--muted);
}
.station-rail {
  position: absolute;
  pointer-events: none;
}
.station-rail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  transform-origin: left top;
}
.token-run {
  position: absolute;
  z-index: 2;
  inset: 0;
}
.token {
  position: absolute;
  display: grid;
  align-content: center;
  gap: 2px;
  width: 18px;
  height: 22px;
  padding: 0 4px;
  border: 1.5px solid var(--navy);
  border-radius: 2px;
  background: #fff;
}
.token i {
  display: block;
  height: 1.5px;
  background: var(--blue);
}
.token i:last-child {
  width: 60%;
}
@media (min-width: 900px) {
  .station-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .station-rail {
    top: 15px;
    left: 16px;
    width: calc(75% + 18px);
    height: 2px;
  }
  .token {
    top: -10px;
    left: -9px;
  }
  .token-run {
    transform: translateX(100%);
  }
}
@media (max-width: 899.98px) {
  .station-list li {
    min-height: 92px;
    padding-left: 56px;
  }
  .station-mark {
    position: absolute;
    left: 0;
    top: 0;
  }
  .station-list h3 {
    margin-top: 2px;
  }
  .station-rail {
    top: 16px;
    left: 15px;
    bottom: 76px;
    width: 2px;
  }
  .token {
    top: -11px;
    left: -8px;
  }
  .token-run {
    transform: translateY(100%);
  }
}

/* ---------- The tools ---------- */
/* The introduction to the section; the h2 below it is the heading. */
.statement {
  max-width: 34em;
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: balance;
}
.statement strong {
  font-weight: 600;
  color: var(--navy);
}
#budget-title {
  margin-top: clamp(14px, 1.6vw, 20px);
}
.index {
  display: grid;
  gap: 0 var(--col-gap);
  margin-top: clamp(36px, 4vw, 56px);
}
@media (min-width: 900px) {
  .index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.index a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 14px 0 18px;
  border-top: 2px solid var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.index-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.index a:hover .index-text {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Instruments: wide, open, separated by hairline rules; the caption sits in the margin column. */
.plate {
  position: relative;
  min-width: 0;
  margin-top: clamp(56px, 6vw, 96px);
  padding-top: clamp(18px, 2vw, 26px);
  border-top: 1px solid var(--rule-strong);
}
.plate-cap {
  margin-bottom: clamp(18px, 2vw, 26px);
}
.plate-cap-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
}
@media (min-width: 1100px) {
  .plate {
    display: grid;
    grid-template-columns: var(--margin) minmax(0, 1fr);
    column-gap: var(--col-gap);
    align-content: start;
  }
  .plate > * {
    grid-column: 2;
  }
  .plate > .plate-cap {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    margin: 0;
  }
}
.rail-label {
  color: var(--muted);
}
.rail-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
/* Exactly four elements: the three index descriptions and the calendar rail note. It comes after
   the base text rules it marks (.rail-note included) so the red always wins; Ready removes the class. */
.copy-pending {
  color: var(--copy-pending);
}

/* Keys under the components chart. */
.key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.key::before {
  content: '';
  flex: none;
  width: 14px;
  height: 10px;
  border-radius: 1px;
}
.key--fill::before {
  background: var(--blue);
}
.key--tick::before {
  width: 2px;
  height: 14px;
  background: var(--navy);
}

/* ---------- The spend calendar ---------- */
.cal-layout {
  display: grid;
  gap: 28px var(--col-gap);
}
@media (min-width: 1000px) {
  .cal-layout {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
  .cal-rail {
    padding-left: var(--col-gap);
    border-left: 1px solid var(--rule);
  }
}
@media (max-width: 999.98px) {
  .cal-rail {
    padding-top: 22px;
    border-top: 1px solid var(--rule);
  }
}
.cal-main {
  min-width: 0;
}
.cal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.cal-title {
  flex: 1;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
html.js .cal-title {
  text-align: center;
}
.cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.cal-nav svg {
  width: 16px;
  height: 16px;
}
.cal-nav:hover {
  border-color: var(--navy);
}
.cal-nav[aria-disabled='true'] {
  border-color: var(--rule);
  color: #8692a8;
  cursor: not-allowed;
}
.cal-grid-wrap {
  position: relative;
}
.cal {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 4px;
  margin: -4px;
  width: calc(100% + 8px);
}
.cal th {
  padding: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding-left: 8px;
}
.cal td {
  position: relative;
  height: clamp(56px, 6.2vw, 88px);
  padding: 0;
  vertical-align: top;
  border-radius: 3px;
}
.day {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.day.is-spend {
  box-shadow: none;
}
.day.t1 {
  background: color-mix(in srgb, var(--blue) 7%, #fff);
}
.day.t2 {
  background: color-mix(in srgb, var(--blue) 11%, #fff);
}
.day.t3 {
  background: color-mix(in srgb, var(--blue) 16%, #fff);
}
.day.t4 {
  background: color-mix(in srgb, var(--blue) 21%, #fff);
}
.day.t5 {
  background: color-mix(in srgb, var(--blue) 26%, #fff);
}
.day.t6 {
  background: color-mix(in srgb, var(--blue) 32%, #fff);
}
.day.is-future {
  background: var(--unobserved);
}
.day.is-before {
  background: var(--canvas);
  box-shadow: none;
}
.day-n {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
}
.is-before .day-n,
.is-future .day-n,
.is-none .day-n {
  color: var(--muted);
}
.day-dots {
  position: absolute;
  top: 7px;
  right: 8px;
  display: flex;
  gap: 3px;
}
.day-dots .dot {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 1.5px #fff;
}
.day-amt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  pointer-events: none;
}
.day-dash {
  color: var(--muted);
  font-weight: 400;
}
.is-asof {
  box-shadow:
    inset -3px 0 0 var(--navy),
    inset 0 0 0 1px var(--rule);
}
.asof-mark {
  position: absolute;
  left: 0;
  right: 3px;
  bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: var(--navy);
}
.day-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.day-btn:hover {
  box-shadow: inset 0 0 0 2px rgba(63, 81, 181, 0.55);
}
.day-btn[aria-expanded='true'] {
  box-shadow: inset 0 0 0 2px var(--navy);
}
.day-btn:focus-visible {
  outline-offset: -3px;
}
@media (max-width: 639.98px) {
  .cal {
    border-spacing: 2px;
    margin: -2px;
    width: calc(100% + 4px);
  }
  .cal th {
    padding-left: 0;
    text-align: center;
    letter-spacing: 0.04em;
  }
  .day-n {
    top: 5px;
    left: 5px;
  }
  .day-dots {
    top: auto;
    right: 0;
    left: 0;
    bottom: 5px;
    justify-content: center;
  }
  .day-dots .dot {
    width: 5px;
    height: 5px;
    box-shadow: none;
  }
  .day-amt {
    padding-top: 6px;
    font-size: 13px;
    letter-spacing: -0.02em;
  }
  .asof-mark {
    bottom: 4px;
  }
}
@media (max-width: 379.98px) {
  .day-amt {
    font-size: 12px;
  }
}
.cal-hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* Day detail: a popover anchored to the cell from 640px, docked under the grid below it. */
.day-detail {
  z-index: 5;
  padding: 14px 16px 16px;
  border: 1px solid var(--rule-strong);
  border-top: 2px solid var(--navy);
  border-radius: 4px;
  background: #fff;
  transform-origin: var(--dd-origin, top center);
}
@media (min-width: 640px) {
  .day-detail {
    position: absolute;
    left: var(--dd-x, 0);
    top: var(--dd-y, 0);
    width: 272px;
    box-shadow: 0 18px 40px -18px rgba(23, 37, 84, 0.4);
  }
}
@media (max-width: 639.98px) {
  .day-detail {
    margin-top: 12px;
  }
}
/* Docked from 640px too when no popover position fits inside the plate. */
.day-detail.is-docked {
  position: static;
  width: auto;
  margin-top: 12px;
  box-shadow: none;
}
.dd-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.dd-date {
  padding-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.dd-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin: -4px -8px 0 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.dd-close:hover {
  background: rgba(23, 37, 84, 0.06);
}
.dd-close svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 639.98px) {
  .dd-close {
    width: 44px;
    height: 44px;
    margin: -10px -10px 0 0;
  }
}
.dd-total {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--navy);
}
.dd-total:empty {
  display: none;
}
.dd-rows {
  margin-top: 10px;
}
.dd-rows:empty {
  display: none;
}
.dd-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 2px 8px;
  padding: 7px 0;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.dd-rows .dot {
  align-self: center;
}
.dd-rows .dd-name {
  color: var(--ink);
}
.dd-rows .dd-amt {
  font-weight: 600;
  color: var(--navy);
}
.dd-rows .dd-count {
  grid-column: 2 / -1;
  font-size: 12px;
  color: var(--muted);
}
.dd-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.dd-note:empty {
  display: none;
}

/* The month rail: the colour key and the no-hover reading. */
.rail-figure {
  margin-top: 8px;
  font-size: var(--ledger);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.rail-sub {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
.rail-components {
  margin-top: 22px;
  border-bottom: 1px solid var(--rule);
}
.rail-components li,
.rail-states li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
}
.rc-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rc-amt {
  font-weight: 600;
  color: var(--navy);
}
.rail-states {
  margin-top: 18px;
}
.rail-states li {
  justify-content: flex-start;
  border-top: 0;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.state-swatch {
  flex: none;
  width: 22px;
  height: 16px;
  border-radius: 2px;
}
.state-swatch--future {
  background: var(--unobserved);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}
.state-swatch--before {
  background: var(--canvas);
  box-shadow: inset 0 0 0 1px var(--rule);
}

/* ---------- Spending pace and the funding staircase ---------- */
.pace-layout {
  display: grid;
  gap: 28px var(--col-gap);
}
@media (min-width: 1000px) {
  .pace-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }
  .pace-rail {
    padding-left: var(--col-gap);
    border-left: 1px solid var(--rule);
  }
}
.pace-chart {
  min-width: 0;
}
.pace-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}
.pace-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.lg {
  position: relative;
  flex: none;
  width: 26px;
  height: 12px;
}
.lg::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  border-top: 2.5px solid var(--blue);
}
.lg--released::before {
  border-top-color: var(--teal);
}
.lg--scheduled::before {
  border-top: 2px dashed var(--teal);
}
.lg--scheduled::after {
  content: '';
  position: absolute;
  right: 0;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  background: #fff;
}
.lg--total::before {
  top: 6px;
  border-top: 1.5px dashed #8692a8;
}
.lg--projected::before {
  top: 4px;
  border-top: 3px dotted var(--blue);
}
html:not(.js) .pace-frame,
html:not(.js) .pace-legend {
  display: none;
}
/* The static projection note and figures use the full area when there is no drawn chart. */
html:not(.js) .pace-layout {
  grid-template-columns: minmax(0, 1fr);
}
html:not(.js) .pace-rail {
  padding-left: 0;
  border-left: 0;
}
.pace-frame {
  position: relative;
  height: clamp(280px, 30vw, 400px);
}
.pace-frame svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pc-grid {
  stroke: var(--rule);
  stroke-width: 1;
}
.pc-axis {
  stroke: var(--rule-strong);
  stroke-width: 1;
}
.pc-label {
  font-size: 12px;
  fill: var(--muted);
}
.pc-label--strong {
  font-weight: 600;
  fill: var(--navy);
}
.pc-step-label {
  font-size: 12px;
  font-weight: 600;
  fill: var(--teal);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}
.pc-step-label--scheduled {
  fill: #00695c;
  font-weight: 400;
}
.pc-total {
  stroke: #8692a8;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.pc-released {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linejoin: miter;
}
.pc-released-area {
  fill: rgba(0, 137, 123, 0.07);
}
.pc-scheduled {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.pc-marker {
  fill: #fff;
  stroke: var(--teal);
  stroke-width: 2;
}
.pc-marker--released {
  fill: var(--teal);
}
.pc-spent {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pc-spent-area {
  fill: rgba(63, 81, 181, 0.08);
}
/* The projection: true round dots, never a draw-on dash. */
.pc-projected {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 0 7;
}
.pc-dot {
  fill: var(--blue);
  stroke: #fff;
  stroke-width: 2;
}

/* The stack: the always-readable summary beside the chart. */
.stack-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.stack-row dt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}
.stack-row dt::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 1px;
}
.stack-row dd {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.stack-row--scheduled dt::before {
  background: var(--hatch);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.stack-row--released dt::before {
  height: 0;
  border-top: 3px solid var(--teal);
}
.stack-row--available dt::before {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--teal);
}
.stack-row--spent dt::before {
  background: var(--blue);
}
.stack-row--part {
  margin-left: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
}
.stack-row--part dt {
  font-size: 14px;
}

/* The numeric schedule, always visible and static. */
.schedule-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px var(--col-gap);
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 1000px) {
  .schedule-wrap {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  }
  .schedule-notes {
    padding-left: var(--col-gap);
  }
}
.schedule-notes .rail-note {
  margin-top: 0;
}
.schedule {
  width: 100%;
  font-size: 15px;
}
.schedule caption {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
}
.schedule th,
.schedule td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}
.schedule thead th {
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
}
.schedule tbody th {
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.schedule .num {
  padding-right: 0;
  padding-left: 12px;
  text-align: right;
  white-space: nowrap;
}
.schedule td.num {
  font-weight: 600;
  color: var(--navy);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 1.5px solid var(--teal);
}
.is-scheduled .status::before {
  background: #fff;
  border-style: dashed;
}
/* Under 640px the four columns fit the plate: dates may wrap ("5 Oct / 2026"), money never
   does, headers keep 12px with tighter tracking. */
@media (max-width: 639.98px) {
  .schedule {
    font-size: 13px;
  }
  .schedule th,
  .schedule td {
    padding-right: 6px;
  }
  .schedule thead th {
    letter-spacing: 0.02em;
  }
  .schedule tbody th {
    width: 4.6em;
    white-space: normal;
  }
  .schedule .num {
    padding-left: 4px;
  }
  .status {
    gap: 6px;
  }
}

/* ---------- Funding by component, as a ledger ---------- */
.lrows {
  border-bottom: 1px solid var(--rule);
}
.lrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.lrow:first-child {
  border-top: 0;
  padding-top: 4px;
}
.lrow-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}
.lrow-fig {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}
.lrow-fig .of {
  font-weight: 400;
  color: var(--muted);
}
.track {
  position: relative;
  grid-column: 1 / -1;
  height: 8px;
  background: #e8ecf4;
}
@media (min-width: 900px) {
  .lrow {
    grid-template-columns: minmax(180px, 3fr) minmax(170px, 2fr) minmax(0, 7fr);
  }
  .lrow-fig {
    text-align: left;
  }
  .track {
    grid-column: auto;
  }
}
html:not(.js) .track,
html:not(.js) .lrows-key {
  display: none;
}
.track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--blue);
  transform: scaleX(var(--ratio, 0));
  transform-origin: left center;
}
.track-pace {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: calc(var(--ratio, 0) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--navy);
}
.lrows-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 54em;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.faq details {
  border-top: 1px solid var(--rule-strong);
}
.faq details:last-child {
  border-bottom: 1px solid var(--rule-strong);
}
.faq summary {
  position: relative;
  display: block;
  padding: 24px 56px 24px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--navy);
  transition: transform 200ms var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq summary:hover {
  color: var(--blue);
}
.faq details p {
  max-width: 38em;
  padding: 0 56px 26px 0;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Contact: the silhouette again, rising into the band that joins the footer ---------- */
.contact {
  padding-top: clamp(24px, 3vw, 48px);
  background: var(--canvas);
}
.contact-band {
  padding: clamp(28px, 3vw, 44px) 0 clamp(72px, 8vw, 112px);
  background: var(--band);
  color: var(--on-band);
}
.contact-band .marker {
  --glyph: var(--band-accent);
  color: #fff;
}
.contact-band .running {
  color: var(--on-band-muted);
}
.contact-band .h2 {
  color: #fff;
}
.contact-band .lede {
  margin-top: 20px;
  color: var(--on-band);
}
.contact-grid {
  display: grid;
  gap: 32px var(--col-gap);
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .call-col {
    padding-left: var(--col-gap);
    border-left: 1px solid var(--on-band-rule);
  }
}
@media (max-width: 899.98px) {
  .call-col {
    padding-top: 28px;
    border-top: 1px solid var(--on-band-rule);
  }
}
.call-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.call-slot {
  margin: 16px 0 28px;
}
.call-email {
  font-size: 16px;
  color: var(--on-band);
}
.call-phone[hidden] + .call-email {
  padding-top: 0;
}
.call-email a {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-underline-offset: 4px;
}

/* ---------- Footer: navy, continuous with the contact band ---------- */
.site-footer {
  padding: 56px 0 48px;
  background: var(--band);
  color: var(--on-band);
  font-size: 15px;
}
.site-footer--joined {
  padding-top: 0;
}
.site-footer--joined .footer-grid {
  padding-top: 40px;
  border-top: 1px solid var(--on-band-rule);
}
.site-footer .brand {
  color: #fff;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.footer-brand p {
  margin-top: 12px;
}
.footer-links {
  display: grid;
  gap: 4px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: var(--on-band-muted);
}

/* ---------- Simple pages (privacy, thanks, 404) ---------- */
.page {
  padding: 96px 0 128px;
  background: var(--canvas);
}
.page > .container {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}
.page h1 {
  max-width: 18ch;
  margin-top: 32px;
  font-size: clamp(40px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.page .lede {
  max-width: 44ch;
  margin-top: 20px;
}
.page .pill {
  margin-top: 36px;
}
.prose {
  max-width: 70ch;
  margin-top: 48px;
}
.prose h2 {
  margin: 44px 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}
.prose ul {
  padding-left: 22px;
  list-style: disc;
}
.prose li + li {
  margin-top: 6px;
}
.prose a {
  color: var(--action);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.updated {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- /enquire/: four questions, then the details ---------- */
.enquire {
  padding: clamp(40px, 5vw, 80px) 0 clamp(80px, 9vw, 128px);
  background: var(--canvas);
}
.enquire-title {
  max-width: 14em;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.enquire .lede {
  margin-top: 16px;
}
.wizard {
  max-width: 720px;
  margin-top: clamp(32px, 4vw, 48px);
}
/* Progress: four equal segments, filled to the current question (set by enquire.js). */
.progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 28px;
}
.progress span {
  height: 4px;
  background: var(--rule);
}
[data-at='0'] .progress span:nth-child(-n + 1),
[data-at='1'] .progress span:nth-child(-n + 2),
[data-at='2'] .progress span:nth-child(-n + 3),
[data-at='3'] .progress span,
[data-at='4'] .progress span {
  background: var(--teal);
}
html:not(.js) .progress {
  display: none;
}
.q-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
/* Without JavaScript every step shows at once, one after another. */
.q-step + .q-step {
  margin-top: 44px;
}
/* Question 4 and the last step are ordinary divs, so their own border remains uninterrupted. */
.q-step + div.q-step {
  padding-top: 36px;
  border-top: 1px solid var(--rule-strong);
}
/* A fieldset border is interrupted by its legend; put the divider above the legend instead. */
.q-step + .q-step > legend {
  width: 100%;
  padding-top: 36px;
  border-top: 1px solid var(--rule-strong);
}
.is-wizard .q-step + .q-step {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.is-wizard .q-step + .q-step > legend {
  padding-top: 0;
  border-top: 0;
}
.q-step legend {
  padding: 0;
}
.q-progress {
  display: block;
  color: var(--muted);
}
.q-title {
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.q-title label {
  cursor: inherit;
}
.choices {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 12px 18px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.choice:hover {
  border-color: var(--navy);
}
.choice:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--action);
}
.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.field {
  margin-top: 22px;
}
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--field);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.field textarea {
  min-height: 180px;
  resize: vertical;
}
.field--message {
  margin-top: 20px;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--action);
}
[aria-invalid='true'] {
  border-color: var(--error) !important;
}
.field-hint {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.field-error {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--error);
}
.field-error:empty,
.form-notice:empty {
  display: none;
}
.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* The answers, each with a Change button back to its question. */
.summary {
  margin-top: 22px;
  border-top: 1px solid var(--rule);
}
.summary-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.summary-row dt {
  font-size: 14px;
  color: var(--muted);
}
.summary-row dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}
.summary-answer {
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}
.change {
  flex: none;
}
.link-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--action);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.send-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.booking-fallback,
.form-privacy {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}
.form-privacy a {
  color: var(--action);
  font-weight: 600;
}
.spinner {
  display: none;
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
}
.btn--quiet .spinner {
  border-color: rgba(23, 37, 84, 0.25);
  border-top-color: var(--navy);
}
.is-pending .spinner {
  display: inline-block;
}
.is-pending {
  cursor: progress;
}
.form-notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--error);
  border-radius: 2px;
  background: #fef2f2;
  color: var(--error);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.sent-panel {
  padding-top: 8px;
}
.sent-check {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
}
.sent-ring,
.sent-tick {
  fill: none;
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.sent-ring {
  stroke-width: 3;
}
.sent-tick {
  stroke-width: 4;
}
.sent-heading {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}
.sent-panel p {
  margin-top: 8px;
  color: var(--muted);
}
.booking-next {
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 2px solid var(--teal);
}
.booking-next p {
  margin-top: 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ======================================================================
   Motion. Everything below runs only under html[data-motion='on'], which
   follows the visitor's reduced-motion setting live (js/motion.js). Every
   automatic animation ends within 3.4s of its own start; the only endless
   one is the spinner, and only while a request is pending.
   ====================================================================== */

/* Hero on load (once): words rise 0–0.6s, the steps rise one at a time 0.3–1.5s, the released
   edge draws 1.2–1.8s, Today appears and pulses once by 2.6s. main.js marks `entered` at 3.4s. */
html[data-motion='on']:not(.entered) .hero-rise-0 {
  animation: rise 450ms var(--ease) 0ms both;
}
html[data-motion='on']:not(.entered) .hero-rise-1 {
  animation: rise 450ms var(--ease) 40ms both;
}
html[data-motion='on']:not(.entered) .hero-rise-2 {
  animation: rise 450ms var(--ease) 100ms both;
}
html[data-motion='on']:not(.entered) .hero-rise-3,
html[data-motion='on']:not(.entered) .hero-rise-4 {
  animation: rise 450ms var(--ease) 150ms both;
}
html[data-motion='on']:not(.entered) .silhouette--hero .tier-1 {
  animation: step-in 450ms var(--ease) 300ms both;
}
html[data-motion='on']:not(.entered) .silhouette--hero .tier-2 {
  animation: step-in 450ms var(--ease) 550ms both;
}
html[data-motion='on']:not(.entered) .silhouette--hero .tier-3 {
  animation: step-in 450ms var(--ease) 800ms both;
}
html[data-motion='on']:not(.entered) .silhouette--hero .tier-4 {
  animation: step-in 450ms var(--ease) 1050ms both;
}
html[data-motion='on']:not(.entered) .silhouette--hero .tier-1::before {
  animation: edge-draw 600ms var(--ease) 1200ms both;
}
html[data-motion='on']:not(.entered) .today {
  animation:
    fade 300ms ease 1500ms both,
    tick-pulse 600ms var(--ease) 2000ms;
}

/* Scroll reveals: hidden only once main.js is ready, revealed once, each within 1s. */
html[data-motion='on'] [data-reveal] {
  transition:
    opacity 480ms var(--ease),
    transform 480ms var(--ease);
}
html.ready[data-motion='on'] [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(14px);
}

/* The pace chart draws once on scroll, done by 1.6s. */
html[data-motion='on'] .pc-released {
  transition: stroke-dashoffset 700ms var(--ease) 100ms;
}
html[data-motion='on'] .pc-spent {
  transition: stroke-dashoffset 900ms var(--ease) 400ms;
}
html[data-motion='on'] .pc-scheduled,
html[data-motion='on'] .pc-marker--scheduled,
html[data-motion='on'] .pc-step-label--scheduled {
  transition: opacity 300ms ease 700ms;
}
html[data-motion='on'] .pc-spent-area,
html[data-motion='on'] .pc-projected,
html[data-motion='on'] .pc-dot {
  transition: opacity 300ms ease 1300ms;
}
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-released,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-spent {
  stroke-dashoffset: 1;
}
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-scheduled,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-marker--scheduled,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-step-label--scheduled,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-spent-area,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-projected,
html.ready[data-motion='on'] .plate--pace:not(.is-in) .pc-dot {
  opacity: 0;
}

/* Component bars grow once on scroll. */
html[data-motion='on'] .track-fill {
  transition: transform 700ms var(--ease) 150ms;
}
html.ready[data-motion='on'] .plate--components:not(.is-in) .track-fill {
  transform: scaleX(0);
}

/* How it works: the route draws, then the token makes one pass (done 2.7s after .is-in) and
   comes to rest under Provider paid, whose mark turns teal as it arrives. A section revealed
   while motion was off is `is-settled` and never replays. */
html[data-motion='on'] .station-rail::before {
  transition: transform 900ms var(--ease);
}
html.ready[data-motion='on'] .stations:not(.is-in) .station-rail::before {
  transform: scale(0);
}
html.ready[data-motion='on'] .stations:not(.is-in) .token-run {
  opacity: 0;
}
html.ready[data-motion='on'] .stations:not(.is-in) .station-mark--done {
  background: var(--canvas);
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
html[data-motion='on'] .stations.is-in:not(.is-settled) .token-run {
  animation: travel-x 2400ms var(--ease) 300ms both;
}
html[data-motion='on'] .stations.is-in:not(.is-settled) .station-mark--done {
  animation: paid 350ms ease 2400ms both;
}
@media (max-width: 899.98px) {
  html[data-motion='on'] .stations.is-in:not(.is-settled) .token-run {
    animation: travel-y 2400ms var(--ease) 300ms both;
  }
}

/* The one endless animation: the spinner, only while a send is pending (capped at 15s). */
html[data-motion='on'] .is-pending .spinner {
  animation: spin 800ms linear infinite;
}

/* Success check-mark, after a visitor's own send. */
html[data-motion='on'] .sent-panel.is-drawing {
  animation: fade 300ms ease 0ms both;
}
html[data-motion='on'] .sent-panel.is-drawing .sent-ring {
  animation: draw 500ms var(--ease) 0ms both;
}
html[data-motion='on'] .sent-panel.is-drawing .sent-tick {
  animation: draw 360ms var(--ease) 240ms both;
}

/* Off means off: every keyframe and transition removed, final composition shown. */
html[data-motion='off'] *,
html[data-motion='off'] *::before,
html[data-motion='off'] *::after {
  animation: none !important;
  transition: none !important;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.35em);
  }
}
@keyframes step-in {
  from {
    clip-path: inset(100% 0 0 0);
  }
}
@keyframes edge-draw {
  from {
    transform: scaleX(0);
  }
}
@keyframes tick-pulse {
  50% {
    transform: scaleY(1.75);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}
@keyframes paid {
  from {
    background-color: var(--canvas);
    color: var(--navy);
    box-shadow: inset 0 0 0 2px var(--navy);
  }
}
@keyframes travel-x {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  8%,
  16% {
    transform: translateX(0);
    opacity: 1;
  }
  34%,
  42% {
    transform: translateX(33.333%);
  }
  60%,
  68% {
    transform: translateX(66.667%);
  }
  88%,
  100% {
    transform: translateX(100%);
    opacity: 1;
  }
}
@keyframes travel-y {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  8%,
  16% {
    transform: translateY(0);
    opacity: 1;
  }
  34%,
  42% {
    transform: translateY(33.333%);
  }
  60%,
  68% {
    transform: translateY(66.667%);
  }
  88%,
  100% {
    transform: translateY(100%);
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
