/* Doc Fitness skin for the ad pages, from their brand identity (AI Database, Drive "Brand Guidelines, logos & assets",
   We Are Fit, 2025): Dark #002828, Light #F3F3F3, Energy #1EFFA0 (the hero colour, dark text on it), Aqua-grey #B4C8C8,
   Dusty teal #5A8787. Type is Neue Montreal; the licensed web font isn't in the folder, so the stack falls back to
   Helvetica Neue (the database's document font), then Helvetica and Arial. Bold caps for buttons, as in the brand deck.
   Loaded after base.css, book.css and motion.css. */
:root {
  --olive: #002828;
  --olive-deep: #001b1b;
  --olive-soft: #5a8787;
  --ink: #002828;
  --ink-deep: #001b1b;
  --sage: #1effa0;
  --gold: #5a8787;
  --sand: #e4ecec;
  --mist: #dbe6e6;
  --paper: #f3f3f3;
  --body: #1d3b3b;
  --muted: #3f6a6a;
  --line: #b4c8c8;
  --ice: #1effa0;
  --ice-deep: #0b7a52;
  --coal: #5a8787;
  --font: 'Neue Montreal', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --title: 'Neue Montreal', 'Helvetica Neue', Helvetica, Arial, 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: 700; text-transform: none; letter-spacing: -.015em; }
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: #002828; }

/* buttons: gold with black text, as on their website */
.btn { font-family: var(--title); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 10px; background: var(--ice); color: #002828; }
.btn:hover { background: #6dffbd; color: #002828; }
.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: #002828; }
.on-dark .btn.ghost, .tone-ink .btn.ghost { color: #fff; }
@keyframes ctcGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 255, 160, 0); } 50% { box-shadow: 0 0 0 7px rgba(30, 255, 160, .22); } }
@keyframes ctcGlowLight { 0%, 100% { box-shadow: 0 0 0 0 rgba(30, 255, 160, 0); } 50% { box-shadow: 0 0 0 8px rgba(30, 255, 160, .3); } }
.on-dark .btn.glow, .tone-ink .btn.glow, .fx__panel .btn.glow { animation-name: ctcGlowLight; }

/* header: black, with the logo */
.top { background: rgba(0, 40, 40, .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: 26px; width: auto; }
@media (max-width: 520px) { .top .brand img { height: 18px; } }
.foot .logo { height: 26px; width: auto; }

/* rooms */
.tone-ink { background: var(--ink); }
.tone-olive { background: var(--coal); }
.foot { background: var(--ink-deep); }
.fx__panel { background: #003535; border: 1px solid rgba(30, 255, 160, .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(30, 255, 160, .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(30, 255, 160, .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 46px 18px 0; }
.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; }
#docfit-quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
#docfit-quiz legend, #docfit-quiz 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; }
#docfit-quiz .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(30, 255, 160, .7); } }
.flow__opt input:checked + span { border-color: var(--ice); background: rgba(30, 255, 160, .16); }
.flow__opt input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
#docfit-quiz .field label { color: rgba(255, 255, 255, .7); }
#docfit-quiz .field input { background: #013b3b; border-color: rgba(255, 255, 255, .16); color: #fff; }
#docfit-quiz .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; }
#docfit-quiz .book__day { color: #fff; border-color: rgba(255, 255, 255, .2); background: transparent; }
#docfit-quiz .book__day small { color: rgba(255, 255, 255, .6); }
#docfit-quiz .book__time { color: #fff; border-color: rgba(255, 255, 255, .2); background: transparent; }
#docfit-quiz .book__day[aria-pressed="true"], #docfit-quiz .book__time:hover { background: var(--ice); border-color: var(--ice); color: #002828; }
#docfit-quiz .book__day[aria-pressed="true"] small { color: #002828; }
/* no lightbox (no script): the form sits in #start as an ordinary form, every step showing */
#start #docfit-quiz { background: var(--ink); padding: 26px; border-radius: var(--r-lg); }
#start #docfit-quiz [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: #001b1b; 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: #002828; }
.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. */
#docfit-quiz .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); }
#docfit-quiz .book__days::-webkit-scrollbar { display: none; }
#docfit-quiz .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; }
#docfit-quiz .book__day small { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
#docfit-quiz .book__day b { font-size: 1.25rem; font-weight: 700; }
#docfit-quiz .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); } }
#docfit-quiz .book__time { min-height: 44px; padding: 8px 4px; border-radius: 10px; border-width: 1px; font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; }
#docfit-quiz .book__time[hidden] { display: none; }
#docfit-quiz .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, #003535 26%); text-align: center; }
.flow__foot .flow__skip { margin: 0; }
#docfit-quiz .flow__call h3 { margin-bottom: 6px; }
#docfit-quiz .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; }
  #docfit-quiz legend, #docfit-quiz 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; }
}
#docfit-quiz 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) {
  #docfit-quiz legend, #docfit-quiz 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; }
}

/* The ad > landing page hero (client-sites/_shared/HERO.md, after Hybrid Fit) */
.hx-offer { border-left: 4px solid var(--ice); background: rgba(255, 255, 255, .06); padding: 11px 14px; margin: 0 0 16px; font-size: .95rem; line-height: 1.45; color: rgba(255, 255, 255, .9); max-width: 36em; }
.hx-offer strong { color: #fff; }
.hx-scarce { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-weight: 700; font-size: .92rem; color: #fff; }
.hx-scarce .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); flex: none; }
.hero-lp .btn-note { margin-top: 4px; }
.hx-quote { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 34em; }
.hx-quote blockquote { margin: 0; font-style: italic; font-size: .97rem; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.hx-quote figcaption { margin-top: 6px; color: var(--ice); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
header.top .btn { transition: opacity .2s; }
header.top .btn.hx-hide { opacity: 0; visibility: hidden; }
