/* Stack22 intake form. Visual language taken from stack22.co.uk: warm off-white canvas, white
   24px-radius cards with a soft shadow, frosted sticky header, pill buttons, Plus Jakarta Sans
   headings and Inter body text.
   Accessibility: gold only appears as text where it passes WCAG AA (large text uses --gold-text,
   small text --gold-ink). Buttons use navy text on gold; focus rings are navy, not gold. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #162436;
  --text: #1b2632;
  --muted: #5d656b;
  --gold: #d4af37;
  --gold-text: #b08a1a;      /* gold for large text: 3.1:1 on the canvas */
  --gold-ink: #8a6d12;       /* gold for small text: 4.8:1 */
  --gold-soft: rgba(212, 175, 55, 0.12);
  --sage: #2f5648;
  --canvas: #fcfcfa;
  --card: #ffffff;
  --line: #e8e6e3;
  --line-strong: #d5d2cd;
  --tint: rgba(22, 36, 54, 0.05);
  --error: #b3261e;
  --error-soft: #fdf1f0;
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --radius-card: 24px;
  --radius-control: 14px;
  --heading: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: #fff; border-radius: 999px; }
.skip-link:focus { top: .75rem; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

/* ---- Header & footer ------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.header-inner { max-width: 72rem; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font: 800 1.5rem/1 var(--heading); letter-spacing: -0.03em; color: var(--navy); text-decoration: none; }
.logo:hover { color: var(--navy); }
.logo .gold { color: var(--gold); }
.header-link { font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.header-link:hover { color: var(--navy); }
.site-footer { max-width: 72rem; margin: 0 auto; padding: 2rem 1.25rem 2.5rem; color: var(--muted); font-size: .875rem; }
.site-footer a { color: inherit; }

/* ---- Intro --------------------------------------------------------------------------- */
main { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.intro-block { max-width: 44rem; padding: 2.5rem 0 2rem; }
.eyebrow { margin: 0 0 .75rem; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
h1 { margin: 0 0 1rem; font: 700 clamp(2rem, 5.5vw, 3rem)/1.1 var(--heading); letter-spacing: -0.03em; color: var(--navy); }
h1 .accent { color: var(--gold-text); }
.lead { margin: 0 0 1.25rem; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.reassure {
  display: flex; gap: .75rem; align-items: flex-start; margin: 0;
  padding: 1rem 1.15rem; border-radius: 18px; background: var(--card); box-shadow: var(--shadow-card); color: var(--text);
}
.reassure-icon {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--gold-soft); position: relative; margin-top: .05rem;
}
.reassure-icon::after { content: ""; position: absolute; inset: .4rem; background: var(--gold-ink); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.req { color: var(--gold-ink); font-weight: 700; }
/* After step 1 the intro collapses to the eyebrow so questions stay near the top. */
body.started .intro-block { padding: 1.5rem 0 1rem; }
body.started .intro-block :is(h1, .lead, .reassure) { display: none; }
body.started .intro-block .eyebrow { margin: 0; }
body.finished .intro-block, body.finished .sidebar { display: none; }
body.finished .layout { padding-top: 2.5rem; }

/* ---- Layout -------------------------------------------------------------------------- */
.layout { display: grid; gap: 1.5rem; padding-bottom: 2rem; }
.sidebar { display: none; }
@media (min-width: 960px) {
  .layout { grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .sidebar { display: block; position: sticky; top: 6rem; }
  .mobile-progress { display: none; }
  body.finished .layout { grid-template-columns: minmax(0, 1fr); max-width: 44rem; }
}
.content { min-width: 0; max-width: 48rem; }

/* ---- Step navigation (desktop sidebar) ------------------------------------------------ */
.step-list { list-style: none; margin: 0 0 1.5rem; padding: 0; position: relative; }
.step-list li { position: relative; padding: .1rem 0; }
/* Connector: from the centre of this step's circle to the centre of the next one, drawn above the
   row background but under the circles, so it lines up exactly and always meets the next circle.
   Circle centre x = button padding (.5rem) + half the circle (.8rem). */
.step-list li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; left: calc(1.3rem - 1px); top: 50%; height: 100%; width: 2px;
  background: var(--line); pointer-events: none;
}
.step-list li:has(.step-link.done):not(:last-child)::after { background: var(--navy); }
.step-link {
  display: flex; align-items: center; justify-content: flex-start; gap: .75rem; width: 100%; min-height: 0; padding: .45rem .5rem; margin: 0;
  border-radius: 12px; background: none; border: 0; text-align: left; font: 500 .925rem/1.3 var(--body); color: var(--muted); cursor: pointer;
}
/* opacity: 1 overrides the generic disabled-button fade: any opacity below 1 isolates the row's
   stacking, which put the connector line on top of the circles and made them see-through. */
.step-link[disabled] { cursor: default; opacity: 1; }
.step-link[disabled]:not(.current) { color: var(--muted); }
.step-link[disabled]:hover { background: none; }
.step-link.current[disabled]:hover { background: var(--card); }
.step-link:not([disabled]):hover { background: var(--tint); color: var(--navy); }
.step-link:active { transform: none; }
.step-num {
  position: relative; z-index: 2;
  flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 999px;
  font: 600 .75rem/1 var(--body); background: var(--card); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.step-link.done .step-num { background: var(--navy); box-shadow: none; color: transparent; position: relative; }
.step-link.done .step-num::after { content: ""; position: absolute; inset: .4rem; background: #fff; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.step-link.current { background: var(--card); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-card); }
.step-link.current .step-num { background: var(--gold); color: var(--navy); box-shadow: none; }
.side-card { padding: 1.1rem 1.15rem; border-radius: 18px; background: var(--tint); font-size: .9rem; color: var(--muted); }
.side-card p { margin: 0; }
.side-title { font-weight: 600; color: var(--navy) !important; margin-bottom: .25rem !important; }

/* ---- Mobile progress ------------------------------------------------------------------ */
.mobile-progress { margin-bottom: 1rem; }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .5rem; font-size: .85rem; color: var(--muted); }
.progress-meta strong { color: var(--navy); font-weight: 600; }
.progress-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .3s ease; }
.skip-hint { margin: 0 0 1rem; font-size: .9rem; color: var(--muted); }

/* ---- Panels & steps ------------------------------------------------------------------- */
.panel { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.75rem 1.25rem; }
@media (min-width: 640px) { .panel { padding: 2.5rem 2.75rem; } }
.step { animation: step-in .25s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.step h2 { margin: 0 0 .5rem; font: 700 clamp(1.5rem, 4vw, 1.875rem)/1.2 var(--heading); letter-spacing: -0.02em; color: var(--navy); }
.step h2:focus { outline: none; }
.intro { margin: 0 0 2rem; color: var(--muted); font-size: 1.05rem; }
.step h2 + .field { margin-top: 1.75rem; }

/* ---- Fields --------------------------------------------------------------------------- */
.field { margin: 0 0 1.75rem; border: 0; padding: 0; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field > label, .field > legend { display: block; font-weight: 600; margin-bottom: .4rem; color: var(--navy); padding: 0; line-height: 1.4; }
.help { color: var(--muted); font-size: .9rem; margin: -.2rem 0 .6rem; }
.field-optional { font-weight: 400; color: var(--muted); font-size: .875rem; }

input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 7.5rem; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #8b9196; }
input:hover, textarea:hover { border-color: #b9b5ae; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--gold-soft); }

/* Choice tiles (radio = single choice, checkbox = several) */
.options { display: grid; gap: .6rem; }
@media (min-width: 640px) { .options.cols { grid-template-columns: 1fr 1fr; } }
.option {
  position: relative; display: flex; gap: .8rem; align-items: center; min-height: 52px; padding: .7rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--card); cursor: pointer;
  font-weight: 400; line-height: 1.35; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.option:hover { border-color: #b9b5ae; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.option .tick {
  flex: none; width: 1.3rem; height: 1.3rem; border-radius: 6px; background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; transition: background-color .15s ease, box-shadow .15s ease;
}
.option input[type=radio] + .tick { border-radius: 999px; }
.option input:checked + .tick { background: var(--navy); box-shadow: none; }
.option input[type=checkbox]:checked + .tick::after { content: ""; position: absolute; inset: .22rem; background: #fff; -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.option input[type=radio]:checked + .tick::after { content: ""; position: absolute; inset: .4rem; border-radius: 999px; background: #fff; }
.option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.option:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Errors */
.error { display: flex; gap: .4rem; align-items: center; color: var(--error); font-size: .9rem; font-weight: 500; margin: .5rem 0 0; }
.error[hidden] { display: none; }
.has-error input, .has-error textarea, .has-error .option { border-color: var(--error); }
.has-error input:focus, .has-error textarea:focus { box-shadow: 0 0 0 4px var(--error-soft); }
.form-error { padding: .75rem 1rem; border-radius: 12px; background: var(--error-soft); }

/* ---- Buttons & nav -------------------------------------------------------------------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--body); min-height: 52px; padding: 0 1.75rem; border: 0; border-radius: 999px;
  background: var(--gold); color: var(--navy); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, transform .1s ease;
}
button:not([disabled]):hover, .button:hover { background: #c9a42f; color: var(--navy); }
button:active, .button:active { transform: translateY(1px); }
button.secondary, .button.secondary { background: var(--tint); color: var(--navy); }
button.secondary:hover, .button.secondary:hover { background: rgba(22, 36, 54, .09); }
button[disabled] { opacity: .65; cursor: progress; }
.arrow-after::after, .arrow-before::before { content: ""; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat; }
.arrow-before::before { transform: scaleX(-1); }
button.link { min-height: 40px; padding: 0 1rem; font-size: .9rem; background: var(--tint); }

.nav { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.5rem; }
.nav #next { margin-left: auto; }
.nav .form-error { flex-basis: 100%; margin: 0; order: -1; }
.saved-note { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.saved-note::before { content: ""; width: .9rem; height: .9rem; background: var(--sage); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }

/* ---- Review --------------------------------------------------------------------------- */
.review-group { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.review-group:first-of-type { margin-top: 1.5rem; }
.review-group:last-child { padding-bottom: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.review-head h3 { margin: 0; font: 700 1.1rem/1.3 var(--heading); color: var(--navy); }
.review dl { margin: 0; display: grid; gap: .1rem 1.5rem; }
@media (min-width: 640px) { .review dl { grid-template-columns: minmax(10rem, 15rem) 1fr; } }
.review dt { font-size: .9rem; color: var(--muted); padding-top: .6rem; }
.review dd { margin: 0; padding-top: .6rem; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 639px) { .review dd { padding-top: .1rem; } }
.review-empty { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---- Send block: consent, honeypot, Turnstile ------------------------------------------ */
.send-block { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.field > label.consent-option { display: flex; font-weight: 400; color: var(--text); margin: 0; padding: .9rem 1rem; line-height: 1.5; }
.consent-option { align-items: flex-start; }
.consent-option .tick { margin-top: .1rem; }
.consent-option a { font-weight: 500; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-top: 1rem; min-height: 65px; }

/* ---- Done ----------------------------------------------------------------------------- */
.done { text-align: left; }
.done:focus { outline: none; }
.done-icon { width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--gold-soft); position: relative; margin-bottom: 1.25rem; }
.done-icon::after { content: ""; position: absolute; inset: 1rem; background: var(--gold-ink); -webkit-mask: var(--check) center / contain no-repeat; mask: var(--check) center / contain no-repeat; }
.done h2 { margin: 0 0 .5rem; font: 700 clamp(1.6rem, 4vw, 2rem)/1.2 var(--heading); letter-spacing: -0.02em; color: var(--navy); }
.done-lead { margin: 0 0 1.75rem; font-size: 1.1rem; color: var(--muted); }
.next-steps { list-style: none; counter-reset: s; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr; column-gap: .9rem; }
.next-steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--tint); color: var(--navy); font-weight: 600; font-size: .9rem; }
.next-steps strong { color: var(--navy); }
.next-steps span { color: var(--muted); font-size: .95rem; }

/* ---- Privacy page ------------------------------------------------------------------------ */
.doc-page main { max-width: 48rem; padding-top: 2rem; }
.doc { line-height: 1.7; }
.doc h1 { margin-bottom: .25rem; }
.doc-meta { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.doc h2 { font: 700 1.3rem/1.3 var(--heading); color: var(--navy); margin: 2rem 0 .5rem; }
.doc h3 { font: 700 1.05rem/1.3 var(--heading); color: var(--navy); margin: 1.25rem 0 .25rem; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }

/* ---- Small screens -------------------------------------------------------------------- */
@media (max-width: 479px) {
  .intro-block { padding: 1.75rem 0 1.5rem; }
  .panel { border-radius: 20px; }
  .nav button { flex: 1 1 auto; }
  .nav #next { margin-left: 0; }
  .saved-note { flex-basis: 100%; justify-content: center; order: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
