/*
 * Proof Equine marketing pages.
 *
 * Shared by every page in client/public/brands/equine/. These are static files
 * served per brand by server/vite.ts, so nothing here can read the brand record
 * at runtime: the greens below mirror shared/brand.ts (primary #1F7A5A, deep
 * green #12332A), which is itself marked provisional. Change both together.
 *
 * Rules this sheet holds to:
 *  - One accent: the brand green, for actions and links. On the forest colour
 *    block it lifts to its light variant so the button still reads as the action.
 *  - One radius rule: controls 12px, containers and images 24px, chips pill.
 *  - One theme per page, following the visitor's system setting. The forest
 *    hero block is the page's single deliberate colour block, not a theme flip.
 *  - Motion only where it says something: the hero arrives in reading order,
 *    content reveals as it enters view, controls respond to hover and press.
 *    All of it is off under prefers-reduced-motion, and nothing is hidden from
 *    a visitor whose browser does not run the reveal script.
 */

/* Self-hosted, not Google Fonts: a <link> to Google sends every visitor's IP
   address to Google, a known UK/EU GDPR problem for a regulated firm.
   Schibsted Grotesk, SIL Open Font License 1.1 (fonts/OFL.txt). */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/brands/equine/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("/brands/equine/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  color-scheme: light dark;

  --bg: #f1f3ee;
  --surface: #fafbf7;
  --tint: #e5ebe3;
  --tint-strong: #d5dfd4;
  --ink: #12332a;
  --text: #29403a;
  --muted: #53665d;
  --line: #c9d5cb;
  --accent: #1f7a5a;
  --accent-hover: #17644a;
  --accent-ink: #fbfdfa;

  /* The forest colour block. */
  --forest: #12332a;
  --forest-ink: #eef2ea;
  --forest-muted: #a9c2b4;
  --forest-line: #2b4d42;
  --bright: #5cc29b;
  --bright-hover: #7fd4b2;
  --bright-ink: #0b1a15;

  --notice-bg: #fff6df;
  --notice-line: #e6cf8f;
  --notice-ink: #4a3907;

  --radius-control: 12px;
  --radius-box: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 1px 2px rgb(18 51 42 / 0.06), 0 22px 48px -28px rgb(18 51 42 / 0.35);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: 28px;
  --section: 104px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1814;
    --surface: #11211c;
    --tint: #152a23;
    --tint-strong: #1b352c;
    --ink: #eaf1ec;
    --text: #c5d4cb;
    --muted: #98aea2;
    --line: #23392f;
    --accent: #5cc29b;
    --accent-hover: #7fd4b2;
    --accent-ink: #0b1a15;
    --forest: #173a30;
    --forest-line: #2f5649;
    --notice-bg: #2a2410;
    --notice-line: #5c4c1c;
    --notice-ink: #f1dfa6;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 22px 48px -28px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; font-weight: 780; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { display: block; max-width: 100%; }
img[hidden] { display: none; }
ul { margin: 0; padding: 0; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-control); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.measure { max-width: 62ch; }
.h3-size { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 750; }
.section-head { max-width: 46rem; }
.section-head p { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; white-space: nowrap;
  font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none;
  border-radius: var(--radius-control); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Long legal text (privacy notice) ---------- */
.legal-text .wrap > * { max-width: 780px; }
.legal-text h2 { font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.02em; margin: 44px 0 12px; color: var(--ink); }
.legal-text .wrap > h2:first-of-type { margin-top: 0; }
.legal-text h3 { font-size: 1.12rem; line-height: 1.3; margin: 26px 0 8px; color: var(--ink); }
.legal-text p { margin: 0 0 14px; color: var(--text); }
.legal-text ul { margin: 0 0 16px; padding-left: 22px; color: var(--text); }
.legal-text li { margin: 0 0 8px; }
.legal-text a { color: var(--accent); }
.legal-text .table-scroll { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--line); border-radius: var(--radius-control); }
.legal-text table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; }
.legal-text th, .legal-text td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.legal-text th { background: var(--tint); color: var(--ink); font-weight: 700; }
.legal-text tr:last-child td { border-bottom: 0; }
.legal-text td:first-child { width: 55%; }

/* ---------- Quote chooser (equine.js) ---------- */
.quote-chooser {
  width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-box);
  background: var(--surface); color: var(--text);
  box-shadow: 0 24px 60px -20px rgba(18, 51, 42, 0.45);
}
.quote-chooser::backdrop { background: rgba(10, 24, 20, 0.55); }
.quote-chooser[open] { animation: chooser-in 0.22s var(--ease); }
@keyframes chooser-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.quote-chooser-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.quote-chooser-head h2 { flex: 1; margin: 0; font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
.quote-chooser-close {
  flex: none; width: 40px; height: 40px; margin: -6px -6px 0 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.quote-chooser-close:hover { background: var(--tint); color: var(--ink); }
.quote-chooser-list { display: grid; gap: 12px; }
.quote-choice {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; text-decoration: none;
  border: 1.5px solid var(--line); border-radius: var(--radius-control); background: var(--bg); color: var(--text);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.quote-choice.is-first { border-color: var(--accent); background: var(--tint); }
.quote-choice:hover, .quote-choice:focus-visible { border-color: var(--accent); outline: none; }
.quote-choice:focus-visible { box-shadow: 0 0 0 3px var(--tint-strong); }
.quote-choice-text { flex: 1; min-width: 0; }
.quote-choice-text strong { display: block; font-size: 1.05rem; color: var(--ink); }
.quote-choice-tag {
  display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.78rem; font-weight: 700;
}
.quote-choice-body { display: block; margin-top: 6px; font-size: 0.93rem; line-height: 1.45; color: var(--muted); }
.quote-choice-arrow { flex: none; margin-top: 2px; font-size: 1.2rem; font-weight: 700; color: var(--accent); transition: transform 0.2s var(--ease); }
.quote-choice:hover .quote-choice-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .quote-chooser[open] { animation: none; } }
.arrow-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.arrow-link::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.wordmark {
  color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.3rem;
  letter-spacing: -0.035em; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark span { font-weight: 500; color: var(--accent); }
/* The header carries the logo itself (img/logo.webp, the business's artwork). */
.wordmark--logo { display: block; line-height: 0; border-radius: 11px; }
.wordmark--logo img { display: block; width: 60px; height: 60px; border-radius: 11px; }

/* A page that opens on its banner shows the logo large in it, and the header
   picks it up once the banner logo has scrolled away (equine.js, 0b). Without
   the script the header keeps its logo and the banner shows both. */
.hero-logo {
  display: block; width: clamp(104px, 11vw, 152px); height: auto; aspect-ratio: 1;
  border-radius: clamp(18px, 1.8vw, 26px); margin-bottom: clamp(22px, 3vw, 34px);
  transform-origin: left top; will-change: transform, opacity;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .55);
}
.intro .hero-logo { grid-column: 1 / -1; }
.intro:has(.hero-logo) .cta-row { grid-row: 3; }
.logo-docking .site-header .wordmark--logo img {
  opacity: 0; transform: scale(1.35); transform-origin: left center;
  transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1);
}
.logo-docking.logo-docked .site-header .wordmark--logo img { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .logo-docking .site-header .wordmark--logo img { transition: none; transform: none; }
}
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-actions .login { color: var(--ink); font-weight: 650; text-decoration: none; }
.nav-actions .login:hover { text-decoration: underline; }

/* No script needed: a <details> element opens and closes the menu. */
.menu { display: none; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 0 16px;
  display: inline-flex; align-items: center; border: 1.5px solid var(--line);
  border-radius: var(--radius-control); font-weight: 700; color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu nav {
  position: absolute; left: 0; right: 0; top: 72px;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px var(--gutter) 22px; display: grid; gap: 4px;
}
.menu nav a { padding: 12px 4px; color: var(--ink); font-weight: 650; text-decoration: none; font-size: 1.05rem; }
.menu nav .btn { margin-top: 10px; }

@media (max-width: 920px) {
  .nav-links, .nav-actions { display: none; }
  .menu { display: block; }
}

/* ==========================================================================
   Full width.

   Every section's ground and every photograph runs edge to edge; only the
   words stay in the page column, because a line of text 1,900px long cannot
   be read. Photographs sit in frames that crop to the frame's shape, move a
   little slower than the page (parallax, equine.js), and end in a band of
   layered hills in the colour of the section below, so one scene runs into
   the next.
   ========================================================================== */

/* The page column's left edge, for content that sits in a full-bleed grid. */
.bleed-pad-l { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.bleed-pad-r { padding-right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }

/* A photograph that fills its frame, with room above and below to travel. */
.frame { position: relative; overflow: hidden; background: var(--tint-strong); }
.frame > img {
  position: absolute; left: 0; top: -9%; width: 100%; height: 118%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
  will-change: transform;
}

/* ---------- Motion graphic: layered hills ----------
   Three ridges, the nearest in the next section's colour. The back two drift
   slowly sideways, so the landscape breathes without drawing the eye. */
.hills {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; width: 100%;
  height: clamp(56px, 8vw, 132px); overflow: visible; pointer-events: none;
}
.hill--back { fill: var(--forest-muted); opacity: 0.28; }
.hill--mid { fill: var(--tint-strong); opacity: 0.55; }
.hill--front { fill: var(--bg); }
.hills--tint .hill--front { fill: var(--tint); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes drift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
  .hill--back { animation: drift 19s ease-in-out infinite alternate; }
  .hill--mid { animation: drift 13s ease-in-out infinite alternate-reverse; }
}

/* ---------- Home hero: forest panel, photograph to the right edge ---------- */
.hero-split {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-height: clamp(560px, calc(100svh - 72px), 860px);
  background: var(--forest); color: var(--forest-ink);
}
.hero-copy {
  position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: center;
  padding-top: 64px; padding-bottom: clamp(110px, 12vw, 180px); padding-right: clamp(28px, 4vw, 64px);
}
.hero-copy h1, .intro h1 { color: var(--forest-ink); }
/* Two lines from 1024px up; measured. */
.hero-copy h1 { font-size: clamp(2.6rem, 3.9vw, 4.1rem); max-width: 18ch; }
.hero-copy .lede, .intro .lede { color: var(--forest-muted); margin-top: 20px; }
.hero-copy .cta-row { margin-top: 34px; }
/* "From" prices (shared/equineSite.ts EQUINE_FROM_PRICES). */
.price-from { margin-top: 14px; font-size: 1.05rem; color: var(--forest-ink); }
.price-from strong { color: var(--bright); font-weight: 700; }
.hero-split .frame { min-height: 100%; }
.on-forest .btn-primary { background: var(--bright); color: var(--bright-ink); }
.on-forest .btn-primary:hover { background: var(--bright-hover); color: var(--bright-ink); }
.on-forest .btn-secondary { color: var(--forest-ink); border-color: var(--forest-line); }
.on-forest .btn-secondary:hover { color: var(--forest-ink); border-color: var(--forest-ink); }

/* ---------- Page introductions (product pages, claims) ---------- */
.intro { background: var(--forest); color: var(--forest-ink); padding-block: clamp(44px, 5.5vw, 80px); }
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
.intro h1 { grid-column: 1 / -1; font-size: clamp(2.4rem, 4.2vw, 3.8rem); }
.intro .lede { grid-column: 1; }
.intro .cta-row { grid-column: 2; grid-row: 2; margin-top: 0; }
.intro .price-from { grid-column: 1; }

/* ---------- Full-width photograph band ---------- */
.photo-band { height: clamp(240px, 46vw, 78svh); }

/* The hero arrives in reading order: headline, then detail, then the action. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; } to { opacity: 1; } }
  .hero-copy > *, .intro .wrap > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(2), .intro .wrap > :nth-child(2) { animation-delay: 0.1s; }
  .hero-copy > :nth-child(3), .intro .wrap > :nth-child(3) { animation-delay: 0.2s; }
  .hero-split .frame, .photo-band { animation: settle 1.2s var(--ease) both; }
}

/* ---------- Reveal on scroll ----------
   Only when the page script has confirmed it can reveal things again (it adds
   .reveal-on to <html>); without it, everything is simply visible. Animates
   `translate`, not `transform`, so it never fights a hover lift. */
@keyframes reveal { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: none; } }
.reveal-on [data-reveal] { opacity: 0; }
.reveal-on [data-reveal].is-in {
  animation: reveal 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* ---------- Landing: what you get ----------
   Three plain statements, each labelled with the product it belongs to, so the
   optional breakdown cover is never mistaken for part of horsebox insurance. */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit { border-top: 2px solid var(--ink); padding-top: 18px; }
.benefit--breakdown { border-top-color: var(--accent); }
.benefit-tag { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.benefit h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 750; margin-top: 6px; }
.benefit p:last-child { margin-top: 8px; color: var(--muted); max-width: 34ch; }
.benefits-band { padding-block: 40px 16px; }

/* Tick lists: a drawn tick in the accent, not a bullet. */
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: 0.5em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg); transform-origin: 30% 60%;
}

/* ---------- Feature rows: photograph to the screen edge, words in the column ---------- */
.feature-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.feature-row--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature-row--flip .frame { order: 2; }
/* width: 100% stops a stretched, aspect-ratio frame widening its column. */
.feature-row .frame { aspect-ratio: 16 / 10; width: 100%; min-width: 0; align-self: stretch; }
.feature-copy { padding-block: 56px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.feature-row:not(.feature-row--flip) .feature-copy { padding-left: clamp(28px, 5vw, 80px); }
.feature-row--flip .feature-copy { padding-right: clamp(28px, 5vw, 80px); justify-self: end; }
.feature-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.feature-copy .arrow-link { margin-top: 6px; }
.feature-rows { display: grid; gap: clamp(16px, 3vw, 40px); }

/* ---------- Statement band: a full-width scene with one sentence over it ---------- */
.statement {
  position: relative; overflow: hidden; display: grid; align-items: end;
  min-height: clamp(420px, 62svh, 660px); background: var(--forest); color: var(--forest-ink);
}
.statement .frame { position: absolute; inset: 0; background: transparent; }
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgb(12 34 27 / 0.9) 0%, rgb(12 34 27 / 0.55) 42%, rgb(12 34 27 / 0.1) 80%);
}
/* Mist: two soft bands drifting across the scene. */
.mist {
  position: absolute; inset: -20% -30%; z-index: 1; pointer-events: none; opacity: 0.35;
  background:
    radial-gradient(40% 18% at 30% 58%, rgb(238 242 234 / 0.55), transparent 70%),
    radial-gradient(34% 14% at 72% 70%, rgb(238 242 234 / 0.45), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes mist { from { transform: translateX(-6%); } to { transform: translateX(6%); } }
  .mist { animation: mist 24s ease-in-out infinite alternate; }
}
.statement-text { position: relative; z-index: 3; padding-block: 72px clamp(110px, 12vw, 170px); }
.statement-text h2 { color: var(--forest-ink); font-size: clamp(2.2rem, 4.6vw, 4.1rem); max-width: 17ch; }
.statement-text p { color: var(--forest-muted); margin-top: 18px; max-width: 46ch; font-size: 1.15rem; }

/* Words over the sky: for scenes whose subject is at the foot of the frame. */
.statement--sky { align-items: start; min-height: clamp(560px, 80svh, 780px); }
.statement--sky::before {
  background: linear-gradient(to bottom, rgb(12 34 27 / 0.92) 0%, rgb(12 34 27 / 0.8) 36%, rgb(12 34 27 / 0.35) 56%, rgb(12 34 27 / 0) 72%);
}
.statement--sky .statement-text p { color: var(--forest-ink); }
.statement--sky .statement-text { padding-block: clamp(48px, 6vw, 88px) 0; }
.statement--sky .mist { top: 10%; }

/* ---------- How it works: a lane that draws itself as you scroll ----------
   Without the script the lane is simply drawn in full. */
.route-track { position: relative; margin-top: 56px; }
.route-line { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.route-line path { fill: none; vector-effect: non-scaling-stroke; }
.route-base { stroke: var(--line); stroke-width: 3; stroke-dasharray: 0.004 0.008; }
.route-draw { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.route-live .route-draw { stroke-dashoffset: calc(1 - var(--p, 0)); }
.route-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; }
/* No gap: each dot must sit at exactly 1/6, 1/2 and 5/6 of the lane. */
.route-step { padding-inline: 16px; }
.route-step { position: relative; padding-top: 148px; text-align: center; }
.route-dot {
  position: absolute; top: 49px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Lit as the lane reaches them, once the script is driving it. */
.route-live .route-step:not(.is-on) .route-dot {
  background: var(--tint); border-color: var(--line); box-shadow: none;
}
.route-step h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -0.025em; font-weight: 780; }
.route-step p { margin: 10px auto 0; max-width: 30ch; }
.route-note { margin-top: 40px; max-width: 62ch; }

/* ---------- Questions ---------- */
.faq { max-width: 860px; }
.faq-list { margin-top: 36px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; font-weight: 400; color: var(--accent); transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--text); max-width: 62ch; }
.faq-foot { margin-top: 28px; }

/* ---------- Closing call to action ---------- */
.closer .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.closer h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 18ch; }
.closer p { margin-top: 16px; }
/* Over a photograph: the scene behind, the words on a forest wash. */
.closer--photo {
  position: relative; overflow: hidden; min-height: clamp(380px, 54svh, 580px);
  display: grid; align-items: center; background: var(--forest); color: var(--forest-ink);
}
.closer--photo .frame { position: absolute; inset: 0; background: transparent; }
.closer--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(12 34 27 / 0.9) 0%, rgb(12 34 27 / 0.62) 48%, rgb(12 34 27 / 0.15) 100%);
}
.closer--photo .wrap { position: relative; z-index: 2; }
.closer--photo h2 { color: var(--forest-ink); }
.closer--photo p { color: var(--forest-muted); }

/* ---------- Product pages ---------- */
.tiers { margin-top: 48px; }
.tier {
  display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: baseline;
  padding-block: 32px; border-top: 1px solid var(--line);
}
.tier:last-child { border-bottom: 1px solid var(--line); }
.tier h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; font-weight: 790; }
.tier p { font-size: 1.08rem; }
.tier-note { margin-top: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.panel {
  border-radius: var(--radius-box); background: var(--surface); border: 1px solid var(--line);
  padding: 34px; display: flex; flex-direction: column; gap: 14px;
}
.panel--tint { background: var(--tint-strong); border-color: transparent; }

.notice {
  border-radius: var(--radius-box); background: var(--notice-bg); border: 1px solid var(--notice-line);
  color: var(--notice-ink); padding: 24px 28px; font-size: 1.05rem;
}
.notice strong { color: inherit; }

.docs { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.docs a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; border-radius: var(--radius-control); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 700; text-decoration: none;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.docs a:hover { border-color: var(--accent); color: var(--ink); transform: translateX(3px); }
.docs a span { color: var(--muted); font-weight: 500; font-size: 0.9rem; }

.feature-lead {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 780; color: var(--ink);
  line-height: 1.12; letter-spacing: -0.03em; max-width: 24ch;
}
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; margin-top: 56px; }
.feature-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.feature-grid p { margin-top: 8px; }


/* ---------- Broken down: the insurer's 24-hour line ----------
   Prominent and tap-to-call. It is Call Assist's number, not ours, and the
   panel says so; the broker has no 24-hour line. */
.emergency {
  border-radius: var(--radius-box); border: 2px solid var(--accent); background: var(--surface);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
}
.emergency-number {
  align-self: flex-start; display: inline-flex; align-items: center; min-height: 58px; padding: 0 24px;
  border-radius: var(--radius-control); background: var(--accent); color: var(--accent-ink);
  font-size: 1.6rem; font-weight: 820; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.emergency-number:hover { background: var(--accent-hover); color: var(--accent-ink); }
.emergency .small a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Breakdown: what's covered ---------- */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; margin: 40px 0 0; }
.limit { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding-block: 20px; border-top: 1px solid var(--line); }
.limit dt { font-weight: 750; color: var(--ink); }
.limit dd { margin: 0; }
.split--wide { grid-template-columns: 1.1fr 1fr; align-items: center; }

.footer-breakdown a { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 64px 44px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer-grid h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 14px; font-weight: 750; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand .wordmark { font-size: 1.6rem; }
.footer-brand p { margin-top: 10px; color: var(--muted); }
.legal { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.legal p + p { margin-top: 8px; }

/* Words on the right, where the subject is at the left of the photograph. */
.closer--right::before {
  background: linear-gradient(270deg, rgb(12 34 27 / 0.9) 0%, rgb(12 34 27 / 0.62) 45%, rgb(12 34 27 / 0) 80%);
}
.closer--right .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: center; }
.closer--right .wrap > div { grid-column: 2; }
.closer--right .wrap > .btn { grid-column: 2; justify-self: start; }

/* ---------- Narrow screens: every multi-column layout collapses ---------- */
@media (max-width: 960px) {
  :root { --section: 72px; }
  .hero-split { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 44px var(--gutter) 40px; }
  .hero-split .frame { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-split .frame > img { object-position: 50% 22%; }
  .intro .wrap { grid-template-columns: 1fr; }
  .intro .cta-row { grid-column: 1; grid-row: auto; margin-top: 26px; }
  .section--first { padding-top: 48px; }
  .benefits { gap: 16px; }
  .benefit h2 { font-size: 1.15rem; }
  .feature-row, .feature-row--flip { grid-template-columns: 1fr; }
  .feature-row--flip .frame { order: 0; }
  .feature-copy, .feature-row--flip .feature-copy, .feature-row:not(.feature-row--flip) .feature-copy {
    padding: 32px var(--gutter) 24px; max-width: none; justify-self: stretch;
  }
  .route-line { display: none; }
  .route-steps { grid-template-columns: 1fr; gap: 0; padding-left: 40px; position: relative; }
  .route-steps::before, .route-steps::after {
    content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; background: var(--line);
  }
  .route-steps::after { background: var(--accent); bottom: auto; height: calc((100% - 16px) * var(--p, 1)); }
  .route-step { padding: 0 0 32px; text-align: left; }
  .route-dot { top: 2px; left: -41px; margin-left: 0; }
  .route-step p { margin-left: 0; }
  .products, .split, .split--wide, .tier, .walk, .limits { grid-template-columns: 1fr; }
  .tier { gap: 8px; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .closer .wrap { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  /* Photograph above, words below on forest, so neither covers the other. */
  .closer--photo { display: block; min-height: 0; }
  .closer--photo::before { display: none; }
  .closer--photo .frame { position: relative; inset: auto; height: 46vw; }
  .closer--photo .wrap { display: block; padding-block: 40px 52px; }
  .closer--photo .wrap > .btn { margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .hero-copy h1, .intro h1 { font-size: 2.3rem; }
  .panel, .emergency { padding: 24px; }
  .cta-row .btn { flex: 1 1 auto; }
  .limit { grid-template-columns: 1fr; gap: 4px; }
  .benefits { grid-template-columns: 1fr; gap: 20px; }
  .emergency-number { font-size: 1.45rem; }
  .photo-band { height: 62vw; }
  .statement--sky { min-height: 150vw; }
}

/* The emergency number breathes gently: the one action on these pages that
   is urgent. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes beacon {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70%, 100% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--accent) 0%, transparent); }
  }
  .emergency-number { animation: beacon 2.8s var(--ease) infinite; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; }
  .frame > img { transform: none !important; }
}
