/* Trucker Phil — site styles ("Night Message", Night throughout)
   A dusk highway frames the page: night scene in the hero, inner-page headers and the
   closing band; charcoal sections with cream type in between; white cards for anything
   you tap. Red is for buttons and script accents only, green for mile markers only. */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/Oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/LibreFranklin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yellowtail";
  src: url("../fonts/Yellowtail.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Night scene */
  --sky-1: #17191C;
  --sky-2: #22262A;
  --sky-3: #2E3236;
  --pine-far: #22382C;
  --pine-near: #132119;
  --road: #1E2124;
  --road-edge: #3A3F44;
  --glow: 200, 116, 47;          /* #C8742F */
  --glow-2: 142, 63, 36;         /* #8E3F24 */

  /* Brand */
  --charcoal: #22262A;
  --charcoal-deep: #1D2023;      /* alternate section surface */
  --black: #17191C;
  --red: #C8232B;
  --red-hi: #D9343C;
  --red-dark: #8E161C;
  --red-night: #E5484F;          /* script on dark: 4.2:1 on #22262A (large text). #C8232B is 2.9:1 there */
  --green: #1B6B40;
  --gray: #F1F3F4;
  --line: #D3D7DA;
  --cream: #FBF6EC;              /* text on dark: 14.6:1 on #22262A */
  --cream-2: #D9D6CF;            /* secondary text on dark: 10.9:1 on #22262A */
  --white: #FFFFFF;
  --muted: #50565C;              /* secondary text on white cards: 7.4:1 */
  --rule-dark: #2E3237;

  --font-display: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-script: "Yellowtail", "Brush Script MT", cursive;

  /* 8pt spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  /* Road band (How it works) */
  --asphalt: #2B2F33;
  --edge-line: #E9E4D8;          /* highway edge line */
  --center-line: #F2B632;        /* highway centre line */
  --faq-card: #22262A;
  --faq-card-border: #33383D;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 120px);
  --wrap: 1200px;

  --radius-btn: 10px;
  --radius-card: 12px;
  --radius-panel: 18px;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-press: 120ms;
  --t-hover: 160ms;

  --z-mobile-cta: 30;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  /* Near-black so the phone CTA's bottom padding reads as part of the footer;
     the page's charcoal lives on <main>. */
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Keep the footer at the bottom on short pages */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
main { flex: 1 0 auto; background: var(--charcoal); }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

a { color: var(--cream); text-decoration-color: var(--red-night); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--charcoal);
  font-weight: 600;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-3); color: var(--charcoal); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Type roles ---------- */
.display {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
  color: var(--cream);
  text-wrap: balance;
}
.accent {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--red-night);
  line-height: 1.05;
}

/* ---------- Night scene: sky, stars, glow, two treelines, road ----------
   Recreated from the brand's banner generator. Tune per use with
   --horizon (scene height), --road-h, --far-h and --near-h. */
.night {
  --horizon: 120px;
  --road-h: 40px;
  --far-h: 84px;
  --near-h: 52px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(70% 38% at 50% calc(100% - var(--horizon)), rgba(var(--glow), .55), rgba(var(--glow-2), .2) 45%, transparent 100%),
    url("../img/scene/stars.svg") top center / 640px 360px repeat,
    linear-gradient(180deg, var(--sky-1), var(--sky-2) 60%, var(--sky-3));
}
/* Stars fade toward the horizon so the glow reads clean */
.night::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(46, 50, 54, .55) 100%);
}
.scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: var(--horizon);
  pointer-events: none;
}
.scene span { position: absolute; left: 0; right: 0; }
.scene .far {
  bottom: calc(var(--road-h) + 14px);
  height: var(--far-h);
  background: url("../img/scene/trees-far.svg") left -137px bottom / auto 100% repeat-x;
}
.scene .near {
  bottom: calc(var(--road-h) - 2px);
  height: var(--near-h);
  background: url("../img/scene/trees-near.svg") left bottom / auto 100% repeat-x;
}
.scene .near::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -16px;
  height: 18px;
  background: var(--pine-near);
}
.scene .road {
  bottom: 0;
  height: var(--road-h);
  background:
    linear-gradient(var(--road-edge), var(--road-edge)) top / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(251, 246, 236, .75) 0 44px, transparent 44px 80px) left 50% / 100% 3px no-repeat,
    var(--road);
}

/* ---------- Primary button ----------
   One solid red button everywhere (Motive-style): soft red glow, no ledge, no gradient. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 26px 0 30px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 1px 2px rgba(0, 0, 0, .35),
    0 14px 30px -12px rgba(200, 35, 43, .7);
  transition:
    background-color 200ms ease,
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease);
}
.btn .icon { width: 20px; height: 20px; stroke-width: 2.4; transition: transform 200ms var(--ease); }
.btn:hover {
  color: var(--white);
  background: #D42A32;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 2px 4px rgba(0, 0, 0, .35),
    0 18px 36px -12px rgba(200, 35, 43, .85);
}
.btn:hover .icon { transform: translateX(4px); }
.btn:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, .2),
    0 6px 16px -10px rgba(200, 35, 43, .7);
}
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--block { display: flex; width: 100%; }

/* ---------- White cards (answers, situations, contact) ----------
   One soft shadow style; hover lifts slightly with a bigger shadow. */
.press {
  background: var(--white);
  border: 1.5px solid var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 36px -20px rgba(0, 0, 0, .75);
  color: var(--charcoal);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 180ms ease;
}
a.press:hover {
  color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 44px -20px rgba(0, 0, 0, .85);
}
a.press:focus-visible { border-radius: var(--radius-card); outline-offset: 4px; }

/* Icon box on contact cards */
.ico-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gray);
  color: var(--charcoal);
}
/* ---------- Header on the sky ---------- */
.site-header { position: relative; z-index: 2; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-4);
}
.brand { display: inline-flex; border-radius: 8px; }
/* Brand kit: 72px tall in the header; 56px is the plate's minimum on screens */
.brand img { height: clamp(56px, 6vw, 72px); width: auto; }
.factor-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--s-1);
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--red-night);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset var(--t-press) var(--ease);
}
.factor-link:hover { text-underline-offset: 3px; }
.factor-link[aria-current="page"] { text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */
.hero { --horizon: 150px; --road-h: 44px; --far-h: 96px; --near-h: 58px; }
.hero-inner {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-block: clamp(24px, 4vw, 56px) calc(var(--horizon) + clamp(40px, 5vw, 72px));
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
.hero-title .display { font-size: clamp(46px, 7vw, 92px); }
.hero-title .accent { font-size: clamp(42px, 5.6vw, 76px); margin-top: 4px; }
.hero .lede {
  margin-top: 22px;
  max-width: 30em;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--cream-2);
  text-wrap: pretty;
}

.panel {
  background: rgba(23, 25, 28, .62);
  border: 1px solid rgba(251, 246, 236, .14);
  border-radius: var(--radius-panel);
  padding: clamp(16px, 2.6vw, 28px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.panel-q {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 26px);
  line-height: 1.2;
  color: var(--cream);
}
.answers {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Quiz-style options: radio circle, label, quiet chevron */
.answer {
  display: grid;
  grid-template-columns: 22px 1fr 20px;
  align-items: center;
  gap: var(--s-4);
  min-height: 66px;
  padding: var(--s-3) 18px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.2;
}
.radio {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #B9BEC2;
  transition: border-color 180ms ease;
}
.radio::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--red);
  transform: scale(0);
  transition: transform 180ms var(--ease);
}
.chev {
  width: 20px;
  height: 20px;
  color: #A3A9AE;
  stroke-width: 2.2;
  transition: transform 180ms var(--ease), color 180ms ease;
}
a.answer:hover,
a.answer:focus-visible { border-color: var(--red); transform: translateY(-1px); }
a.answer:hover .radio,
a.answer:focus-visible .radio { border-color: var(--red); }
a.answer:hover .radio::after,
a.answer:focus-visible .radio::after { transform: scale(1); }
a.answer:hover .chev,
a.answer:focus-visible .chev { color: var(--red); transform: translateX(3px); }
.fine {
  margin-top: 14px;
  font-size: 16px;
  color: var(--cream-2);
}

@media (prefers-reduced-motion: no-preference) {
  .panel { animation: rise 520ms var(--ease) 80ms both; }
  .answers li { animation: rise 420ms var(--ease) both; }
  .answers li:nth-child(1) { animation-delay: 220ms; }
  .answers li:nth-child(2) { animation-delay: 270ms; }
  .answers li:nth-child(3) { animation-delay: 320ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Sections ----------
   Each homepage section has its own dark surface, so no rules between them:
   Situations = charcoal with a faint red glow, How it works = a stretch of road,
   FAQ = the darkest surface. */
.section { padding-block: var(--section-y); }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head .accent { font-size: clamp(30px, 2.8vw, 38px); }
.section-head h2 .display { font-size: clamp(38px, 4.6vw, 58px); }
.section-head .sub {
  margin-top: var(--s-1);
  max-width: 40em;
  font-size: 18px;
  color: var(--cream-2);
  text-wrap: balance;
}

/* ---------- Situations ---------- */
.situations {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(229, 72, 79, .10), transparent 70%),
    var(--charcoal);
}
.tiles {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tiles > li { display: flex; }
/* HomeBuddy-style tiles: two-tone illustration, title, line, quiet "Start here" footer.
   Phones: illustration on the left, text and footer on the right. */
.tile {
  flex: 1;
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: var(--s-4);
  align-items: start;
  padding: 20px 18px 16px;
  border-radius: 16px;
}
.tile .ill {
  grid-row: span 2;
  width: 60px;
  height: 60px;
  transition: transform 250ms var(--ease);
}
.tile-body { display: flex; flex-direction: column; gap: 6px; }
.tile-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.15;
  color: var(--charcoal);
}
.tile-text {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}
.tile-foot {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
  padding-top: 10px;
  border-top: 1px solid #ECEEF0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  color: var(--charcoal);
  transition: color 180ms ease;
}
.tile-foot .icon { width: 18px; height: 18px; stroke-width: 2.2; transition: transform 200ms var(--ease); }
.situations a.tile:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, .3),
    0 26px 44px -20px rgba(0, 0, 0, .85),
    inset 0 -3px 0 var(--red);
}
.situations a.tile:hover .ill { transform: scale(1.06); }
.situations a.tile:hover .tile-foot { color: var(--red); }
.situations a.tile:hover .tile-foot .icon { transform: translateX(4px); }
/* Desktop: 3 on the first row, 2 centred on the second; illustration on top */
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .tiles > li { grid-column: span 2; }
  .tiles > li:nth-child(4) { grid-column: 2 / span 2; }
  .tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px 22px;
  }
  .tile .ill { width: 84px; height: 84px; margin: -6px 0 14px -8px; }
  .tile-body { flex: 1; }
  .tile-foot { width: 100%; margin-top: 20px; padding-top: 14px; }
}
/* ---------- How it works: a stretch of road ----------
   Asphalt with a faint diagonal grain, cream edge lines set in from the top and bottom,
   a yellow dashed centre line through the mile markers. */
.asphalt {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 30%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
    var(--asphalt);
}
.asphalt::before,
.asphalt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--edge-line);
  pointer-events: none;
}
.asphalt::before { top: 4px; }
.asphalt::after { bottom: 4px; }

.route {
  position: relative;
  display: grid;
  gap: var(--s-6);
  max-width: 460px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  column-gap: var(--s-5);
  align-items: start;
  align-content: start;
}
/* Phone: yellow dashes from each marker down to the next */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 84px;
  bottom: calc(-1 * var(--s-6) + 6px);
  left: 29px;
  border-left: 4px dashed rgba(242, 182, 50, .75);
}
/* Mile marker: green post sign with a white border; the asphalt ring stops the centre line cleanly */
.mile {
  position: relative;
  z-index: 1;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 78px;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  box-shadow:
    inset 0 0 0 3px var(--green),
    inset 0 0 0 5px var(--white),
    0 1px 2px rgba(0, 0, 0, .5),
    0 0 0 6px var(--asphalt);
}
.mile-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  margin-bottom: 3px;
  padding-left: 0.14em;
}
.mile-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
}
.step h3 {
  padding-top: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 25px);
  line-height: 1.2;
  color: var(--cream);
}
.step p {
  margin-top: var(--s-2);
  font-size: 16.5px;
  color: var(--cream-2);
  text-wrap: pretty;
}
@media (min-width: 820px) {
  .route {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
  /* Yellow centre line across the whole step row, through the middle of the markers */
  .route::before {
    content: "";
    position: absolute;
    top: 37px;
    left: 0;
    right: 0;
    height: 5px;
    background: repeating-linear-gradient(90deg, var(--center-line) 0 46px, transparent 46px 80px);
  }
  .step:not(:last-child)::after { content: none; }
  .step {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .mile { grid-row: auto; margin-bottom: var(--s-4); }
  .step h3 { padding-top: 0; }
  .step p { max-width: 19em; }
}
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 56px);
}

/* ---------- FAQ: darkest surface, dark question cards ---------- */
.faqsec { background: var(--black); }
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: var(--s-3); }
.faq details {
  background: var(--faq-card);
  border: 1px solid var(--faq-card-border);
  border-radius: var(--radius-card);
  transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.faq details:hover { border-color: #4A5056; }
/* Open question: red stripe down the left edge */
.faq details[open] { border-color: #3E444A; box-shadow: inset 4px 0 0 var(--red-night); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  padding: 14px 16px 14px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(19px, 1.9vw, 21px);
  line-height: 1.25;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: 2px; }

.faq-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #4A5056;
  transition: transform 220ms var(--ease), background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--red-night);
  transform: translate(-50%, -50%);
  transition: background-color var(--t-hover) ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq summary:hover .faq-icon { border-color: var(--cream-2); }
.faq details[open] .faq-icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.faq details[open] .faq-icon::before,
.faq details[open] .faq-icon::after { background: var(--white); }

.faq-answer {
  padding: 0 22px 22px;
  max-width: 64ch;
  font-size: 16.5px;
  color: var(--cream-2);
}
.faq-answer a {
  color: var(--cream);
  font-weight: 600;
  text-decoration-color: var(--red-night);
}

/* Desktop: heading on the left (sticky while the questions scroll), questions on the right */
@media (min-width: 960px) {
  .faqsec .faq-wrap {
    max-width: var(--wrap);
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: start;
  }
  .faqsec .section-head {
    position: sticky;
    top: 40px;
    align-items: flex-start;
    text-align: left;
    margin: 0;
  }
}

/* Smooth open/close where supported */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq { interpolate-size: allow-keywords; }
    .faq details::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size 240ms var(--ease), content-visibility 240ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}

/* ---------- Closing band ---------- */
.closing { --horizon: 130px; --road-h: 40px; --far-h: 84px; --near-h: 50px; }
.closing-inner {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(72px, 8vw, 110px) var(--gutter) calc(var(--horizon) + 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}
.closing .accent { font-size: clamp(32px, 3.2vw, 42px); }
.closing h2 .display { margin-top: 6px; font-size: clamp(40px, 5vw, 64px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--cream-2); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: 36px 40px;
}
.footer-logo { display: inline-flex; border-radius: 8px; }
/* Brand kit: 56px tall in the footer */
.footer-logo img { height: 56px; width: auto; }
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--cream);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-press) ease;
}
.footer-nav a:hover { text-decoration-color: var(--red-night); }
.footer-nav a[aria-current="page"] { text-decoration-color: var(--red-night); }
.copyright {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--rule-dark);
  font-size: 16px;
}
/* Shown only when the browser sends Global Privacy Control */
.gpc-note { width: 100%; margin-top: -8px; font-size: 16px; }
.gpc-note a { color: #8FD3AC; font-weight: 600; text-decoration: none; }
.gpc-note a:hover { text-decoration: underline; }
/* Phones: the long opt-out link gets its own line */
@media (max-width: 760px) {
  .footer-nav li:last-child { flex-basis: 100%; }
}

/* ---------- Phone sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-mobile-cta);
    padding: 12px var(--s-4) calc(12px + env(safe-area-inset-bottom));
    background: rgba(23, 25, 28, .95);
    border-top: 1px solid rgba(251, 246, 236, .12);
    transition: transform 200ms var(--ease), visibility 0s linear 0s;
  }
  .mobile-cta .btn { min-height: 56px; }
  .mobile-cta.is-hidden {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .hero { --horizon: 112px; --road-h: 34px; --far-h: 70px; --near-h: 44px; }
  .closing { --horizon: 104px; --road-h: 32px; --far-h: 64px; --near-h: 40px; }
  .section-cta .btn,
  .closing .btn { width: 100%; }
  .section-head h2 .display { font-size: clamp(36px, 10vw, 44px); }
  /* Room for the sticky CTA (56px button + 24px padding + 1px border) so it never covers the last content */
  body { padding-bottom: calc(81px + env(safe-area-inset-bottom)); }
}

/* ---------- Inner pages ---------- */
.page-head { --horizon: 104px; --road-h: 32px; --far-h: 66px; --near-h: 40px; }
@media (max-width: 760px) {
  .page-head { --horizon: 88px; --road-h: 28px; --far-h: 56px; --near-h: 34px; }
}
.page-head-inner {
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px) var(--gutter) calc(var(--horizon) + clamp(36px, 5vw, 56px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-3);
}
.page-head .accent { font-size: clamp(30px, 3vw, 38px); }
.page-head h1 .display { font-size: clamp(40px, 6vw, 72px); }
.page-head .meta { margin-top: var(--s-2); font-size: 16px; color: var(--cream-2); }

.page-body {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.stack { display: grid; gap: var(--s-5); }
.intro { font-size: 18px; line-height: 1.6; color: var(--cream-2); }
.small-print { font-size: 16px; line-height: 1.6; color: var(--cream-2); }
.page-body a:not(.press):not(.btn):not(.text-link),
.legal a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red-night);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Legal pages: darkest surface, centred reading column ---------- */
.legal { background: var(--black); }
.legal-inner {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 8vw, 104px);
}
.toc {
  padding: 20px 24px;
  border: 1px solid var(--faq-card-border);
  border-radius: var(--radius-card);
  background: var(--faq-card);
}
.toc-title {
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--cream);
}
.toc ol {
  margin: 0;
  padding-left: 1.4em;
  color: var(--cream-2);
}
.toc li { padding-block: 3px; font-size: 16px; line-height: 1.45; }
.toc li::marker { color: var(--red-night); }
.toc a {
  color: var(--cream-2);
  font-weight: 400;
  text-decoration: none;
}
.toc a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--red-night); }
@media (min-width: 760px) {
  .toc ol { columns: 2; column-gap: 40px; }
  .toc li { break-inside: avoid; }
}

.prose { margin-top: var(--s-6); }
.prose > * + * { margin-top: var(--s-4); }
.prose p,
.prose li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cream-2);
}
.prose strong { color: var(--cream); font-weight: 600; }
.prose h2 {
  margin-top: var(--s-7);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  color: var(--cream);
  scroll-margin-top: 24px;
}
.prose h2:first-child { margin-top: 0; }
.prose .lead-in { margin-top: var(--s-5); }
.prose ul { margin-block: var(--s-3) 0; padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--red-night); }

/* ---------- Contact cards ---------- */
.contact-list {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: 20px 22px;
  border-radius: var(--radius-card);
}
.contact-label,
.contact-value,
.contact-note { display: block; }
.contact-label {
  margin-bottom: var(--s-1);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  color: var(--charcoal);
}
.contact-value {
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  color: var(--charcoal);
  overflow-wrap: anywhere;
}
a.contact-item .contact-value { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.contact-note { margin-top: var(--s-1); font-size: 16px; color: var(--muted); }
a.contact-item:focus-visible { outline-color: var(--cream); }

/* ---------- /factors points ---------- */
.points {
  display: grid;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.point {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-4);
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 36px -20px rgba(0, 0, 0, .75);
}
.point p { font-size: 17px; line-height: 1.55; color: var(--muted); }
.point strong { color: var(--charcoal); }
.check-ill { width: 40px; height: 40px; }

/* ---------- Status boxes (GPC, form success) ---------- */
.gpc-box,
.success-box {
  padding: 16px 20px;
  border: 1px solid #2F6B4A;
  border-left: 4px solid #3FA06B;
  border-radius: var(--radius-card);
  background: #1C2A22;
}
.gpc-box p,
.success-box p { font-size: 17px; line-height: 1.55; color: var(--cream); }
[hidden] { display: none !important; }

/* ---------- Privacy request form ---------- */
.form-card {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--faq-card-border);
  border-radius: 16px;
  background: var(--charcoal-deep);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  color: var(--cream);
}
.field { display: grid; gap: var(--s-2); margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice),
.field legend {
  padding: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--cream);
}
.field legend { margin-bottom: var(--s-2); }
.req { color: var(--red-night); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--charcoal);
  font: 400 17px/1.4 var(--font-body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229, 72, 79, .55);
}
.choice {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--faq-card-border);
  border-radius: 12px;
  background: var(--faq-card);
  color: var(--cream-2);
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms ease;
}
.choice + .choice { margin-top: 0; }
.choice:hover { border-color: #4A5056; }
.choice:has(input:checked) { border-color: var(--red-night); color: var(--cream); }
.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--red);
}
.choice input:focus-visible { outline: 3px solid var(--cream); outline-offset: 2px; }
.form-card .btn { justify-self: start; }
@media (max-width: 760px) { .form-card .btn { justify-self: stretch; } }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-4);
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--red-night);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
  /* No lifts, slides or scaling: colour changes only */
  a.press:hover,
  a.press:focus-visible,
  .situations a.tile:hover,
  .btn:hover,
  .btn:active,
  .btn:hover .icon,
  .chev,
  a.answer:hover .chev,
  a.answer:focus-visible .chev,
  .situations a.tile:hover .ill,
  .situations a.tile:hover .tile-foot .icon { transform: none; }
  /* The radio dot appears by colour instead of scaling in */
  .radio::after { transform: none; opacity: 0; }
  a.answer:hover .radio::after,
  a.answer:focus-visible .radio::after { transform: none; opacity: 1; }
}
