/*
 * Mass Tort Intake — styled to match masstortintakecenter.com.
 *
 * Every value here was read from the live site's computed styles, not eyeballed
 * from a screenshot:
 *
 *   brand maroon   rgb(141, 2, 31)  #8d021f   header rule, hero band, buttons
 *   body text      rgb(51, 51, 51)  #333333
 *   headings       Open Sans 700
 *   body font      the system stack — which is what the main site actually uses
 *
 * The logo and the font are SELF-HOSTED in public/. Loading them from the main
 * domain would put a third-party request on the critical path of a page people
 * arrive at from an ad, and would break the moment the strict CSP or the main
 * site's media library changed. One copy here, no external requests at all.
 */

/* Open Sans, latin subset, variable weight — one 43KB file for 400 through 700. */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/open-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #8d021f;
  --brand-dark: #6d0117;
  --brand-tint: #f7ecee;
  --ink: #333333;
  --ink-soft: #54595f;
  --line: #d9dde2;
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --error: #b3261e;
  --focus: #8d021f;
  --radius: 6px;
  --heading: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: -apple-system, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/*
 * `hidden` must actually hide.
 *
 * The attribute sets `display: none` through the user-agent stylesheet, which
 * ANY author `display` rule overrides. `.bullets` is `display: flex`, so after
 * a successful submission the reassurance points stayed on screen next to the
 * thank-you message. Caught by looking at the page; no test would have.
 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
}

h1, h2, h3, .site-phone, .submit, .eyebrow {
  font-family: var(--heading);
}

/* ── Site header — logo left, phone right, matching the main site ────────── */

.site-header {
  background: var(--bg);
  border-bottom: 4px solid var(--brand);
}

.site-header-inner {
  max-width: 62rem;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /*
   * Wrapping is not decoration here. A 200px logo, three icons and a phone
   * number do not fit across 375px, and without this the header pushed the
   * whole document wider than the screen — every section then sat in a
   * 505px-wide canvas with a white gutter down the side of the phone.
   */
  flex-wrap: wrap;
  gap: .5rem 1rem;
}

.site-logo { display: block; }
/* 200px, against the main site's 249 — the same lockup, a little smaller,
   because this page has no navigation to balance it against. */
.site-logo img { display: block; width: 150px; height: auto; }

/* The main site carries these in its header; without them this page was
   recognisably a different site with the same logo on it. */
/* Hidden on a phone, where the header has room for the logo and the phone
   number and nothing else. They are not why anyone is on this page. */
.site-social { display: none; gap: .4rem; margin: 0 auto 0 .5rem; padding: 0; list-style: none; }

@media (min-width: 30rem) {
  .site-social { display: flex; }
}

@media (min-width: 62rem) {
  .site-logo img { width: 200px; }
}
.site-social a {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
}
.site-social a:hover { background: var(--brand-dark); }

.site-phone {
  color: var(--brand);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-phone:hover { text-decoration: underline; }

/* ── Hero band — the maroon block the main site opens with ───────────────── */

.hero {
  background: var(--brand);
  color: #fff;
  padding: 1.75rem 1rem 2rem;
}

/*
 * One column on a phone, two on anything wider.
 *
 * The first version was a phone layout stretched across a monitor: the copy sat
 * alone at the top, the form began below the fold, and half the screen was
 * empty. On desktop the form now sits beside the copy and is visible without
 * scrolling — which is the whole job of a page people reach from an ad.
 *
 * Mobile is unchanged and deliberately so: it is where nearly all of this
 * traffic lands, and stacking is right there.
 */
.hero-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.hero-copy { max-width: 34rem; }

@media (min-width: 62rem) {
  .hero {
    padding: 3.25rem 1.5rem 4rem;
  }
  .hero-grid {
    grid-template-columns: 1fr minmax(24rem, 27rem);
    /*
     * On desktop the steps go back under the copy, in the left column, and the
     * form spans both rows on the right.
     */
    grid-template-areas:
      "copy  form"
      "photo form";
    /*
     * The second row takes ALL the slack, and the steps sit at the top of it.
     *
     * A grid hands a row-spanning item's extra height to the rows it spans, and
     * the form spans both — so with content-sized rows the three steps were
     * stretched into a sparse column with an inch of maroon between each one.
     * Giving row two `1fr` sends the whole surplus there, and `align-self:
     * start` on the list keeps the steps their own size at the top of it.
     */
    grid-template-rows: auto auto 1fr;
    column-gap: 3.5rem;
    row-gap: 1.75rem;
    /*
     * Centred, not top-aligned.
     *
     * The form is always much taller than the copy, so a top-aligned band left
     * the bottom two-thirds of the left column as empty maroon and the page
     * read as unfinished. Centring spreads that space above and below the copy,
     * where it looks like margin instead of like something missing. A fixed
     * band height was tried first and is worse: the copy is campaign-editable,
     * so any fixed height eventually has text hanging off the bottom of it.
     */
  }
  .hero-copy { grid-area: copy; }
  /*
   * `stretch`, so the picture grows into exactly the space that used to be
   * empty maroon. Its own aspect ratio is given up on purpose — `cover` crops
   * it — because a column whose height is set by the form beside it cannot also
   * be set by a photograph.
   */
  .hero-figure { grid-area: photo; align-self: stretch; min-height: 14rem; }
  .hero-figure img { height: 100%; }
  .hero-form { grid-area: form; }
  /* 40px at weight 500 — read off the main site's "Welcome to Mass Tort
     Intake Center", so the two pages open in the same voice. */
  .hero h1 { font-size: 2.5rem; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
  .hero .subhead { font-size: 1.125rem; max-width: 30rem; }
  /* On its own column the card needs no negative pull. */
  .hero-form form { margin-top: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }
}

/* ── The hero's photograph ───────────────────────────────────────────────── */

.hero-figure {
  margin-top: 1.75rem;
  max-width: 34rem;
}

.hero-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}

/* ── What happens next ───────────────────────────────────────────────────── */

/*
 * On a phone these sit BELOW the form, which is why they are a sibling of it in
 * the markup rather than part of the copy block.
 *
 * Nearly all of this traffic is mobile, and three explanatory steps between the
 * headline and the first input push the form most of a screen further down. The
 * form comes first on a phone; the steps are there for whoever scrolls past it.
 */
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .story-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.story-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .1rem .75rem;
  align-items: baseline;
}

.story-steps li::before {
  content: counter(step);
  grid-row: span 2;
  align-self: start;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--brand);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: .8125rem;
  font-weight: 700;
}

/*
 * A full-width line across the foot of the maroon band, outside the two-column
 * grid on purpose.
 *
 * Inside it, this was a third grid row — and because the form spans every row,
 * a grid shares the form's surplus height across all of them, so a two-line
 * disclaimer sat in a 220px row with 160px of empty maroon under it. Out here
 * it hugs its own text and the photograph above gets the whole surplus.
 */
.hero-note {
  max-width: 68rem;
  margin: 1.75rem auto 0;
  font-size: .8125rem;
  line-height: 1.55;
  color: #e6b9c1;
  border-top: 1px solid rgba(255, 255, 255, .22);
  padding-top: .9rem;
}

.story-steps b { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.story-steps span { font-size: .875rem; color: var(--ink-soft); line-height: 1.45; }

/* Talking to a person is a real option for the people who want it, and saying
   so costs one line. */
.hero-call { margin: 1.25rem 0 0; font-size: .9375rem; color: #f0c9d0; }
.hero-call a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255,255,255,.45); }
.hero-call a:hover { border-bottom-color: #fff; }

.eyebrow {
  margin: 0 0 .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f0c9d0;
}

h1 {
  margin: 0 0 .6rem;
  font-size: 1.65rem;
  line-height: 1.25;
  font-weight: 700;
}

.subhead {
  margin: 0;
  font-size: 1rem;
  color: #f4e3e6;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

/*
 * 36rem, not 34rem. The hero's inner column is 34rem inside 1rem of padding, so
 * a 34rem wrap put the form card's edge exactly 1rem inside the headline above
 * it. Adding the padding to the max-width makes the two share a left edge.
 */
.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

form {
  background: var(--bg);
  /* The card now sits INSIDE the maroon band, which sets `color: #fff`. Without
     restating it here the whole form inherits white text on a white card and
     every label disappears. Caught on screen; no test would have seen it. */
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: -1.25rem;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.row { display: grid; gap: 0; }

@media (min-width: 30rem) {
  .row { grid-template-columns: 1fr 1fr; gap: 0 .875rem; }
  h1 { font-size: 2rem; }
  .hero { padding: 2.5rem 1rem 3rem; }
  .site-logo img { width: 172px; }
  .site-phone { font-size: 1.05rem; }
}

.field { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: .3rem;
  font-size: .9375rem;
  font-weight: 600;
}

.req { color: var(--brand); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%;
  padding: .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  /* 16px minimum: anything smaller makes iOS Safari zoom on focus, which
     visibly jerks the page and loses people mid-form. */
  font-size: 1rem;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus { border-color: var(--brand); }

textarea { resize: vertical; min-height: 5.5rem; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%2354595f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  padding-right: 2.2rem;
}

/* The focus ring is defined once, near the end of this file, in two tones so
 * it is visible on both the white page and the maroon band. It used to be
 * `3px solid var(--focus)` — the brand maroon, on a maroon hero: 1.00:1. */

input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }

.field-error, .form-error {
  margin: .3rem 0 0;
  color: var(--error);
  font-size: .875rem;
}
.field-error:empty, .form-error:empty { display: none; }

/* ── Honeypot ─────────────────────────────────────────────────────────────
   Off-screen rather than display:none — some bots skip hidden fields, and a
   field that is merely positioned away is still filled by the naive ones. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.locked-tort {
  margin: 0;
  padding: .7rem .75rem;
  background: var(--brand-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-weight: 600;
}
.locked-tort-label { color: var(--ink-soft); font-weight: 400; }

/* ── Consent ──────────────────────────────────────────────────────────────── */

.consent { margin: 1.25rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.consent-check {
  display: flex;
  gap: .625rem;
  align-items: flex-start;
  font-weight: 600;
  cursor: pointer;
}

.consent-check input {
  /* A 16px checkbox is a miss target on a phone. */
  width: 1.375rem;
  height: 1.375rem;
  margin: .05rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.consent-text { margin: .75rem 0 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }

.submit {
  width: 100%;
  padding: .95rem 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
}
.submit:hover { background: var(--brand-dark); }
.submit[disabled] { opacity: .6; cursor: default; }

.bullets {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: #f4e3e6;
  font-size: .9375rem;
}
.bullets li { display: flex; align-items: center; gap: .45rem; }
/* On the maroon band the tick has to be light, not brand-coloured. */
.bullets li::before { content: "✓"; color: #fff; font-weight: 700; opacity: .85; }

.thanks {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
}
.thanks h2 { margin: 0 0 .5rem; font-size: 1.35rem; }
.thanks p { margin: 0; color: var(--ink-soft); }

/* ── Footer — the main site's legal disclosure, same wording ─────────────── */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .72rem;
  line-height: 1.6;
}

.site-footer-inner { max-width: 68rem; margin: 0 auto; padding: 2rem 1rem 2.5rem; }

/*
 * The required disclosures are long, and on a wide screen a single 42rem column
 * of 11px grey text left a third of the page empty below it and looked like the
 * page had run out. Two columns use the width the header and hero already use,
 * and halve the height of the wall.
 *
 * `columns` and not a grid, deliberately: the number of paragraphs is content,
 * not layout, and the browser balances whatever is there.
 */
@media (min-width: 62rem) {
  .disclosure-body { columns: 2; column-gap: 3rem; }
  .disclosure-body p { break-inside: avoid; }
}

.site-footer h2 {
  margin: 0 0 .5rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer p { margin: 0 0 .6rem; }
.site-footer a { color: var(--ink-soft); }
.footer-links { margin-top: .9rem; }

/* ── The photo-led block, the shape the main site is built out of ────────── */

.story {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 2.5rem 1rem;
}

.story-grid {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .story { padding: 3.5rem 1.5rem; }
}

.story-copy { max-width: 46rem; }
.story-cta { margin: 0; }

/* Read from the live site: Open Sans 700, 28px, uppercase, brand maroon. */
.story-copy h2 {
  margin: 0 0 .75rem;
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand);
}

.story-copy p { margin: 0 0 .9rem; color: var(--ink); }

/* The main site's button, to the pixel: 20px/700, 12x24 padding, 3px radius. */
.btn-brand {
  display: inline-block;
  margin-top: .4rem;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
}
.btn-brand:hover { background: var(--brand-dark); }

/* ── Pre-qualification questions ─────────────────────────────────────────── */

.tort-questions {
  margin: 0 0 1rem;
  padding: 1rem 1rem .25rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand-tint);
}

.q-label { display: block; margin-bottom: .35rem; font-weight: 600; }
.q-help { margin: 0 0 .5rem; color: var(--ink-soft); font-size: .8125rem; }

.q-options { display: flex; flex-wrap: wrap; gap: .5rem; }

.q-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: .6rem .9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
}

/* A whole tapped tile, not a 16px circle. */
.q-option input { width: 1.2rem; height: 1.2rem; accent-color: var(--brand); }
.q-option:has(input:checked) { border-color: var(--brand); background: var(--bg); box-shadow: inset 0 0 0 1px var(--brand); }

/* ── Legal pages and the 404 ──────────────────────────────────────────────────
 *
 * A privacy policy is read by somebody who is already uneasy — they have just
 * been asked for a phone number and a medical history. Long measure, generous
 * leading, and nothing clever: the job is to be legible, not to be designed.
 */
.legal {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  line-height: 1.2;
  margin: 0 0 .5rem;
}

.legal-updated {
  color: var(--ink-soft);
  font-size: .875rem;
  margin: 0 0 1.5rem;
}

.legal-intro {
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin: 0 0 .5rem;
}

.legal-section { margin-top: 2.25rem; }

.legal-section h2 {
  font-size: 1.1875rem;
  line-height: 1.3;
  margin: 0 0 .75rem;
  color: var(--brand);
}

/* The measure is what makes a policy readable, so it is set on the paragraph
 * rather than on a wrapper somebody might later drop. */
.legal-section p,
.legal-intro {
  max-width: 40rem;
}

.legal-section p {
  line-height: 1.7;
  margin: 0 0 1rem;
}

.legal .button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--heading);
  font-weight: 700;
  text-decoration: none;
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  margin: .5rem 0 1.5rem;
}

.legal .button:hover { background: var(--brand-dark); }

/* ── Navigation ───────────────────────────────────────────────────────────────
 *
 * Plain lists, no JavaScript. It works before the script loads and if it never
 * loads, and it is keyboard-operable without anyone writing key handlers. On a
 * narrow screen the nav wraps under the logo rather than collapsing behind a
 * button: five items fit, and a disclosure widget is a thing to get wrong for
 * no gain.
 */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--heading);
  font-weight: 600;
  font-size: .9375rem;
  /* Vertical padding, not margin: it makes the tap target 44px tall, which is
   * the minimum a finger can hit reliably and what WCAG 2.1 asks for. */
  display: inline-block;
  padding: .625rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* The current page is marked with a colour AND a rule, because colour alone
 * is not a distinction for everyone who has to see it. */
.site-nav a[aria-current="page"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/*
 * Keyboard users land here first. Off-screen until focused, then visible —
 * without it, reaching the form on a page with a full nav means tabbing through
 * every link on every page.
 */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  font-family: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0;
}

/* ── Content pages ───────────────────────────────────────────────────────── */

.page { padding: 2.5rem 1.25rem 3rem; }

.page-inner { max-width: 52rem; margin: 0 auto; }

.page h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 .75rem;
}

.page-intro {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.page-section { margin-top: 2.5rem; }

.page-section h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  margin: 0 0 .875rem;
}

.page-section p { line-height: 1.7; max-width: 40rem; margin: 0 0 1rem; }

.page-list { line-height: 1.7; max-width: 40rem; padding-left: 1.25rem; }
.page-list li { margin-bottom: .5rem; }

/* Numbered steps. The counter is drawn rather than left to the list marker so
 * it can be a filled circle at a readable size. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.75rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { font-size: 1.0625rem; margin: .25rem 0 .375rem; }
.steps p { margin: 0; line-height: 1.65; }

/* ── The claim grid ─────────────────────────────────────────────────────────
 *
 * `auto-fill` with a minimum rather than fixed columns: it reflows from one
 * column on a phone to four on a desktop with no breakpoints to maintain, and
 * nothing is ever narrower than 15rem.
 */
.claim-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.claim-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.125rem 1.25rem;
  background: var(--bg);
}

.claim-card h3 { font-size: 1.0625rem; margin: 0 0 .5rem; }

.claim-card h3 a {
  color: var(--brand);
  text-decoration: none;
}

.claim-card h3 a:hover { text-decoration: underline; }

/* The whole card is the target, not just the words. `::after` over the card
 * means a finger anywhere on it works, while the link text stays the thing a
 * screen reader announces. */
.claim-card { position: relative; }

.claim-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.claim-card p { margin: 0; font-size: .9375rem; line-height: 1.55; color: var(--ink-soft); }

.claim-card:hover { border-color: var(--brand); }

/* ── Questions ──────────────────────────────────────────────────────────────
 *
 * <details>, not a JavaScript accordion: it opens with the keyboard, it is
 * announced correctly, it is searchable by the browser's own find, and it works
 * with the script blocked.
 */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: .25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--brand);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: 0 0 1.125rem;
  line-height: 1.7;
  max-width: 42rem;
}

/* ── The call to action above the footer ───────────────────────────────────── */

.cta-band {
  background: var(--brand-tint);
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem;
  text-align: center;
}

.cta-inner { max-width: 42rem; margin: 0 auto; }

.cta-band h2 { font-size: clamp(1.375rem, 3.5vw, 1.75rem); margin: 0 0 .625rem; }
.cta-band p { line-height: 1.6; margin: 0 0 1.25rem; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.button {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-family: var(--heading);
  font-weight: 700;
  text-decoration: none;
  padding: .875rem 1.5rem;
  border-radius: var(--radius);
  /* 44px minimum height for a finger, per WCAG 2.1 target size. */
  min-height: 44px;
  line-height: 1.5;
}

.button:hover { background: var(--brand-dark); }

.button-ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  padding: calc(.875rem - 2px) calc(1.5rem - 2px);
}

.button-ghost:hover { background: var(--brand); color: #fff; }

/* ── The footer's navigation ─────────────────────────────────────────────── */

.footer-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.75rem;
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  text-align: left;
}

.footer-nav h3 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .75rem;
}

.footer-nav ul { list-style: none; margin: 0 0 .5rem; padding: 0; }
.footer-nav li { margin-bottom: .5rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav p { margin: .25rem 0 0; }
.footer-phone { font-weight: 700; }

/*
 * Someone who has said they are sensitive to motion is told, and the site
 * stops moving. Nothing here animates much, but a future addition should not
 * have to remember.
 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/*
 * Windows high contrast mode replaces every colour with the user's own. Borders
 * drawn with a background rather than a border vanish entirely, so anything
 * load-bearing gets a real outline here.
 */
@media (forced-colors: active) {
  .button, .button-ghost { border: 2px solid ButtonText; }
  .claim-card { border: 1px solid CanvasText; }
  .site-nav a[aria-current="page"] { border-bottom: 2px solid LinkText; }
}

/* The claim grid on the front page. Same cards as /claims, on a tinted band so
 * it reads as a distinct section rather than more of the story above it. */
.claims-home {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 3rem 1.25rem;
}

.claims-home-inner { max-width: 62rem; margin: 0 auto; }
.claims-home h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .5rem; }
.claims-home-intro { color: var(--ink-soft); margin: 0 0 1.75rem; max-width: 40rem; line-height: 1.6; }

/* ── The header, rebuilt around the phone number ───────────────────────────────
 *
 * Logo left, nav in the middle, phone right. The number is the highest-value
 * thing on the page for this audience — plenty of people who have just been
 * diagnosed with something would rather talk than type — and it was wrapping
 * onto a line of its own beneath the logo, reading as an afterthought, because
 * three social icons were taking the space. The icons moved to the footer.
 */
.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
}

.site-nav { margin-right: auto; }

.site-phone {
  /* Always pushed right — on one line it sits opposite the logo, and when the
   * header wraps at the awkward widths between a phone and a laptop it lands
   * at the right of its own row rather than adrift under the logo. */
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  padding: .5rem 1.125rem;
  border-radius: var(--radius);
  min-height: 44px;
  justify-content: center;
}

.site-phone:hover { background: var(--brand-dark); }

.site-phone-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  opacity: .85;
  line-height: 1.2;
}

.site-phone-number {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* On a phone the nav goes full width under the logo, and the call button sits
 * beside the logo where a thumb can reach it without scrolling. */
@media (max-width: 47.9375rem) {
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-right: 0;
    border-top: 1px solid var(--line);
    padding-top: .25rem;
  }
  .site-phone-label { display: none; }
}

/* In the footer the icons are decoration, not navigation. */
.site-footer .site-social { margin-top: 1rem; }

/* ── The header on a phone ────────────────────────────────────────────────────
 *
 * It was taking 490px of an 812px screen before a word of content: a 172px
 * logo, then the call button on a row of its own, then the nav across two more.
 * Sixty per cent of the first screen spent on furniture.
 *
 * Logo and call button share the top row; the nav sits under them, tight. The
 * whole header is now about 130px.
 */
@media (max-width: 30rem) {
  .site-header-inner { padding: .625rem .875rem; gap: .5rem .75rem; }

  .site-logo img { width: 132px; }

  .site-phone {
    padding: .5rem .75rem;
    /* Still 44px tall for a thumb, just not wide. */
    min-height: 44px;
  }

  .site-phone-number { font-size: .9375rem; }

  .site-nav { padding-top: .125rem; }

  .site-nav ul { gap: 0 .875rem; }

  .site-nav a { font-size: .875rem; padding: .5rem 0; }
}

/* Between a small phone and a tablet, the same idea with a little more room. */
@media (min-width: 30.0625rem) and (max-width: 47.9375rem) {
  .site-logo img { width: 150px; }
}

/* ── Focus, made visible on every background ─────────────────────────────────
 *
 * The ring was `3px solid var(--focus)` and `--focus` is the brand maroon —
 * the same colour as the hero band it sits on. Measured contrast against that
 * background: 1.00:1. Invisible. A keyboard user on the hero, which is every
 * page, could not see where they were. WCAG 2.1 AA 2.4.7 and 1.4.11.
 *
 * Two rings instead of one: a dark inner and a white outer. One of them always
 * contrasts, whatever is behind it, and no page has to remember to override
 * anything.
 */
:focus-visible {
  outline: 3px solid #1a1a1a;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #ffffff;
  border-radius: 2px;
}

/* On the maroon band the order flips: white nearest the element, dark outside,
 * so the bright ring reads against the dark ground. */
.hero :focus-visible,
.cta-band :focus-visible,
.site-phone:focus-visible,
.site-footer :focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, .55);
}

/* Windows high contrast draws its own ring; ours would just fight it. */
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
}

/* ── Form field borders ──────────────────────────────────────────────────────
 *
 * `#d9dde2` on white is 1.36:1. WCAG 1.4.11 asks 3:1 for the boundary of a
 * control, because a field you cannot find is a field you cannot fill in.
 * `#767b82` measures 4.0:1 and still reads as a quiet grey.
 */
input, select, textarea, .q-option {
  border-color: #767b82;
}

/* The thin rule over the hero note was 1.66:1 on maroon. */
.hero-note { border-top-color: rgba(255, 255, 255, .55); }

/*
 * A skip-link target needs `tabindex="-1"` or focus never moves — the viewport
 * scrolls and the next Tab starts again from the top of the document, which is
 * the classic silent skip-link failure. But a container that can hold focus
 * should not draw a ring when somebody merely clicks inside it.
 */
main[tabindex="-1"]:focus { outline: none; box-shadow: none; }
main[tabindex="-1"]:focus-visible { outline: 3px solid #1a1a1a; outline-offset: -3px; box-shadow: none; }

/* Present to a screen reader, absent to everyone else. Used where a heading is
 * needed for structure but would be noise on the page. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* A heading inside <summary> must not inherit block layout, or the disclosure
 * marker and the text stop sharing a line. */
.faq-item summary h3 {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.footer-nav h2 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 .75rem;
}

/* ── A claim page's own content ─────────────────────────────────────────────── */

.tort-body {
  padding: 3rem 1.25rem;
  border-top: 1px solid var(--line);
}

.tort-body-inner { max-width: 46rem; margin: 0 auto; }
.tort-body .page-section:first-child { margin-top: 0; }
.tort-body-cta { margin-top: 2.5rem; }

/* ── The error summary ───────────────────────────────────────────────────────
 *
 * Per-field messages alone work for somebody who can see the whole form at
 * once. On a phone, with a screen reader, or with three problems spread down a
 * long form, they do not: you fix the one you were sent to, submit, and get
 * sent somewhere else. This says how many there are and links to each.
 */
.error-summary {
  border: 2px solid var(--error);
  border-left-width: 6px;
  border-radius: var(--radius);
  padding: 1rem 1.125rem;
  margin: 0 0 1.25rem;
  background: #fdf3f2;
}

.error-summary h2 {
  font-size: 1.0625rem;
  margin: 0 0 .5rem;
  color: var(--error);
}

.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary li { margin-bottom: .375rem; line-height: 1.5; }

.error-summary a {
  color: var(--error);
  /* Underlined, not just coloured: the distinction cannot rest on red alone
   * when the people reading it may not see red. */
  text-decoration: underline;
  font-weight: 600;
}

.error-summary[hidden] { display: none !important; }

/* ── The tablet dead zone ─────────────────────────────────────────────────────
 *
 * The hero stays one column until 62rem, so between a tablet in portrait and a
 * small laptop the form card rendered the full width of the page — text inputs
 * three-quarters of a metre wide, which nothing breaks but nobody wants. There
 * is plenty of room at 48rem for the fields to sit in pairs and for the card to
 * stop short of the edges.
 */
@media (min-width: 48rem) and (max-width: 61.9375rem) {
  .hero-grid { max-width: 40rem; margin-inline: auto; }

  /* An input is comfortable up to about 30rem and unreadable much past it. */
  .hero-form input,
  .hero-form select,
  .hero-form textarea { max-width: 32rem; }

  .hero-copy h1 { max-width: 30ch; }
  .hero-copy .subhead { max-width: 46ch; }

  /* The photograph has the width to sit beside the copy rather than under it. */
  .hero-figure img { max-height: 22rem; object-fit: cover; }
}

/* ── Dark mode ────────────────────────────────────────────────────────────────
 *
 * Worth the effort here specifically. A lot of this traffic arrives late at
 * night from somebody who has just been given a diagnosis and cannot sleep, on
 * a phone, in a dark room. A page that flares white at that moment is a small
 * cruelty and it is entirely avoidable.
 *
 * The neutral scale inverts; the brand does not. Maroon on near-black still
 * reads, and changing it would make the site look like somebody else's.
 * `color-scheme` is what tells the browser to darken its own furniture —
 * scrollbars, form controls, the address bar on iOS.
 */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --ink: #e8e6e3;
    --ink-soft: #b4b0ab;
    --line: #3a3d42;
    --bg: #16181c;
    --bg-soft: #1e2126;

    /* Lifted off the brand maroon, which is too dark to read against a dark
     * page. Measured 7.1:1 on --bg. */
    --brand-text: #f2909f;
    --error: #ff8b82;
  }

  body { background: var(--bg); color: var(--ink); }

  .site-header { background: var(--bg); }

  /*
   * The logo is a single black path with no fill declared, so on a dark header
   * it was black on near-black — effectively invisible. Inverting a pure-black
   * mark gives pure white, which is what the printed version of this lockup
   * uses on dark anyway.
   */
  .site-logo img { filter: invert(1); }
  .site-nav a { color: var(--ink); }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] { color: var(--brand-text); border-bottom-color: var(--brand-text); }

  /* The hero keeps its maroon: it is the one surface that was already dark. */
  .claims-home, .cta-band { background: var(--bg-soft); border-top-color: var(--line); }
  .cta-band h2 { color: var(--ink); }

  .claim-card { background: var(--bg-soft); border-color: var(--line); }
  .claim-card h3 a { color: var(--brand-text); }
  .claim-card:hover { border-color: var(--brand-text); }

  .hero-form,
  .page, .legal { background: transparent; }
  .hero-form form { background: var(--bg-soft); }

  input, select, textarea {
    background: var(--bg);
    color: var(--ink);
    border-color: #6f747b;
  }

  ::placeholder { color: #8b8f96; }

  .page-section h2, .legal-section h2 { color: var(--brand-text); }

  .faq-item { border-bottom-color: var(--line); }
  .faq-item summary::after { color: var(--brand-text); }

  .error-summary { background: #2a1a1a; border-color: var(--error); }
  .error-summary h2, .error-summary a { color: var(--error); }

  .tort-body { border-top-color: var(--line); }

  /* The buttons stay brand-filled — they are the one place the maroon should
   * still be a block of colour, and white on it is 8.6:1 either way. */
  .button-ghost { color: var(--brand-text); border-color: var(--brand-text); }
  .button-ghost:hover { background: var(--brand-text); color: #16181c; }

  /* The dark ring disappears on a dark page; the light one leads. */
  :focus-visible {
    outline: 3px solid #ffffff;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .8);
  }
}
