/* www.lifetape.school. Tokens come from tokens.css (copied from the prototype at build time).
   Layout mirrors the prototype: Inter Tight, ink on white, pack colours as data-colour, lozenge buttons. */

@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }

:root {
  --site-hdr-h: 64px;
  --wrap: 1120px;
  --gutter: 24px;
  /* Heading sizes follow the heading levels in Stuart's page copy: t1 is his #, t5 his #####. */
  --fs-t1: clamp(34px, 4.7vw, 58px);
  --fs-t2: clamp(27px, 3.3vw, 42px);
  --fs-t3: clamp(24px, 2.6vw, 32px);
  --fs-t4: clamp(19px, 1.9vw, 24px);
  --fs-t5: clamp(18px, 1.6vw, 20px);
  --on-ink-dim: color-mix(in srgb, #fff 62%, var(--ink)); /* 5.9:1 on ink */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--site-hdr-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: var(--fs-md); line-height: 1.45; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: var(--fw-bold); /* bold headings, as on lifetape.kids */ letter-spacing: var(--track-tight); line-height: 1.05; }
p { margin: 0 0 .8em; }
a { color: inherit; }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }   /* a link inside running text: same colour, underlined */
img, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ftr :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 16px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: var(--r-md); z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.small { font-size: var(--fs-sm); color: var(--ink-2); }
.opt { color: var(--ink-3); font-weight: var(--fw-regular); }

/* ---------- Type scale ---------- */
.t1, .t2, .t3, .t4, .t5 { margin: 0; font-weight: var(--fw-bold); letter-spacing: var(--track-tight); color: var(--ink); text-wrap: balance; }
.t1 { font-size: var(--fs-t1); line-height: 1.02; }
.t2 { font-size: var(--fs-t2); line-height: 1.08; }
.t3 { font-size: var(--fs-t3); line-height: 1.12; }
.t4 { font-size: var(--fs-t4); line-height: 1.2; }
.t5 { font-size: var(--fs-t5); line-height: 1.3; letter-spacing: -0.01em; }

/* ---------- Buttons (prototype lozenges) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  border-radius: var(--r-pill); border: 1.5px solid transparent; padding: 10px 20px; min-height: 44px;
  font: inherit; font-weight: var(--fw-medium); letter-spacing: -0.01em; white-space: nowrap; cursor: pointer;
  background: none; color: inherit; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-lg); min-height: 54px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-primary:disabled { background: var(--line-2); cursor: default; }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-secondary:hover { background: var(--ink); color: #fff; }

/* ---------- Pills (as the prototype) ---------- */
.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 1px 10px 0; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 1; flex: none;
}
.pill-think { background: var(--think); color: var(--ink); }
.pill-plan { background: var(--ink); color: #fff; }
.pill-act { background: var(--purple-strong); color: #fff; }

/* ---------- Sticky white header, as on lifetape.kids ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--paper); color: var(--ink); height: var(--site-hdr-h); border-bottom: 1px solid var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.hdr-brand { display: flex; align-items: center; text-decoration: none; min-height: 44px; }
.hdr-logo { height: 22px; width: auto; }
.hdr-strap { font-size: var(--fs-md); color: var(--ink-3); margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line-2); line-height: 22px; }
.hdr-nav { margin-left: auto; display: flex; gap: 4px; }
.hdr-nav a { text-decoration: none; padding: 10px 12px; border-radius: var(--r-pill); font-weight: var(--fw-medium); color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.hdr-nav a:hover { background: var(--paper-2); }
.hdr .btn-primary { padding: 8px 18px; min-height: 40px; }

/* ---------- 1. Hero ---------- */
.hero { background: var(--paper); color: var(--ink); padding: 80px 0 96px; }
/* One stack: the headline, then its two supporting lines. */
/* The headline and its two lines run the full width of the page column. */
.hero-head .t1, .hero-head .t2, .hero-head .t3 { text-wrap: wrap; }
/* The three lines are scaled down together, keeping their relative sizes. */
.hero-head .t1 { font-size: calc(var(--fs-t1) * .85); }
.hero-head .t2 { font-size: calc(var(--fs-t2) * .85); }
.hero-head .t3 { font-size: calc(var(--fs-t3) * .85); }
.hero-sub { margin-top: clamp(22px, 2.4vw, 32px); }   /* clear air under the headline */
.hero-t3 { margin-top: 14px; font-weight: var(--fw-medium); color: var(--ink-2); }

.shots { margin: 52px 0 0; }
.shots-frame { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-3), 0 0 0 1px var(--line); }
.shots-bar { height: 34px; background: var(--paper-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.shots-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.shots-bar span { margin-left: auto; margin-right: auto; font-size: var(--fs-xs); color: var(--ink-3); background: #fff; border-radius: var(--r-pill); padding: 3px 12px; }
.shots-stack { position: relative; aspect-ratio: 1440 / 900; }
.shots-stack img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .9s var(--ease); }
.shots-stack img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .shots-stack img { transition: none; } }

/* Under the screens: two columns, all left-aligned. What pupils do on the left; the promise and the invitation on the right. */
/* The columns are inset from the edges of the screens above (less so as the window narrows). The left column is as wide
   as its longest point; the right takes the rest, so its bold line fits unbroken. */
.hero-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px 72px; align-items: start; margin-top: 72px; padding-inline: clamp(0px, (100vw - 960px) * .2, 48px); }
.hero-lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--ink-2); margin: 0; max-width: 30em; }
.hero-close { margin-top: 30px; }
.hero-cta { margin-top: 34px; justify-self: start; }   /* under the points in the left column */
.hero-close .t4 { text-wrap: wrap; }   /* one line on desktop; breaks only where the screen is too narrow */
.hero-close .t5 { margin-top: 8px; font-weight: var(--fw-medium); color: var(--ink-2); }

/* Coloured square bullets, as on the product's sign-in screen (14px squares in pack order). */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 30px; font-size: var(--fs-lg); line-height: 1.4; }
.points li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 2px; background: var(--c-strong); }
.hero .points li { font-weight: var(--fw-medium); }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec-white { background: var(--paper); }
.sec-grey { background: var(--paper-2); }
.sec .t3, .sec .t2 { margin-bottom: 22px; }
.sec-lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); max-width: 44em; margin: 0; }
#packs .sec-lead, #started .sec-lead { max-width: none; }   /* these run the full width of the grid below them */
/* The YouTube icon to the left of the companion-series line. */
.yt-note { display: flex; align-items: center; gap: 22px; }
.yt-link { flex: none; display: grid; place-items: center; min-height: 44px; border-radius: 8px; }
.yt-logo { flex: none; width: 60px; height: auto; fill: var(--youtube-red); }
.yt-logo .yt-play { fill: var(--paper); }
.prose p { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); margin: 0 0 1em; }
.prose > :last-child, .prose > div > :last-child { margin-bottom: 0; }
.prose .punch { color: var(--ink); font-weight: var(--fw-bold); line-height: 1.4; margin-top: 1.5em; }
.prose p.t5 { color: var(--ink); line-height: 1.4; }

/* Two columns of text: the title and its opening on the left, the rest on the right. */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 72px; align-items: start; }
.cols > div:last-child { padding-top: calc(var(--fs-t3) * 1.12 + 22px); }   /* the right column starts level with the first paragraph */

/* Text beside a picture. .duo-flip puts the picture on the left; on a phone the text always comes first. */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.duo-flip .duo-media { order: -1; }
.duo-media { margin: 0; min-width: 0; }
.duo-text .btn { margin-top: 12px; }
.photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--paper); }
.photo img { width: 100%; }
/* A marked gap where a photo is still to come. Never ship one: site-check lists any that remain. */
.try-fig { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2), 0 0 0 1px var(--line); aspect-ratio: 1440 / 900; background: var(--paper); }
.try-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 2. 100 years: the photo and sign-off on the left, the reasons on the right ---------- */
.hundred { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 72px; grid-template-areas: "photo title" "photo body" "photo close"; grid-template-rows: auto auto 1fr; align-items: start; }
.hundred-title { grid-area: title; text-wrap: wrap; }   /* runs the width of its column; no balanced break */
.hundred-photo { grid-area: photo; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-2); }
.hundred-photo img { width: 100%; height: 100%; object-fit: cover; }
.hundred-body { grid-area: body; }
.hundred-body .points { margin-top: 28px; gap: 18px; }
.hundred-body .points li { color: var(--ink); line-height: 1.45; }
.hundred-close { grid-area: close; margin-top: 24px; }
.hundred-close .t4 { text-wrap: wrap; }   /* the two statements run on as one line */
/* The "Have a plan." lock-up in ink. */
.plan-logo { display: block; width: 108px; height: auto; margin-top: 32px; }   /* under the text in A plan in your pocket */

/* ---------- 3. Think. Plan. Act. ---------- */
.tags { list-style: none; margin: 32px 0; padding: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tags li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-lg); line-height: 1.4; color: var(--ink); }
.tags .pill { margin-top: 2px; }

/* Packs: the column 1 card with the landing page's description. Seven cards: four, then two and a double-width last one. */
.pack-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 48px; }
.pack-grid > .pack { grid-column: span 3; }
.pack { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: flex; flex-direction: column; overflow: hidden; }
.pack-top { background: var(--c-light); padding: 16px 18px 20px; position: relative; min-height: 124px; }
.pack-mode { font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); line-height: 1.1; display: block; }
.pack-title { font-size: var(--fs-t5); font-weight: var(--fw-bold); letter-spacing: var(--track-tight); line-height: 1.12; margin-top: 12px; padding-right: 30px; }
.pack-letter { position: absolute; top: 0; right: 0; width: 44px; height: 44px; background: var(--c-mid); display: grid; place-items: center; font-size: 22px; font-weight: var(--fw-medium); }
.pack-desc { padding: 18px 18px 22px; margin: 0; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
/* Seven packs: four across, then three wider ones, so no card sits alone. */
.pack-grid > .pack:nth-child(4n + 1):nth-last-child(3), .pack-grid > .pack:nth-child(4n + 1):nth-last-child(3) ~ .pack { grid-column: span 4; }

/* ---------- 4. Video ---------- */
.video-frame { margin-top: 40px; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-2); }
.video-frame video { width: 100%; aspect-ratio: 1440 / 900; background: var(--ink); }

/* ---------- 7. A plan in your pocket: a phone scrolling a shared plan ---------- */
/* Proportions follow a current iPhone (Stuart, 20 Nov 2026: the frame looked squat): a 390 x 844 screen, and a body about 2.07 times as tall as it is wide. */
.phone { width: min(292px, 76vw); margin-inline: auto; padding: 12px; border-radius: 48px; background: var(--ink); box-shadow: var(--shadow-3); }
.phone-screen { position: relative; border-radius: 36px; overflow: hidden; background: var(--tape-lane); aspect-ratio: 390 / 844; display: flex; flex-direction: column; }
.phone-status { flex: none; height: 37px; background: var(--ink); color: #fff; position: relative; font-size: 12px; font-weight: var(--fw-bold); display: flex; align-items: center; padding: 6px 0 0 28px; }
.phone-status i { position: absolute; left: 50%; top: 9px; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #000; }
.phone-head { flex: none; width: 100%; position: relative; z-index: 1; }
.phone-view { flex: 1; min-height: 0; overflow: hidden; }
.phone-track { height: 100%; }
.phone-tape { width: 100%; }
.phone-home { position: absolute; left: 50%; bottom: 7px; width: 96px; height: 4px; margin-left: -48px; border-radius: 2px; background: var(--ink); opacity: .55; }
/* The scroll: the track moves down by the window's height while the tape moves up by its own, so the tape ends bottom-aligned.
   Hold at the top, scroll steadily, hold at the end, flick back. Paused off screen (site.js) and off for reduced motion. */
.phone.is-playing .phone-track { animation: phone-track 34s infinite; }
.phone.is-playing .phone-tape { animation: phone-tape 34s infinite; }
@keyframes phone-track { 0%, 5% { transform: translateY(0); animation-timing-function: linear; } 86%, 92% { transform: translateY(100%); animation-timing-function: var(--ease); } 100% { transform: translateY(0); } }
@keyframes phone-tape { 0%, 5% { transform: translateY(0); animation-timing-function: linear; } 86%, 92% { transform: translateY(-100%); animation-timing-function: var(--ease); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .phone .phone-track, .phone .phone-tape { animation: none !important; } }
/* With a mouse or trackpad the plan is a real scroller the reader can move (site.js adds .is-live and scrolls it for them). */
.phone.is-live .phone-view { overflow-y: auto; scrollbar-width: none; cursor: grab; }
.phone.is-live .phone-view::-webkit-scrollbar { display: none; }
.phone.is-live .phone-view.is-dragging { cursor: grabbing; }
.phone.is-live .phone-view:focus-visible { outline-offset: -3px; }
.phone.is-live .phone-track { height: auto; animation: none; transform: none; }
.phone.is-live .phone-tape { display: block; animation: none; transform: none; user-select: none; }

/* ---------- 10. It started in print: four large photos (two a row), then the rest three a row ---------- */
.print-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 40px; }
.print-grid figure { margin: 0; grid-column: span 4; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 3 / 2; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.print-grid figure:nth-child(-n+4) { grid-column: span 6; }
.print-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 11. Free pilot ---------- */
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.prose .pilot-sub { margin: 32px 0 0; color: var(--ink); text-wrap: wrap; }   /* the bold sub-title line that closes the left column */
.ticks li { position: relative; padding-left: 34px; font-size: var(--fs-lg); line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border: 1.5px solid var(--ink); border-radius: 4px; }
.ticks li::after { content: ""; position: absolute; left: 6.5px; top: 6px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(40deg); }

.form { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-2), 0 0 0 1px var(--line); padding: 32px; display: grid; gap: 16px; }
.form h3 { font-size: var(--fs-xl); margin-bottom: 4px; }
.form label, .modal-form label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.form input, .form textarea, .modal-form input {
  font: inherit; color: inherit; border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 0 14px;
  font-size: 16px; background: #fff; width: 100%; height: 48px;   /* 16px stops iOS zooming the page on focus */
}
.form textarea { height: auto; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus, .modal-form input:focus { outline: none; border-color: var(--ink); }
.form input[aria-invalid="true"], .modal-form input[aria-invalid="true"] { border-color: var(--warn); }
.form .btn, .modal-form .btn { margin-top: 4px; width: 100%; }
.form-error { color: var(--warn); font-size: var(--fs-sm); margin: 0; }
.privacy-note { font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-3); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { align-content: start; }
.form-done p { font-size: var(--fs-lg); color: var(--ink-2); }

/* ---------- "Try the demo" dialog ---------- */
.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: var(--shadow-3); color: var(--ink); }
.modal::backdrop { background: var(--scrim-strong); }
.modal-form { padding: 36px 32px 30px; display: grid; gap: 16px; }
.modal-lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); margin: -6px 0 4px; }
.modal-lead strong { color: var(--ink); overflow-wrap: anywhere; }
.modal-phone { display: none; background: var(--yellow-wash); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); margin: 0; }
.modal-alt { font-size: var(--fs-sm); color: var(--ink-2); margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.modal-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.modal-x:hover { background: var(--paper-2); }

/* ---------- Footer (the .kids footer, in ink) ---------- */
.ftr { background: var(--ink); color: #fff; padding: 72px 0 48px; }
.ftr a { color: #fff; }
.ftr-top { display: flex; align-items: center; gap: 0 18px; flex-wrap: wrap; }
.ftr-top p { margin: 0; }
.ftr-tag { color: #fff; padding-right: 18px; border-right: 1px solid rgba(255, 255, 255, .6); line-height: 1.5; }
.ftr-desc { color: var(--on-ink-2); font-size: var(--fs-lg); }
.ftr-logo { width: 88px; height: auto; margin: 44px 0 52px; }
.ftr-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
/* Copyright and Privacy share one line. */
.ftr-legal { color: var(--on-ink-dim); display: flex; align-items: center; flex-wrap: wrap; gap: 0 20px; }
.ftr-legal p { margin: 0; }
.ftr-legal a:not(.ftr-accent) { color: inherit; text-decoration: none; text-underline-offset: 3px; display: inline-block; padding: 6px 0; }
.ftr-legal a:not(.ftr-accent):hover { text-decoration: underline; }
.ftr-accent { color: var(--red-salmon) !important; text-decoration: none; }
.ftr-accent:hover { text-decoration: underline; text-underline-offset: 3px; }
.ftr-contact { display: flex; align-items: center; gap: 4px; }   /* the icons carry their own 44px hit area */
.ftr-mail { font-weight: var(--fw-bold); font-size: var(--fs-lg); margin-right: 12px; }
.ftr-icon { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; color: #fff; border-radius: 8px; }
.ftr-icon:hover { color: var(--red-salmon); }

/* ---------- Password page and small pages ---------- */
.gate { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - var(--site-hdr-h)); }
.gate-brand { background: var(--ink); color: #fff; padding: 64px 72px; display: grid; place-content: center; }
.gate-logo { width: 170px; margin-bottom: 40px; }
.gate-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 30em; }
.gate-lines li { position: relative; padding-left: 30px; font-size: var(--fs-lg); line-height: 1.4; }
.gate-lines li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 2px; background: var(--c-strong); }
.gate-panel { display: grid; place-items: center; padding: 48px var(--gutter); background: var(--paper); }
.gate-form { width: 100%; max-width: 400px; display: grid; gap: 16px; }
.gate-form h1 { font-size: var(--fs-2xl); margin-bottom: 8px; }
.gate-form label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.gate-form input { font: inherit; color: inherit; height: 48px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); padding: 0 14px; font-size: var(--fs-md); width: 100%; }
.gate-form input:focus { outline: none; border-color: var(--ink); }
.gate-form .btn { margin-top: 8px; }
.gate-phone { display: none; background: var(--yellow-wash); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); }
.gate-phone strong { display: block; margin-bottom: 2px; }
.gate-sent { background: var(--green-wash); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-sm); margin: 0; }

.page { padding: 72px 0 96px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: var(--fs-h2); margin-bottom: 24px; }
.page h2 { font-size: var(--fs-xl); margin: 36px 0 10px; }
.page p, .page li { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.page ul { padding-left: 20px; }
.page strong { color: var(--ink); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1040px) {
  .pack-grid > .pack, .pack-grid > .pack:nth-child(4n + 1):nth-last-child(3), .pack-grid > .pack:nth-child(4n + 1):nth-last-child(3) ~ .pack { grid-column: span 6; }
  .pack-grid > .pack:last-child:nth-child(odd) { grid-column: span 12; }
  .pack-top { min-height: 0; }
}
@media (max-width: 960px) {
  .hdr-strap { display: none; }   /* four links and the button need the room */
  /* One column: points, the two text blocks, then the button last. */
  .hero-grid { grid-template-columns: 1fr; gap: 0; margin-top: 52px; padding-inline: 0; }
  .hero-list, .hero-side { display: contents; }
  .hero-lead { margin-top: 28px; }
  .hero-cta { order: 1; margin-top: 30px; }
  .tags { grid-template-columns: 1fr; gap: 14px; }
  /* One column: the three card-type lines and the YouTube line share a left text edge (Stuart, 20 Nov 2026). */
  .tags li, .yt-note { display: grid; grid-template-columns: 60px 1fr; gap: 0 16px; align-items: start; }
  .tags .pill, .yt-link { justify-self: start; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .cols > div:last-child { padding-top: 1em; }
  .duo, .pilot-grid { grid-template-columns: 1fr; gap: 44px; }
  .duo-flip .duo-media { order: 0; }
  /* 100 years: title, photo, reasons, sign-off. */
  .hundred { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "body" "close"; grid-template-rows: none; }
  .hundred-photo { margin: 8px 0 32px; aspect-ratio: 4 / 3; max-width: 440px; }
  .hundred-title { text-wrap: balance; }
  .ftr-tag { border-right: 0; padding-right: 0; }
  .ftr-top { display: block; }
  .ftr-contact { flex-wrap: wrap; }
  .ftr-mail { flex-basis: 100%; margin: 0; padding: 9px 0; }   /* 44px tall to tap */
  .ftr-mail + .ftr-icon { margin-left: -8px; }   /* line the first icon up with the text above it */
  /* Stuart, 20 Nov 2026: on phones the email and icons come first, then copyright on the left and Privacy on the right. */
  .ftr-contact { order: -1; flex: 0 0 100%; }
  .ftr-legal { flex: 0 0 100%; justify-content: space-between; }
  .ftr-legal p:last-child { margin-left: auto; }   /* stays on the right even if a very narrow screen wraps it */
  .ftr-legal a:not(.ftr-accent) { padding: 11px 0; }
  .gate { grid-template-columns: 1fr; min-height: 0; }
  .gate-brand { padding: 48px var(--gutter); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hdr-strap, .hdr-nav { display: none; }
  .hdr .btn-primary { margin-left: auto; }
  .hero { padding: 44px 0 64px; }
  .shots { margin-top: 36px; }
  .shots-frame { border-radius: var(--r-md); }
  .shots-bar { display: none; }
  .hero-grid { margin-top: 40px; }
  .hero-close { margin-top: 26px; }
  .btn-lg { width: 100%; }
  .sec { padding: 64px 0; }
  .sec .t3, .sec .t2 { margin-bottom: 18px; }
  .tags { margin: 26px 0; padding: 22px 0; }
  .pack-grid { gap: 14px; margin-top: 36px; }
  .pack-grid > .pack, .pack-grid > .pack:nth-child(4n + 1):nth-last-child(3), .pack-grid > .pack:nth-child(4n + 1):nth-last-child(3) ~ .pack { grid-column: span 12; }
  /* On a phone each pack is a compact row of its own: colour block on top, description under. */
  .pack-top { padding: 14px 16px 16px; }
  .pack-title { margin-top: 6px; }
  .pack-desc { padding: 14px 16px 18px; }
  .hundred-photo { aspect-ratio: 1; }
  .plan-logo { width: 88px; }
  /* 49px holds the widest pill (Think); a 9px gap keeps each line count at 430px wide. */
  .tags li, .yt-note { grid-template-columns: 49px 1fr; gap: 0 9px; }
  .yt-logo { width: 44px; margin-top: 4px; }
  .hundred-close { margin-top: 22px; }
  .video-frame { margin-top: 28px; border-radius: var(--r-md); }
  .print-grid { gap: 10px; margin-top: 28px; }
  .print-grid figure, .print-grid figure:nth-child(-n+4) { grid-column: span 6; }
  .print-grid figure:nth-child(3n + 1) { grid-column: span 12; }   /* one wide, then two side by side, and again */
  .form { padding: 24px 20px; }
  .modal-form { padding: 32px 22px 24px; }
  .modal-phone { display: block; }
  .ftr { padding: 56px 0 40px; }
  .ftr-logo { margin: 36px 0 40px; }
  .gate-phone { display: block; }
}
