/* Shared layout and typography for FA Phase II mockups */
/* Outfit is self-hosted (SIL Open Font Licence) so no visitor's IP address goes to
   Google (FA audit 26 Oct, finding 3). Variable font, weights 300-700. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/outfit-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/static/fonts/outfit-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;
}

:root {
  /* Neutrals - shared across brands */
  --neutral-50: #FAFAF8;
  --neutral-100: #F4F2EE;
  --neutral-200: #E8E4DD;
  --neutral-300: #CFC9BE;
  --neutral-500: #6E675D; /* was #8A8378 (3.5:1); darkened to pass WCAG AA 4.5:1 for hint and label text */
  --neutral-700: #4A4640;
  --neutral-900: #1F1D1A;
  --white: #FFFFFF;

  /* Defaults - overridden by theme files */
  --brand-primary: #5D7770;
  --brand-primary-dark: #46594E;
  --brand-primary-light: #A8BCA1;
  --brand-accent: #E5826D;
  --brand-accent-dark: #C66549;
  /* Accent for text and for buttons carrying white text. --brand-accent stays for
     decoration (dots, circles, borders), where contrast rules do not apply. */
  --brand-accent-text: #A84B33;
  --brand-surface: var(--neutral-50);
  --brand-ink: var(--neutral-900);
  --brand-muted: var(--neutral-500);
  --brand-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --brand-radius: 12px;
  --brand-radius-lg: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: var(--brand-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--brand-ink);
  background: var(--brand-surface);
  -webkit-font-smoothing: antialiased;
}

/* Full-screen flex column. Header pinned top, footer pinned bottom, content grows. */
.viewport {
  min-height: 100vh;
  width: 100%;
  background: var(--brand-surface);
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: var(--white);
  border-bottom: 1px solid var(--neutral-200);
  /* Centre the inner row, but keep the bar itself edge-to-edge */
  width: 100%;
}
.header > * { /* keep header items inside a centred max-width band */ }
.header__logo, .header__nav { max-width: none; }
@media (min-width: 1281px) {
  .header { padding-left: max(48px, calc((100vw - 1280px) / 2)); padding-right: max(48px, calc((100vw - 1280px) / 2)); }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--brand-font);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
}

.header__logo .wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.header__logo .wordmark__text {
  color: var(--brand-primary);
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.header__logo .wordmark__dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-accent);
  margin-left: 1px;
  margin-bottom: 2px;
  vertical-align: baseline;
}

.header__logo img.brand-img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.header__logo .divider {
  width: 1px;
  height: 26px;
  background: var(--neutral-300);
}

.header__logo .sub-label {
  font-weight: 500;
  font-size: 13px;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  color: var(--neutral-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.header__nav a:hover { color: var(--brand-primary); }
.header__nav a.is-active { color: var(--brand-primary); font-weight: 600; }

.header__cta {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--brand-primary);
  background: var(--white);
  color: var(--brand-primary);
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  /* Now an anchor rather than a button, so the anchor defaults have to be undone. */
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}
.header__cta:hover { background: var(--brand-primary); color: var(--white); }

@media (max-width: 860px) {
  .header__nav { gap: 14px; }
  .header__nav a { font-size: 13px; }
  .header__cta { padding: 8px 16px; font-size: 13px; }
}

/* ── Mobile nav ─────────────────────────────────────────
   The header links collapse behind a burger below 760px. The burger is a real
   <button> (keyboard and screen-reader operable) driven by /static/nav.js. Without
   JavaScript the button stays hidden and the links simply stay visible, so the nav
   never depends on the script. */
.nav-burger { display: none; }

@media (max-width: 760px) {
  .header {
    flex-wrap: wrap;
    padding: 14px 18px;
    gap: 12px;
  }
  .header__logo { flex: 1 1 auto; min-width: 0; font-size: 18px; gap: 10px; }
  .header__logo img.brand-img { height: 32px; max-width: 104px; }
  .header__logo .sub-label { font-size: 12px; }

  .header--js .nav-burger {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    /* 44px square: the minimum comfortable touch target */
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--brand-primary);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  /* Burger turns into a cross while the menu is open. */
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-burger:focus-visible { outline: 2px solid var(--brand-accent-text); outline-offset: 2px; }

  .header__nav {
    display: flex;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header--js .header__nav { display: none; }
  .header--js.header--open .header__nav { display: flex; }
  .header__nav a {
    padding: 14px 2px;
    font-size: 15px;
    border-top: 1px solid var(--neutral-200);
  }
  .header__nav .header__cta {
    margin-top: 12px;
    border-top: 1.5px solid var(--brand-primary);
    text-align: center;
    padding: 12px 22px;
    font-size: 15px;
  }
}

/* ── Content ────────────────────────────────────────── */
.content {
  flex: 1;                   /* push footer to the bottom on short pages */
  padding: 56px 96px 80px;   /* bottom padding so footer never sits hard against content */
  overflow: visible;         /* let dropdowns / focus rings extend if needed */
  width: 100%;
}

.content--centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ── Typography helpers ─────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-accent-text);
  margin-bottom: 16px;
}

.h1 {
  font-size: 52px;
  line-height: 1.05;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 820px;
}

.h1 em { font-style: normal; color: var(--brand-accent-text); }

.h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--brand-primary);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.lead {
  font-size: 19px;
  line-height: 1.5;
  color: var(--neutral-700);
  max-width: 640px;
  margin-bottom: 36px;
}

.muted { color: var(--neutral-500); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  border: none;
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand-accent-text);
  color: var(--white);
}

.btn--primary:hover { filter: brightness(0.88); }

.btn--secondary {
  background: var(--brand-primary);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}

.btn--large {
  padding: 20px 40px;
  font-size: 18px;
}

.btn svg { width: 18px; height: 18px; }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--brand-radius-lg);
  padding: 32px;
  border: 1px solid var(--neutral-200);
}

.card--ghost {
  background: transparent;
  border: 1.5px dashed var(--neutral-300);
}

/* ── Trust strip ────────────────────────────────────── */
.trust-strip {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--neutral-200);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars {
  display: flex;
  gap: 2px;
  color: #F5B82E;
  font-size: 18px;
}

.trust-item__text {
  font-size: 13px;
  color: var(--neutral-700);
}

.trust-item__text strong {
  display: block;
  font-weight: 600;
  color: var(--brand-primary);
}

/* ── Progress bar ───────────────────────────────────── */
.progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.progress__step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--neutral-500);
}

.progress__step .dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral-200);
  color: var(--neutral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.progress__step.active .dot {
  background: var(--brand-accent-text);
  color: var(--white);
}

.progress__step.active {
  color: var(--brand-primary);
}

.progress__step.done .dot {
  background: var(--brand-primary);
  color: var(--white);
}

.progress__step.done { color: var(--brand-primary); }

.progress__line {
  flex: 1;
  height: 1px;
  background: var(--neutral-200);
}

/* ── Form ───────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field__input {
  padding: 14px 18px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--brand-radius);
  background: var(--white);
  font-family: var(--brand-font);
  font-size: 15px;
  color: var(--brand-ink);
}

.field__input--prefilled {
  background: var(--neutral-50);
  border-color: var(--brand-primary-light);
}

.field__hint {
  font-size: 12px;
  color: var(--neutral-500);
}

.field__hint .pill {
  display: inline-block;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 4px;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  padding: 18px 48px;
  border-top: 1px solid var(--neutral-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--neutral-500);
  background: var(--white);
  width: 100%;
  margin-top: auto; /* pin to bottom when content is short */
}
@media (min-width: 1281px) {
  .footer { padding-left: max(48px, calc((100vw - 1280px) / 2)); padding-right: max(48px, calc((100vw - 1280px) / 2)); }
}

.footer__powered {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__powered img { height: 16px; opacity: 0.6; }

.footer__legal { display: flex; flex-direction: column; gap: 6px; max-width: 760px; line-height: 1.5; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__links a { color: var(--brand-primary); font-weight: 600; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .footer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
}

/* =====================================================
   Page-specific layouts (lifted from Stage 0 mockups)
   ===================================================== */

/* --- LANDING --- */
.content--landing {
  padding: 56px 64px 48px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  /* stretch, not center: the visual panel takes its height from the text column
     beside it rather than from its own width. */
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.hero-visual {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.35);
  /* NO aspect-ratio. It used to be 1 / 1.05, which meant the panel's height was
     driven by its width - on a wide screen the column is ~700px, so the box grew
     to ~735px tall and became a mostly-empty black slab taller than the page.
     Bounded height instead, so it scales with the viewport and never dominates. */
  min-height: 380px;
  max-height: 520px;
  align-self: center;
}
.hero-visual::before {
  content: ''; position: absolute; top: -60px; right: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--brand-accent); opacity: 0.95;
}
.hero-visual::after {
  content: ''; position: absolute; bottom: -100px; left: -60px;
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--brand-primary-light); opacity: 0.3;
}
.hero-visual__content {
  position: absolute; inset: 0; padding: 34px;
  display: flex; flex-direction: column; justify-content: space-between;
  z-index: 2;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  padding: 8px 16px; border-radius: 999px;
  color: white; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #7ADE7A; }
.hero-stat { color: white; z-index: 2; }
/* clamp() so the figure scales with the viewport instead of being a fixed 88px
   that dwarfs everything on a laptop. */
.hero-stat__number { font-size: clamp(48px, 5.2vw, 76px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.hero-stat__number em { font-style: normal; color: var(--brand-accent); }
.hero-stat__label { font-size: 14px; opacity: 0.9; margin-top: 8px; max-width: 280px; }
.hero-steps { list-style: none; color: white; display: grid; gap: 14px; counter-reset: step; }
.hero-steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.4; }
.hero-steps li::before {
  content: counter(step); flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.18); font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* The landing grid had no breakpoints at all, so below about 1100px the two
   columns kept their ratio and the text column was clipped off the left edge. */
@media (max-width: 1180px) {
  .content--landing { padding: 44px 40px 40px; gap: 40px; grid-template-columns: 1.1fr 1fr; }
  .hero-visual { min-height: 340px; max-height: 440px; }
}
@media (max-width: 900px) {
  .content--landing { grid-template-columns: 1fr; padding: 32px 24px 36px; gap: 32px; }
  /* Visual below the pitch on a narrow screen - the words are what sell it. */
  .hero-visual { order: 2; min-height: 280px; max-height: 340px; }
  .hero-visual__content { padding: 24px; }
}
.cta-row { display: flex; gap: 16px; margin-top: 24px; align-items: center; }
.cta-row form { margin: 0; }
.hint { font-size: 14px; color: var(--neutral-500); margin-top: 18px; }

/* --- UPLOAD --- */
.content--upload {
  padding: 48px 96px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.upload-shell { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.upload-zone {
  background: var(--white);
  border: 2px dashed var(--brand-primary-light);
  border-radius: var(--brand-radius-lg);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.upload-zone::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--brand-accent); opacity: 0.06;
}
.upload-zone form { display: inline-flex; gap: 12px; }
.upload-icon {
  width: 88px; height: 88px; margin: 0 auto 24px;
  background: var(--brand-primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: var(--brand-primary);
  position: relative;
}
.upload-icon::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid var(--brand-primary-light);
  opacity: 0.5;
}
.upload-zone .h2 { color: var(--brand-primary); margin-bottom: 12px; }
.upload-zone .lead { margin: 0 auto 28px; max-width: 420px; }
.upload-formats {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 28px; padding-top: 28px;
  border-top: 1px solid var(--neutral-200);
}
.format-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--neutral-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neutral-700);
}
.alt-link {
  margin-top: 20px; font-size: 14px; color: var(--neutral-500);
  text-align: center;
}
.alt-link a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; }
.side-panel {
  background: var(--white);
  border-radius: var(--brand-radius-lg);
  padding: 28px;
  border: 1px solid var(--neutral-200);
}
.side-panel__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-accent-text);
  margin-bottom: 16px;
}
.extract-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 14px;
  padding: 0; margin: 0;
}
.extract-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--neutral-700); line-height: 1.4;
}
.extract-list .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand-primary-light);
  color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.security-note {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--neutral-200);
  font-size: 12px; color: var(--neutral-500); line-height: 1.5;
}

/* --- GENERIC NARROW FORM (postcode, customer, kickout) --- */
.content--narrow {
  padding: 48px 24px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.content--narrow h2.h2 { margin-bottom: 8px; }
.content--narrow .lead { margin-bottom: 24px; }
.form-block { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.form-block label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }
.form-block input[type="text"],
.form-block input[type="email"],
.form-block input[type="tel"],
.form-block input[type="number"],
.form-block input[type="date"] {
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--brand-radius);
  font-family: inherit;
  background: white;
  color: var(--brand-ink);
}
/* Date inputs come with browser chrome that ignores the rules above unless it is
   switched off: Safari/iOS adds its own inner padding and vertical centring, and
   both WebKit and Blink render the picker button at the browser's default size.
   Without this a date field sits noticeably shorter than the text fields next to it. */
.form-block input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  min-height: 51px; /* matches 14px padding + 15px text + borders on the text inputs */
}
.form-block input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form-block input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  padding: 2px;
}
.form-block input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Checkboxes sit at the START of their sentence like a bullet, never stretched.
   .form-block label is flex-column by design for stacked field + input, and that
   rule is more specific than a single class on the same element - so a checkbox row
   has to say row explicitly or the box stacks above the text at full width. */
.form-block input[type="checkbox"],
.form-block input[type="radio"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--brand-primary);
  cursor: pointer;
}
.form-block label.checkbox-row {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
/* Beats the page-level `.form-block label > span` weight rule on specificity, so a
   checkbox sentence reads as body copy rather than as another bold field label. */
.form-block label.checkbox-row > span { flex: 1 1 auto; font-weight: 400; font-size: inherit; }
.form-block input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(93, 119, 112, 0.15);
}
.form-block select {
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--brand-radius);
  font-family: inherit;
  font-weight: 600;
  background-color: white;
  color: var(--brand-ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235D7770' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}
.form-block select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(93, 119, 112, 0.15);
}
.form-block select:invalid { color: var(--neutral-500); font-weight: 400; }
.form-block hr { border: none; border-top: 1px solid var(--neutral-200); margin: 4px 0; }
.section-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-accent-text);
}
.error-banner {
  padding: 12px 16px;
  background: rgba(229, 130, 109, 0.08);
  border-left: 3px solid var(--brand-accent);
  color: var(--brand-accent-dark);
  border-radius: 4px;
  font-size: 14px;
}

/* --- CONFIRM: address-pick list --- */
.content--confirm { padding: 32px 64px; max-width: 920px; margin: 0 auto; width: 100%; }
.address-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.address-option {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  padding: 16px 18px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--brand-radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.address-option:hover { border-color: var(--brand-primary-light); }
.address-option.selected {
  border-color: var(--brand-primary);
  background: rgba(168, 188, 161, 0.07);
}
.address-option input[type="radio"] { margin-top: 4px; accent-color: var(--brand-primary); }
.address-option__line1 { font-weight: 600; color: var(--brand-ink); margin-bottom: 4px; }
.address-option__line2 { font-size: 13px; color: var(--neutral-700); }
.address-option__mpan {
  font-size: 11px; color: var(--brand-accent-text);
  margin-top: 6px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.address-option__tag {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 10px; background: var(--brand-primary); color: #fff;
  font-size: 10px; letter-spacing: 0.04em;
}
.row-between { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.back-link { color: var(--brand-primary); font-weight: 600; text-decoration: underline; font-size: 14px; }

/* --- QUOTE: results list --- */
.content--quote { padding: 32px 64px; max-width: 1040px; margin: 0 auto; width: 100%; }
.quote-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.quote-meta .mpan { font-size: 13px; color: var(--neutral-500); font-family: 'SF Mono', Consolas, monospace; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--brand-radius-lg);
  padding: 22px 26px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}
.quote-card--best {
  border: 2px solid var(--brand-primary);
  box-shadow: 0 16px 32px -20px rgba(0,0,0,0.25);
}
.quote-card__supplier { font-weight: 700; font-size: 18px; color: var(--brand-ink); display: flex; align-items: center; gap: 10px; }
.quote-card__badge {
  font-size: 10px;
  background: var(--brand-primary);
  color: white;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.quote-card__meta { font-size: 13px; color: var(--neutral-500); margin-top: 4px; }
.quote-card__price { text-align: right; }
.quote-card__price .amount { font-size: 26px; font-weight: 700; color: var(--brand-primary); letter-spacing: -0.02em; }
.quote-card__price .per { font-size: 10px; color: var(--neutral-500); text-transform: uppercase; letter-spacing: 0.05em; }
.quote-footnote { font-size: 13px; color: var(--neutral-500); margin-top: 28px; text-align: center; }

/* --- STATUS / KICKOUT --- */
.content--status { padding: 64px 24px; max-width: 680px; margin: 0 auto; width: 100%; text-align: center; }
.status-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: white; font-weight: 700;
}
.status-icon--success { background: var(--brand-primary); }
.status-icon--info { background: var(--brand-accent-text); }
.status-icon--error { background: var(--brand-accent-text); }
.status-summary {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--brand-radius-lg);
  padding: 24px;
  text-align: left;
  margin-top: 24px;
}
.status-summary .reference {
  font-size: 11px; font-weight: 700;
  color: var(--brand-accent-text);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.status-summary .reference-value { font-family: 'SF Mono', Consolas, monospace; font-size: 13px; color: var(--brand-ink); margin-bottom: 16px; }
.status-summary .field-row { font-size: 14px; color: var(--neutral-700); line-height: 1.7; }
.status-summary .field-row strong { color: var(--brand-ink); }

/* --- "data source: demo" banner --- */
.data-source-banner {
  margin: 0 0 20px;
  padding: 10px 14px;
  background: rgba(229, 130, 109, 0.08);
  border-left: 3px solid var(--brand-accent);
  color: var(--brand-accent-dark);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}


/* Screen-reader-only label. Used where a control is obvious visually (a search box
   with a magnifier) but still needs a programmatic label. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---- WRAP-E04 / ADR-0012: contract review, mock signing, switch status ---- */
.contract-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--brand-radius-lg);
  padding: 24px 28px;
  margin-top: 8px;
}
.contract-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}
.contract-card__k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral-500); margin-bottom: 4px; }
.contract-card__v { font-size: 15px; font-weight: 600; color: var(--brand-ink); }
.contract-card__actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 720px) { .contract-card__grid { grid-template-columns: 1fr 1fr; } }

.content--switch { padding: 40px 24px 64px; max-width: 760px; margin: 0 auto; width: 100%; }
.switch-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 24px; }
.switch-head__eyebrow { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 6px; }
.switch-head__ref { text-align: right; flex-shrink: 0; }
.switch-head__ref .reference { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral-500); }
.switch-head__ref .reference-value { font-family: 'SF Mono', Consolas, monospace; font-size: 15px; color: var(--brand-ink); }

.switch-branch {
  border-radius: var(--brand-radius-lg);
  padding: 20px 24px;
  margin: 8px 0 28px;
  border: 1px solid var(--brand-accent);
  background: color-mix(in srgb, var(--brand-accent) 10%, white);
}
.switch-branch--stop { border-color: var(--neutral-500); background: var(--neutral-100, #f4f4f2); }
.switch-branch__title { font-weight: 700; font-size: 16px; color: var(--brand-ink); margin-bottom: 6px; }
.switch-branch p { margin: 0 0 14px; color: var(--neutral-700); line-height: 1.55; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__step { display: flex; gap: 16px; align-items: flex-start; position: relative; padding-bottom: 22px; }
.timeline__step:not(:last-child)::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--neutral-200);
}
.timeline__step.done:not(:last-child)::before { background: var(--brand-primary); }
.timeline__dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: var(--neutral-200); color: var(--neutral-500);
}
.timeline__step.done .timeline__dot { background: var(--brand-primary); color: var(--white); }
.timeline__step.active .timeline__dot { background: var(--brand-accent-text); color: var(--white); box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-accent) 20%, white); }
.timeline__label { font-weight: 600; color: var(--brand-ink); font-size: 15px; }
.timeline__step.todo .timeline__label { color: var(--neutral-500); font-weight: 500; }
.timeline__detail { font-size: 13px; color: var(--neutral-500); margin-top: 2px; line-height: 1.5; }
.timeline__step.todo .timeline__detail { display: none; }
.timeline__at { font-size: 12px; color: var(--brand-primary); margin-top: 4px; }

.switch-help {
  margin-top: 8px; padding: 16px 20px;
  border-left: 3px solid var(--brand-primary);
  background: var(--white); border-radius: 0 var(--brand-radius-lg) var(--brand-radius-lg) 0;
}
.switch-help__k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--neutral-500); margin-bottom: 4px; }
.switch-help a { font-weight: 600; color: var(--brand-primary); text-decoration: none; }
.switch-help a:hover { text-decoration: underline; }
.content--switch .status-summary { text-align: left; }

/* Address and meter being quoted, above every journey step (audit 26 Oct). */
.supply-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 48px; background: var(--neutral-100); border-bottom: 1px solid var(--neutral-200);
  font-size: 13.5px; color: var(--neutral-700);
}
.supply-banner__meter { margin-left: 10px; font-variant-numeric: tabular-nums; color: var(--neutral-500); }
.supply-banner a { color: var(--brand-primary); font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .supply-banner { padding: 10px 18px; } }
.quote-card__commission { font-size: 12.5px; color: var(--neutral-500); margin-top: 6px; }

/* Content pages had desktop padding (96px a side) on phones, leaving a ~180px column. */
@media (max-width: 760px) {
  .content:not(.content--landing) { padding: 32px 18px 56px; }
}
