/* =========================================================================
   Dream Digital Onboarding Portal (powered by Metzer)

   Same design language as dreamdigitalldn.co.uk: condensed Archivo capitals
   for signage, Atkinson Hyperlegible Next for reading, thick ink outlines,
   hard offset shadows and the seven transit-line colours. The form is the
   new starter's route to day one, so its progress bar is a line with stops.

   Tuned for a form people fill in on their phones: big targets, calm motion
   (nothing moves on the form page), everything off under reduced motion.

   Class names used by assets/js/onboarding.js — keep them:
     .step .is-active .drop .is-filled .is-over .is-invalid .datefield
     .cal__head .cal__nav .cal__title .cal__grid .cal__dow .cal__blank .cal__day .is-today
     .review__edit .upbar .upbar__fill .upbar__label .field .hp
     #progress li[data-state="done|current"]  .form-status[data-state]
   ========================================================================= */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2-variations"), url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/assets/fonts/atkinson-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink:    #0D0A2C;
  --ink-2:  #1B1650;
  --paper:  #F6F3FF;
  --white:  #FFFFFF;
  --sun:    #FFD60A;
  --hot:    #FF3DA6;
  --error:  #C4162A;
  --ok:     #00A85A;

  /* The seven lines, as on the main site */
  --web:    #FF4B2B;
  --ecom:   #FFC700;
  --seo:    #00C46A;
  --ai:     #8A4DFF;
  --auto:   #1E6BFF;
  --soft:   #FF3DA6;
  --mobile: #00C8C8;

  --muted: #453F6E;
  --rule:  rgba(13, 10, 44, .16);

  --f-sign: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-text: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --bw: 3px;
  --pop: 6px 6px 0 var(--ink);
  --pop-lg: 10px 10px 0 var(--ink);
  --dots: radial-gradient(rgba(13, 10, 44, .13) 1.2px, transparent 1.3px);
}

.line--web    { --c: var(--web);    --on: var(--ink); }
.line--ecom   { --c: var(--ecom);   --on: var(--ink); }
.line--seo    { --c: var(--seo);    --on: var(--ink); }
.line--ai     { --c: var(--ai);     --on: var(--white); }
.line--auto   { --c: var(--auto);   --on: var(--white); }
.line--soft   { --c: var(--soft);   --on: var(--ink); }
.line--mobile { --c: var(--mobile); --on: var(--ink); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute must always win, even over display:grid/flex rules. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: var(--paper) var(--dots); background-size: 22px 22px; color: var(--ink);
  font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0); }
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
::selection { background: var(--hot); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--f-sign); font-stretch: 68%; font-weight: 900; line-height: .9; letter-spacing: -.01em; margin: 0 0 .45em; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: clamp(3rem, 1rem + 6.2vw, 7.2rem); line-height: .86; }
h2 { font-size: clamp(2.4rem, 1.2rem + 4vw, 5rem); line-height: .88; }
h3 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem); font-stretch: 76%; font-weight: 850; line-height: .98; }
h4 { font-size: 1.2rem; font-stretch: 82%; font-weight: 800; line-height: 1.05; text-transform: none; }
p  { margin: 0 0 1em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 800; }

.lede { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.45; max-width: 44ch; font-weight: 600; }
.quiet { color: var(--muted); }
.fine { font-size: .98rem; line-height: 1.55; }

:focus-visible { outline: 4px solid var(--auto); outline-offset: 3px; border-radius: 6px; }
.band-night .masthead :focus-visible, .progress :focus-visible, .footer :focus-visible, .hero--blue :focus-visible { outline-color: var(--sun); }

.skip { position: absolute; left: 16px; top: -90px; z-index: 200; background: var(--sun); color: var(--ink); border: var(--bw) solid var(--ink);
  font: 800 1rem/1 var(--f-sign); padding: 14px 18px; border-radius: 12px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.band { padding-block: clamp(56px, 7vw, 112px); position: relative; }
.band--paper { background: var(--paper) var(--dots); background-size: 22px 22px; }
.band--white { background: var(--white); }

.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.intro h2 { margin: 0; }
.intro p { font-size: 1.12rem; }

/* ---------- Masthead: the floating sign from the main site ---------- */
.masthead { position: absolute; inset: 0 0 auto 0; z-index: 50; padding-inline: var(--gutter); }
.masthead__inner { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 14px auto 0; display: flex; align-items: center; gap: 10px 18px;
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--pop); padding: 9px 10px 9px 14px; }
/* On the form page the sign sits in the flow, on ink, above the progress line */
.band-night .masthead { position: relative; background: var(--ink); padding-bottom: 16px; }
.band-night .masthead__inner { box-shadow: 6px 6px 0 var(--hot); }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; min-width: 0; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark path { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.brand__mark .bm-a { stroke: var(--web); }
.brand__mark .bm-b { stroke: var(--ai); }
.brand__mark circle { fill: var(--sun); stroke: var(--ink); stroke-width: 4; }
.brand__text { display: flex; flex-direction: column; gap: 3px; line-height: 1; min-width: 0; }
.brand__name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-family: var(--f-sign); font-stretch: 72%; font-weight: 900; font-size: 1.55rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand__sub { font-stretch: 86%; font-weight: 850; font-size: .74rem; letter-spacing: .04em; background: var(--hot); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 8px 3px; rotate: -3deg; }
.brand__engine { font-size: .8rem; color: var(--muted); }
.brand__engine b { color: var(--ink); }

.masthead__secure { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 14px; text-decoration: none;
  font-family: var(--f-sign); font-stretch: 84%; font-weight: 800; font-size: 1rem; line-height: 1;
  background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.masthead__secure:hover { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.masthead__secure svg { color: var(--ok); }

/* ---------- Buttons: chunky, pressable ---------- */
.btn {
  --b: var(--ink); --f: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--f-sign); font-stretch: 82%; font-weight: 850; font-size: 1.12rem; line-height: 1; letter-spacing: .01em; text-transform: uppercase;
  min-height: 58px; padding: 0 26px; border-radius: 16px; border: var(--bw) solid var(--ink);
  background: var(--b); color: var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 5px 5px 0 var(--shadow, var(--ink)); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--shadow, var(--ink)); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--shadow, var(--ink)); }
.btn--hot   { --b: var(--hot); --f: var(--ink); }
.btn--white, .btn--ghost { --b: var(--white); --f: var(--ink); }
.btn--sun   { --b: var(--sun); --f: var(--ink); }
.btn--ink   { --b: var(--ink); --f: var(--white); --shadow: var(--hot); }
.hero .btn--ink { --shadow: var(--white); }
.btn--small { min-height: 46px; padding: 0 16px; font-size: 1rem; border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.btn--wide { width: 100%; }
.btn[disabled], .btn[disabled]:hover { opacity: .65; cursor: progress; transform: none; box-shadow: 5px 5px 0 var(--shadow, var(--ink)); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }

/* ---------- Page heroes: one loud colour each ---------- */
.hero { --hb: var(--sun); --hf: var(--ink); position: relative; overflow: hidden; background: var(--hb) radial-gradient(rgba(13, 10, 44, .2) 1.2px, transparent 1.3px); background-size: 22px 22px;
  color: var(--hf); border-bottom: var(--bw) solid var(--ink); padding-block: clamp(136px, 12vw, 176px) clamp(56px, 7vw, 100px); }
.hero--sun   { --hb: var(--sun); }
.hero--green { --hb: var(--seo); }
.hero--blue  { --hb: var(--auto); --hf: var(--white); }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid var(--ink); opacity: .12; pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 8px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(28px, 5vw, 72px); align-items: center; }

.kicker { display: inline-block; font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: 1rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em;
  background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); rotate: -1.5deg; margin-bottom: 22px; }
.hl { display: inline-block; white-space: nowrap; background: var(--hot); color: var(--ink); padding: .02em .14em .06em; border-radius: .12em; rotate: -3deg; transform-origin: 0 100%; box-shadow: 6px 6px 0 var(--ink); }

/* The five stops on the welcome page */
.routecard { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--pop-lg); padding: clamp(22px, 2.6vw, 34px); rotate: 1.5deg; }
.routecard__title { font-family: var(--f-sign); font-stretch: 70%; font-weight: 900; font-size: clamp(1.7rem, 1.3rem + 1vw, 2.3rem); line-height: .95; text-transform: uppercase; margin: 0 0 18px; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 13px; top: 20px; bottom: 26px; width: 10px; border-radius: 5px; background: var(--ink); }
.stops li { position: relative; padding: 8px 0 8px 52px; font-family: var(--f-sign); font-stretch: 84%; font-weight: 800; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.15; }
.stops li::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; background: var(--c, var(--white)); border: 6px solid var(--ink); transition: scale .15s ease; }
.stops li:hover::before { scale: 1.2; }
.stops .stops__end { margin-top: 6px; padding-block: 14px; font-stretch: 70%; font-weight: 900; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-transform: uppercase; }
.stops .stops__end::before { left: -6px; width: 48px; height: 48px; background: var(--sun); border-width: 7px; }

/* ---------- What you need ---------- */
.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.need > li { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 24px; padding: 24px 24px 26px; box-shadow: var(--pop); transition: transform .15s ease, box-shadow .15s ease, rotate .15s ease; }
.need > li:nth-child(odd) { rotate: -1deg; } .need > li:nth-child(even) { rotate: 1deg; }
.need > li:hover { rotate: 0deg; transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.need__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c, var(--sun)); color: var(--on, var(--ink)); border: var(--bw) solid var(--ink); margin-bottom: 18px; }
.need__icon svg { width: 36px; height: 36px; }
.need h3 { margin-bottom: 10px; }
.need p { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--muted); }

/* ---------- Notes ---------- */
.note { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 20px 22px; box-shadow: 6px 6px 0 var(--seo); font-size: 1.04rem; line-height: 1.5; margin-top: clamp(36px, 4vw, 56px); max-width: 52rem; }
.note b { font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: 1.1em; }
.note--shield { position: relative; padding-left: 80px; }
.note--shield::before { content: ""; position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; border-radius: 50%; border: var(--bw) solid var(--ink);
  background: var(--seo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.6 3.4 3.4v3.4c0 2.8 1.9 4.9 4.6 5.6 2.7-.7 4.6-2.8 4.6-5.6V3.4L8 1.6Z' fill='none' stroke='%230D0A2C' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M5.9 7.3 7.4 8.8 10.2 5.8' fill='none' stroke='%230D0A2C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/26px no-repeat; }

/* ---------- Received: reference and next steps ---------- */
.receipt { font-family: var(--f-sign); font-stretch: 86%; font-weight: 850; font-size: 1.2rem; text-transform: uppercase; margin: 28px 0 12px; }
.receipt__ref { display: inline-block; font-family: var(--f-sign); font-stretch: 78%; font-weight: 900; font-size: clamp(2.4rem, 1rem + 5vw, 5.4rem); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .02em;
  background: var(--sun); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 22px; padding: .22em .45em; box-shadow: var(--pop-lg); rotate: -2deg; user-select: all; margin-bottom: 28px; }

.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: stage; position: relative; }
.route::before { content: ""; position: absolute; left: 30px; right: 0; top: 32px; height: 16px; border-radius: 8px; background: var(--hot); border: var(--bw) solid var(--ink); translate: 0 -50%; }
.route li { counter-increment: stage; position: relative; z-index: 1; padding-right: 8px; }
.route li::before { content: counter(stage); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--hot); border: 6px solid var(--ink);
  font: 900 1.7rem/1 var(--f-sign); font-stretch: 80%; margin-bottom: 26px; rotate: -8deg; box-shadow: 4px 4px 0 var(--ink); }
.route li:last-child::before { background: var(--sun); }
.route h3 { margin-bottom: .45em; }
.route p { font-size: 1.05rem; color: var(--muted); }
.after-note { margin-top: 28px; }

/* ---------- Privacy prose ---------- */
.back { margin-bottom: 22px; }
.back a { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: 1rem; text-transform: uppercase; text-decoration: none;
  background: var(--white); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 999px; padding: 9px 14px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.back a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.updated { display: inline-block; margin-top: 18px; font-family: var(--f-sign); font-stretch: 86%; font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em;
  background: var(--ink); color: var(--white); border-radius: 999px; padding: 7px 12px; }

.prose { max-width: 74ch; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 28px; box-shadow: var(--pop-lg); padding: clamp(24px, 4.5vw, 60px); }
.prose h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.7rem); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--hot); font-size: 1.2em; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2em 0 1.4em; font-size: 1rem; border: var(--bw) solid var(--ink); border-radius: 16px; overflow: hidden; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 2px solid var(--rule); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; text-transform: uppercase; letter-spacing: .02em; background: var(--ink); color: var(--white); border-bottom: 0; }
.prose td + td, .prose th + th { border-left: 2px solid var(--rule); }
.prose .actions { margin-top: 2em; }

/* ---------- Form progress: a line with five stops ---------- */
.progress { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--white); }
.progress::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--web), var(--ecom), var(--seo), var(--mobile), var(--auto), var(--ai), var(--soft)); }
.progress__inner { display: flex; list-style: none; margin: 0 auto; padding-block: 18px 22px; max-width: 900px; }
.progress li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
/* the track to the next stop; it turns pink once you've passed */
.progress li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 8px; translate: 0 -50%; border-radius: 4px;
  background: rgba(255, 255, 255, .2); transition: background-color .3s ease; }
.progress li[data-state="done"]::after { background: var(--hot); }
.progress .progress__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 1;
  background: var(--ink); color: var(--white); border: 4px solid rgba(255, 255, 255, .55);
  font: 900 1.25rem/1 var(--f-sign); font-stretch: 78%; transition: background-color .25s ease, scale .25s cubic-bezier(.3, 1.6, .5, 1), rotate .25s ease, border-color .25s ease; }
.progress li[data-state="done"] .progress__n { background: var(--hot); color: var(--ink); border-color: var(--white); font-size: 0; }
.progress li[data-state="done"] .progress__n::before { content: ""; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230D0A2C' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.progress li[data-state="current"] .progress__n { background: var(--sun); color: var(--ink); border-color: var(--white); scale: 1.16; rotate: -8deg; box-shadow: 4px 4px 0 var(--hot); }
.progress__label { font-family: var(--f-sign); font-stretch: 82%; font-weight: 800; font-size: .92rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em;
  color: #C9C4F2; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.progress li[data-state="done"] .progress__label, .progress li[data-state="current"] .progress__label { color: var(--white); }
.progress li[data-state="current"] .progress__label { color: var(--sun); }

/* ---------- Form ---------- */
.formwrap { max-width: 800px; margin-inline: auto; }
#onboarding-form { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 28px; padding: clamp(22px, 4.5vw, 52px);
  box-shadow: 12px 12px 0 var(--hot), 12px 12px 0 var(--bw) var(--ink); }
.step { display: none; }
.step.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step__head { margin-bottom: clamp(24px, 3vw, 36px); }
.step__head h2 { font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.4rem); margin-bottom: .3em; }
.step__head h2:focus { outline: none; }
.step__kicker { display: inline-block; font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: .95rem; line-height: 1; letter-spacing: .03em; text-transform: uppercase;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 12px; margin: 0 0 16px; rotate: -2deg; }
.subhead { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); margin: 44px 0 20px; padding-top: 32px; border-top: var(--bw) solid var(--ink); }

.field { margin-bottom: 26px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field label, .field .label { display: block; font-family: var(--f-sign); font-stretch: 86%; font-weight: 800; font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }
.req { color: var(--error); }
.hint { font-size: .98rem; line-height: 1.5; color: var(--muted); margin: -2px 0 10px; }
.input, .select, .textarea { width: 100%; font: 500 1.1rem/1.4 var(--f-text); color: var(--ink); background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 14px;
  padding: 13px 16px; min-height: 58px; transition: box-shadow .12s ease, translate .12s ease, background-color .12s ease; }
.input::placeholder { color: #8C87AE; opacity: 1; }
.textarea { min-height: 140px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%230D0A2C' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; background-color: var(--white); box-shadow: 5px 5px 0 var(--auto); translate: -2px -2px; }
[aria-invalid="true"] { border-color: var(--error) !important; box-shadow: 5px 5px 0 var(--error); background-color: #FFF5F6; }
.field-error { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: 1rem; line-height: 1.4; color: var(--error); margin-top: 10px; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: var(--white); font: 900 .9rem/1 var(--f-sign); margin-top: 1px; }
.field-error:empty { display: none; }

/* Segmented radio (start time) */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.field .segmented label { position: relative; display: block; margin: 0; cursor: pointer; border: var(--bw) solid var(--ink); border-radius: 18px; padding: 16px 18px 16px 58px; background: var(--white);
  font: 500 1.05rem/1.35 var(--f-text); box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease; }
.segmented label::before { content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--white); }
.segmented label b { display: block; font-family: var(--f-sign); font-stretch: 76%; font-weight: 900; font-size: 1.6rem; line-height: 1; text-transform: uppercase; margin-bottom: 4px; }
.field .segmented label:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.field .segmented input:checked + label { background: var(--sun); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hot); }
.segmented input:checked + label::before { background: var(--ink); box-shadow: inset 0 0 0 4px var(--sun); }
.segmented input:focus-visible + label { outline: 4px solid var(--auto); outline-offset: 4px; }
.segmented input[aria-invalid="true"] + label { border-color: var(--error); }

/* Checkboxes */
.field .check { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; font: 400 1.04rem/1.5 var(--f-text); cursor: pointer; margin: 0;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; }
.check input { width: 28px; height: 28px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.check:has(input:checked) { background: #E3FAEE; }
.check:has(input[aria-invalid="true"]) { border-color: var(--error); background: #FFF5F6; }

/* File upload / dropzone */
.field .drop { position: relative; display: block; margin: 0; border: var(--bw) dashed var(--ink); border-radius: 20px; background: var(--paper); padding: 28px 22px; text-align: center; cursor: pointer;
  font: 400 1rem/1.4 var(--f-text); transition: background-color .15s ease, box-shadow .15s ease, translate .15s ease; }
.drop:hover { background: var(--white); }
.drop.is-over { background: #FFF6C2; border-style: solid; }
.drop:focus-within { box-shadow: 5px 5px 0 var(--auto); translate: -2px -2px; }
.drop.is-filled { border-style: solid; background: var(--white); text-align: left; padding: 16px; box-shadow: 5px 5px 0 var(--seo); }
.drop.is-filled:has(input[aria-invalid="true"]) { box-shadow: 5px 5px 0 var(--error); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop__cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sign); font-stretch: 82%; font-weight: 850; font-size: 1.1rem; line-height: 1; text-transform: uppercase;
  background: var(--sun); border: var(--bw) solid var(--ink); border-radius: 14px; padding: 14px 18px; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.drop__cta::before { content: ""; width: 22px; height: 22px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D0A2C' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5h3l1.6-2.5h6.8L17 8.5h3v10H4z'/%3E%3Ccircle cx='12' cy='13' r='3.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.drop:hover .drop__cta { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.drop__hint { display: block; font-size: .96rem; color: var(--muted); margin-top: 14px; }
.drop__preview { display: none; align-items: center; gap: 16px; }
.drop.is-filled .drop__preview { display: flex; }
.drop.is-filled .drop__empty { display: none; }
.drop__thumb { width: 80px; height: 80px; flex: none; border-radius: 12px; object-fit: cover; border: var(--bw) solid var(--ink); background: var(--paper); }
.drop__meta { display: flex; flex-direction: column; gap: 2px; text-align: left; min-width: 0; }
.drop__fname { font-family: var(--f-sign); font-stretch: 86%; font-weight: 800; font-size: 1.05rem; word-break: break-all; }
.drop__fsize { font-size: .95rem; color: var(--muted); }
.drop__change { margin-left: auto; flex: none; font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: .95rem; line-height: 1; text-transform: uppercase;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.drop__change:hover { background: var(--sun); }

/* ID guidance — one guide per document type, only the chosen one shows */
.guide-prompt { background: var(--paper); border: 2px dashed var(--ink); border-radius: 16px; padding: 16px 18px; font-size: 1rem; color: var(--muted); margin: 4px 0 20px; }
.guide { display: grid; gap: 14px; margin: 4px 0 22px; }
.guide figure { margin: 0; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 18px; padding: 12px; }
.guide figure svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.guide figcaption { font-family: var(--f-sign); font-stretch: 86%; font-weight: 800; font-size: 1rem; line-height: 1.25; margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; }
.guide__good { box-shadow: 6px 6px 0 var(--seo); }
.guide__good figcaption { color: var(--ink); }
.guide__bad { border-color: var(--error) !important; box-shadow: 4px 4px 0 var(--error); }
.guide__bad figcaption { color: var(--error); }
.tick, .cross { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: -2px; border: 2px solid var(--ink); background-position: center; background-repeat: no-repeat; background-size: 12px; }
.tick { background-color: var(--seo); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 4.8 9.3 10 3.2' fill='none' stroke='%230D0A2C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cross { background-color: var(--error); border-color: var(--error); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3 3 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* Passport: the correct (tall) example on the left, the two mistakes stacked on the right */
.guide--passport { grid-template-columns: 1.15fr 1fr; grid-template-areas: "good bad1" "good bad2" "rules rules"; }
.guide--passport .guide__good { grid-area: good; }
.guide--passport .guide__bad:nth-of-type(2) { grid-area: bad1; }
.guide--passport .guide__bad:nth-of-type(3) { grid-area: bad2; }
.guide--passport .rules { grid-area: rules; }
.guide--licence { grid-template-columns: 1fr 1fr; }
.guide--licence .rules { grid-column: 1 / -1; }
.rules { list-style: none; margin: 8px 0 0; padding: 18px; display: grid; gap: 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 16px; }
.rules li { position: relative; padding-left: 34px; font-size: 1.02rem; line-height: 1.4; }
.rules li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--seo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 4.8 9.3 10 3.2' fill='none' stroke='%230D0A2C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Day / Month / Year date of birth */
fieldset.field { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
fieldset.field legend { padding: 0; }
.datefield__row { display: flex; gap: 12px; flex-wrap: nowrap; }
.field .datefield__part label { font-size: .98rem; font-stretch: 90%; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.datefield__part--day, .datefield__part--year { flex: 0 0 auto; }
.datefield__part--day .input { width: 4.8rem; text-align: center; }
.datefield__part--year .input { width: 6.6rem; text-align: center; }
.datefield__part--month { flex: 1 1 8rem; min-width: 0; }

/* Start-date calendar */
.cal { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; padding: 16px; max-width: 430px; user-select: none; box-shadow: 6px 6px 0 var(--ink); }
.cal.is-invalid { border-color: var(--error); box-shadow: 6px 6px 0 var(--error); }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__title { font-family: var(--f-sign); font-stretch: 74%; font-weight: 900; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.cal__nav { width: 46px; height: 46px; border-radius: 50%; border: var(--bw) solid var(--ink); background: var(--sun); color: var(--ink); font: 900 1.5rem/1 var(--f-sign); cursor: pointer;
  display: grid; place-items: center; padding-bottom: 3px; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; box-shadow: none; background: var(--paper); }
.cal__nav:not(:disabled):hover { background: var(--hot); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__dow { font-family: var(--f-sign); font-stretch: 84%; font-weight: 800; font-size: .82rem; text-transform: uppercase; text-align: center; color: var(--muted); padding: 4px 0; }
.cal__day { aspect-ratio: 1; min-height: 40px; border: 2px solid transparent; border-radius: 12px; background: var(--paper); color: var(--ink); font: 800 1.05rem/1 var(--f-sign); font-stretch: 86%; cursor: pointer;
  transition: background-color .12s ease, transform .12s ease; }
.cal__day:hover:not(:disabled) { background: var(--sun); border-color: var(--ink); }
.cal__day:disabled { background: transparent; color: rgba(13, 10, 44, .28); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.cal__day[aria-pressed="true"] { background: var(--hot); color: var(--ink); border-color: var(--ink); rotate: -6deg; box-shadow: 3px 3px 0 var(--ink); }
.cal__day.is-today { box-shadow: inset 0 0 0 2px rgba(13, 10, 44, .4); }
.cal__day:focus-visible { outline-offset: 1px; }
.cal__blank { visibility: hidden; }
.cal__chosen { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-sign); font-stretch: 86%; font-weight: 800; font-size: 1.08rem; margin: 18px 0 0;
  background: #E3FAEE; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px 8px 10px; }
.cal__chosen::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); flex: none;
  background: var(--seo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 4.8 9.3 10 3.2' fill='none' stroke='%230D0A2C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.cal__chosen:empty { display: none; }

/* Step nav */
.step-nav { display: flex; gap: 14px; margin-top: 36px; padding-top: 28px; border-top: var(--bw) solid var(--ink); }
.step-nav .btn { flex: 1; }
.step-nav .btn--back { flex: 0 0 auto; }

/* Review */
.review { margin: 0; padding: 0; border-top: var(--bw) solid var(--ink); }
.review > div { display: grid; grid-template-columns: 11rem 1fr auto; gap: 6px 18px; padding: 14px 0; border-bottom: 2px solid var(--rule); align-items: baseline; }
.review > div:last-child { border-bottom: var(--bw) solid var(--ink); }
.review dt { font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; text-transform: uppercase; font-size: .98rem; letter-spacing: .02em; }
.review dd { margin: 0; word-break: break-word; font-weight: 600; }
.review__edit { font-family: var(--f-sign); font-stretch: 84%; font-weight: 850; font-size: .9rem; line-height: 1; text-transform: uppercase; cursor: pointer;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 7px 12px; transition: background-color .12s ease; }
.review__edit:hover { background: var(--sun); }

/* Status banner */
.form-status { font-weight: 700; font-size: 1.05rem; line-height: 1.4; padding: 16px 18px; margin-bottom: 28px; border-radius: 16px; border: var(--bw) solid var(--ink); background: var(--sun); box-shadow: 5px 5px 0 var(--ink); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { background: #FFE3E6; border-color: var(--error); color: var(--error); box-shadow: 5px 5px 0 var(--error); }
.form-status[data-state="sending"] { background: var(--white); }
.upbar__label { display: block; font-family: var(--f-sign); font-stretch: 86%; font-weight: 850; text-transform: uppercase; }
.upbar { display: block; height: 18px; margin-top: 12px; border-radius: 999px; background: var(--paper); border: var(--bw) solid var(--ink); overflow: hidden; }
.upbar__fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .2s ease;
  background: var(--hot) repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255, 255, 255, .28) 8px 16px); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ticker (as on the main site) ---------- */
.marquee { overflow: hidden; background: var(--hot); color: var(--ink); border-block: var(--bw) solid var(--ink); }
.marquee__track { display: flex; width: max-content; }
.marquee__run { display: flex; align-items: center; flex: none; padding-block: 14px; }
.marquee span { font-family: var(--f-sign); font-stretch: 70%; font-weight: 900; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); line-height: 1; text-transform: uppercase; white-space: nowrap; padding-inline: clamp(16px, 2vw, 30px); }
.marquee i { font-style: normal; font-size: clamp(1.1rem, 1rem + .8vw, 1.8rem); color: var(--sun); -webkit-text-stroke: 1.5px var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(48px, 6vw, 88px) 28px; overflow: hidden;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 32px; }
.footer__brand { font-family: var(--f-sign); font-stretch: 68%; font-weight: 900; text-transform: uppercase; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); line-height: .9; max-width: 14ch; margin: 0; }
.footer__engine { color: #C9C4F2; margin: 10px 0 0; }
.footer__engine b { color: var(--sun); }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__links a { font-family: var(--f-sign); font-stretch: 84%; font-weight: 800; font-size: 1rem; line-height: 1; text-transform: uppercase; text-decoration: none;
  border: 2px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 11px 16px; transition: background-color .12s ease, color .12s ease, border-color .12s ease; }
.footer__links a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.footer__giant { display: flex; gap: 0 .2em; margin: clamp(40px, 5vw, 72px) 0 0; max-width: none; font-family: var(--f-sign); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.8rem, 13.2vw, 12.4rem); line-height: .78; font-stretch: 62%; white-space: nowrap; }
.footer__giant span { color: transparent; -webkit-text-stroke: 2.5px var(--white); transition: font-stretch .45s cubic-bezier(.3, 1.4, .5, 1), color .2s ease; }
.footer__giant span:hover { font-stretch: 78%; color: var(--sun); -webkit-text-stroke-color: var(--sun); }
.footer__giant span:last-child:hover { color: var(--hot); -webkit-text-stroke-color: var(--hot); }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 2px solid rgba(255, 255, 255, .22); font-size: .94rem; color: #C9C4F2; max-width: none; }
.footer__legal a { color: var(--white); }
.footer a:hover { color: var(--sun); }
.footer__links a:hover { color: var(--ink); }

/* ---------- Motion (none of it on the form) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: page-title .8s cubic-bezier(.2, 1.1, .3, 1) both; }
  .hero::after { animation: bob 7s ease-in-out infinite alternate; }
  .routecard { animation: card-in .9s cubic-bezier(.2, 1.2, .3, 1) .15s both; }
  .marquee__track { animation: ticker 30s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes page-title { from { opacity: 0; transform: translateY(40px) rotate(-2deg); font-stretch: 100%; } }
@keyframes card-in { from { opacity: 0; transform: translateY(40px) rotate(4deg); } }
@keyframes bob { to { transform: translate(-40px, -30px) scale(1.08); } }
@keyframes ticker { to { transform: translateX(-33.3333%); } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .intro { grid-template-columns: 1fr; }
  .routecard { max-width: 480px; rotate: 0deg; }
  .need { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; gap: 32px; }
  .route::before { display: none; }
  .route li { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; }
  .route li::before { grid-row: span 2; margin: 0; }
}

@media (max-width: 760px) {
  :root { --pop-lg: 6px 6px 0 var(--ink); }
  .need { grid-template-columns: 1fr; }
  .need > li:nth-child(n) { rotate: 0deg; }
  .field-pair, .segmented { grid-template-columns: 1fr; }
  .guide--passport, .guide--licence { grid-template-columns: 1fr; grid-template-areas: none; }
  .guide--passport > * { grid-area: auto !important; }
  .guide--licence .rules { grid-column: auto; }
  .cal { max-width: none; }
  .review > div { grid-template-columns: 1fr auto; }
  .review dd { grid-column: 1 / -1; grid-row: 2; }
  .review__edit { grid-column: 2; grid-row: 1; justify-self: end; }
  .masthead__secure span { display: none; }
  .masthead__secure { padding: 0 12px; }
  #onboarding-form { box-shadow: 6px 6px 0 var(--hot), 6px 6px 0 var(--bw) var(--ink); border-radius: 22px; }
  .progress__label { display: none; }
  .progress__inner { padding-block: 14px 20px; }
  .progress li:not(:last-child)::after { left: calc(50% + 20px); right: calc(-50% + 20px); }
  .progress .progress__n { width: 40px; height: 40px; font-size: 1.15rem; }
  .progress li:not(:last-child)::after { top: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .footer__giant span { -webkit-text-stroke-width: 1.5px; }
  .note--shield { padding-left: 22px; padding-top: 76px; }
}

@media (max-width: 440px) {
  .brand__name { font-size: 1.3rem; }
  .brand__mark { width: 32px; height: 32px; }
  .brand__engine { font-size: .74rem; }
  .step-nav { gap: 10px; }
  .step-nav .btn { padding-inline: 16px; }
  .datefield__row { gap: 8px; }
  .datefield__part--day .input { width: 4.2rem; }
  .datefield__part--year .input { width: 5.8rem; }
  .drop.is-filled .drop__preview { gap: 12px; }
  .drop__thumb { width: 56px; height: 56px; }
  .drop__meta { flex: 1; }
  .drop__fsize { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
