/* ============================================================
   GENERATIONAL INSURANCES QUOTE REQUEST: design system.
   The Ascension quoting app stylesheet (base: BASE_VERSION in js/config.js) with this logo's palette
   (the navy #001e3c, a brass accent, a linen surface for the forms) and the
   skin at the end of this file. Source Serif headlines, Montserrat labels
   and buttons (echo INSURANCES), Inter body copy.
   ============================================================ */

:root {
  --blue: #001e3c;          /* the logo navy (token name kept from core) */
  --blue-dark: #00152b;
  --blue-darker: #000e1d;
  --blue-light: #9c7424;    /* the brass accent: the focus ring */
  --ink: #0c1a2b;
  --charcoal: #1d2733;
  --grey: #c9c4b9;
  --grey-mid: #596372;
  --grey-light: #f6f4ef;
  --white: #ffffff;
  --danger: #c0392b;
  --warn: #8a5a00;
  --success: #1e8a4c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 18, 38, 0.14);
  --shadow-sm: 0 6px 18px rgba(0, 18, 38, 0.06);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; min-height: 100%;
  font-family: var(--font-body);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button { font-family: inherit; }
img { max-width: 100%; }


/* ------------------------------------------------------------
   App shell
   ------------------------------------------------------------ */
#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; overflow-x: clip; }
.shell {
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: 0 22px; flex: 1; display: flex; flex-direction: column;
}

/* Top bar — white logo over video, blue logo over light surface */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0 10px; gap: 14px;
}
.topbar .logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.topbar img { height: 44px; display: block; }
@media (max-width: 560px) { .topbar img { height: 36px; } }

.top-actions { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  border: none; border-radius: 8px; padding: 14px 26px; cursor: pointer;
  transition: background .18s, transform .18s var(--ease), box-shadow .18s, border-color .18s, color .18s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { opacity: .55; cursor: not-allowed; transform: none; } /* 2.8.6: "Finishing upload…" stays focusable */
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary { background: var(--blue); color: #fff; position: relative; overflow: hidden; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 30, 60, .3); }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg); transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 135%; }
/* A solid keyboard focus ring in the brass accent: 3.9:1 on the navy screens, 4.2:1 on white, 3.8:1 on the linen */
.btn:focus-visible, .btn-link:focus-visible, .pill:focus-visible, .select-card:focus-visible, .choice-card:focus-visible,
.logo-link:focus-visible, .btn-add:focus-visible, .btn-remove:focus-visible,
.dropzone:focus-visible, .check-row input:focus-visible, .af-dropzone:focus-visible, a:focus-visible {
  outline: 3px solid var(--blue-light); outline-offset: 2px;
}
/* #6 item 5: a button that cannot be pressed ("Finishing upload…", aria-disabled; "Submitting…", disabled) keeps its
   resting fill on hover: no darker blue, no glow, no sheen. */
.btn-primary[aria-disabled="true"]:hover, .btn-primary:disabled:hover { background: var(--blue); box-shadow: none; transform: none; }
.btn-primary[aria-disabled="true"]::after, .btn-primary:disabled::after { display: none; }

.btn-ghost {
  background: transparent; color: var(--charcoal);
  border: 1.5px solid #d3cec4; padding: 12.5px 22px;
}
.btn-ghost:hover { border-color: var(--charcoal); }

.btn-glass {
  color: #fff; border: 1.5px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px 18px; font-size: 14px; border-radius: 8px;
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); border-color: #fff; transform: translateY(-1px); }
body.mode-light .btn-glass { color: var(--charcoal); border-color: #d3cec4; background: rgba(255,255,255,.7); }
body.mode-light .btn-glass:hover { border-color: var(--charcoal); }

.btn-link {
  background: none; border: none; color: var(--blue); font-weight: 600;
  cursor: pointer; font-size: 14px; padding: 6px 8px; font-family: var(--font-display);
}
.btn-link:hover { color: var(--blue-dark); text-decoration: underline; }

/* ------------------------------------------------------------
   Choice screens (role + line of business) — glass over video
   ------------------------------------------------------------ */
.choice-screen {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 34px 0 60px; text-align: center;
}
.eyebrow {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; font-size: .72rem;
  color: rgba(255, 255, 255, .85);
}
.eyebrow .accent { color: var(--blue-light); }
.choice-screen h1 {
  color: #fff; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  margin: 14px 0 10px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.choice-screen .sub {
  color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 560px; margin: 0 auto 38px; line-height: 1.6;
}
.choice-grid {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: 100%;
}
.choice-card {
  flex: 1 1 240px; max-width: 300px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px; padding: 26px 24px 24px;
  box-shadow: 0 10px 40px rgba(0, 18, 38, .22), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .28s var(--ease), background .28s, box-shadow .28s, border-color .28s;
  color: var(--ink); font-family: inherit;
  position: relative; overflow: hidden;
  /* 2.8.2: content starts at the top (a button centres it), so cards in one row line up */
  display: flex; flex-direction: column; align-items: flex-start;
}
.choice-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--blue); transition: width .45s var(--ease);
}
.choice-card:hover, .choice-card:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.46);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 50px rgba(0, 18, 38, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
  outline: none;
}
.choice-card:hover::before { width: 100%; }
/* D9 (the walk, W4-6): a keyboard focus ring that shows on the photo and on white: white, then blue, and the top bar */
.choice-card:focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--blue-dark), 0 16px 50px rgba(0, 18, 38, .3);
}
.choice-card:focus-visible::before { width: 100%; }
.choice-card .chip {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(0, 30, 60, .14); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.choice-card .chip svg { width: 24px; height: 24px; }
.choice-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.choice-card p { font-size: .88rem; line-height: 1.55; color: #22313d; }
.choice-card .go {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--blue-dark);
}
.choice-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.choice-card:hover .go svg { transform: translateX(4px); }
.choice-card .badge {
  position: absolute; top: 14px; right: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--blue); color: #fff; border-radius: 99px; padding: 4px 10px;
}


/* Back link on choice screens */
.choice-back { margin-top: 34px; }
.choice-back .btn-link { color: rgba(255, 255, 255, .85); min-height: 40px; padding: 10px 12px; }
.choice-back .btn-link:hover { color: #fff; }

/* ------------------------------------------------------------
   Wizard chrome — light surface
   ------------------------------------------------------------ */
.wizard { flex: 1; display: flex; flex-direction: column; padding-bottom: 70px; }
.wizard-head { padding: 8px 0 22px; }
.step-eyebrow {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; font-size: .68rem; color: var(--grey-mid);
  display: flex; align-items: center; gap: 10px;
}
.step-eyebrow .accent-bar { width: 34px; height: 3px; background: var(--blue); border-radius: 2px; }
/* Step label: the colour bar keeps its size and stays by the first line when the label wraps */
.step-eyebrow { align-items: flex-start; line-height: 1.5; }
.step-eyebrow .accent-bar { flex: none; margin-top: calc(.75em - 1.5px); }
@media (max-width: 360px) { .step-eyebrow { letter-spacing: .1em; } }

/* Ascent progress — a climbing path with a dot and summit flag */
.ascent-progress { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.ascent-track { flex: 1; position: relative; height: 34px; }
.ascent-track svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ascent-track .track-ghost { stroke: rgba(0, 30, 60, .16); stroke-width: 2.5; fill: none; }
.ascent-track .track-fill {
  stroke: var(--blue); stroke-width: 3; fill: none;
  stroke-linecap: round; transition: stroke-dashoffset .7s var(--ease);
}
.ascent-track .track-dot {
  fill: var(--blue); stroke: #fff; stroke-width: 2;
  transition: transform .7s var(--ease);
}
.ascent-track .track-flag {
  stroke: var(--blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  fill: none; opacity: 0; transition: opacity .4s ease .3s;
}
.ascent-track.summit .track-flag { opacity: 1; }
.ascent-count {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem;
  color: var(--blue-dark); white-space: nowrap;
}

/* Step panel */
.panel { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* F1 (the re-walk; every screen): a redraw of the same screen (app.js marks #app "same-screen") draws the panel, or the
   thank-you card, in place; the rise plays only when the screen or the personal step changes. */
#app.same-screen .panel, #app.same-screen .success-card { animation: none; }
#app.same-screen .summit-glyph .draw { animation: none; stroke-dashoffset: 0; }
#app.same-screen .summit-glyph .dot { animation: none; opacity: 1; }
.panel > h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.panel > .lede { color: var(--grey-mid); font-size: .98rem; line-height: 1.6; margin-bottom: 26px; max-width: 640px; }

.card {
  background: #fff; border: 1px solid #e4e0d7; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px; margin-bottom: 18px;
}
/* 2.8.2: block, not flex, so a heading that wraps on a phone keeps "(optional)" and the * after its last
   word. Every card heading starts with its icon, which sits by the first line. */
.card h3 {
  font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.35;
  position: relative; padding-left: 27px; margin-bottom: 4px;
}
.card h3 svg { width: 18px; height: 18px; color: var(--blue); position: absolute; left: 0; top: .2em; }
/* A card with no grey subtitle gives its first field the same room as the others. */
.card > h3 + :not(.card-sub):not(.err-msg) { margin-top: 16px; }
/* Home, mailing and physical address headings read as field labels, like City / State / ZIP under them. */
.card .card-sub.group-label { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: var(--label); line-height: 1.4; }
.card .card-sub { font-size: .85rem; color: var(--grey-mid); margin-bottom: 18px; line-height: 1.5; }

/* Selectable big cards (coverage type, home type) */
.select-grid { display: grid; gap: 14px; }
.select-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.select-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .select-grid.cols-3, .select-grid.cols-2 { grid-template-columns: 1fr; } }
.select-card {
  position: relative; text-align: left; cursor: pointer; font-family: inherit;
  background: #fff; border: 1.5px solid #e1ddd3; border-radius: 14px; padding: 20px 18px;
  transition: transform .28s var(--ease), border-color .2s, box-shadow .28s, background .2s;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; /* 2.8.2: content from the top, like .choice-card */
}
.select-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: var(--blue); transition: width .45s var(--ease);
}
.select-card:hover { transform: translateY(-3px); border-color: rgba(0, 30, 60, .4); box-shadow: 0 14px 34px rgba(0, 18, 38, .1); }
.select-card:hover::before { width: 100%; }
.select-card.selected { border-color: var(--blue); background: rgba(0, 30, 60, .05); box-shadow: 0 8px 24px rgba(0, 30, 60, .12); }
.select-card.selected::before { width: 100%; }
.select-card .chip {
  width: 42px; height: 42px; border-radius: 11px;
  background: rgba(0, 30, 60, .1); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.select-card .chip svg { width: 22px; height: 22px; }
.select-card h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.select-card p { font-size: .82rem; color: var(--grey-mid); line-height: 1.5; }
.select-card .badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: .58rem;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--blue); color: #fff; border-radius: 99px; padding: 3px 9px;
}

/* ------------------------------------------------------------
   Form fields
   ------------------------------------------------------------ */
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; color: var(--label); margin-bottom: 7px;
}
.req { color: var(--blue); }
.field input, .field select, .field textarea {
  /* 16px minimum stops iOS Safari from auto-zooming on focus */
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 16px;
  /* #14 item 5: the resting border is --grey-mid, 4.6:1 on white (WCAG 1.4.11 asks 3:1; #dbd6cb was 1.3:1) */
  border: 1.5px solid var(--grey-mid); border-radius: 8px; background: #fff; color: var(--charcoal);
  transition: border-color .15s, box-shadow .15s;
}
/* 2.8.2: text boxes, dropdowns and date fields share one height, so side-by-side rows line up. The dropdown draws its
   own arrow, so its text lines up with the text boxes, and an unanswered one shows its prompt in placeholder grey. */
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select { height: 48px; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232e3a48' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field select:not([data-empty-answer]):has(option[value=""]:checked) { color: #757575; }
.field select option { color: var(--charcoal); }
/* High-contrast modes: the native arrow, drawn in the system colours */
@media (forced-colors: active) { .field select { -webkit-appearance: auto; appearance: auto; background-image: none; padding-right: 14px; } }
/* Autofill pre-filled highlight (Joe's PR #1 review item 28: `.af-pre` alone lost to `.field input`). Item 40: this rule
   sits ABOVE the :focus and .has-error rules, which share its specificity, so a pre-filled field that fails validation
   turns red and a focused one blue. */
/* AS-2246 (#28 item 4): the outline is --blue-light (3.35:1 on white; #e2cfa4 was 1.46:1), and a pre-filled selected pill
   keeps the normal selected look with a light ring, where the pale fill made it look less selected than the pill beside it. */
.field input.af-pre, .field select.af-pre, .field textarea.af-pre { background-color: #f6f0e2; border-color: #9c7424; } /* colour only: keeps the dropdown arrow */
.pill-row.af-pre .pill.selected { box-shadow: 0 0 0 3px #e2cfa4; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(192, 57, 43, .1);
}
/* #14 item 4: :focus comes AFTER .has-error (same specificity), so a field in error still shows the focus change. */
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 30, 60, .13);
}
.field .err-msg { color: var(--danger); font-size: .75rem; margin-top: 5px; font-weight: 600; }
.field .hint { color: var(--grey-mid); font-size: .78rem; margin-top: 5px; line-height: 1.45; }
.field .warn-msg { color: var(--warn); font-size: .75rem; margin-top: 5px; font-weight: 600; line-height: 1.45; }
.field .warn-msg:empty { display: none; }
.field textarea { resize: vertical; min-height: 90px; }

/* Checkbox / toggle rows */
.check-row {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  min-height: 44px; /* #14 (AS-2238): a 44 px tap target, with the box centred */
  font-size: .92rem; color: #2a3641; line-height: 1.5;
  -webkit-user-select: none; user-select: none;
}
.check-row input {
  width: 19px; height: 19px; margin: 0; accent-color: var(--blue); cursor: pointer; flex: none;
}
/* A row with a sub-line is already about 44 px tall: its box stays beside the title, as before. */
.check-row:has(.check-sub) { align-items: flex-start; }
.check-row:has(.check-sub) input { margin-top: 1px; }
.check-row .check-title { font-weight: 600; color: var(--ink); display: block; }
/* D4 (the walk): in a checklist grid every box sits on its row's first line, so a box with a sub-line is level with the
   box beside it (a row without one used to centre its box in the 44 px row, about 11 px lower). */
.check-grid { align-items: start; }
.check-grid .check-row { align-items: flex-start; }
.check-grid .check-row input { margin-top: 1px; }
.check-row .check-sub { font-size: .82rem; color: var(--grey-mid); display: block; margin-top: 2px; }

/* Pill toggles (yes/no, contact method) */
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  padding: 10px 20px; border-radius: 99px; cursor: pointer;
  border: 1.5px solid var(--grey-mid); background: #fff; color: #43505c; /* #14 item 5: as the fields */
  transition: all .18s var(--ease); text-transform: capitalize;
}
.pill:hover { border-color: var(--blue-light); }
.pill.selected { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0, 30, 60, .28); }
/* D5 (the walk, WK-6): on a phone a three-option row shares one row in three even columns (a long label wraps inside its
   pill), so no pill is left alone on a second row. */
@media (max-width: 480px) {
  .pill-row.pills-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pill-row.pills-3 .pill { padding: 10px 8px; line-height: 1.25; text-align: center; }
}
/* D6 (the walk, WK-7): the four share boxes stay two by two on a phone, with the total right under them. */
@media (max-width: 720px) { .grid.cols-2.eo-mix-grid { grid-template-columns: 1fr 1fr; } }
/* F3 (the re-walk): every cell from the top, and on a phone every label two lines tall, so the two boxes of a row line up
   and a box's message (under its box) never moves the box beside it. */
.eo-mix-grid { align-items: start; }
@media (max-width: 720px) { .eo-mix-grid .field label { line-height: 1.4; min-height: 2.8em; display: flex; align-items: flex-end; } } /* a one-line label sits on its box */
/* E1 (the walk): the running total, in the error colour while it is out of the band after a refused send */
.card .card-sub.eo-total-bad { color: var(--danger); }
/* O1 (the walk): the name, email and phone the owner box uses, read only, under the box's sub-line */
.owner-from { margin: 4px 0 0 30px; font-size: .85rem; color: var(--label); line-height: 1.5; }
.owner-from:empty { display: none; }

/* Repeating items (drivers, vehicles, losses) */
.repeat-item {
  border: 1.5px solid #e1ddd3; border-radius: 12px; padding: 20px;
  margin-bottom: 14px; position: relative; background: #fcfbf8;
}
.repeat-item .repeat-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.repeat-item .repeat-title {
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-dark);
  display: flex; align-items: center; gap: 8px;
}
.repeat-item .repeat-title .num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; letter-spacing: 0;
}
.btn-remove {
  background: none; border: none; color: var(--grey-mid); font-size: .8rem;
  font-family: var(--font-display); font-weight: 600; cursor: pointer; padding: 10px 12px; min-height: 40px;
  border-radius: 6px; transition: color .15s, background .15s;
}
.btn-remove:hover { color: var(--danger); background: rgba(192, 57, 43, .07); }
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 30, 60, .07); color: var(--blue-dark);
  border: 1.5px dashed rgba(0, 30, 60, .45); border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 12px 20px; cursor: pointer; width: 100%; justify-content: center;
  transition: background .18s, border-color .18s;
}
.btn-add:hover { background: rgba(0, 30, 60, .12); border-color: var(--blue); }
.btn-add svg { width: 16px; height: 16px; }

/* Upload zones */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .upload-grid { grid-template-columns: 1fr; } }
.upload-grid:has(> :only-child) { grid-template-columns: 1fr; } /* 2.8.2: one box on its own takes the full width */
.dropzone {
  border: 1.5px dashed #cbc4b5; border-radius: 12px; padding: 20px 16px;
  text-align: center; cursor: pointer; background: #fcfbf8;
  transition: border-color .18s, background .18s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--blue); background: rgba(0, 30, 60, .05); }
.dropzone .dz-icon { color: var(--blue); margin-bottom: 8px; }
.dropzone .dz-icon svg { width: 22px; height: 22px; }
.dropzone .dz-label { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); }
.dropzone .dz-sub { font-size: .74rem; color: var(--grey-mid); margin-top: 3px; }
.dropzone.has-file { border-style: solid; border-color: var(--success); background: rgba(30, 138, 76, .05); }
.dropzone.has-file .dz-icon { color: var(--success); }
/* 2.10.3: a named box's files are rows under it (below), each with its own Remove button */
.doc-box > .dropzone + .file-row { margin-top: 10px; }
.doc-box > .file-row:last-child { margin-bottom: 0; }

/* Uploaded-file rows for the open-ended "Anything else" zone */
.file-row {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid #e1ddd3; background: #fcfbf8; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 10px; font-size: .88rem;
}
.file-row svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
/* 2.12.1 S4 (the walk of 2.11.1, L1): a long name wraps where its text allows (after a hyphen) first, and splits a word only
   when it cannot fit (before, break-all split "license-front.jpg" mid-word at 320); the full name stays */
.file-row .fr-name { font-weight: 600; color: var(--ink); word-break: normal; overflow-wrap: anywhere; flex: 1; min-width: 0; }
/* Phones: the file name gets the whole first line; its size sits under it and Remove at the right */
@media (max-width: 480px) {
  .file-row { flex-wrap: wrap; row-gap: 0; }
  .file-row .fr-name { flex: 1 1 calc(100% - 26px); }
  .file-row .fr-size { margin-left: 26px; }
  .file-row .btn-remove { margin-left: auto; }
}
.file-row .fr-size { color: var(--grey-mid); font-size: .78rem; white-space: nowrap; }

/* Wizard footer nav */
.wizard-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-top: 30px;
}
.wizard-nav .spacer { flex: 1; }
/* Back and Continue / Submit: a 48px floor at every width (Montserrat's line height is compact) */
.wizard-nav .btn { min-height: 48px; }

/* Error banner */
.banner {
  border-radius: 12px; padding: 14px 18px; margin-bottom: 18px;
  font-size: .9rem; line-height: 1.5; display: flex; gap: 10px; align-items: flex-start;
}
.banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.banner-error { background: rgba(192, 57, 43, .08); border: 1.5px solid rgba(192, 57, 43, .3); color: #8e2b20; }
.banner-info { background: rgba(0, 30, 60, .07); border: 1.5px solid rgba(0, 30, 60, .25); color: var(--blue-darker); }
.banner[hidden] { display: none; } /* 2.8.7: the flex display would otherwise override [hidden] */
/* 2.10.4: a button in a banner line ("They’re all added"): its own row under the sentence, so it never reads as part of it;
   a white outline button in the banner's colour, 44 px tall like the checkbox rows, with its own keyboard focus ring.
   Its brand colours are tokens, so a branded copy's palette carries over; the face is white, as the info banner is light. */
.banner .btn-banner {
  display: flex; width: fit-content; max-width: 100%; align-items: center; justify-content: center; text-align: center;
  margin-top: 10px; min-height: 44px; padding: 10px 18px;
  border: 1.5px solid var(--blue); border-radius: 8px; background: #fff; color: var(--blue-dark); cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .875rem; line-height: 1.25;
  transition: background .18s, color .18s, border-color .18s;
}
.banner .btn-banner:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.banner .btn-banner:active { transform: translateY(1px); }
.banner .btn-banner:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .banner .btn-banner { transition: none; } }
/* 2.8.7 (#15 item 3): the text column of a banner or a note above the page may shrink and break a long file name or the
   support address, so neither pushes past the card at 320 to 400 px. */
.banner > div, .draft-bar > div { min-width: 0; overflow-wrap: anywhere; }
.success-card .upload-status { margin: 14px 0 0; text-align: left; } /* 2.8.7: the upload lines on the thank-you card */

/* Resume-draft banner. 2.8.2: a banner at the top of the opening screen (it sits before #app), so it never covers the
   role cards on a short phone. It used to float at the bottom, centred with translateX(-50%), which the rise animation
   replaced, so Resume sat off the screen on phones and tablets. It goes away when a role is picked and comes back on Back
   or the logo while nothing has been typed (app.js), so it never disappears mid-form or moves anything under the pointer. */
.draft-bar {
  position: relative; z-index: 60; display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 14px;
  padding: 13px 18px; box-shadow: var(--shadow); font-size: .88rem;
  width: calc(100% - 32px); max-width: 560px; margin: 17px auto 0;
  animation: rise .5s var(--ease) both;
}
.draft-bar > div { flex: 1 1 200px; line-height: 1.5; }
.draft-bar b { white-space: nowrap; }
.draft-bar .btn { padding: 8px 16px; font-size: .82rem; }
.draft-bar .btn-link { color: #d6b46e; }

/* 2.8.2: no single word left alone on a line in headings and short copy (older browsers ignore this) */
.choice-screen h1, .panel > h2, .card h3, .check-row .check-title, .success-card h1,
.next-steps .ns span, .dropzone .dz-label { text-wrap: balance; }
.eyebrow, .site-footer .foot-line, .choice-screen .sub, .choice-card p, .select-card p, .panel > .lede, .card .card-sub, .check-row .check-sub,
.dropzone .dz-sub, .banner > div, .success-card .sub, .field .hint, .field label { text-wrap: pretty; }
.success-card a[href^="tel:"] { white-space: nowrap; } /* the office number never splits */

/* 2.8.2: phones (from a render check of every screen at 320, 375 and 414 wide) */
@media (max-width: 480px) {
  /* The main button sits above Back, both full width, so "Submit quote request" never wraps */
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .wizard-nav .spacer { display: none; }
  .wizard-nav .btn { width: 100%; white-space: nowrap; }
  /* Less nested padding, so fields and their hints have room */
  .card { padding: 20px 16px; }
  .repeat-item { padding: 16px 14px; }
  .field textarea { min-height: 130px; }
  /* Resume bar: the sentence on its own row, Resume and Discard together below it, easier to tap */
  .draft-bar > div { flex-basis: 100%; }
  .draft-bar .btn { padding: 11px 20px; }
  .draft-bar .btn-link { padding: 11px 10px; }
}
/* #14 item 6, measured at 320 px with Poppins / Open Sans loaded: "Open to recommendations" (the umbrella limit's
   unanswered choice) needs 201 px and its dropdown had 186, so it read "Open to recommendatio". The narrowest phones get
   a 16 px page gutter and 12 px card sides, 20 px more for every field; it then has 206. ("As shown on the license"
   fitted, 179 of 182 px, and now has 202.) */
@media (max-width: 340px) {
  .shell { padding: 0 16px; }
  .card { padding: 20px 12px; }
}

/* ------------------------------------------------------------
   Success screen
   ------------------------------------------------------------ */
.success-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 0 80px;
}
.success-card {
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 22px; padding: 46px 40px;
  box-shadow: 0 20px 60px rgba(0, 18, 38, .3);
  max-width: 560px; width: 100%; animation: rise .6s var(--ease) both;
}
.summit-glyph { margin: 0 auto 18px; width: 84px; height: 84px; }
.summit-glyph .draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: drawIn 1.4s var(--ease) .3s forwards; }
.summit-glyph .dot { opacity: 0; animation: fadeIn .5s ease 1.5s forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.success-card h1 { font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.success-card .ref {
  display: inline-block; font-family: var(--font-display); font-weight: 700; white-space: nowrap; /* 2.8.6: never splits after "AAG-" */
  background: var(--ink); color: #fff; border-radius: 10px;
  padding: 10px 22px; letter-spacing: .06em; margin: 14px 0 6px; font-size: 1.02rem;
}
.success-card .sub { color: #2a3641; font-size: .93rem; line-height: 1.6; }
@media (max-width: 340px) { /* 2.8.6: on the narrowest phones the one-line reference still fits inside the card */
  .success-card { padding: 36px 18px; }
  .success-card .ref { font-size: .9rem; padding: 10px 14px; }
}
.next-steps { text-align: left; margin: 26px 0 8px; display: grid; gap: 12px; }
.next-steps .ns {
  display: flex; gap: 13px; align-items: flex-start; font-size: .89rem; color: #22313d; line-height: 1.5;
}
.next-steps .ns .n {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--blue); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .78rem; display: inline-flex; align-items: center; justify-content: center;
}
.next-steps .ns b { color: var(--ink); }
/* Phones: a tighter success card, so the words have room */
@media (max-width: 560px) { .success-card { padding: 32px 22px; } }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  text-align: center; padding: 20px 22px 26px; font-size: .78rem;
  color: rgba(255, 255, 255, .75); position: relative; z-index: 1;
}
.site-footer a { color: rgba(255, 255, 255, .9); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a[href^="tel:"] { white-space: nowrap; } /* 2.8.3: the office number never splits */
body.mode-light .site-footer { color: var(--grey-mid); }
body.mode-light .site-footer a { color: var(--blue-dark); }
.site-footer .ver { opacity: .7; font-variant-numeric: tabular-nums; }

/* Short screens (small phones, iPad landscape with Safari's bars): a tighter success card */
@media (max-height: 820px) {
  .success-screen { padding: 16px 0 36px; }
  .success-card { padding-top: 30px; padding-bottom: 30px; }
  .summit-glyph { width: 72px; height: 72px; margin-bottom: 10px; }
  .next-steps { margin: 18px 0 6px; gap: 9px; }
}

/* Reveal-on-scroll for long commercial page */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Submitting spinner */
.spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* 2.8.6: read by screen readers only */

/* Crash fallback */
.fallback {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.fallback .card { max-width: 460px; padding: 40px 32px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel, .success-card, .draft-bar { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .choice-card, .select-card, .btn { transition: none; }
  .btn-primary::after { display: none; }
  .summit-glyph .draw { animation: none; stroke-dashoffset: 0; }
  .summit-glyph .dot { animation: none; opacity: 1; }
  .ascent-track .track-fill, .ascent-track .track-dot-h { transition: none; }
}


/* ==== Autofill ==== */
.af-card { border: 1px dashed #001e3c; background: #fbf8f1; }
.af-dropzone {
  margin-top: 10px; border: 2px dashed #dccba7; border-radius: 10px; padding: 22px;
  text-align: center; cursor: pointer; background: #fff; transition: border-color .15s;
}
.af-dropzone:hover { border-color: #001e3c; }
.af-files { margin: 10px 0; }
.af-error { color: #b00020; margin-top: 10px; font-size: 14px; }
/* The .af-pre highlight rules live above .field input:focus (item 40). */
/* Item 29: the Autofill card's file rows are not inside a .dropzone, so its Remove read as plain text. */
.af-card .dz-file { font-size: .8rem; color: var(--ink); font-weight: 600; word-break: break-all; margin-top: 4px; }
.af-card .dz-clear { color: var(--danger); font-size: .74rem; font-weight: 600; margin-top: 6px; display: inline-block; cursor: pointer; }
/* AS-2246 (#28): the card's Remove is a <button class="btn-link dz-clear"> now; it keeps the look it had as a span. */
.af-card .btn-link.dz-clear { padding: 0 2px; font-family: inherit; line-height: inherit; }
.af-card .btn-link.dz-clear:hover { color: var(--danger); }
.af-card .dz-label { font-family: var(--font-display); font-weight: 600; font-size: .86rem; color: var(--ink); }
.af-card .dz-sub { font-size: .74rem; color: var(--grey-mid); margin-top: 3px; }
.af-notice { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #f6f0e2; border: 1px solid #e2cfa4; font-size: 14px; }
.af-act { margin-top: 10px; }
.af-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.af-status { font-size: 14px; color: var(--ink); }
.af-status:not(:empty) { margin-top: 10px; }

.af-done { border-style: solid; border-color: #bfe3c5; background: #f2fbf4; }


/* ============================================================
   GENERATIONAL INSURANCES SKIN (appended to core's stylesheet by the build)
   The logo is white art on a flat navy field, so the choice screens
   (home, Personal/Commercial, thank-you) sit on that navy with the
   white logo, and the forms on a light linen sheet with the navy logo.
   One accent, brass, for the focus ring and small marks.
   Contrast (WCAG): white on navy 16.8:1; light brass #d6b46e on navy
   8.5:1; navy on white 16.8:1, on the linen 15.1:1; grey #596372 on
   the linen 5.5:1; brass ring #9c7424 3.9:1 on navy (3.1:1 on the
   lightest glow), 4.2:1 on white, 3.8:1 on the linen; field border
   #768090 4.0:1 on white; dark brass #7d5c1a 6.1:1 on white.
   ============================================================ */
:root {
  --navy: #001e3c;           /* the logo's field */
  --navy-glow: #0a2e54;      /* the lightest the navy gets (the glow behind the choice screens) */
  --brass: #9c7424;          /* the accent: the focus ring (--blue-light) and small marks */
  --brass-light: #d6b46e;    /* brass for words and marks on the navy */
  --brass-dark: #7d5c1a;     /* brass for words on white and the linen */
  --paper: #f6f4ef;          /* the linen behind the forms */
  --paper-soft: #faf9f6;
  --card: #ffffff;
  --label: #2e3a48;
  --line: #e4e0d7;
  --line-strong: #d3cec4;
  --body-soft: #3a4656;
  --on-navy: rgba(255, 255, 255, .86);
  --on-navy-soft: rgba(255, 255, 255, .74);
  --font-serif: 'Source Serif 4', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
}
/* The canvas: navy under the choice screens, the linen under the forms (so an overscroll shows the screen's own colour).
   It sits on html only: a body background would paint over the fixed layers. */
html { background: var(--navy); }
html:has(body.mode-light) { background: var(--paper); }
.gi-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 85% 65% at 12% -5%, var(--navy-glow) 0%, rgba(10, 46, 84, 0) 62%),
    radial-gradient(ellipse 70% 60% at 105% 105%, #04264a 0%, rgba(4, 38, 74, 0) 70%),
    var(--navy);
}
/* the logo's compass, very faint, low at the right of the Personal/Commercial and thank-you screens (the home page has
   its own compass, so it is left out there) */
.gi-bg::after {
  content: ''; position: absolute; right: -9vmax; bottom: -12vmax; width: 58vmax; height: 58vmax;
  background: url('../assets/logo-mark-reversed.svg') center / contain no-repeat; opacity: .045;
}
html:has(.hero-c) .gi-bg::after { display: none; }
.gi-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .6s var(--ease);
  background: linear-gradient(180deg, #f1eee7 0%, var(--paper-soft) 240px, var(--paper-soft) 100%);
}
body.mode-light .gi-veil { opacity: 1; }

/* Headlines in the serif */
.choice-screen h1, .panel > h2, .success-card h1 {
  font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.005em;
}
.panel > h2 { color: var(--navy); font-size: clamp(1.6rem, 3.2vw, 2.15rem); line-height: 1.15; }
.success-card h1 { color: var(--navy); line-height: 1.15; margin-bottom: 10px; }
.panel > .lede, .choice-screen .sub { text-wrap: balance; }
/* Field labels: Montserrat's normal leading sat tighter than the group labels when a label wraps */
.field label { line-height: 1.4; }
.req { color: var(--brass-dark); }
/* A field's or pill's border is its only visible edge (a white box on a white card), so it gets 3:1 (WCAG 1.4.11): core 2.9.0
   draws both with --grey-mid (here the text grey, #596372); this page uses a lighter slate, #768090, 4.0:1 on white, for
   both. Focus, hover and selected (navy), errors (red) and Autofill outrank it. */
.field input, .field select, .field textarea, .pill { border-color: #768090; }
.step-eyebrow .accent-bar { background: var(--brass); }

/* Top bar: the horizontal lockup, white on the navy screens, navy on the forms. It is sized by width so it can give way
   beside Cancel on the narrowest phones (it keeps its shape and shrinks, never clips). */
.topbar .logo-link { border-radius: 6px; min-height: 40px; min-width: 0; flex: 0 1 auto; }
.topbar img.logo-h { width: 300px; height: auto; max-width: 100%; display: block; }
.topbar img.logo-h.on-light { display: none; }
body.mode-light .topbar img.logo-h.on-dark { display: none; }
body.mode-light .topbar img.logo-h.on-light { display: block; }
@media (max-width: 560px) { .topbar img.logo-h { width: 228px; } }
.top-actions { flex: none; }
.btn-glass, body.mode-light .btn-glass {
  color: var(--charcoal); border-color: var(--line-strong); background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: none; backdrop-filter: none; min-height: 40px;
}
.btn-glass:hover, body.mode-light .btn-glass:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

/* Choice screens (home, Personal/Commercial, thank-you) on the navy */
.eyebrow { color: var(--brass-light); }
.eyebrow .accent { color: var(--brass-light); }
.choice-screen h1 { color: #fff; text-shadow: none; font-size: clamp(2rem, 4.6vw, 3.05rem); line-height: 1.1; }
.choice-screen .sub { color: var(--on-navy); }
/* Core's cards are glass made for its photo; on the navy they are solid white, lifted */
.choice-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 14px 40px rgba(0, 8, 20, .34);
}
.choice-card:hover, .choice-card:focus-visible {
  background: #fff; border-color: #fff;
  box-shadow: 0 22px 52px rgba(0, 8, 20, .46);
}
/* Core 2.12.0's choice-card focus ring is white over an 8px dark ring, made for its photo background. This page keeps its
   own ring (the brass, 3.9:1 on the navy), as every other control here, and the lift above instead of core's dark ring.
   Core's top bar on focus stays, in brass. */
.choice-card:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
.choice-card::before { background: var(--brass); }
.choice-card .chip { background: rgba(0, 30, 60, .07); color: var(--navy); }
.choice-card h3 { color: var(--ink); }
.choice-card p { color: var(--body-soft); }
.choice-card .go { color: var(--navy); }
.choice-back .btn-link { color: var(--on-navy); }
.choice-back .btn-link:hover { color: #fff; }

/* Progress: a straight course line to the logo's compass star. The marker and the star are HTML over the stretched SVG, so
   they keep their shape at any width. */
.ascent-track .track-ghost { stroke: rgba(0, 30, 60, .13); stroke-width: 3; stroke-linecap: round; }
.ascent-track .track-fill { stroke: var(--navy); stroke-width: 3; }
.ascent-track .track-dot-h {
  position: absolute; left: .67%; top: 17px; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px var(--navy), 0 2px 5px rgba(0, 18, 38, .2);
  transition: left .7s var(--ease), top .7s var(--ease);
}
.ascent-track .track-flag-h {
  position: absolute; right: 0; top: 17px; width: 22px; height: 22px; margin: -11px -2px 0 0; pointer-events: none;
}
.ascent-track .track-flag-h svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ascent-track .track-flag { fill: var(--navy); stroke: none; opacity: .3; transition: opacity .4s ease .3s; }
.ascent-track .track-star-d { fill: var(--brass); opacity: .35; transition: opacity .4s ease .3s; }
.ascent-track.summit .track-flag, .ascent-track.summit .track-star-d { opacity: 1; }
.ascent-progress { padding-right: 4px; }

/* Cards and forms on the linen */
.card { background: var(--card); border-color: var(--line); }
.select-card, .pill, .field input, .field select, .field textarea { background-color: #fff; }
.pill.selected { background: var(--navy); border-color: var(--navy); }
/* Core lifts a chosen pill with a strong shadow (0 6px 16px, here navy at .28); the focus ring drawn round a chosen pill sat
   on that shadow at 2.8:1. A lighter lift keeps the ring at 3:1 or more all round (measured, proof/walk_audit.py). */
.pill.selected { box-shadow: 0 3px 8px rgba(0, 30, 60, .14); }
/* Tap targets at least 40px: pills, the logo link, the resume banner's buttons */
.pill { min-height: 40px; }
.draft-bar .btn, .draft-bar .btn-link { min-height: 40px; }
.repeat-item { background: #fcfbf8; }

/* Resume banner (and core's upload notes, which reuse it): a white card, so it reads on the navy and on the linen alike */
.draft-bar {
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(0, 10, 24, .26);
}
.draft-bar .btn-link { color: var(--navy); }
.draft-bar .btn-link:hover { color: var(--blue-dark); }
.draft-bar > div { text-wrap: pretty; }
/* A date field's last Tab stop is Chrome's calendar button inside it, where the field itself is no longer :focus: the field
   keeps its focus border while the button has the focus (Chrome draws its own ring on the button; CSS cannot restyle it) */
.field input[type=date]:focus-within { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 30, 60, .13); }
/* Core 2.10.4's "They’re all added" button (.btn-banner) takes this page's focus ring, as every other control does */
.banner .btn-banner:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; }
/* ... and when that button takes the line away, core moves the keyboard focus to the step's heading (tabindex -1): the same
   ring there, not Chrome's default blue */
.panel > h2[tabindex="-1"]:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

/* Success: a white card on the navy */
.success-card {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 24px 60px rgba(0, 8, 20, .4);
}
.summit-glyph { color: var(--navy); overflow: visible; }
.summit-glyph .draw { stroke: currentColor; stroke-dasharray: 100; stroke-dashoffset: 100; }
.summit-glyph .star { fill: var(--navy); }
.summit-glyph .star-d { fill: var(--brass); }
.success-card .ref { background: var(--navy); }
.success-card .sub { color: var(--body-soft); }
.success-card .sub.ref-note { font-size: .8rem; color: var(--grey-mid); }
/* Core's "Questions in the meantime? Call (610) 747-3109": the phone link gets a 40px tap target without moving the line */
.success-card a[href^="tel:"] { display: inline-block; padding: 11px 2px; margin: -11px 0; }
/* core 2.8.6's narrowest-phone sides (18px), which the 560px phone rule from patch_css.py would otherwise override */
@media (max-width: 340px) { .success-card { padding-left: 18px; padding-right: 18px; } }
.next-steps .ns { color: var(--body-soft); }
.next-steps .ns .n { background: var(--navy); }

/* Footer: the practice, the privacy line (Personal/Commercial screen), Powered by Ascension, the version */
.site-footer {
  color: var(--on-navy-soft); display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 22px 22px 26px; line-height: 1.5;
}
body.mode-light .site-footer { color: var(--grey-mid); }
.site-footer .foot-line { display: block; max-width: 560px; }
.site-footer .nw { white-space: nowrap; }
.site-footer .foot-line.disclosure { font-size: .74rem; }
/* The contact values (Ascension support for now): phone and email side by side, each on one line, each a 40px tap target;
   on a narrow phone the email drops under the phone (no separator to strand). No pulled-in margins: the footer's 7px
   between lines keeps a link's focus ring (3px, 2px out) clear of the Powered-by logo under it (measured, 11/23). */
.site-footer .foot-contact { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 18px; }
.site-footer .foot-contact a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; white-space: nowrap; }
.site-footer .powered { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .74rem; }
.site-footer .powered .asc-i { height: 16px; width: auto; }
.site-footer .powered .asc-w { height: 11px; width: auto; margin-top: 1px; }
.site-footer .ver { font-size: .68rem; opacity: 1; }   /* core's .7 would sit at about 3:1 on the linen */

/* Crash fallback page (the linen, a white card, the navy logo) */
.fallback .card { background: var(--card); }
.fallback h2 { font-family: var(--font-serif); color: var(--navy); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .gi-veil { transition: none; }
  .summit-glyph .draw { animation: none; stroke-dashoffset: 0; }
  .ascent-track .track-dot-h, .ascent-track .track-flag, .ascent-track .track-star-d { transition: none; }
}

/* ============================================================
   HOME, "COMPASS"
   On the logo's navy: the words on the left, a compass card on the
   right (fine degree marks round the logo's own compass mark).
   Phones and portrait tablets: one centred column, the compass a
   smaller card under the button. Everything is scoped to .hero-c.
   Contrast on the navy: white 16.8:1, the sub 13:1, the small print
   10:1, light brass 8.5:1; Start My Quote navy on light brass 8.5:1.
   ============================================================ */
.hero-c {
  flex: 1; display: grid; align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". art" "copy art" "handy art" ". art";
  column-gap: clamp(44px, 6vw, 92px);
  padding: 30px 0 52px;
}
.hero-c .hc-copy { grid-area: copy; max-width: 540px; }
.hero-c .hc-eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 600; font-size: .74rem; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-light);
}
.hero-c .hc-eyebrow::before { content: ''; flex: none; width: 34px; height: 1px; background: currentColor; }
.hero-c h1 {
  font-family: var(--font-serif); font-weight: 600; color: #fff;
  font-size: clamp(2.1rem, 1rem + 2.9vw, 2.95rem); line-height: 1.08; letter-spacing: -0.012em;
  margin: 0 0 22px; text-wrap: balance;
}
.hero-c .hc-sub {
  font-size: 1.08rem; line-height: 1.7; color: var(--on-navy);
  max-width: 31em; margin: 0 0 34px; text-wrap: pretty;
}
.hero-c .hc-cta { display: flex; flex-direction: column; align-items: flex-start; }
/* Start My Quote: light brass on the navy (core's navy button would vanish here); navy words, 8.5:1 */
.hero-c .hc-start {
  font-size: 15.5px; padding: 17px 30px; min-height: 54px; letter-spacing: .01em;
  background: var(--brass-light); color: var(--navy);
}
.hero-c .hc-start:hover { background: #e2c47f; color: var(--navy); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.hero-c .hc-micro { margin: 14px 0 0; font-size: .84rem; line-height: 1.5; color: var(--on-navy-soft); text-wrap: pretty; }

/* Helpful to have handy */
.hero-c .hc-handy {
  grid-area: handy; max-width: 540px; margin-top: 42px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-c .hc-handy h2 {
  font-family: var(--font-display); font-weight: 600; font-size: .72rem; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); margin: 0 0 16px;
}
.hero-c .hc-handy ul {
  list-style: none; margin: 0; padding: 0;
  /* the second column is wider so "Current dec pages (optional)" keeps to one line wherever the column allows */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px 24px;
}
@media (min-width: 900px) and (max-width: 999px) {
  .hero-c .hc-handy ul { grid-template-columns: auto auto; column-gap: 16px; }
}
.hero-c .hc-handy li { display: flex; align-items: center; gap: 12px; font-size: .93rem; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.hero-c .hc-chip {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); color: var(--brass-light); box-shadow: inset 0 0 0 1px rgba(214, 180, 110, .28);
}
.hero-c .hc-chip svg { width: 17px; height: 17px; }
.hero-c .hc-opt { color: var(--on-navy-soft); }

/* The compass card */
.hero-c .hc-compass {
  grid-area: art; align-self: center; justify-self: end; position: relative; margin: 0;
  aspect-ratio: 1; width: min(420px, calc(100vh - 260px), 38vw); min-width: 320px;
}
.hero-c .hc-dial { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.hero-c .hc-ring { fill: none; stroke: rgba(214, 180, 110, .55); stroke-width: 1.2; }
.hero-c .hc-ring-2 { fill: none; stroke: rgba(214, 180, 110, .3); stroke-width: 1; }
.hero-c .hc-ring-in { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.hero-c .hc-tick { stroke: rgba(214, 180, 110, .38); stroke-width: 1; }
.hero-c .hc-tick-l { stroke: rgba(214, 180, 110, .7); stroke-width: 1.4; }
.hero-c .hc-point { fill: rgba(214, 180, 110, .55); }
.hero-c .hc-point.is-north { fill: var(--brass-light); }
/* the logo's mark, 64% of the card, in the middle */
.hero-c .hc-needle { position: absolute; left: 18%; top: 18%; width: 64%; height: 64%; display: flex; align-items: center; justify-content: center; }
.hero-c .hc-mark { width: 100%; height: auto; display: block; }

/* One column: phones and portrait tablets */
@media (max-width: 899px) {
  .hero-c {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: none;
    grid-template-areas: "copy" "art" "handy"; align-content: start;
    padding: 22px 0 36px;
    justify-items: center; text-align: center;
  }
  .hero-c .hc-copy { justify-self: center; max-width: 560px; }
  .hero-c .hc-eyebrow { justify-content: center; }
  .hero-c .hc-eyebrow::after { content: ''; flex: none; width: 34px; height: 1px; background: currentColor; }
  .hero-c .hc-sub { margin-left: auto; margin-right: auto; }
  .hero-c .hc-cta { align-items: center; }
  .hero-c .hc-compass { justify-self: center; width: min(280px, 72vw); min-width: 0; margin-top: 40px; }
  .hero-c .hc-handy {
    justify-self: center; width: 100%; max-width: 560px; margin-top: 38px;
  }
  .hero-c .hc-handy ul { grid-template-columns: repeat(2, max-content); justify-content: center; column-gap: 40px; text-align: left; }
}
@media (max-width: 480px) {
  .hero-c { padding-top: 18px; }
  .hero-c .hc-eyebrow { font-size: .68rem; letter-spacing: .18em; gap: 12px; margin-bottom: 18px; }
  /* centred, the two hairlines would push the eyebrow onto two lines on a phone */
  .hero-c .hc-eyebrow::before, .hero-c .hc-eyebrow::after { display: none; }
  .hero-c h1 { margin-bottom: 18px; }
  .hero-c .hc-sub { font-size: 1rem; line-height: 1.65; margin-bottom: 28px; }
  .hero-c .hc-cta { align-items: stretch; }
  .hero-c .hc-start { width: 100%; }
  .hero-c .hc-micro { text-wrap: balance; }
  .hero-c .hc-compass { width: min(240px, 68vw); margin-top: 34px; }
  .hero-c .hc-handy ul { grid-template-columns: max-content; gap: 10px; }
}
@media (max-width: 360px) {
  .hero-c .hc-eyebrow { letter-spacing: .12em; }
}
/* Short windows (small phones, landscape phones): tighten the vertical rhythm so Start stays in the first screen */
@media (max-height: 600px) {
  .hero-c { padding-top: 10px; }
  .hero-c .hc-eyebrow { margin-bottom: 12px; }
  .hero-c h1 { margin-bottom: 12px; }
  .hero-c .hc-sub { margin-bottom: 20px; }
}

/* ============================================================
   FIRST-VISIT MOTION (bezel, needle, words)
   renderHome adds hc-in and hm-<word> to .hero-c once per browser
   tab (and drops them 2.6 s after the first drawn frames): Back,
   the logo and "Start a new quote" show the page at rest.
   Transform and opacity only, inside the compass card or a few px
   on the words, so nothing shifts and nothing scrolls sideways.
   All still by about 1.5 s; nothing loops. Start My Quote and its
   small print never move.
   Reduce motion: the last block turns each of them off, so the
   final state shows.
   ============================================================ */
/* bezel: the ring of marks turns a few degrees into place as it fades in */
.hero-c.hc-in.hm-bezel .hc-bezel {
  transform-box: view-box; transform-origin: 200px 200px;
  animation: hcBezel 1100ms cubic-bezier(.22, 1, .36, 1) 80ms backwards;
}
@keyframes hcBezel { from { transform: rotate(-28deg); opacity: 0; } 35% { opacity: 1; } }
/* needle: the logo's star swings past north and settles on it, like a compass needle finding its bearing */
.hero-c.hc-in.hm-needle .hc-needle { animation: hcNeedle 1400ms cubic-bezier(.3, 1.35, .45, 1) 120ms backwards; }
@keyframes hcNeedle { from { transform: rotate(-58deg) scale(.94); opacity: 0; } 25% { opacity: 1; } }
/* words: the eyebrow and the headline, then the sub, then the list, each rise a few px from a slight fade */
.hero-c.hc-in.hm-words .hc-eyebrow { animation: hcWords 560ms var(--ease) backwards; }
.hero-c.hc-in.hm-words h1 { animation: hcWords 620ms var(--ease) 40ms backwards; }
.hero-c.hc-in.hm-words .hc-sub { animation: hcWords 580ms var(--ease) 120ms backwards; }
.hero-c.hc-in.hm-words .hc-handy { animation: hcWords 580ms var(--ease) 220ms backwards; }
@keyframes hcWords { from { opacity: .18; transform: translateY(8px); } }

/* Reduce motion: everything above off; the page shows its final, still state (keep this block last; each selector matches
   its rule above exactly, so it wins) */
@media (prefers-reduced-motion: reduce) {
  .hero-c.hc-in.hm-bezel .hc-bezel { animation: none; }
  .hero-c.hc-in.hm-needle .hc-needle { animation: none; }
  .hero-c.hc-in.hm-words .hc-eyebrow, .hero-c.hc-in.hm-words h1, .hero-c.hc-in.hm-words .hc-sub,
  .hero-c.hc-in.hm-words .hc-handy { animation: none; }
}
