/* ==========================================================================
   Nudge Fitness: the skin over the shared funnel styles (base.css), and the flow.
   From Nudge's own site (nudge-fitness.com) and email theme: petrol #09394F rooms, cyan #29B8D8 for buttons
   and accents with petrol text on them, amber #E8A020 as a second accent, Syne 400 for headings (sentence case,
   tight tracking), Inter for everything else, and a pale blue-white for the light rooms.
   ========================================================================== */
:root {
  --olive: #09394F;
  --olive-deep: #062a3b;
  --olive-soft: #6B7F8C;
  --ink: #09394F;
  --ink-deep: #062a3b;
  --sage: #29B8D8;
  --gold: #E8A020;
  --sand: #e4eff4;
  --mist: #e3eef3;
  --paper: #F5F9FB;
  --body: #2F4A5A;
  --muted: #5d7280;
  --line: #cfe0e8;
  --ice: #29B8D8;
  --ice-deep: #1B8BA6;
  --coal: #0c4560;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --title: 'Syne', 'Arial Black', sans-serif;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 4px 14px 0 rgba(0, 0, 0, .14);
  --shadow-lg: 0 18px 44px -14px rgba(0, 0, 0, .5);
}
body { background: var(--paper); }
h1, h2 { font-family: var(--title); font-weight: 800; text-transform: none; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { line-height: 1.15; }
h3 { font-weight: 700; }
.hero h1 .hl { color: var(--ice-deep); }
.on-dark h1 .hl, .tone-ink h1 .hl, .hero.tone-ink h1 .hl { color: var(--ice); }
.eyebrow, .kicker { font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.kicker .n { background: var(--ice); color: #09394F; }

/* buttons: gold with black text, as on their website */
.btn { font-family: var(--title); font-weight: 800; letter-spacing: 0; text-transform: none; border-radius: 10px; background: var(--ice); color: #09394F; }
.btn:hover { background: #5ccbe3; color: #09394F; }
.btn.ghost { background: transparent; color: var(--ink); }
.on-dark .btn:not(.ghost), .tone-ink .btn:not(.ghost), .fx__panel .btn:not(.ghost), .cta-strip .btn { background: var(--ice); color: #09394F; }
.on-dark .btn.ghost, .tone-ink .btn.ghost { color: #fff; }
@keyframes ctcGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(41, 184, 216, 0); } 50% { box-shadow: 0 0 0 7px rgba(41, 184, 216, .22); } }
@keyframes ctcGlowLight { 0%, 100% { box-shadow: 0 0 0 0 rgba(41, 184, 216, 0); } 50% { box-shadow: 0 0 0 8px rgba(41, 184, 216, .3); } }
.on-dark .btn.glow, .tone-ink .btn.glow, .fx__panel .btn.glow { animation-name: ctcGlowLight; }

/* header: black, with the logo */
.top { background: rgba(9, 57, 79, .97); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.top .brand { display: flex; align-items: center; text-decoration: none; }
.top .brand img { height: 52px; width: auto; }
.foot .logo { height: 96px; width: auto; }

/* rooms */
.tone-ink { background: var(--ink); }
.tone-olive { background: var(--coal); }
.foot { background: var(--ink-deep); }
.fx__panel { background: #072f42; border: 1px solid rgba(41, 184, 216, .25); }
.fx__back { background: rgba(0, 0, 0, .82); }
.hero.tone-ink { color: rgba(255, 255, 255, .86); }
.hero.tone-ink h1, .hero.tone-ink .eyebrow { color: #fff; }
.hero.tone-ink .eyebrow { color: var(--ice); }
.hero.tone-ink .lede, .hero.tone-ink .btn-note { color: rgba(255, 255, 255, .78); }
.hero.tone-ink .scarcity { background: rgba(255, 255, 255, .06); border-color: rgba(41, 184, 216, .35); color: #fff; }
.hero.tone-ink .spaces { color: #fff !important; }
.hero.tone-ink .trust-grid b { color: #fff; }
.hero.tone-ink .trust-grid span { color: rgba(255, 255, 255, .7); }
.trust i { background: var(--ice); }

/* films and reviews */
.films3 .film, .wall .film { background: var(--coal); }
.on-dark .review p, .tone-ink .review p { color: var(--body); }
.on-dark .review .who, .tone-ink .review .who { color: var(--muted); }
.review .stars { color: var(--ice-deep); }
.films4 { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .films4 { grid-template-columns: repeat(4, 1fr); } }
.films4 .filmcard { margin: 0; }
/* The tile owns the 4:5 shape (the posters are 4:5): without it the <img> height attribute won and
   each film stood about 283x800, a sliver of the reel (Nov 2026). */
.films4 .film { width: 100%; aspect-ratio: 4 / 5; }
.films4 .film img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 0; }
.films4 figcaption { color: rgba(255, 255, 255, .82); font-size: .9rem; margin-top: 10px; line-height: 1.45; }
.films4 figcaption b { display: block; color: #fff; font-size: .98rem; }

/* the hero film (an ad page's own reel), a 3:4 tile with a play mark */
.hero-film { position: relative; display: block; width: 100%; max-width: 420px; margin: 0 auto; border: 0; padding: 0;
  border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: var(--coal); box-shadow: var(--shadow-lg); }
.hero-film img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.hero-film::after { content: ''; position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px;
  border-radius: 50%; background: rgba(41, 184, 216, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%230f0f0f'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat; }
.hero-film span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; text-align: left; color: #fff; font-size: .9rem;
  background: linear-gradient(rgba(6, 42, 59, 0), rgba(6, 42, 59, .97) 42%); padding-top: 44px; font-weight: 600; }
.hero-photo { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* the owner */
.letter__shot img { aspect-ratio: 1 / 1; object-fit: cover; }

/* two ways in */
.two-ways { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 30px; }
@media (min-width: 780px) { .two-ways { grid-template-columns: 1fr 1fr; } }
.two-ways figure { margin: 0; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.two-ways img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.two-ways figcaption { padding: 18px 22px 22px; }
.two-ways figcaption b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.two-ways figcaption span { color: var(--muted); }

/* FAQ */
.qa { max-width: 760px; margin: 28px auto 0; }
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::after { content: '+'; color: var(--ice-deep); font-size: 1.3rem; line-height: 1; }
.qa details[open] summary::after { content: '\2013'; }
.qa p { margin: 10px 0 0; color: var(--muted); }

/* ======================================================================== the flow */
.fx__panel { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; }
.flow__head { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.fx__slot .flow__head { margin-right: 46px; }   /* room for the lightbox's close button */
html:not(.flow-js) .flow__head { display: none; }
.flow__bar { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.flow__bar i { display: block; height: 100%; background: var(--ice); transform-origin: 0 50%; transform: scaleX(0); transition: transform .35s var(--mk-settle); }
.flow__count { color: rgba(255, 255, 255, .6); font-size: .82rem; min-width: 3.5em; text-align: right; }
.flow__back { background: none; border: 0; color: rgba(255, 255, 255, .7); font: inherit; font-size: .88rem; cursor: pointer; padding: 0; }
.flow__back:hover { color: #fff; }
.nf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.nf legend, .nf h3 { color: #fff; font-family: var(--title); font-size: clamp(1.35rem, 4.6vw, 1.75rem);
  line-height: 1.2; margin: 0 0 18px; padding: 0; outline: none; font-weight: 800; }
.nf .flow__sub { color: rgba(255, 255, 255, .72); margin: -8px 0 18px; font-size: .95rem; }
.flow__opts { display: grid; gap: 10px; }
.flow__opt { position: relative; display: block; cursor: pointer; }
.flow__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.flow__opt span { display: block; padding: 15px 18px; border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .18); color: #fff;
  background: rgba(255, 255, 255, .04); font-weight: 500; transition: border-color .15s, background .15s; }
@media (hover: hover) { .flow__opt:hover span { border-color: rgba(41, 184, 216, .7); } }
.flow__opt input:checked + span { border-color: var(--ice); background: rgba(41, 184, 216, .16); }
.flow__opt input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.nf .field label { color: rgba(255, 255, 255, .7); }
.nf .field input { background: #1c1c1c; border-color: rgba(255, 255, 255, .16); color: #fff; }
.nf .legal { color: rgba(255, 255, 255, .5); font-size: .78rem; }
.flow__err, .book__err { color: #ffb4a8; }
.flow__widget iframe { width: 100%; height: 620px; border: 0; border-radius: var(--r); background: #fff; }
.flow__skip { display: inline-block; margin-top: 14px; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.nf .book__day { color: #fff; border-color: rgba(255, 255, 255, .2); background: transparent; }
.nf .book__day small { color: rgba(255, 255, 255, .6); }
.nf .book__time { color: #fff; border-color: rgba(255, 255, 255, .2); background: transparent; }
.nf .book__day[aria-pressed="true"], .nf .book__time:hover { background: var(--ice); border-color: var(--ice); color: #09394F; }
.nf .book__day[aria-pressed="true"] small { color: #09394F; }
/* the form on the page (#start, under the hero): a card, one step at a time with script, every step showing without */
#start .nudge-flow { background: var(--ink); padding: 26px; border-radius: var(--r-lg); }
#start .nudge-flow [data-step] { margin-bottom: 22px; }

/* the four numbers on the black hero: dark cells, gold rules */
.hero.tone-ink .trust-grid { background: transparent; border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.hero.tone-ink .trust-grid > div { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .12); }

/* Gentle urgency (Nov 2026, like CTC's /welcome): a strip above the header, a line under the hero button. */
.soft-strip { background: #0b0d11; color: #fff; font-size: .88rem; text-align: center; padding: 9px 16px; border-bottom: 2px solid var(--ice); }
.soft-strip b { color: var(--ice); }
.soft-strip .sep { opacity: .45; margin: 0 8px; }
@media (max-width: 520px) { .soft-strip .more { display: none; } }
.btn-note .soft-left { color: var(--ice); font-weight: 700; }

/* Hero alignment (5 Nov 2026, as Armoury): the film's top lines up with the headline and sits flush right. */
@media (min-width: 940px) {
  .hero-lp .hero-grid { align-items: start; }
  .hero-lp .hero-media { display: flex; justify-content: flex-end; padding-top: 38px; }
  .hero-lp .hero-media > * { margin: 0; }
}
/* "You're all set": their win in a line, then a member film like them (Nov 2026). */
.flow__win { font-weight: 600; color: #fff !important; }
.flow__next { font-size: .95rem; padding-left: 12px; border-left: 3px solid var(--ice); }
.flow__film { margin: 16px 0 0; }
.flow__frame { position: relative; width: 100%; max-width: 280px; aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #000;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .7); }
.flow__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.flow__play { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .45)); }
.flow__play span { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--ice); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.flow__play svg { width: 28px; height: 28px; margin-left: 4px; fill: #111; }
.flow__play[hidden] { display: none; }
.flow__film figcaption { max-width: 280px; margin: 12px auto 0; color: rgba(255, 255, 255, .85); font-size: .95rem; line-height: 1.45; }

/* The call step (Nov 2026, Matt: "isn't SUPER mobile optimised, especially when there are lots of times"). Days are a strip
   you swipe; times sit under them in morning / afternoon / evening, four across; "More times" opens the quarter hours; the
   skip link stays at the bottom of the panel. */
.nf .book__days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -2px 6px; padding: 2px 2px 10px;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.nf .book__days::-webkit-scrollbar { display: none; }
.nf .book__day { flex: 0 0 auto; scroll-snap-align: start; min-width: 58px; padding: 8px 6px; border-radius: 12px; border-width: 1px;
  display: grid; justify-items: center; gap: 1px; line-height: 1.1; font: inherit; cursor: pointer; }
.nf .book__day small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.nf .book__day b { font-size: 1.25rem; font-weight: 700; }
.nf .book__times { display: block; margin: 0 0 8px; }
.book__group { margin: 10px 0 8px; color: rgba(255, 255, 255, .55); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.book__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 340px) { .book__grid { grid-template-columns: repeat(3, 1fr); } }
.nf .book__time { min-height: 44px; padding: 8px 4px; border-radius: 10px; border-width: 1px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
.nf .book__time[hidden] { display: none; }
.nf .book__time:disabled { opacity: .5; }
.book__more { display: block; width: 100%; margin: 12px 0 0; min-height: 44px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 10px;
  background: transparent; color: #fff; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.book__more:hover { border-color: var(--ice); color: var(--ice); }
.flow__foot { position: sticky; bottom: calc(-1 * clamp(26px, 4vw, 40px)); margin: 14px calc(-1 * clamp(26px, 4vw, 40px)) calc(-1 * clamp(26px, 4vw, 40px));
  padding: 12px clamp(26px, 4vw, 40px) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #072f42 26%); text-align: center; }
.flow__foot .flow__skip { margin: 0; }
.nf .flow__call h3 { margin-bottom: 6px; }
.nf .flow__call .flow__sub { margin: 0 0 14px; }

/* On a phone the flow is a full-screen sheet: no gutter, no wasted padding, the bottom kept clear of the home bar. */
@media (max-width: 600px) {
  .fx { padding: 0; place-items: stretch; }
  .fx__panel { max-width: none; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom)); }
  .fx__x { top: calc(8px + env(safe-area-inset-top)); right: 8px; }
  .flow__head { margin-bottom: 14px; min-height: 38px; }
  .nf legend, .nf h3 { font-size: 1.3rem; margin-bottom: 14px; }
  .flow__opt span { padding: 13px 16px; }
  .flow__foot { bottom: calc(-18px - env(safe-area-inset-bottom)); margin: 14px -16px calc(-18px - env(safe-area-inset-bottom)); padding-left: 16px; padding-right: 16px; }
}
.nf section[data-step] { padding: 0; }

/* 9 Nov 2026: the questions fit a small phone without scrolling (six answers on an iPhone SE), and no answer looks picked
   before it's tapped (touch screens keep :hover on the spot just tapped, which is where the next question's first answer sits). */
@media (max-width: 600px) {
  .nf legend, .nf h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 12px; }
  .flow__opts { gap: 8px; }
  .flow__opt span { padding: 11px 14px; font-size: .95rem; line-height: 1.3; }
}

/* Details first (18 Nov 2026): the two forms read as one card in #start; the thanks line over the first question. */
#start .nudge-flow .nf { background: none; padding: 0; }
.nf .flow__hi { display: block; color: var(--ice); font-family: var(--body, inherit); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.nf .flow__hi[hidden] { display: none; }

/* 24 Nov 2026: the offer in the hero, who it's for, what you get, and the places line in place of the footer. */
.hero-offer { margin: 14px 0 0; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px;
  background: rgba(255,255,255,.06); color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.45; max-width: 34rem; }
.hero-offer b { color: #fff; }
.ticks { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.ticks li { position: relative; padding: 14px 16px 14px 50px; background: #fff; border-radius: 14px; box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
  font-weight: 600; color: var(--ink); }
.ticks li::before { content: '✓'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px;
  border-radius: 50%; background: var(--ice, #29B8D8); color: #fff; font-size: .85rem; display: grid; place-items: center; }
.who-line { text-align: center; max-width: 560px; margin: 22px auto 0; }
.feats { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 720px) { .feats { grid-template-columns: 1fr 1fr; } }
.feat { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06)); }
.feat__i { font-size: 1.8rem; line-height: 1; }
.feat h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--ink); }
.feat p { margin: 0; }
.foot-cta { text-align: center; padding: 52px 0 26px; }
.foot-cta .hero-scarce { justify-content: center; margin: 0 0 20px; color: #fff; font-weight: 700; }
.foot-cta .base { margin-top: 30px; font-size: .8rem; opacity: .65; }
.hero-offer { margin-top: 10px; padding: 8px 12px; font-size: .88rem; line-height: 1.4; }

/* Syne, never bold (Matt, 28 Nov 2026: the website and these pages both use Syne at its regular weight). Every heading,
   button, legend and title set in Syne is 400, and only 400 loads, so the browser never fakes a bold. */
h1, h2, .btn, .nf legend, .nf h3, .nsquiz__title { font-weight: 400 !important; font-synthesis: none; }
.nsquiz__title { font-family: var(--title); }
