/* ==========================================================================
   North Star Insurance Brokers — shared design system
   Research rules encoded here:
   - Orange is reserved for conversion only (Itti & Baldi: salience via uniqueness)
   - Body >= 16px, line-height 1.5–1.6 (NN/g legibility)
   - Single-column forms, top-aligned labels (Baymard)
   - WCAG 2.2 AA: focus states, 24px+ targets, reduced motion
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ----------
   Brand: black, white and gold (from North Star's existing logo and site).
   Gold is reserved for the logo star and conversion buttons only (Itti & Baldi salience).
   Black text on gold = ~11:1 contrast (WCAG AA/AAA). */
:root {
  --black: #000000;
  --ink: #161616;
  --gold: #FEC524;       /* sampled from the logo */
  --gold-press: #EBB010;
  --warm-grey: #F4F4F2;

  --bg: #FFFFFF;
  --alt: var(--warm-grey);
  --surface: #FFFFFF;
  --text: #1E1E1E;
  --muted: #555555;
  --border: #E2E2DD;
  --brand: var(--ink);
  --header-bg: var(--black);
  --header-text: #FFFFFF;
  --footer-bg: var(--black);
  --footer-text: #C9C9C9;
  --cta: var(--gold);
  --cta-press: var(--gold-press);
  --cta-text: var(--ink);
  --focus: #1D5FD1;
  --ph-stripe: rgba(0, 0, 0, 0.045);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.15rem + 1vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.375rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --wrap: 1200px;
  --measure: 62ch;

  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --alt: #1A1A1A; --surface: #1E1E1E;
    --text: #EDEDED; --muted: #B0B0B0; --border: #2F2F2F; --brand: #FFFFFF;
    --ph-stripe: rgba(255, 255, 255, 0.05);
  }
}
:root[data-theme="dark"] {
  --bg: #121212; --alt: #1A1A1A; --surface: #1E1E1E;
  --text: #EDEDED; --muted: #B0B0B0; --border: #2F2F2F; --brand: #FFFFFF;
  --ph-stripe: rgba(255, 255, 255, 0.05);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--brand);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 750; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--surface); color: var(--text);
  padding: 0.75rem 1rem; z-index: 200; border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.8rem 1.4rem;
  font: 700 1.0625rem/1.2 var(--font-body);
  border-radius: var(--radius-s);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-cta { background: var(--cta); color: var(--cta-text); }
.btn-cta:hover { background: var(--cta-press); }
.btn-cta:active { transform: translateY(1px); }
.btn-lg { min-height: 56px; padding: 1rem 1.75rem; font-size: 1.125rem; }
.btn-ghost {
  background: transparent; color: inherit;
  border-color: currentColor;
}
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Header (sticky: Fogg prompt always available) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); color: var(--header-text);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: var(--space-3); min-height: 84px; padding-block: 0.4rem; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 74px; width: auto; }
@media (max-width: 520px) { .logo img { height: 54px; } }
.footer-logo { height: 56px; width: auto; margin-bottom: 1rem; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.6rem 0.8rem; border-radius: var(--radius-s);
  text-decoration: none; font-weight: 600; font-size: 0.975rem; color: var(--header-text);
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.1); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--header-text);
}
.header-phone svg { width: 18px; height: 18px; }
.site-header :focus-visible { outline-color: #FFFFFF; }
.menu-toggle {
  display: none; margin-left: auto;
  min-width: 48px; min-height: 48px;
  background: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-s);
  color: var(--header-text); cursor: pointer;
}
@media (max-width: 1020px) {
  .main-nav, .header-phone { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner .btn-cta { display: none; }
  .main-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header-bg); padding: 0.5rem 1.25rem 1.25rem;
  }
  .main-nav.is-open ul { flex-direction: column; }
  .main-nav.is-open a { padding: 0.9rem 0.5rem; font-size: 1.0625rem; }
}

/* ---------- Hero (Z-pattern, light, photo-led) ---------- */
.hero { background: var(--bg); padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.hero-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1.1fr 0.9fr; align-items: center;
}
.hero h1 { max-width: 16ch; }
.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius-m); background: var(--alt);
}
.hero .lede { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-3); }
.hero .btn-ghost { color: var(--text); }
.reassure {
  list-style: none; margin: var(--space-2) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem;
  font-size: var(--step--1); color: var(--muted);
}
.reassure li { display: inline-flex; align-items: center; gap: 0.4rem; }
.reassure svg { width: 16px; height: 16px; color: var(--text); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- Placeholders (clearly marked for client content) ---------- */
.ph {
  position: relative;
  border: 2px dashed currentColor; border-radius: var(--radius-m);
  background: repeating-linear-gradient(135deg, var(--ph-stripe) 0 12px, transparent 12px 24px);
  display: grid; place-items: center; text-align: center;
  padding: 1.25rem; color: inherit; opacity: 0.9;
  font-size: var(--step--1); line-height: 1.45;
}
.ph strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.ph-portrait { aspect-ratio: 4 / 5; color: var(--muted); }
.ph .gaze {
  display: inline-flex; align-items: center; gap: 0.35rem;
  margin-top: 0.75rem; font-weight: 700;
}
.ph .gaze svg { width: 22px; height: 22px; }
.ph-tag {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  padding: 0.1rem 0.5rem; border: 1px dashed currentColor; border-radius: 4px;
}

/* ---------- Trust bar ---------- */
.trust { background: var(--alt); padding-block: var(--space-4); }
.trust-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-3);
}
.trust-facts li { border-left: 2px solid var(--brand); padding-left: 0.9rem; }
.trust-facts b {
  display: block; font-family: var(--font-display); font-stretch: 112%;
  font-size: var(--step-2); line-height: 1.15; color: var(--brand);
}
.trust-facts span { font-size: var(--step--1); color: var(--muted); }
.insurer-logos {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2);
  align-items: center;
}
.insurer-logos .ph { min-height: 52px; padding: 0.5rem; font-size: 0.8125rem; color: var(--muted); border-width: 1px; }
.insurer-caption { margin: 0.75rem 0 0; font-size: var(--step--1); color: var(--muted); }

@media (max-width: 960px) {
  .trust-facts { grid-template-columns: repeat(2, 1fr); }
  .insurer-logos { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Routes (three paths only) ---------- */
.routes-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-5);
  align-items: start;
}
.route-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.route-list a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1.5rem; align-items: center;
  padding: 1.6rem 0.25rem; border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.route-list h3 { margin: 0; font-size: var(--step-2); }
.route-list p { margin: 0; color: var(--muted); grid-column: 1; }
.route-list .arrow {
  grid-column: 2; grid-row: 1 / span 2;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--brand); color: var(--brand);
  transition: transform 0.2s ease;
}
.route-list .arrow svg { width: 22px; height: 22px; }
.route-list a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.route-list a:hover .arrow { transform: translateX(4px); }
.route-list .route-alt h3 { font-weight: 600; }
.also { margin-top: var(--space-3); color: var(--muted); font-size: var(--step--1); }

@media (max-width: 860px) {
  .routes-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------- Pratfall + proof ---------- */
.pratfall { background: var(--alt); }
.pratfall-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: start;
}
.compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3);
  margin-top: var(--space-4);
}
.compare h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem;
  padding: 0.55rem 0; border-top: 1px solid var(--border); font-size: var(--step--1);
}
.compare li svg { width: 20px; height: 20px; margin-top: 3px; }
.compare .them { color: var(--muted); }
.compare .them svg { color: var(--muted); }
.compare .us svg { color: var(--brand); }

.testimonial {
  margin: 0; padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--border);
}
.testimonial blockquote {
  margin: 0; font-family: var(--font-display); font-stretch: 100%;
  font-size: var(--step-2); line-height: 1.3; font-weight: 600; color: var(--brand);
}
.testimonial figcaption { margin-top: 1.25rem; color: var(--muted); font-size: var(--step--1); }
.testimonial figcaption b { color: var(--text); display: block; font-size: 1rem; }
.testimonial .ph-tag { margin-bottom: 1rem; color: var(--muted); }
.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; text-underline-offset: 4px; margin-top: var(--space-3);
}
.text-link svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .pratfall-grid, .compare { grid-template-columns: 1fr; }
}

/* ---------- Process (a real sequence, so numbered) ---------- */
.steps {
  list-style: none; margin: var(--space-4) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 3.75rem; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand); color: var(--bg);
  font: 700 1.125rem/1 var(--font-display);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 56px; right: -1.5rem;
  border-top: 2px dotted var(--border);
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; }
.promise {
  margin-top: var(--space-4); padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--brand); background: var(--alt);
  border-radius: 0 var(--radius-s) var(--radius-s) 0; max-width: 70ch;
}
.promise p { margin: 0; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .steps li:not(:last-child)::after { display: none; }
}

/* ---------- Closing CTA band (light) ---------- */
.cta-band { background: var(--alt); padding-block: var(--space-5); }
.cta-band-inner {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: center;
}
.cta-band h2 { margin-bottom: 0.3rem; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn-ghost { color: var(--text); }
@media (max-width: 860px) {
  .cta-band-inner { grid-template-columns: 1fr; }
  .cta-band .actions .btn { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  padding-block: var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  font-size: var(--step--1); color: var(--footer-text);
}
.site-footer :focus-visible { outline-color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-4); }
.site-footer h2 {
  font-size: 1rem; font-stretch: 100%; color: #FFFFFF; margin-bottom: 0.75rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-underline-offset: 3px; }
.site-footer address { font-style: normal; }
.legal {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid #333333; font-size: 0.875rem;
}
.legal p { max-width: 110ch; }
.footer-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.footer-tools button {
  background: none; border: 0; padding: 0; color: inherit;
  font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky action bar (thumb zone) ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.25s ease;
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar .btn { flex: 1; min-height: 50px; }
.mobile-bar .btn-ghost { color: var(--text); border-color: var(--border); }
@media (max-width: 1020px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* ---------- Cookie consent (equal-weight choices) ---------- */
.consent {
  position: fixed; z-index: 150; left: 1rem; right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin-left: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-m);
  box-shadow: 0 12px 32px rgba(10, 17, 32, 0.22);
  padding: 1.25rem;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.0625rem; font-stretch: 100%; margin-bottom: 0.35rem; }
.consent p { font-size: var(--step--1); color: var(--muted); }
.consent .consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.consent .btn { border-color: var(--text); color: var(--text); background: transparent; }
@media (max-width: 1020px) { .consent { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Research annotations (client review mode: ?research) ---------- */
.rnote { display: none; }
.research-on [data-research] { position: relative; outline: 2px dashed #7C3AED; outline-offset: -2px; }
.research-on .rnote {
  display: block; position: absolute; z-index: 60; top: 8px; left: 8px;
  max-width: min(420px, calc(100% - 16px));
  background: #7C3AED; color: #fff;
  font: 500 0.8125rem/1.45 var(--font-body);
  padding: 0.6rem 0.8rem; border-radius: var(--radius-s);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.research-on .rnote b { display: block; font-weight: 800; }
.research-on .site-header .rnote { top: auto; left: auto; right: 8px; bottom: -8px; transform: translateY(100%); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Quote flow (Baymard form heuristics + BIT EAST)
   ========================================================================== */

/* Minimal header: logo + phone only, no navigation to leak attention */
.site-header.minimal .header-inner { justify-content: space-between; }
.site-header.minimal .header-phone { display: inline-flex; }
.header-back {
  color: var(--header-text); font-size: var(--step--1); text-underline-offset: 3px;
}
@media (max-width: 520px) { .header-back { display: none; } }

.quote-page { background: var(--alt); padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--space-6); }
.quote-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-5); align-items: start;
}
@media (max-width: 900px) { .quote-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
}
.form-card h1 { font-size: var(--step-3); margin-bottom: 0.35rem; }
.form-card .lede { font-size: 1.0625rem; margin-bottom: var(--space-3); }

.progress {
  list-style: none; margin: 0 0 var(--space-3); padding: 0;
  display: flex; gap: 1.25rem; font-size: var(--step--1); color: var(--muted);
}
.progress li { display: inline-flex; align-items: center; gap: 0.5rem; }
.progress li span {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); font-weight: 700; font-size: 0.8125rem;
}
.progress li[aria-current="step"] { color: var(--text); font-weight: 700; }
.progress li[aria-current="step"] span { border-color: var(--text); background: var(--text); color: var(--surface); }
.progress li.done span { border-color: var(--text); }

/* Single column, top-aligned labels */
.field { margin-bottom: 1.35rem; }
.field > label, .field legend {
  display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 1rem; padding: 0;
}
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--step--1); margin-top: 0.1rem; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 52px; padding: 0.75rem 0.9rem;
  font: 400 1.0625rem/1.3 var(--font-body);   /* >=16px stops iOS zoom */
  color: var(--text); background: var(--surface);
  border: 2px solid #8A8A85; border-radius: var(--radius-s);
}
.field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--text); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field input.is-valid { border-color: #2E7D32; }
.error {
  display: none; margin-top: 0.45rem; color: #B42318; font-weight: 600; font-size: var(--step--1);
}
.error::before { content: "! "; }
.field.has-error .error { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .error { color: #FF8A80; }
  :root:not([data-theme="light"]) .field input[aria-invalid="true"] { border-color: #FF8A80; }
}

fieldset.field { border: 0; margin: 0 0 1.35rem; padding: 0; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 0.7rem; min-height: 56px;
  padding: 0.75rem 0.9rem; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius-s); background: var(--surface);
  font-weight: 600; line-height: 1.3;
}
.choice label::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #8A8A85; background: var(--surface);
}
.choice input:checked + label { border-color: var(--text); }
.choice input:checked + label::before { border: 6px solid var(--text); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice label small { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; }

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

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-submit[disabled] { opacity: 0.7; cursor: progress; }
.micro {
  list-style: none; margin: 1rem 0 0; padding: 0;
  display: grid; gap: 0.4rem; font-size: var(--step--1); color: var(--muted);
}
.micro li { display: flex; gap: 0.5rem; align-items: flex-start; }
.micro svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--text); }
.privacy-note { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; }

.error-summary {
  border: 2px solid #B42318; border-radius: var(--radius-s);
  padding: 1rem 1.1rem; margin-bottom: var(--space-3); background: var(--surface);
}
.error-summary h2 { font-size: 1.0625rem; font-stretch: 100%; margin-bottom: 0.4rem; color: #B42318; }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: #B42318; font-weight: 600; }
.form-alert {
  border-left: 4px solid #B42318; background: var(--surface);
  padding: 0.9rem 1rem; margin-bottom: 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

/* Step 2: callback time */
.step[hidden] { display: none; }
.slot-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.slot-times { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (max-width: 480px) { .slot-days { grid-template-columns: 1fr; } }
.step-actions { display: grid; gap: 0.75rem; margin-top: 0.5rem; }
.btn-plain {
  background: none; border: 0; color: var(--text); text-decoration: underline;
  text-underline-offset: 4px; font: 600 1rem var(--font-body); cursor: pointer; padding: 0.75rem;
}
.sent-banner {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: var(--alt); border-radius: var(--radius-s); padding: 0.9rem 1rem; margin-bottom: var(--space-3);
}
.sent-banner svg { width: 24px; height: 24px; flex: none; color: #2E7D32; }
.sent-banner p { margin: 0; }

/* Side column */
.quote-aside { display: grid; gap: var(--space-3); }
.aside-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-3); }
.aside-block h2 { font-size: 1.125rem; font-stretch: 100%; margin-bottom: 0.9rem; }
.mini-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0.9rem; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 0.75rem; }
.mini-steps li::before {
  content: counter(s); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--surface);
  font: 700 0.875rem/1 var(--font-display);
}
.mini-steps b { display: block; }
.mini-steps span { color: var(--muted); font-size: var(--step--1); }
.quote-aside .testimonial { padding: var(--space-3); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; font-size: var(--step--1); }
.trust-list li { display: flex; gap: 0.6rem; }
.trust-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }

.site-footer.slim { padding-block: var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); }
.site-footer.slim .legal { margin-top: 0; padding-top: 0; border-top: 0; }

/* Quote flow refinements */
.phone-short { display: none; }
@media (max-width: 600px) {
  .site-header.minimal .phone-long { display: none; }
  .site-header.minimal .phone-short { display: inline; }
  .site-header.minimal .header-phone {
    border: 1px solid rgba(255,255,255,0.45); border-radius: var(--radius-s);
    padding: 0.6rem 0.9rem; min-height: 44px;
  }
}
.error-summary h2, .consent h2, .aside-block h2, .site-footer h2 {
  font-family: var(--font-body); font-stretch: 100%; letter-spacing: 0;
}
#ref-out { white-space: nowrap; }
.quote-aside .testimonial blockquote { font-size: 1.125rem; }
.field { margin-bottom: 1.15rem; }
fieldset.field { margin-bottom: 1.15rem; }
.form-card .lede { margin-bottom: 1.25rem; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .choice-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .choice-grid .choice label small { display: none; }
  .choice-grid .choice label { padding: 0.7rem 0.75rem; gap: 0.6rem; min-height: 56px; }
}

.rating-star { display: inline-block; width: 0.8em; height: 0.8em; vertical-align: -0.02em; }

/* Insurer wordmarks (stand-ins): greyscale so they never compete with the gold CTA */
.insurer {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 52px; color: #8C8C87; font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}
.insurer svg { width: 22px; height: 22px; flex: none; }
.insurer.w-bold { font-weight: 800; font-stretch: 110%; }
.insurer.w-caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; font-weight: 700; }
.insurer.w-light { font-weight: 400; font-family: var(--font-body); }
.insurer.w-serif { font-family: Georgia, "Times New Roman", serif; font-weight: 600; font-style: italic; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .insurer { color: #8E8E8E; } }
@media (max-width: 600px) {
  .insurer-logos { grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; }
  .insurer { font-size: 0.95rem; white-space: normal; justify-content: flex-start; min-height: 44px; }
  .insurer.w-caps { font-size: 0.8rem; }
}

/* ==========================================================================
   Quote received (confirmation) page
   ========================================================================== */
.received { background: var(--alt); padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) var(--space-6); }
.received-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--space-5); align-items: start;
}
@media (max-width: 900px) { .received-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }
.confirm-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.confirm-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: var(--space-3); }
.confirm-head .tick {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: #E6F4EA; color: #1E6B2F;
}
.confirm-head .tick svg { width: 28px; height: 28px; }
.confirm-head h1 { font-size: var(--step-3); margin-bottom: 0.3rem; }
.confirm-head p { margin: 0; color: var(--muted); }
.confirm-head strong { color: var(--text); white-space: nowrap; }

/* Timeline with live state */
.timeline { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.timeline li {
  position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 1rem;
  padding-bottom: 1.5rem;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--border);
}
.timeline .dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--surface); font: 700 0.9rem/1 var(--font-display);
}
.timeline .dot svg { width: 18px; height: 18px; }
.timeline .done .dot { background: var(--text); border-color: var(--text); color: var(--surface); }
.timeline .now .dot { border-color: var(--text); }
.timeline h2 { font-size: 1.125rem; font-family: var(--font-body); font-stretch: 100%; margin: 0.35rem 0 0.2rem; }
.timeline p { margin: 0; color: var(--muted); }
.timeline .now h2::after {
  content: "Next"; margin-left: 0.6rem; vertical-align: 2px;
  font: 700 0.75rem/1 var(--font-body); padding: 0.2rem 0.45rem; border-radius: 4px;
  background: var(--text); color: var(--surface);
}
.call-slot {
  display: inline-block; margin-top: 0.5rem; padding: 0.55rem 0.8rem;
  border: 2px solid var(--text); border-radius: var(--radius-s); font-weight: 700; color: var(--text);
}
.calendar-btn { margin-top: 0.75rem; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--text); }
.btn-outline:hover { background: var(--alt); }

/* Save our number */
.number-box {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem 1.2rem; border-radius: var(--radius-m);
  background: var(--alt); margin-bottom: var(--space-4);
}
.number-box svg { width: 32px; height: 32px; }
.number-box p { margin: 0; }
.number-box .big { font: 700 var(--step-2)/1.2 var(--font-display); color: var(--brand); white-space: nowrap; }

.checklist-block h2 { font-size: var(--step-2); }
.checklist { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.65rem; }
.checklist svg { width: 20px; height: 20px; margin-top: 3px; }
.checklist-note { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }
.change-note { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); }

/* Preview-only variant switcher */
.demo-bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  background: #7C3AED; color: #fff; padding: 0.6rem 1.25rem; font-size: 0.875rem;
}
.demo-bar button {
  background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px; padding: 0.3rem 0.6rem; font: 600 0.8125rem var(--font-body); cursor: pointer;
}
.demo-bar button[aria-pressed="true"] { background: #fff; color: #4C1D95; }

/* ==========================================================================
   Service page template (Landlord / Commercial / Personal)
   ========================================================================== */
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: inherit; text-underline-offset: 3px; }
.service-hero { background: var(--bg); padding-block: clamp(2rem, 1.25rem + 3.5vw, 4.5rem); }
@media (min-width: 861px) { .service-hero .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.service-hero h1 { max-width: 18ch; }
.hero-illustration { color: var(--text); }
.hero-illustration svg { width: 100%; height: auto; }
@media (max-width: 860px) { .hero-illustration { display: none; } }

.section-head { max-width: 46rem; margin-bottom: var(--space-4); }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }

/* Who it's for: scannable two-column list */
.fit-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--space-4);
  border-top: 1px solid var(--border);
}
.fit-list li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.fit-list b { display: block; font-size: 1.0625rem; margin-bottom: 0.15rem; }
.fit-list span { color: var(--muted); font-size: var(--step--1); }
@media (max-width: 900px) { .fit-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fit-list { grid-template-columns: 1fr; } }

/* What's covered */
.cover-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.cover-cols h3 { font-size: 1.125rem; font-family: var(--font-body); font-stretch: 100%; }
.cover-cols ul { list-style: none; margin: 0; padding: 0; }
.cover-cols li { display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px solid var(--border); }
.cover-cols li svg { width: 20px; height: 20px; margin-top: 3px; }
.cover-cols li b { display: block; }
.cover-cols li span { color: var(--muted); font-size: var(--step--1); }
.small-print { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-3); max-width: 70ch; }
@media (max-width: 760px) { .cover-cols { grid-template-columns: 1fr; } }

/* Where landlord policies go wrong (Pratfall, service-specific) */
.pitfalls { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); counter-reset: pit; }
.pitfall { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: var(--space-3); }
.pitfall h3 { font-size: 1.125rem; font-family: var(--font-body); font-stretch: 100%; margin-bottom: 0.4rem; }
.pitfall p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.pitfall .fix { margin-top: 0.75rem; color: var(--text); font-weight: 600; font-size: var(--step--1); }
@media (max-width: 900px) { .pitfalls { grid-template-columns: 1fr; } }

/* FAQ accordion (native details/summary: works without JS, keyboard accessible) */
.faq { border-top: 1px solid var(--border); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.0625rem; min-height: 48px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .answer { padding: 0 0 1.25rem; color: var(--muted); max-width: 64ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* How we're paid (Consumer Duty transparency) */
.paid {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-3);
}
.paid svg { width: 40px; height: 40px; }
.paid h2 { font-size: var(--step-2); margin-bottom: 0.4rem; }
.paid p { margin: 0 0 0.6rem; color: var(--muted); }
@media (max-width: 560px) { .paid { grid-template-columns: 1fr; } }

/* Quick call-back form beside a testimonial */
.quick-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); align-items: center; }
@media (max-width: 900px) { .quick-wrap { grid-template-columns: 1fr; gap: var(--space-4); } }
.quick-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); }
.quick-form h2 { font-size: var(--step-3); margin-bottom: 0.3rem; }
.quick-form .lede { font-size: 1.0625rem; margin-bottom: 1.25rem; }
.quick-form .alt-link { margin: 1rem 0 0; font-size: var(--step--1); color: var(--muted); }
.trust-facts.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .trust-facts.four { grid-template-columns: repeat(2, 1fr); } }

/* Landlord page fixes */
.peak-cta {
  margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 1.5rem; padding: 1.25rem 1.5rem;
  background: var(--surface); border: 2px solid var(--text); border-radius: var(--radius-m);
}
.peak-cta p { margin: 0; max-width: 52ch; }
@media (max-width: 600px) { .peak-cta .btn { width: 100%; } }
.quick-side { display: grid; gap: var(--space-3); }
.advisor-ph { aspect-ratio: 16 / 9; color: var(--muted); }
.quick-wrap { align-items: start; }

/* Share with your team (Gartner: buying committees) */
.share-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--alt);
}
.share-box h2 { font-size: var(--step-2); margin-bottom: 0.3rem; }
.share-box p { margin: 0; color: var(--muted); }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
@media (max-width: 600px) { .share-actions .btn { flex: 1 1 100%; } }

/* Trusted-by client row (greyscale peer proof) */
.clients { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.clients p { margin: 0 0 0.6rem; font-size: var(--step--1); color: var(--muted); }
.clients ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.clients li { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: #8C8C87; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cs-hero { padding-block: clamp(2rem, 1.25rem + 3vw, 4rem) var(--space-4); }
.cs-hero h1 { max-width: 20ch; }
.cs-hero .lede { max-width: 56ch; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-3); }
.filter button {
  min-height: 44px; padding: 0.55rem 1.1rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font: 700 0.975rem var(--font-body);
}
.filter button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.filter-count { margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }

.cases { display: grid; gap: var(--space-4); padding-bottom: var(--space-6); }
.case {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); scroll-margin-top: 110px;
}
.case[hidden] { display: none; }
.case:target { outline: 3px solid var(--text); outline-offset: 4px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: var(--step--1); color: var(--muted); margin-bottom: 0.75rem; }
.tag {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: var(--alt); color: var(--text); font-weight: 700; font-size: 0.8125rem;
}
.case h2 { font-size: var(--step-3); max-width: 26ch; margin-bottom: var(--space-3); }
.case-body { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; gap: var(--space-3); } }
.outcome { background: var(--alt); border-radius: var(--radius-s); padding: 1.25rem; border-left: 4px solid var(--text); }
.outcome .label { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); margin-bottom: 0.35rem; }
.outcome .big { font: 750 var(--step-2)/1.2 var(--font-display); color: var(--brand); margin: 0 0 0.6rem; }
.outcome p { margin: 0; }
.outcome blockquote { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-style: italic; }
.outcome blockquote p { margin: 0; }
.outcome cite { display: block; margin-top: 0.4rem; font-style: normal; font-size: var(--step--1); color: var(--muted); }
.story { display: grid; gap: 1.1rem; margin: 0; }
.story dt { font-weight: 800; font-size: 0.9375rem; }
.story dd { margin: 0.2rem 0 0; color: var(--muted); }
.case-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center;
  margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border);
}
.case-actions .spacer { flex: 1; }
.link-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text);
  font: 600 0.975rem var(--font-body); text-decoration: underline; text-underline-offset: 4px;
}
.link-btn svg { width: 18px; height: 18px; }
.cs-empty { color: var(--muted); }

/* Print one story as a clean one-page PDF */
@media print {
  .site-header, .site-footer, .mobile-bar, .consent, .cs-hero, .cta-band, .case-actions, .skip-link, .demo-bar, .rnote { display: none !important; }
  body, main, .wrap { background: #fff !important; color: #000; padding-bottom: 0 !important; }
  .case { border: 0; padding: 0; break-inside: avoid; }
  body.print-one .case:not(.print-target) { display: none !important; }
  .case-body { grid-template-columns: 1fr 1fr; }
  .cases::before {
    content: "North Star Insurance Brokers Ltd  |  0191 340 3263  |  northstarinsurancebrokers.co.uk  |  FCA ref. 513243";
    display: block; font: 600 10pt var(--font-body); border-bottom: 1px solid #000; padding-bottom: 6pt; margin-bottom: 14pt;
  }
}
.case h2 { max-width: 40ch; }
.results-note { margin: 1rem 0 0; font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.story .hard { padding-left: 0.9rem; border-left: 2px solid var(--border); }
.compare.two-up { margin-top: 0; }
.second-opinion { margin: 1rem 0 0; font-size: var(--step--1); color: var(--muted); }
.second-opinion a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* ==========================================================================
   Cover finder
   ========================================================================== */
.finder-page { background: var(--alt); padding-block: clamp(1.5rem, 1rem + 2.5vw, 3.5rem) var(--space-6); }
.finder { max-width: 42rem; margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m); padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); }
.finder-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; font-size: var(--step--1); color: var(--muted); min-height: 44px; }
.finder-back { visibility: hidden; }
.finder-back.show { visibility: visible; }
.bar { height: 6px; background: var(--alt); border-radius: 999px; overflow: hidden; margin-bottom: var(--space-3); }
.bar span { display: block; height: 100%; width: 0; background: var(--text); transition: width 0.3s ease; }
.finder h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.finder .hint { color: var(--muted); margin-bottom: var(--space-3); }
.answers { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.answer-btn {
  width: 100%; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.1rem; text-align: left; cursor: pointer;
  background: var(--surface); color: var(--text); border: 2px solid var(--border); border-radius: var(--radius-s);
  font: 700 1.0625rem/1.3 var(--font-body);
}
.answer-btn small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; margin-top: 0.15rem; }
.answer-btn svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.answer-btn:hover { border-color: var(--text); }
.answer-btn[aria-checked="true"] { border-color: var(--text); background: var(--alt); }
.finder-foot { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--muted); }
.finder-trust { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin: 0 0 0.5rem; padding: 0; list-style: none; }
.finder-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.finder-trust svg { width: 15px; height: 15px; }

.result .kicker { font-size: 0.8125rem; font-weight: 800; color: var(--muted); margin-bottom: 0.3rem; }
.result h1 { margin-bottom: 0.9rem; }
.why { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 0.7rem; }
.why li { display: grid; grid-template-columns: 22px 1fr; gap: 0.65rem; }
.why svg { width: 20px; height: 20px; margin-top: 3px; }
.why .because { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 0.1rem; }
.flag { border-left: 4px solid var(--text); background: var(--alt); padding: 0.9rem 1rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin-bottom: var(--space-3); }
.flag p { margin: 0; }
.result-actions { display: grid; gap: 0.6rem; margin-top: var(--space-3); }
.not-advice { font-size: 0.875rem; color: var(--muted); margin-top: var(--space-3); }
.quicker { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.quicker h2 { font-size: var(--step-2); margin-bottom: 0.35rem; }
.quicker .btn-plain { margin-top: 0.25rem; }

.p-block { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.p-block h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.told { margin: 0; display: grid; gap: 0.5rem; }
.told > div { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1rem; align-items: baseline; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.told dt { font-weight: 700; font-size: var(--step--1); }
.told dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: baseline; }
.told .change { background: none; border: 0; padding: 0.25rem 0; color: var(--muted); font: 600 0.875rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.told .change:hover { color: var(--text); }
@media (max-width: 520px) { .told > div { grid-template-columns: 1fr; gap: 0.15rem; } }
.callback-block form { margin-top: 1rem; }
.finder-quote { margin-top: var(--space-4); }
.finder-quote blockquote { font-size: var(--step-1); }
.profile-tools { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--border); }

@media print {
  body.print-profile .site-header, body.print-profile .site-footer, body.print-profile .consent,
  body.print-profile .no-print, body.print-profile .finder-top, body.print-profile .bar,
  body.print-profile .finder-foot, body.print-profile .finder-quote, body.print-profile .flag a { display: none !important; }
  body.print-profile, body.print-profile main, body.print-profile .finder { background: #fff !important; color: #000; border: 0; padding: 0; }
  body.print-profile .finder::before {
    content: "North Star Insurance Brokers Ltd  |  0191 340 3263  |  northstarinsurancebrokers.co.uk  |  FCA ref. 513243";
    display: block; font: 600 10pt var(--font-body); border-bottom: 1px solid #000; padding-bottom: 6pt; margin-bottom: 14pt;
  }
}

/* ==========================================================================
   About & Team
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }
.person { margin: 0; }
.person .ph { aspect-ratio: 4 / 5; color: var(--muted); margin-bottom: 0.9rem; }
.person h3 { margin-bottom: 0.15rem; }
.person .role { color: var(--muted); font-size: var(--step--1); margin: 0 0 0.6rem; }
.person p { margin: 0 0 0.6rem; }
.person .text-link { margin-top: 0.25rem; }
.story-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
@media (max-width: 800px) { .story-cols { grid-template-columns: 1fr; } }

/* ==========================================================================
   Legal / long-read pages
   ========================================================================== */
.legal-page { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) var(--space-6); }
.legal-wrap { max-width: 44rem; margin-inline: auto; }
.legal-wrap h1 { font-size: var(--step-3); }
.legal-wrap .updated { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--space-3); }
.legal-wrap h2 { font-size: var(--step-2); margin-top: var(--space-4); }
.legal-wrap h3 { font-size: 1.125rem; font-family: var(--font-body); font-stretch: 100%; margin-top: var(--space-3); }
.legal-wrap ul, .legal-wrap ol { padding-left: 1.2rem; }
.legal-wrap li { margin-bottom: 0.45rem; max-width: var(--measure); }
.toc { background: var(--alt); border-radius: var(--radius-m); padding: var(--space-3); margin-bottom: var(--space-4); }
.toc h2 { margin: 0 0 0.6rem; font-size: 1rem; font-family: var(--font-body); font-stretch: 100%; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin-bottom: 0.35rem; }
.callout { border-left: 4px solid var(--text); background: var(--alt); padding: 1rem 1.15rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: var(--space-3) 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }
.draft-note {
  border: 2px dashed currentColor; border-radius: var(--radius-m); padding: 1rem 1.15rem;
  margin-bottom: var(--space-4); color: var(--muted); font-size: var(--step--1);
}
.draft-note strong { color: var(--text); }
.contact-card { background: var(--alt); border-radius: var(--radius-m); padding: var(--space-3); margin: var(--space-3) 0; }
.contact-card p { margin: 0 0 0.4rem; }
.contact-card p:last-child { margin-bottom: 0; }

/* 404 */
.notfound { padding-block: var(--space-6); text-align: left; }
.notfound-wrap { max-width: 38rem; }
.notfound h1 { font-size: var(--step-3); }
.notfound .routes { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: 0.6rem; }
.notfound .routes a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px;
  padding: 0.85rem 1.1rem; border: 2px solid var(--border); border-radius: var(--radius-s);
  text-decoration: none; font-weight: 700;
}
.notfound .routes a:hover { border-color: var(--text); }
.notfound .routes svg { width: 20px; height: 20px; color: var(--muted); }
.form-card .lede a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }

/* Step heading inside a single-document flow (was an h1, demoted for one-H1-per-page) */
.step-h1 { font-size: var(--step-3); margin-bottom: 0.4rem; }

/* Static content below the application: indexable substance that never competes with the task */
.apply-support { max-width: 42rem; margin: var(--space-5) auto 0; }
.apply-support h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.apply-support h3 { font-size: 1.0625rem; font-family: var(--font-body); font-stretch: 100%; margin-top: var(--space-3); }
.apply-support > section + section { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--border); }
.apply-steps { list-style: none; margin: 0; padding: 0; counter-reset: a; display: grid; gap: 0.9rem; }
.apply-steps li { counter-increment: a; display: grid; grid-template-columns: 28px 1fr; gap: 0.8rem; }
.apply-steps li::before {
  content: counter(a); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--text); color: var(--surface); font: 700 0.8125rem/1 var(--font-display);
}
.apply-steps b { display: block; }
.apply-steps span { color: var(--muted); font-size: var(--step--1); }
/* The rotated chevron's bounding box pokes ~2px past its element; give it room so no page
   can gain a 1px horizontal scroll (checked at 320/360/390/414px). */
.faq summary { padding-right: 4px; }

/* Long unbreakable strings (email addresses, references) must not force a page wider than
   the smallest phones still in use (320px). */
a { overflow-wrap: break-word; }
@media (max-width: 360px) {
  .number-box { grid-template-columns: 1fr; }
  .number-box .big { font-size: 1.5rem; }
  .confirm-head { gap: 0.75rem; }
  .confirm-head .tick { width: 40px; height: 40px; }
  .confirm-head .tick svg { width: 22px; height: 22px; }
}

/* WCAG 2.2 AA target size (2.5.8): stacked navigation links need 24px, even in the footer
   and in a table of contents. Links inside a sentence are exempt and left alone. */
.site-footer ul a, .toc a, .notfound .routes a, .footer-tools a, .footer-tools button {
  display: inline-block; min-height: 24px; padding-block: 2px;
}
.site-footer li { margin-bottom: 0.35rem; }
.toc li { margin-bottom: 0.2rem; }
/* Phone and email in a contact card are tapped, not read past: give them a real target. */
.contact-card a { display: inline-block; min-height: 24px; padding-block: 2px; max-width: 100%; }

/* Make room for the consent overlay so it never covers footer links. */
body.has-consent { padding-bottom: var(--consent-pad, 0px); }
@media (max-width: 1020px) {
  body.has-consent { padding-bottom: calc(var(--consent-pad, 0px) + 76px); }
}

/* About page opening copy */
.about-intro { max-width: 60ch; margin-top: var(--space-3); }
.about-intro p { margin-bottom: 0.9rem; }
.about-intro p:last-child { margin-bottom: 0; }

/* Checkable facts in place of insurer logos */
.verify-lead {
  margin: var(--space-3) 0 0; padding-top: var(--space-3);
  border-top: 1px solid var(--border); font-size: var(--step--1); color: var(--muted);
  max-width: 68ch;
}
.trust-facts a { text-decoration: none; display: block; }
.trust-facts a b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.trust-facts a:hover b { color: var(--muted); }
.verify ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem var(--space-4); }
.verify a {
  display: grid; grid-template-columns: 22px 1fr; gap: 0.7rem; align-items: start;
  text-decoration: none; min-height: 44px; padding: 0.3rem 0;
}
.verify svg { width: 20px; height: 20px; margin-top: 3px; color: var(--text); }
.verify b { display: block; font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; }
.verify span { font-size: var(--step--1); color: var(--muted); }
.verify a:hover b { color: var(--brand); }
@media (max-width: 860px) { .verify ul { grid-template-columns: 1fr; gap: 0.35rem; } }
/* Call-back section with no testimonial beside it */
.quick-wrap.one-col { grid-template-columns: minmax(0, 34rem); justify-content: center; }

/* About hero with team photo */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-5); align-items: start; }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--radius-m); background: var(--alt); }
@media (max-width: 900px) { .about-hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); } }

/* ---------- Data table (cookie list) ----------
   Scrolls horizontally on a narrow screen rather than forcing the page wide
   (which is what caused the 320px overflow bug). */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 32rem; }
.data-table th,
.data-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table thead th { background: var(--alt); font-weight: 600; color: var(--text); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table code { font-size: 0.9em; background: var(--alt); padding: 0.1rem 0.3rem; border-radius: 4px; overflow-wrap: break-word; }

/* A single named advisor rather than a row of empty placeholder cards */
.team-grid.one-up { grid-template-columns: minmax(0, 1fr); max-width: 34rem; }
.team-grid.one-up .person { text-align: left; }
