/* Landing v4 (WI-704): the shared look for /landing-v4/, written once here so later phases reuse it.
   Values are recorded in DESIGN.md, "Landing v4 (preview)". Always dark. Glows are gradients and box-shadows only:
   no blur filter and no animation anywhere (the wordmark keeps its own small glow, exactly as on /landing/), except the
   small Press feel (WI-727) on links and buttons, at the end of this file. */

/* ---------- Tokens ---------- */
:root {
  --v4-base: #050C10;        /* the page */
  --v4-section: #08161B;     /* section bands, header, menu, footer */
  --v4-card: #0C2027;
  --v4-raised: #10303A;      /* a card on a card */
  --v4-line: #1D454D;        /* 1px lines */
  --v4-focus: #7DF2E8;       /* focus ring */
  --v4-cyan: #2EE6D6;        /* the wordmark cyan: buttons, eyebrows, glows */
  --v4-cyan-soft: #7DF2E8;
  --v4-on-cyan: #04201F;     /* text on cyan */
  --v4-text: #F2F7F8;
  --v4-text2: #A9BDC2;       /* secondary text */
  --v4-muted: #86A0A6;
  --v4-glow: 46, 230, 214;   /* the cyan as r, g, b, for rgba() glows */
  /* Today's light-speck grain from /landing/, never a flat colour. */
  --v4-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .86 0 0 0 0 .88 0 0 0 0 .92 0 0 0 .15 -.065'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --v4-font: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --v4-max: 1200px;          /* content width */
  --v4-gutter: 16px;         /* 32px from 600, 48px from 900 */
  --v4-pad: 64px;            /* section padding, 96px from 900 */
  --v4-header-h: 84px;       /* 108px from 1200: room for the wordmark's rings at its /landing/ sizes */
  --v4-radius: 20px;
}
@media (min-width: 600px) { :root { --v4-gutter: 32px; } }
@media (min-width: 900px) { :root { --v4-gutter: 48px; --v4-pad: 96px; } }
@media (min-width: 1200px) { :root { --v4-header-h: 108px; } }

/* ---------- Page ---------- */
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--v4-header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: clip;
  background-color: var(--v4-base);
  /* Grain on top, then the big soft cyan arcs at the top right (where the hero phones go in Phase 2), the halo under
     them and the halo behind the header. Placed from the top of the page, so they stay at the top. */
  background-image:
    var(--v4-grain),
    radial-gradient(circle at var(--v4-arc-x) var(--v4-arc-y), transparent var(--v4-arc-r), rgba(var(--v4-glow), 0.12) calc(var(--v4-arc-r) + 26px), rgba(var(--v4-glow), 0.22) calc(var(--v4-arc-r) + 40px), rgba(var(--v4-glow), 0.10) calc(var(--v4-arc-r) + 56px), transparent calc(var(--v4-arc-r) + 110px)),
    radial-gradient(circle at var(--v4-arc-x) var(--v4-arc-y), transparent calc(var(--v4-arc-r) + 120px), rgba(var(--v4-glow), 0.10) calc(var(--v4-arc-r) + 150px), transparent calc(var(--v4-arc-r) + 200px)),
    radial-gradient(var(--v4-halo-w) var(--v4-halo-h) at calc(100% - var(--v4-halo-in)) var(--v4-halo-y), rgba(var(--v4-glow), 0.16), transparent 70%),
    radial-gradient(900px 260px at 30% 0, rgba(var(--v4-glow), 0.12), transparent 70%);
  --v4-arc-x: calc(100% + 150px); --v4-arc-y: 120px; --v4-arc-r: 210px;
  --v4-halo-w: 420px; --v4-halo-h: 420px; --v4-halo-in: 40px; --v4-halo-y: 200px;
  color: var(--v4-text);
  font-family: var(--v4-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) {
  body {
    font-size: 1.125rem;
    --v4-arc-x: calc(100% + 60px); --v4-arc-y: 160px; --v4-arc-r: 340px;
    --v4-halo-w: 760px; --v4-halo-h: 640px; --v4-halo-in: 160px; --v4-halo-y: 320px;
  }
}
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
.v4-wrap { max-width: calc(var(--v4-max) + 2 * var(--v4-gutter)); margin-inline: auto; padding-inline: var(--v4-gutter); }

/* Keyboard: a 2px soft cyan ring with a gap, on everything you can press. */
a:focus-visible, button:focus-visible { outline: 2px solid var(--v4-focus); outline-offset: 3px; }

/* ---------- Type ---------- */
.v4-h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
.v4-h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }
.v4-eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--v4-cyan); }
.v4-body { font-size: 1.0625rem; line-height: 1.55; color: var(--v4-text2); }
.v4-small { font-size: 0.875rem; line-height: 1.5; color: var(--v4-text2); } /* the smallest text anywhere: 14px */
@media (min-width: 900px) { .v4-body { font-size: 1.125rem; } }

/* ---------- Buttons ---------- */
/* Pills, 48px tall. Hover lifts a little with a stronger glow, straight away (no transition: no animation). */
.v4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 1.4em; border: 1.5px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--v4-font); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.v4-btn svg { width: 1.125em; height: 1.125em; flex: none; }
.v4-btn-primary {
  background: var(--v4-cyan); color: var(--v4-on-cyan);
  box-shadow: 0 0 0 1px rgba(125, 242, 232, 0.35), 0 6px 18px -6px rgba(var(--v4-glow), 0.55);
}
.v4-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(125, 242, 232, 0.6), 0 10px 26px -6px rgba(var(--v4-glow), 0.8), 0 0 22px rgba(var(--v4-glow), 0.3); }
.v4-btn-secondary { background: transparent; border-color: var(--v4-cyan); color: var(--v4-cyan); }
.v4-btn-secondary:hover { transform: translateY(-1px); background: rgba(var(--v4-glow), 0.08); box-shadow: 0 0 18px rgba(var(--v4-glow), 0.35); }
/* Placeholder look (for anything not built yet): a dashed edge. */
.v4-btn-placeholder { background: transparent; border: 2px dashed var(--v4-muted); color: var(--v4-text2); cursor: default; }
.v4-placeholder { border: 2px dashed var(--v4-muted); border-radius: 14px; padding: 12px 16px; color: var(--v4-text2); font-size: 0.9375rem; line-height: 1.5; }

/* ---------- Card ---------- */
/* The rim light from the mock-ups: a 1px edge that glows cyan at the top-left corner and fades into the line colour,
   a soft cyan glow at that corner, a soft inner top highlight and the drop shadow. Grain on the card colour. */
.v4-card {
  position: relative; border: 1px solid transparent; border-radius: var(--v4-radius);
  background:
    var(--v4-grain) padding-box,
    linear-gradient(var(--v4-card), var(--v4-card)) padding-box,
    linear-gradient(135deg, var(--v4-cyan-soft), rgba(var(--v4-glow), 0.55) 18%, var(--v4-line) 48%, var(--v4-line)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.35), -6px -6px 24px -12px rgba(var(--v4-glow), 0.5);
}

/* ---------- Glow lines ---------- */
/* A 1px cyan line, brightest in the middle, with a soft glow (box-shadow), along the header's bottom and footer's top. */
.v4-header::after, .v4-footer::before {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--v4-glow), 0.15), rgba(var(--v4-glow), 0.85) 30%, var(--v4-cyan-soft) 50%, rgba(var(--v4-glow), 0.85) 70%, rgba(var(--v4-glow), 0.15));
  box-shadow: 0 0 10px rgba(var(--v4-glow), 0.45), 0 0 24px rgba(var(--v4-glow), 0.18);
}

/* ---------- Header ---------- */
.v4-header {
  position: sticky; top: 0; z-index: 20;
  background-color: rgba(8, 22, 27, 0.86); /* the section colour, slightly see-through; no blur */
  background-image: var(--v4-grain), radial-gradient(640px 140px at 18% 0, rgba(var(--v4-glow), 0.12), transparent 70%);
}
.v4-header::after { bottom: -1px; }
.v4-header-row { display: flex; align-items: center; justify-content: space-between; min-height: var(--v4-header-h); }

/* The wordmark, copied from /landing/: same rings, sizes and glow. Its letters' soft halo is the section colour here.
   It takes its larger /landing/ size from 1200px (on /landing/ from 900px): between 900 and 1199 the larger wordmark,
   the four links and the pill don't fit on one line. */
.brand {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.28em;
  padding: 14px 0 14px 0.9em; font-size: 2.1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  color: #FFFFFF; text-decoration: none;
}
.brand .go { color: var(--v4-cyan); }
.brand svg { position: absolute; left: -0.3em; top: 50%; width: 2.2em; height: 2.2em; transform: translateY(-50%); overflow: visible; filter: drop-shadow(0 0 7px rgba(46, 230, 214, 0.7)); }
.brand span { position: relative; text-shadow: 0 0 3px var(--v4-section), 0 0 6px var(--v4-section), 0 0 10px var(--v4-section); }

/* Burger (under 900px): 44px, three lines. */
.v4-burger {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--v4-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.v4-burger svg { width: 24px; height: 24px; }
.v4-burger[aria-expanded="true"] { background: var(--v4-raised); border-color: var(--v4-line); color: var(--v4-cyan); }

/* The menu: a panel under the header on a phone, the centred links on a laptop. */
.v4-nav { display: none; }
.v4-nav-links a { display: flex; align-items: center; min-height: 48px; font-size: 1.125rem; font-weight: 500; text-decoration: none; color: var(--v4-text); }
.v4-nav-links a:hover, .v4-nav-links a:active { color: var(--v4-cyan); }
.v4-header.is-open .v4-nav {
  display: block; position: absolute; top: 100%; left: 0; right: 0; margin-top: 1px;
  max-height: calc(100vh - var(--v4-header-h)); overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--v4-gutter) 24px;
  background-color: var(--v4-section);
  background-image: var(--v4-grain), radial-gradient(520px 200px at 100% 0, rgba(var(--v4-glow), 0.10), transparent 70%);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
}
.v4-header.is-open .v4-nav-links li + li { border-top: 1px solid var(--v4-line); }
.v4-menu-cta { width: 100%; margin-top: 16px; }
.v4-header-cta { display: none; }
/* While the menu is open, a tap anywhere outside it closes it (iPhones only send that tap when the place looks tappable). */
.v4-menu-open main, .v4-menu-open .v4-footer, .v4-menu-open .v4-header-row { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* From 900px: the four links centred between the wordmark and the pill. */
@media (min-width: 900px) {
  .v4-burger, .v4-menu-cta { display: none; }
  .v4-nav, .v4-header.is-open .v4-nav {
    display: flex; justify-content: center; flex: 1; min-width: 0; position: static; margin: 0 24px;
    max-height: none; overflow: visible; padding: 0; background: none; box-shadow: none;
  }
  .v4-nav-links { display: flex; gap: 20px; }
  .v4-nav-links a { min-height: 44px; font-size: 1rem; font-weight: 400; white-space: nowrap; }
  .v4-header-cta { display: inline-flex; flex: none; }
}
@media (min-width: 1200px) {
  .brand { font-size: 2.75rem; padding-left: 0.95em; }
  .v4-nav-links { gap: 40px; }
}

/* ---------- Hero (Phase 2, WI-713) ---------- */
.v4-cyan { color: var(--v4-cyan); }
.v4-lead { color: var(--v4-text2); font-size: 1.0625rem; line-height: 1.55; }
.v4-hero { position: relative; padding: 40px 0 48px; }
.v4-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.v4-hero-text .v4-eyebrow { margin: 0 0 14px; }
.v4-hero-title span { display: block; }
.v4-hero-text .v4-lead { max-width: 34em; margin-top: 20px; }
.v4-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.v4-hero-ctas .v4-btn { flex: 1 1 auto; }
.v4-video-btn svg { width: 1.375em; height: 1.375em; }
/* The hero's phones, drawn at a fixed size (--dw x --dh) and scaled to the space by --hk (phones.js). Since overnight
   run 3 (Part 5, round 2; round 3: the business tab in place of Anaphylaxis) five still phones, one screen each (Home,
   Asthma attack, CPR's AED section, Your business, Favourites), in a carousel: the centre phone full size and in front; its two neighbours at 0.8, 0.85 opacity, their
   middles 212 design px (55% of a phone's width) out to each side and 43px lower; the other two hidden behind the centre
   phone (opacity 0, at 0.8, 43px lower). Every phone is a full-size 386 x 766 box at the centre position; its place is a
   transform (translate, scale) and an opacity, which phones.js sets as the row moves (600ms, the landing's ease) and the
   finger drags. The class rules below are the starting row (Home in the centre) for the first paint and without scripts. */
.v4-stage { --hk: 0.6; --dw: 740px; --dh: 770px; --ph-top: 0px; --step: 212px; --side-y: 43px; position: relative; width: 100%; height: calc(var(--dh) * var(--hk));
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.v4-stage.dragging { cursor: grabbing; }
.v4-design { position: absolute; left: 50%; top: 0; width: var(--dw); height: var(--dh); margin-left: calc(var(--dw) / -2); transform: scale(var(--hk)); transform-origin: 50% 0; }
.v4-halo { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--v4-glow), 0.22), rgba(var(--v4-glow), 0.10) 55%, transparent 100%); }
.v4-design .phone { --s: 1; position: absolute; left: calc((var(--dw) - 386px) / 2); top: var(--ph-top); transform-origin: 50% 50%; will-change: transform;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), opacity 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.v4-design .phone * { -webkit-user-drag: none; }
.phone.v4-ph-home { z-index: 3; }
.phone.v4-ph-asthma { z-index: 2; transform: translate(var(--step), var(--side-y)) scale(0.8); opacity: 0.85; }
.phone.v4-ph-fav { z-index: 1; transform: translate(calc(var(--step) * -1), var(--side-y)) scale(0.8); opacity: 0.85; }
.phone.v4-ph-aed, .phone.v4-ph-biz { z-index: 0; transform: translate(0, var(--side-y)) scale(0.8); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .v4-design .phone { transition: none; } }
/* The hero's looks (round 3; landing/hero-looks.json, phones.js). Only with two or more looks does the stage get
   .v4-looks; with one, none of this applies and the phones are exactly as before. Once per full lap all five phones
   change look together: their colours (the demo's three, and Light / Dark) fade over 500ms, and the business name and
   the logo cross-fade. Each name (the business tab's label in every bar, the business page's heading and tiles) and the
   Home logo hold one copy per look stacked in the same place (.v4-look), only the current one showing, so the text never
   changes size or jumps: the place is as big as the biggest. With Reduce Motion the change is at once. */
.v4-looks .screen, .v4-looks .screen *, .v4-looks .screen *::before, .v4-looks .screen *::after {
  transition: background-color 500ms ease, color 500ms ease, border-color 500ms ease, fill 500ms ease; }
.v4-looks .v4-look-stack { display: grid; }
.v4-looks .screen .v4-look { grid-area: 1 / 1; opacity: 0; transition: opacity 500ms ease, color 500ms ease; }
.v4-looks .screen .v4-look.on { opacity: 1; }
.v4-looks .v4-look-logo { display: block; justify-self: center; align-self: center; max-width: 220px; max-height: 40px; width: auto; height: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .v4-looks .screen, .v4-looks .screen *, .v4-looks .screen *::before, .v4-looks .screen *::after, .v4-looks .screen .v4-look { transition: none; }
}
.v4-note { display: none; }
@media (min-width: 600px) { .v4-hero-ctas .v4-btn { flex: 0 0 auto; } }
@media (min-width: 900px) {
  .v4-hero { padding: 56px 0 64px; }
  .v4-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 32px; }
  .v4-lead { font-size: 1.125rem; }
  .v4-stage { --dw: 820px; --dh: 820px; --ph-top: 30px; }
  /* "Branded for you", handwritten, as on /landing/ (Caveat, white), pointing at the front phone's logo. */
  .v4-note { display: block; position: absolute; left: 610px; top: 6px; z-index: 4; width: 200px; font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    font-weight: 600; font-size: 40px; line-height: 0.95; color: #FFFFFF; transform: rotate(-9deg); }
  .v4-note svg { position: absolute; left: -46px; top: 86px; width: 80px; height: 58px; fill: none; stroke: #FFFFFF; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(14deg); }
}

/* Proof strip: four short facts in one card (Phase 1's card), 2 x 2 on a phone, a row of four from 900px. */
.v4-proof { padding: 0 0 48px; }
.v4-proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v4-proof-list li { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px; font-size: 1rem; font-weight: 500; line-height: 1.3; color: var(--v4-text); }
.v4-proof-list svg { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--v4-cyan); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v4-proof-list li:nth-child(n+3) { border-top: 1px solid var(--v4-line); }
.v4-proof-list li:nth-child(even) { border-left: 1px solid var(--v4-line); }
@media (min-width: 900px) {
  .v4-proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v4-proof-list li { justify-content: center; padding: 18px 16px; }
  .v4-proof-list li:nth-child(n+3) { border-top: 0; }
  .v4-proof-list li + li { border-left: 1px solid var(--v4-line); }
}

/* Stay in touch: a slim full-width band in the section colour, with a glow line along its top. */
.v4-stay { position: relative; padding: 36px 0 40px; text-align: center; background-color: var(--v4-section);
  background-image: var(--v4-grain), radial-gradient(700px 200px at 50% 0, rgba(var(--v4-glow), 0.10), transparent 70%); }
.v4-stay::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--v4-glow), 0.15), rgba(var(--v4-glow), 0.85) 30%, var(--v4-cyan-soft) 50%, rgba(var(--v4-glow), 0.85) 70%, rgba(var(--v4-glow), 0.15));
  box-shadow: 0 0 10px rgba(var(--v4-glow), 0.45), 0 0 24px rgba(var(--v4-glow), 0.18); }
.v4-stay-title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.v4-stay-text { max-width: 44ch; margin: 12px auto 0; color: var(--v4-text); }
.v4-stay-small { margin-top: 10px; }

/* The video placeholder, as on /landing/: a dashed 16:9 box saying only "Video", over a dark backdrop. */
.v4-video { width: min(880px, calc(100vw - 32px), calc((100vh - 112px) * 16 / 9)); max-width: none; max-height: none; margin: auto; padding: 0; border: 0;
  background: transparent; color: var(--v4-text); overflow: visible; }
.v4-video::backdrop { background: rgba(5, 12, 16, 0.85); }
.v4-video-inner { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.v4-video-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #FFFFFF; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v4-video-close:hover { background: rgba(255, 255, 255, 0.24); }
.v4-video-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.v4-video-box { align-self: stretch; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9;
  border: 2px dashed var(--v4-muted); border-radius: var(--v4-radius); background: var(--v4-section); color: var(--v4-text2); font-size: 1.25rem; font-weight: 500; }

/* ---------- See your app, your way (Phase 3, WI-714) ---------- */
.v4-brand { padding: var(--v4-pad) 0; scroll-margin-top: 0; }
.v4-brand-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px 32px; }
.v4-brand-text .v4-eyebrow { margin-bottom: 12px; }
.v4-h2 span { display: block; }
.v4-brand-lead { max-width: 30em; margin-top: 14px; }
.v4-brand-steps { display: grid; gap: 22px; margin: 28px 0 0; }
.v4-brand-steps li { display: flex; gap: 14px; align-items: flex-start; }
/* Step numbers in the app's step-circle style, in cyan. */
.v4-step-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--v4-cyan); color: var(--v4-on-cyan); font-size: 0.9375rem; font-weight: 700; }
.v4-step-main { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 3px; }
.v4-step-title { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.v4-step-main .v4-btn svg { width: 1.125em; height: 1.125em; }
/* The colour dots, as on /landing/: 32px dots in 44px tap areas, native radios; the chosen one has a white ring. */
/* Nine colours (WI-715 follow-up 4): five to a row (5 + 4) where all nine don't fit on one line, one row where they do.
   44px tap areas; at 320px the row reaches into the card's 20px padding (the fifth dot by 3px, its tap area by 9px). */
.v4-dots { display: flex; flex-wrap: wrap; margin-left: -6px; width: 220px; flex: none; }
@media (min-width: 600px) and (max-width: 899px), (min-width: 1200px) { .v4-dots { width: auto; } }
.v4-dots input, .v4-mode input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.v4-dots label { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v4-dots label::before { content: ''; width: 32px; height: 32px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.v4-dots input:checked + label::before { box-shadow: 0 0 0 3px var(--v4-card), 0 0 0 5px #FFFFFF; }
.v4-dots input:focus-visible + label { outline: 2px solid var(--v4-focus); outline-offset: 0; }
/* The app's Light | Dark switch, as on /landing/. */
.v4-mode { display: inline-flex; margin: 0; padding: 6px; border: 0; min-width: 0; border-radius: 999px;
  background: #FFFFFF; box-shadow: 0 1px 3px rgba(26, 43, 69, 0.08); font-family: 'Nunito', sans-serif; line-height: normal; }
.v4-mode label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  font-size: 0.9375rem; font-weight: 700; color: #1A2B45; -webkit-tap-highlight-color: transparent; }
.v4-mode label svg { width: 18px; height: 18px; fill: currentColor; }
.v4-mode input:checked + label { background: #1A2B45; color: #F7FAFC; }
.v4-mode input:focus-visible + label { outline: 2px solid var(--v4-focus); outline-offset: 2px; }
.v4-brand-cta { margin-top: 28px; }
.v4-brand-pic { position: relative; display: flex; justify-content: center; }
.phone.v4-brand-phone { --s: 0.62; }
.v4-brand-note { display: none; }
@media (min-width: 600px) { .v4-brand-card { padding: 36px 32px; } }
@media (min-width: 900px) {
  .v4-brand-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 40px; padding: 48px; }
  .phone.v4-brand-phone { --s: 0.7; }
  .v4-brand-pic { padding: 24px 0; }
  .v4-note.v4-brand-note { display: block; position: absolute; left: auto; right: calc(50% + 140px); top: 18px; width: 170px; font-size: 32px; transform: rotate(-6deg); text-align: right; }
  .v4-brand-note svg { position: absolute; left: auto; right: -78px; top: 52px; width: 72px; height: 52px; transform: rotate(8deg); }
}

/* ---------- Content sections (Phase 4, WI-715) ---------- */
.v4-section { position: relative; padding-block: var(--v4-pad); }
.v4-section .v4-eyebrow { margin-bottom: 12px; }
.v4-section .v4-h2 { max-width: 22em; }
.v4-section .v4-h2 > span { display: block; }

/* Benefits: four cards, no image. 2 x 2 on a phone, four in a row from 1200px. */
.v4-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.v4-benefit { padding: 18px 14px 20px; }
.v4-benefit svg { display: block; width: 32px; height: 32px; fill: none; stroke: var(--v4-cyan); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v4-benefit h3 { margin-top: 14px; font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.v4-benefit p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.45; color: var(--v4-text2); }
@media (min-width: 600px) { .v4-benefit-grid { gap: 20px; } .v4-benefit { padding: 24px 22px 26px; } }
@media (min-width: 1200px) { .v4-benefit-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* How it works: three steps, each a line icon in a cyan ring (with its number), stacked on a phone, a row with thin
   arrows between them from 900px. Dad's kept line as the heading. */
.v4-how-steps { display: grid; gap: 28px; margin-top: 32px; }
.v4-how-steps li { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.v4-how-ring { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--v4-cyan); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(var(--v4-glow), 0.22), inset 0 0 12px rgba(var(--v4-glow), 0.12); }
.v4-how-ring svg { width: 28px; height: 28px; fill: none; stroke: var(--v4-cyan); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.v4-how-num { position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: var(--v4-cyan); color: var(--v4-on-cyan);
  display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700; }
.v4-how-steps h3 { padding-top: 4px; font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.v4-how-steps p { margin-top: 6px; color: var(--v4-text2); }
.v4-how-arrow { display: none; }
@media (min-width: 900px) {
  .v4-how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
  .v4-how-steps li { flex-direction: column; gap: 16px; }
  .v4-how-arrow { display: block; position: absolute; left: -46px; top: 20px; width: 36px; color: var(--v4-cyan); opacity: 0.8; }
  .v4-how-arrow svg { display: block; width: 36px; height: 24px; }
}

/* Why not just a booklet? A muted booklet card (a flat drawing of a stack of booklets) and the app's card (rim light,
   a small real home screen). The booklet's rows have a muted dot, the app's a cyan tick. No red crosses. */
.v4-compare { display: grid; gap: 16px; margin-top: 32px; }
.v4-compare-col { position: relative; padding: 22px 20px 14px; border-radius: var(--v4-radius); }
.v4-compare-booklet { border: 1px solid var(--v4-line); background: var(--v4-grain), linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)); }
.v4-booklets { display: block; width: 96px; height: 77px; margin-bottom: 12px; fill: var(--v4-raised); stroke: var(--v4-muted); stroke-width: 1.5; stroke-linejoin: round; }
.v4-booklets path { fill: none; stroke-linecap: round; opacity: 0.7; }
.v4-compare-col h3 { font-size: 1.125rem; font-weight: 600; }
.v4-compare-booklet h3 { color: var(--v4-text2); }
.v4-compare-col ul { margin-top: 8px; }
.v4-compare-col li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; line-height: 1.3; }
.v4-compare-col li + li { border-top: 1px solid var(--v4-line); }
.v4-compare-booklet li { color: var(--v4-text2); }
.v4-compare-booklet li::before { content: ''; flex: none; width: 6px; height: 6px; margin: 0 7px; border-radius: 50%; background: var(--v4-muted); }
.v4-compare-app li svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--v4-cyan); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.phone.v4-mini-phone { --s: 0.3; float: right; margin: -4px 0 8px 12px; }
@media (min-width: 768px) {
  .v4-compare { grid-template-columns: 1fr 1fr; gap: 24px; }
  .v4-compare-col { padding: 28px 28px 18px; }
  .phone.v4-mini-phone { --s: 0.34; }
}

/* Inside the app: the five phones of landing/screens/. On a phone, one at a time (swipe, stopping at each), with dots;
   from 768px a row, wrapping as needed. */
.v4-shots-title { text-align: center; margin: 0 auto; }
.v4-track { display: flex; gap: 24px; margin: 24px calc(-1 * var(--v4-gutter)) 0; padding: 12px var(--v4-gutter) 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v4-track::-webkit-scrollbar { display: none; }
.v4-track:focus-visible { outline: 2px solid var(--v4-focus); outline-offset: -2px; border-radius: 12px; }
.v4-track .slide { flex: 0 0 100%; margin: 0; display: flex; flex-direction: column; align-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.v4-track .phone { --s: 0.66; }
.v4-track .caption { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; color: var(--v4-text); }
.v4-shots-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.v4-shots-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); }
.v4-shots-dots span.on { background: var(--v4-cyan); }
@media (min-width: 768px) {
  .v4-track { flex-wrap: wrap; justify-content: center; gap: 40px 28px; margin: 32px 0 0; padding: 12px 0 8px; overflow: visible; scroll-snap-type: none; }
  .v4-track .slide { flex: 0 0 auto; }
  .v4-track .phone { --s: 0.55; }
  .v4-shots-dots { display: none; }
}
@media (min-width: 1200px) { .v4-track .phone { --s: 0.52; } }

/* Questions trainers ask: native details, closed at start, as cards with a cyan ⌄ that turns when open (straight away:
   no animation). Then "Get in touch". */
.v4-faq .v4-h2 { margin-inline: auto; text-align: center; }
.v4-faq-list { display: grid; gap: 12px; max-width: 800px; margin: 28px auto 0; }
.v4-faq-item { border: 1px solid var(--v4-line); border-radius: 16px; background: var(--v4-grain), linear-gradient(var(--v4-card), var(--v4-card)); }
.v4-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.v4-faq-item summary::-webkit-details-marker { display: none; }
.v4-faq-item summary:focus-visible { outline: 2px solid var(--v4-focus); outline-offset: 2px; border-radius: 16px; }
.v4-faq-item summary svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--v4-cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v4-faq-item[open] summary svg { transform: rotate(180deg); }
.v4-faq-item > p { padding: 0 18px 18px; color: var(--v4-text2); }
.v4-faq-cta { display: flex; justify-content: center; margin-top: 36px; }

/* Register your interest: a card. It sends and stores nothing; "Register interest" shows "Coming soon" for 4 seconds. */
.v4-register-card { max-width: 800px; margin: 0 auto; padding: 28px 20px 32px; }
.v4-register-note { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--v4-raised); color: var(--v4-text); font-size: 0.9375rem; line-height: 1.4; }
.v4-fields { display: grid; gap: 14px; margin-top: 20px; }
.v4-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v4-field label { font-size: 0.9375rem; font-weight: 500; color: var(--v4-text); }
.v4-field input, .v4-field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--v4-line); border-radius: 12px; background: var(--v4-base);
  color: var(--v4-text); font: 400 1rem/1.4 var(--v4-font); }
.v4-field textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.v4-field input:focus-visible, .v4-field textarea:focus-visible { outline: 2px solid var(--v4-focus); outline-offset: 2px; }
.v4-register-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.v4-soon:not(:empty) { padding: 6px 14px; border-radius: 999px; background: var(--v4-raised); color: var(--v4-text); font-size: 0.9375rem; font-weight: 500; }
@media (min-width: 600px) {
  .v4-register-card { padding: 36px 32px 40px; }
  .v4-fields { grid-template-columns: 1fr 1fr; gap: 16px 20px; }
  .v4-field-wide { grid-column: 1 / -1; }
}

/* Dad's trust line (WI-700), small and low, just above the footer. */
.v4-trust { max-width: 600px; margin: 0 auto; padding: 8px var(--v4-gutter) 40px; text-align: center; color: var(--v4-text2); font-size: 0.9375rem; line-height: 1.45; }
/* Every other band is the section colour, with a faint cyan glow along its top edge and in its top-left corner. */
.v4-section-alt {
  background-color: var(--v4-section);
  background-image: var(--v4-grain), radial-gradient(720px 280px at 0 0, rgba(var(--v4-glow), 0.10), transparent 70%);
}
.v4-section-alt::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--v4-glow), 0.45), rgba(var(--v4-glow), 0.12) 55%, transparent);
  box-shadow: 0 0 14px rgba(var(--v4-glow), 0.14);
}

/* ---------- Footer ---------- */
.v4-footer {
  position: relative; padding-block: var(--v4-pad);
  background-color: var(--v4-section);
  background-image: var(--v4-grain), radial-gradient(900px 240px at 50% 0, rgba(var(--v4-glow), 0.10), transparent 70%);
}
.v4-footer::before { top: 0; }
.v4-footer-row { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.v4-footer-links { display: flex; flex-wrap: wrap; column-gap: 28px; }
.v4-footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; text-decoration: none; color: var(--v4-text); }
.v4-footer-links a:hover, .v4-footer-links a:active { color: var(--v4-cyan); }
.v4-footer .v4-placeholder { margin-top: 32px; }
@media (min-width: 900px) {
  .v4-footer-row { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Press feel (WI-727) ---------- */
/* copy of theme.js Press feel (WI-727) — DESIGN.md holds the numbers. The classes are set by the Press feel listener
   in v4.js on the landing's links and buttons (never on the phone pictures). `scale` only, so it adds to the hover
   lift (transform) and nothing around it moves: 96% over 80ms pressed; let go, 102% at 55% of 180ms, then full size.
   The rule that turns off iOS's long-press menu on those links and buttons is made in v4.js, from its one list. */
.fa-pressed { scale: 0.96; transition: scale 80ms ease-out; }
.fa-pop { animation: fa-pop 180ms ease-out; }
@keyframes fa-pop { 0% { scale: 0.96; } 55% { scale: 1.02; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .fa-pressed, .fa-pop { scale: none; animation: none; } }
