/* Flex Gym public site. Brand tokens match app/resources/css/app.css (dark). */

/* Self-hosted fonts (latin subset, SIL Open Font License). No third-party request blocks the first paint. */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../assets/fonts/archivo-latin-var.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../assets/fonts/barlow-condensed-600.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../assets/fonts/barlow-condensed-700.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap;
  src: url(../assets/fonts/barlow-condensed-800i.woff2) format('woff2');
}
:root {
  --ground: #121417;
  --panel: #1b1e23;
  --raise: #24282e;
  --line: #2c3037;
  --ink: #f4f6f8;
  --mute: #9aa3ad;
  --soft: #c9d0d7;
  --paid: #34c172;
  --dues: #eda846;
  --brand: #d7141f;
  --brand-deep: #b5101a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-sans: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Archivo', ui-sans-serif, sans-serif;
  --gutter: clamp(20px, 6vw, 112px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
::selection { background: rgba(215, 20, 31, .45); color: #fff; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; z-index: 50; left: 12px; top: 12px;
  padding: 10px 14px; background: var(--ink); color: var(--ground);
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- Header ---------- */
.top {
  position: fixed; z-index: 20; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: linear-gradient(rgba(18, 20, 23, .78), rgba(18, 20, 23, 0));
}
.top-logo { display: block; padding: 6px 0; }
.top-logo img { width: 84px; height: auto; }
.rail { position: absolute; inset: 0 0 auto; height: 2px; }
.rail i { display: block; height: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); }

/* Slanted buttons echo the logo's 12-degree skew */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px;
  background: var(--brand); color: #fff;
  font: 700 1.125rem/1 var(--font-display); letter-spacing: .02em;
  text-decoration: none;
  transform: skewX(-12deg);
  transition: background-color .2s var(--ease-out), transform .16s var(--ease-out);
  touch-action: manipulation;
  user-select: none;
}
.btn > * { transform: skewX(12deg); }
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: skewX(-12deg) scale(.97); }
.btn:focus-visible { outline-color: #fff; outline-offset: 3px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 1.0625rem; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost { background: rgba(18, 20, 23, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost .wa-ico { fill: none; }
.top-actions .btn { white-space: nowrap; }
@media (max-width: 480px) { .btn-ghost .wa-ico { display: none; } .top-actions { gap: 8px; } .top-actions .btn-sm { padding: 0 12px; } }
.btn-lg { min-height: 58px; padding: 0 26px; font-size: 1.375rem; margin-top: 28px; }
.wa-ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------- Section index (desktop) ---------- */
.index { display: none; }
@media (min-width: 1100px) {
  .index {
    display: block; position: fixed; z-index: 15; right: 28px; top: 50%;
    transform: translateY(-50%);
  }
  .index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; justify-items: end; }
  .index a {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; font-size: .8125rem; color: var(--mute); text-decoration: none;
    transition: color .2s var(--ease-out);
  }
  .index a::after {
    content: ""; width: 18px; height: 2px; background: currentColor; opacity: .5;
    transform-origin: 100% 50%; transform: scaleX(.5);
    transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background-color .3s;
  }
  .index a:hover { color: var(--ink); }
  .index a[aria-current="true"] { color: var(--ink); }
  .index a[aria-current="true"]::after { background: var(--brand); opacity: 1; transform: none; }
}

/* ---------- Chapters: static layout (no JS or reduced motion) ---------- */
.ch { position: relative; }
.ch-bg { position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--ground); }
.ch-bg-2 { display: none; }
.ch-bg picture, .ch-bg img { width: 100%; height: 100%; }
.ch-bg img { object-fit: cover; }
.ch-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,20,23,.6) 0%, rgba(18,20,23,0) 22%, rgba(18,20,23,.08) 48%, rgba(18,20,23,.9) 88%, var(--ground) 100%);
}
@media (min-width: 900px) {
  .ch-bg::after {
    background:
      linear-gradient(90deg, rgba(18,20,23,.88) 0%, rgba(18,20,23,.45) 38%, rgba(18,20,23,0) 64%),
      linear-gradient(180deg, rgba(18,20,23,.55) 0%, rgba(18,20,23,0) 20%, rgba(18,20,23,0) 70%, rgba(18,20,23,.75) 100%);
  }
}
.ch-hero .ch-bg { background: #0b0c0e url("data:image/webp;base64,UklGRlwAAABXRUJQVlA4IFAAAABQBACdASogABIAPu1kqU2ppaOiMAgBMB2JaQDN/B6Qdr1LtKl515DVtEMAAP70MsdWGLh4Apfd/wR/T5+0tE1ICgUeTHKGHWLY1j6nWsV8AA==") center / cover; }
.ch-hero .ch-bg::after {
  background: radial-gradient(120% 80% at 50% 45%, rgba(18,20,23,.15) 0%, rgba(18,20,23,.55) 60%, rgba(18,20,23,.92) 100%);
}

.ch-pin {
  position: relative; z-index: 2; overflow: clip;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  padding: 96px var(--gutter) calc(40px + env(safe-area-inset-bottom));
}
.copy { grid-row: 2; max-width: 40rem; }
.prop { grid-row: 1; align-self: center; justify-self: center; }

@media (min-width: 900px) {
  .ch-pin {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    padding: 96px calc(var(--gutter) + 40px) 64px var(--gutter);
  }
  .copy { grid-row: 1; grid-column: 1; align-self: end; margin-bottom: 9vh; }
  .ch-app .phone { height: min(72svh, 660px); }
  .prop { grid-row: 1; grid-column: 2; }
}

/* ---------- Type ---------- */
h2 {
  margin: 0 0 20px;
  font: italic 800 clamp(3.1rem, 13.5vw, 8.25rem)/.84 var(--font-display);
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.ln { display: block; overflow: hidden; padding: 0 .12em .04em 0; margin-bottom: -.04em; }
.ln > span {
  display: block;
  --r: clamp(0, 1 - (var(--e, 1) - .6 - var(--i) * .08) * 3.4, 1);
  transform: translate3d(0, calc(var(--r) * 108%), 0);
}
.copy > p {
  max-width: 36ch;
  color: var(--soft);
  font-size: clamp(1.0625rem, .55vw + .9rem, 1.3125rem);
  line-height: 1.5;
  --pe: clamp(0, (var(--e, 1) - .78) * 5, 1);
  opacity: var(--pe);
  transform: translate3d(0, calc((1 - var(--pe)) * 18px), 0);
}

/* ---------- Hero ---------- */
.ch-hero .ch-pin { display: block; padding: 0; }
.hero-mark {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0 var(--gutter) 18svh;
  pointer-events: none;
}
.hero-logo {
  margin: 0; width: min(84vw, 760px);
  transform-origin: 50% 36%;
}
.hero-logo svg { width: 100%; height: auto; overflow: visible; transform-origin: 50% 40%; }
/* The shadow is an SVG filter inside the mark (painted once), not a CSS filter: a CSS drop-shadow is
   re-blurred by the GPU at every zoom step of the fly-through and dropped frames on desktop. */
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: calc(15svh + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 6px;
  padding: 0 var(--gutter); text-align: center;
}
.hero-city {
  font: 600 clamp(1.5rem, 4vw, 2.25rem)/1 var(--font-display);
  letter-spacing: .32em; text-transform: uppercase; padding-left: .32em;
}
.hero-line { font: 500 clamp(1.0625rem, 1.2vw + .7rem, 1.375rem)/1.4 var(--font-sans); color: var(--ink); margin-top: 10px; }
.hero-sub { color: var(--mute); font-size: .9375rem; }
.cue {
  position: absolute; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 10px;
  transform: translateX(-50%);
  color: var(--mute); font-size: .8125rem;
}
.cue i { width: 2px; height: 34px; background: linear-gradient(var(--brand), transparent); transform-origin: 50% 0; }

/* One load moment, transform + opacity only. Lead: the whole mark grows into place (one layer, one move).
   Support: the three lines rise after it with shrinking gaps. Decoration: the cue only fades. */
.motion .hero-logo svg { animation: mark-in 1s var(--ease-out) both; }
.motion .hero-copy > * { animation: fade-up .7s var(--ease-out) both; }
.motion .hero-copy > :nth-child(1) { animation-delay: .25s; }
.motion .hero-copy > :nth-child(2) { animation-delay: .35s; --rise: 10px; }
.motion .hero-copy > :nth-child(3) { animation-delay: .43s; --rise: 8px; }
.motion .cue { animation: fade-in .6s ease-out .9s both; }
.motion .cue i { animation: cue 1.8s var(--ease-out) 1.6s infinite; }
@keyframes mark-in { from { opacity: 0; transform: scale(.9); } 40% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, var(--rise, 14px), 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Floor: ghost word ---------- */
.ghost {
  position: absolute; z-index: -1; left: 0; top: 14svh;
  margin: 0; white-space: nowrap; pointer-events: none;
  font: italic 800 clamp(11rem, 44vw, 34rem)/.8 var(--font-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244, 246, 248, .2);
  transform: translate3d(calc((.15 - var(--p, .5)) * 46vw), 0, 0);
}
@media (min-width: 900px) { .ghost { top: 8svh; left: 30vw; } }

/* ---------- Entry: scanner ---------- */
.scanner {
  display: grid; grid-template-columns: auto auto; align-items: center; gap: clamp(14px, 4vw, 44px);
  padding: clamp(16px, 3vw, 32px);
  border-radius: 24px;
  background: rgba(12, 13, 16, .8);
  box-shadow: inset 0 0 0 1px rgba(244, 246, 248, .09), 0 40px 80px -24px rgba(0, 0, 0, .9);
}
.scan-frame { position: relative; width: clamp(140px, 42vw, 280px); aspect-ratio: 200 / 230; overflow: hidden; }
.face { width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.face .brackets { stroke: var(--brand); stroke-width: 3; }
.face .head { stroke: rgba(244, 246, 248, .7); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--face, 1)); }
.face .mesh path { stroke: var(--brand); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--mesh, 1)); }
.face .dots { fill: var(--ink); stroke: none; opacity: var(--mesh, 1); }
.scan-line { position: absolute; inset: 0; transform: translate3d(0, calc(var(--scan, 1) * 100%), 0); opacity: var(--scan-on, 0); pointer-events: none; }
.scan-line::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: -1px; height: 2px;
  background: var(--brand); box-shadow: 0 0 16px 2px rgba(215, 20, 31, .8);
}
.scan-line::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 100%; height: 26%;
  background: linear-gradient(transparent, rgba(215, 20, 31, .16));
}
.finger-wrap { display: grid; justify-items: center; gap: 16px; }
.finger { width: clamp(84px, 22vw, 150px); height: auto; fill: none; stroke-linecap: round; }
.finger .ridges path {
  stroke: var(--ink); stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--fp, 1));
  transition: stroke .3s var(--ease-out);
}
.is-ok .finger .ridges path { stroke: var(--paid); }
.gate {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: rgba(52, 193, 114, .14); color: var(--paid);
  font: 700 1.0625rem/1 var(--font-display); letter-spacing: .02em; white-space: nowrap;
  opacity: var(--ok, 1);
  transform: translate3d(0, calc((1 - var(--ok, 1)) * 10px), 0) scale(calc(.9 + var(--ok, 1) * .1));
}
.gate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 9px; font-weight: 500; color: var(--soft); counter-increment: s; transition: color .3s var(--ease-out); }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%;
  font: 700 .875rem/1 var(--font-display);
  background: var(--brand); color: #fff;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.motion .steps li:not(.on) { color: var(--mute); }
.motion .steps li:not(.on)::before { background: var(--raise); color: var(--mute); transform: scale(.88); }

/* ---------- App: phone ---------- */
.phone-wrap { display: grid; justify-items: center; gap: 12px; perspective: 1400px; }
.phone {
  margin: 0;
  height: min(52svh, 600px); aspect-ratio: 9 / 18.6;
  container-type: inline-size;
  transform:
    translate3d(0, calc((1 - var(--e, 1)) * 22%), 0)
    rotateX(calc((1 - var(--e, 1)) * 32deg))
    rotateY(calc(var(--tilt, 0) * 1deg));
}
.bezel {
  height: 100%;
  padding: 2.6cqw;
  border-radius: 14cqw;
  background: #0d0f12;
  box-shadow: 0 0 0 1.5px #343942, 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 120px -30px rgba(215, 20, 31, .35);
}
.screen {
  height: 100%; overflow: hidden;
  border-radius: 11.5cqw;
  background: var(--ground);
  padding: 10cqw 5cqw 5cqw;
  display: grid; align-content: start; gap: 4cqw;
  font-size: 4.2cqw; line-height: 1.3;
}
.ph-top { display: flex; align-items: center; gap: 3cqw; }
.ph-top img { width: 8cqw; height: 8cqw; border-radius: 2cqw; }
.ph-top b { font: 700 6.4cqw/1 var(--font-display); }
.ph-card { position: relative; overflow: hidden; border-radius: 5cqw; padding: 4.5cqw; background: linear-gradient(135deg, #22262c, var(--panel) 60%); box-shadow: inset 0 0 0 1px var(--line); }
.ph-card::after { content: ""; position: absolute; right: -10cqw; top: -14cqw; width: 50cqw; height: 50cqw; background: radial-gradient(closest-side, rgba(215,20,31,.28), transparent); }
.ph-card-head { display: flex; justify-content: space-between; font: 700 4.2cqw/1 var(--font-display); }
.ph-live { display: inline-flex; align-items: center; gap: 1.5cqw; color: var(--paid); font-family: var(--font-sans); font-weight: 500; font-size: 3.4cqw; }
.ph-live i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: currentColor; }
.ph-id { display: flex; align-items: center; gap: 3.5cqw; margin: 4cqw 0; }
.ph-av { display: grid; place-items: center; width: 15cqw; height: 15cqw; border-radius: 3.5cqw; background: var(--raise); font: 700 5.6cqw/1 var(--font-display); color: var(--mute); }
.ph-id b { display: block; font: 700 6.4cqw/1.05 var(--font-display); }
.ph-id small { display: block; color: var(--mute); font-size: 3.3cqw; margin-top: 1cqw; }
.ph-paid { display: inline-block; padding: 1.8cqw 3.4cqw; border-radius: 2.4cqw; background: rgba(52,193,114,.14); color: var(--paid); font-size: 3.6cqw; font-weight: 500; }
.ph-paid b { font-weight: 700; }
.ph-days { position: relative; display: flex; align-items: center; gap: 4cqw; padding: 4cqw; border-radius: 5cqw; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ph-days svg { width: 17cqw; height: 17cqw; flex: none; transform: rotate(-90deg); fill: none; stroke-width: 4; }
.ph-days svg circle:first-child { stroke: var(--raise); }
.ph-days .ring { stroke: var(--paid); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--ring, .233); }
.ph-num { position: absolute; left: 4cqw; width: 17cqw; text-align: center; font: 700 7.4cqw/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ph-days b { display: block; font: 700 5.6cqw/1.05 var(--font-display); }
.ph-days small { display: block; color: var(--mute); font-size: 3.3cqw; }
.ph-visits { padding: 4cqw; border-radius: 5cqw; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ph-vh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3cqw; }
.ph-vh > b { font: 700 5cqw/1 var(--font-display); }
.ph-vh span { color: var(--mute); font-size: 3.4cqw; }
.ph-vh span b { color: var(--ink); font: 700 4.8cqw/1 var(--font-display); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.8cqw; }
.cal i { aspect-ratio: 1; border-radius: 1.6cqw; background: var(--raise); transition: background-color .35s var(--ease-out), transform .35s var(--ease-out); }
.cal i.v { background: var(--ink); }
.motion .cal i.v:not(.on) { background: var(--raise); transform: scale(.82); }
.cal i.today { box-shadow: inset 0 0 0 .7cqw var(--brand); }
.phone-note { color: var(--mute); font-size: .8125rem; }

/* ---------- Branches ---------- */
.branches { margin: 26px 0 0; display: grid; gap: 0; max-width: 30rem; }
.br { position: relative; padding: 16px 0 14px; }
.br::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brand);
  transform-origin: 0 50%;
  transform: scaleX(clamp(0, (var(--e, 1) - .7 - var(--i) * .1) * 5, 1));
}
.br + .br::before { background: rgba(244, 246, 248, .35); }
.br dt { font: italic 800 clamp(1.75rem, 5vw, 2.5rem)/1 var(--font-display); text-transform: uppercase; }
.br dd { margin: 6px 0 0; color: var(--soft); }

/* ---------- Join ---------- */
.ch-join .ch-bg::after {
  background: linear-gradient(180deg, rgba(18,20,23,.6) 0%, rgba(18,20,23,.55) 30%, rgba(18,20,23,.88) 60%, var(--ground) 100%);
}
@media (min-width: 900px) {
  .ch-join .ch-bg::after {
    background: linear-gradient(90deg, rgba(18,20,23,.94) 0%, rgba(18,20,23,.7) 42%, rgba(18,20,23,.15) 75%), linear-gradient(180deg, rgba(18,20,23,.5), rgba(18,20,23,0) 25%, rgba(18,20,23,0) 70%, var(--ground));
  }
}
.gets { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 26px; }
.gets li { position: relative; padding-left: 18px; color: var(--soft); }
.gets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--brand); transform: skewX(-12deg); }

/* ---------- Shared bits for the content chapters ---------- */
h3 { margin: 0; }
.h-sm { font-size: clamp(2.7rem, 11vw, 6rem); }
.ch-solid { background: var(--ground); }

.ch-solid::after { background: radial-gradient(80% 55% at 88% 12%, rgba(215, 20, 31, .13), rgba(215, 20, 31, 0) 70%); }

/* ---------- Zones: cards on a track ---------- */
.ch-zones .ch-pin { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(20px, 4svh, 40px); }
.ch-zones .copy { margin: 0; }
.ch-zones .copy > p { max-width: 30ch; }
.zones {
  --cw: clamp(200px, min(62vw, 36svh), 300px);
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(14px, 2vw, 24px);
  width: max-content;
}
.zone {
  width: var(--cw);
  --z: clamp(0, (var(--e, 1) - .5 - var(--j) * .07) * 3.4, 1);
  opacity: var(--z);
  transform: translate3d(0, calc((1 - var(--z)) * 70px), 0);
}
.zone figure { margin: 0 0 14px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.zone img {
  width: 100%; height: 100%; object-fit: cover;
  transform: translate3d(calc((var(--p, .5) - .5) * -7%), 0, 0) scale(1.14);
  transition: opacity .5s var(--ease-out), filter .5s var(--ease-out);
}
.zone h3 { font: italic 800 clamp(1.6rem, 5vw, 2.1rem)/1 var(--font-display); text-transform: uppercase; }
.zone h3::before { content: ""; display: inline-block; width: .32em; height: .32em; margin: 0 .3em .12em 0; background: var(--brand); transform: skewX(-12deg); }
.zone p { margin-top: 6px; color: var(--soft); font-size: .9375rem; line-height: 1.45; max-width: 30ch; }
.motion .zone:not(.now) img { opacity: .42; filter: grayscale(.6); }
.motion .zone p { transition: opacity .5s var(--ease-out); }
.motion .zone:not(.now) p { opacity: .55; }
html:not(.motion) .zones { width: auto; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
html:not(.motion) .zone { flex: none; scroll-snap-align: start; }

/* ---------- Session: steps on a red line ---------- */
.session { list-style: none; margin: 22px 0 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 16px; max-width: 30rem; }
.session::before, .session::after { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: rgba(244, 246, 248, .18); }
.session::after { background: var(--brand); transform-origin: 50% 0; transform: scaleY(var(--line, 1)); }
.session li { position: relative; transition: opacity .4s var(--ease-out); }
.session li::before {
  content: ""; position: absolute; left: -27px; top: .3em; width: 12px; height: 12px;
  background: var(--brand); transform: skewX(-12deg);
  transition: background-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.session h3 { font: italic 800 clamp(1.55rem, 4.6vw, 2.1rem)/1 var(--font-display); text-transform: uppercase; }
.session p { margin-top: 4px; color: var(--soft); font-size: 1rem; }
.motion .session li:not(.on) { opacity: .38; }
.motion .session li:not(.on)::before { background: var(--raise); transform: skewX(-12deg) scale(.8); }
.motion .session li.now h3 { color: #fff; }

/* ---------- Goals: outline words fill in ---------- */
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.6svh, 16px); justify-self: start; align-self: center; }
.goals li { display: grid; gap: 4px; }
.goals b {
  font: italic 800 clamp(3.6rem, 18vw, 8.5rem)/.84 var(--font-display); text-transform: uppercase;
  color: var(--ink); padding-right: .1em;
  transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s var(--ease-out);
}
.goals span { color: var(--soft); font-size: .9375rem; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.motion .goals li:not(.on) b { color: transparent; -webkit-text-stroke: 1.5px rgba(244, 246, 248, .5); }
.motion .goals li.now b { color: var(--brand); }
.motion .goals li:not(.on) span { opacity: 0; transform: translate3d(0, 8px, 0); }

/* ---------- How to join: numbered steps ---------- */
.ch-how .ch-pin { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: clamp(24px, 5svh, 56px); }
.ch-how .copy { margin: 0; }
.how { list-style: none; margin: 0; padding: 0 0 0 52px; position: relative; display: grid; gap: clamp(12px, 2svh, 20px); counter-reset: h; max-width: 34rem; }
.how::before, .how::after { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: rgba(244, 246, 248, .16); }
.how::after { background: var(--brand); transform-origin: 50% 0; transform: scaleY(var(--fill, 1)); }
.how li { position: relative; counter-increment: h; min-height: 36px; transition: opacity .4s var(--ease-out); }
.how li::before {
  content: counter(h); position: absolute; left: -52px; top: -2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font: 700 1.125rem/1 var(--font-display); background: var(--brand); color: #fff;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), transform .3s var(--ease-out);
}
.how h3 { font: italic 800 clamp(1.35rem, 4vw, 1.75rem)/1.05 var(--font-display); text-transform: uppercase; }
.how p { margin-top: 3px; color: var(--soft); font-size: .9375rem; }
.motion .how li:not(.on) { opacity: .4; }
.motion .how li:not(.on)::before { background: var(--raise); color: var(--mute); transform: scale(.86); }

/* ---------- Questions ---------- */
.motion .ch-flow { height: auto; }
.motion .ch-flow .ch-pin { position: relative; height: auto; min-height: 100svh; overflow: visible; }
.ch-faq .ch-pin { display: block; padding-top: 120px; padding-bottom: 96px; }
.ch-faq .copy { margin: 0; max-width: 46rem; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  min-height: 44px; padding: 18px 0;
  font: 700 clamp(1.25rem, 3.6vw, 1.625rem)/1.15 var(--font-display);
  transition: color .2s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--brand), var(--brand)) center / 100% 2px no-repeat, linear-gradient(var(--brand), var(--brand)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 0 22px; color: var(--soft); max-width: 52ch; font-size: 1.0625rem; }
.motion .faq details[open] p { animation: fade-up .45s var(--ease-out) both; }

/* ---------- Branch map links (shown only when filled in site.js) ---------- */
.map { display: inline-block; margin-top: 6px; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

@media (min-width: 900px) {
  .ch-zones .ln { display: inline-block; vertical-align: top; }
  .ch-zones .copy, .ch-how .copy { align-self: auto; margin: 0; }
  .zones { --cw: clamp(200px, 32svh, 280px); }
  .goals { grid-column: 2; justify-self: center; }
  .how { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; max-width: none; padding: 58px 0 0; }
  .how::before, .how::after { left: 18px; right: 18px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .how::after { transform-origin: 0 50%; transform: scaleX(var(--fill, 1)); }
  .how li::before { left: 0; top: -58px; }
  .ch-faq .ch-pin { padding-top: 140px; }
  .ch-faq .copy { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; max-width: 74rem; }
  .ch-faq h2 { position: sticky; top: 120px; }
  .ch-faq .faq { margin-top: 0; }
}
@media (min-width: 1100px) {
  .ch-faq .ch-pin { padding-right: calc(var(--gutter) + 130px); }
}
@media (max-width: 899px) {
  .ch-session .ch-pin, .ch-how .ch-pin, .ch-zones .ch-pin { padding-top: 80px; }
  .ch-goals .copy > p { font-size: 1rem; }
}
@media (max-height: 700px) and (max-width: 899px) {
  .how p, .session p { font-size: .875rem; }
  .how { gap: 8px; }
  .goals b { font-size: clamp(3rem, 15vw, 5rem); }
}

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 3;
  display: grid; gap: 10px; justify-items: start;
  padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  background: var(--ground);
  border-top: 1px solid var(--line);
  color: var(--soft);
}
.foot img { width: 96px; height: auto; }
.foot-small { color: var(--mute); font-size: .875rem; }
.foot-small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.foot-small a:hover { color: var(--ink, #fff); }

/* ---------- Motion mode: pinned stage, fixed photo layers ---------- */
.motion .ch { height: calc(var(--h) * 100svh); }
.motion .ch-bg {
  position: fixed; inset: 0 0 auto; height: 100lvh; z-index: 0;
  display: none; opacity: 0; visibility: hidden;
  contain: strict;
}
.motion .ch-bg.armed { display: block; }
.motion .ch-bg img { will-change: transform; opacity: 0; transition: opacity .7s ease; }
.motion .ch-bg img.ready { opacity: 1; }
.motion .ch-hero .ch-bg { opacity: 1; visibility: visible; display: block; }
.motion .ch-pin { position: sticky; top: 0; height: 100svh; min-height: 0; overflow: clip; }
.motion .hero-logo { will-change: transform, opacity; }
.motion .copy { will-change: opacity, transform; }

/* ---------- Small phones ---------- */
@media (max-width: 899px) {
  .ch-entry .ch-pin, .ch-app .ch-pin { padding-top: 76px; }
  .ch-entry .copy > p, .ch-app .copy > p { font-size: 1rem; }
  .ch-entry h2, .ch-app h2 { font-size: clamp(2.6rem, 11.5vw, 4.5rem); margin-bottom: 12px; }
  .ch-entry .steps { margin-top: 14px; }
  .phone { height: min(46svh, 520px); }
}
@media (max-width: 380px) {
  .gets { grid-template-columns: 1fr; }
}
@media (max-height: 640px) and (max-width: 899px) {
  .phone { height: 40svh; }
  .scan-frame { width: 120px; }
}

/* ---------- Reduced motion: readable static story ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cue i { display: none; }
}

/* Static story shows the finished scan in green */
html:not(.motion) .finger .ridges path { stroke: var(--paid); }
