/* Trainly design system — light edition.
   Layout language inspired by big consumer fitness apps: white canvas, bold uppercase headlines, white rounded cards
   with soft shadows, one deep-color featured card, floating pill navigation and a floating primary action.
   Color: Trainly greens only — deep forest for weight and featured cards, accessible action green for buttons,
   the logo's bright green for highlights. Type: Bricolage Grotesque (display) + Plus Jakarta Sans (UI), self-hosted (OFL). */
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("/fonts/PlusJakartaSans-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  /* canvas & surfaces */
  --bg: #f3f6f4; --surface: #ffffff; --surface-2: #f1f5f2; --surface-3: #e5ede8;
  --line: #e3eae5; --line-strong: #cfdbd3;
  /* Trainly greens (PF's purple → our green) */
  --forest: #0b2e1f; --forest-2: #12432d;          /* featured / hero cards */
  --brand: #08804a; --brand-hover: #066b3d; --brand-ink: #ffffff; /* actions: 5:1 on white */
  --lime: #22d47f;                                  /* logo green: highlights on dark */
  --brand-soft: #e2f6eb; --brand-text: #066b3d;
  /* text */
  --ink: #0f1f17; --ink-2: #3d5147; --ink-3: #62756b;
  /* status */
  --gold: #8a5a00; --gold-bg: #fff3d6;
  --red: #c7362a; --red-bg: #fdecea; --red-line: #f3bdb7;
  --amber: #8a5300; --amber-bg: #fff4e0; --amber-line: #f6d49a;
  /* legacy aliases used by inline styles */
  --g-950: var(--forest); --g-900: var(--surface); --g-850: var(--surface-2); --g-800: var(--surface-3); --g-700: var(--line-strong);
  --g-600: var(--brand-hover); --g-500: var(--brand); --g-400: var(--lime); --g-300: var(--brand-text); --g-200: #b8ead0; --g-100: var(--brand-soft);
  /* shape & type */
  --radius: 22px; --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(15, 31, 23, .05), 0 8px 24px -12px rgba(15, 31, 23, .14);
  --shadow-lg: 0 18px 40px -16px rgba(11, 46, 31, .35);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); font: 500 15.5px/1.55 var(--font); word-spacing: .05em; letter-spacing: .003em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, .brand, .price, .hello { word-spacing: normal; }
body { min-height: 100vh; padding-bottom: calc(112px + env(safe-area-inset-bottom)); background: var(--bg); }
a { color: var(--brand-text); text-underline-offset: 3px; font-weight: 600; }
button { font: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-family: var(--display); color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(28px, 8vw, 36px); text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
h3 { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
b, strong { font-weight: 700; }
.muted { color: var(--ink-3); } .small { font-size: 13.5px; } .tiny { font-size: 12px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 4px 12px -4px rgba(8, 128, 74, .5); }
.brand b { font-weight: 700; }
.brand span { color: var(--brand); }
.top .spacer { flex: 1; }
.helplink { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.helplink:hover { color: var(--ink); background: var(--surface-2); }
.shield { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: var(--red-bg);
  color: var(--red); border: 1px solid var(--red-line); font-weight: 800; font-size: 13px; text-decoration: none; }

/* Floating pill bottom nav */
.nav { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto;
  display: flex; justify-content: space-around; gap: 2px; padding: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 34px -10px rgba(11, 46, 31, .32), 0 0 0 1px rgba(15, 31, 23, .05); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  text-decoration: none; padding: 7px 2px 6px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: #fff; background: var(--forest); }
.nav a.on svg { color: var(--lime); }

/* Greeting (home) */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; }
.hello h1 { margin: 0; font-size: clamp(30px, 9vw, 40px); line-height: 1; }
.hello .sub { color: var(--ink-3); font-weight: 600; font-size: 14px; margin-top: 6px; }
.avbtn { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: block; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brand); }
.avbtn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; box-shadow: var(--shadow); }
a.card { transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { box-shadow: 0 2px 4px rgba(15, 31, 23, .06), 0 14px 30px -14px rgba(15, 31, 23, .22); }
a.card:active { transform: scale(.99); }
a.card.row::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2.5px solid var(--ink-3); border-top: 2.5px solid var(--ink-3); transform: rotate(45deg); margin: 0 4px 0 2px; opacity: .7; }
.card.hl { border-color: #bfe6cf; background: linear-gradient(180deg, #f3fbf6, #fff 60%); }
.card.accent { position: relative; overflow: hidden; padding-left: 22px; }
.card.accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand); }
/* Deep-green featured card (PF's dark card, in Trainly forest) */
.card.dark, .hero { background: radial-gradient(420px 220px at 100% 0%, rgba(34, 212, 127, .28), transparent 65%), linear-gradient(160deg, var(--forest-2), var(--forest));
  color: #eafaf1; border: 0; box-shadow: var(--shadow-lg); }
.card.dark h1, .card.dark h2, .card.dark h3, .hero h1, .hero h2, .hero h3 { color: #fff; }
.card.dark .muted, .hero .muted { color: #a9c8b8; }
.card.dark a:not(.btn), .hero a:not(.btn) { color: var(--lime); }
.card.dark .chip, .hero .chip { background: rgba(255, 255, 255, .12); color: #d9f7e7; }
.hero { border-radius: 26px; padding: 22px 20px; margin-bottom: 14px; }
.hero .eyebrow, .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.eyebrow.dk { color: var(--brand-text); }
.hero h1 { font-size: clamp(26px, 7.4vw, 34px); margin: 6px 0 8px; }
.hero .btn { background: var(--lime); color: var(--forest); box-shadow: none; }
.hero .btn:hover { background: #4be296; }
.hero .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.tile { min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; margin-bottom: 0; text-decoration: none; color: inherit; }
.tile .big { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 0 10px; }
.sec h2 { margin: 0; }
.sec a { font-size: 13.5px; text-decoration: none; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bfe6cf; }
.av.lg { width: 88px; height: 88px; }
.av.sm { width: 36px; height: 36px; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #bfe6cf; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); font-size: 12px; font-weight: 700; margin: 0 4px 4px 0; letter-spacing: .01em; }
.chip.gold { background: var(--gold-bg); color: var(--gold); border-color: #f3dca3; }
.chip.red { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.chip.amber { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.badge-verified { color: var(--brand-text); font-size: 12.5px; font-weight: 800; }
.price { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); font-weight: 600; } .kv dd { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid transparent; background: var(--brand); color: var(--brand-ink); font-weight: 800; letter-spacing: .01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(8, 128, 74, .7); transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px rgba(199, 54, 42, .7); } .btn.danger:hover { background: #ad2c21; }
.btn.small { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* Floating primary action (e.g. Check in) */
.fab { position: fixed; z-index: 29; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 800; text-decoration: none; box-shadow: var(--shadow-lg); }
.fab svg { color: var(--lime); }
label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 12px 0 6px; }
input, select, textarea { width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font: 500 15px var(--font); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #8b9b92; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle input { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.seg { display: flex; background: var(--surface-3); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 800; cursor: pointer; transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--forest); box-shadow: 0 2px 8px -2px rgba(15, 31, 23, .2); }

/* Banners */
.banner { border-radius: var(--radius-sm); padding: 13px 15px; font-size: 14px; margin-bottom: 12px; border: 1px solid; line-height: 1.5; }
.banner.warn { background: var(--amber-bg); border-color: var(--amber-line); color: #5c3a00; }
.banner.danger { background: var(--red-bg); border-color: var(--red-line); color: #7a1f17; }
.banner.info { background: var(--brand-soft); border-color: #bfe6cf; color: #0b4a2c; }
.banner a { color: inherit; }

/* Check-in */
.pin { font: 700 46px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .2em; text-align: center; padding: 20px; border-radius: var(--radius);
  background: var(--brand-soft); border: 2px dashed #8fd3ae; color: var(--forest); }
.pin.pin-sm { font-size: 30px; padding: 12px; }
.qrbox { display: grid; place-items: center; padding: 14px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qrbox svg { width: min(240px, 70vw); height: auto; }
.scanbox { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 1; margin: 8px 0; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox i { position: absolute; inset: 18%; border: 3px solid var(--lime); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.pin-input { font: 700 30px/1 ui-monospace, monospace; letter-spacing: .4em; text-align: center; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 16px 40px; color: var(--ink-3); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); font-size: 13px; font-weight: 800; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { content: "✓"; background: var(--brand); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 700; }
.steps li.now::before { background: var(--forest); color: var(--lime); box-shadow: 0 0 0 4px var(--brand-soft); }
.map { width: 100%; height: 170px; border: 0; border-radius: var(--radius-sm); background: var(--surface-3); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; }
.who img { width: 100%; aspect-ratio: 1; border-radius: 18px; object-fit: cover; background: var(--surface-3); }

/* Progress */
.bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.card.dark .bar, .hero .bar { background: rgba(255, 255, 255, .14); }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--lime)); }
.ms { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.ms b { color: var(--gold); }
.ring { --p: 0; width: 136px; height: 136px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring > div { width: 108px; height: 108px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring b { font-family: var(--display); font-size: 30px; letter-spacing: -.03em; }

/* Messages */
.msgs { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg.me .muted { color: #cdeedb; }
.msg .warn { margin-top: 6px; font-size: 12px; color: var(--amber); }
.msg.me .warn { color: #fff3d6; }

/* Tables (staff) */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-weight: 700; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 700; }
.tabs a.on { background: var(--forest); color: #fff; border-color: var(--forest); }
pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 12px; border-radius: 12px; font-size: 12px; border: 1px solid var(--line); }
details summary { cursor: pointer; }

/* Sheet / toast */
.sheet-bg { position: fixed; inset: 0; background: rgba(11, 30, 21, .45); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,.35); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
.sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: -8px auto 14px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--forest); color: #fff;
  padding: 12px 18px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); max-width: 90vw; animation: toastIn .2s ease; }
.empty { text-align: center; padding: 30px 16px; color: var(--ink-2); }
.empty .big { font-size: 36px; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media (min-width: 760px) {
  .nav { max-width: 620px; }
  .nav a { flex-direction: row; justify-content: center; gap: 7px; font-size: 13.5px; padding: 10px 12px; }
  .nav a svg { width: 20px; height: 20px; }
  .fab { right: max(16px, calc(50% - 360px)); }
}

/* Live session */
.live .who img { aspect-ratio: 1; border-radius: 18px; }
.timer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.timer > div { background: rgba(255,255,255,.08); border-radius: 16px; padding: 12px; text-align: center; }
.timer b { display: block; font-family: var(--display); font-size: 26px; color: #fff; }
.timer span { font-size: 12px; color: #a9c8b8; }
.kv.light dt { color: #a9c8b8; } .kv.light dd { color: #eafaf1; }
.choices { display: grid; gap: 8px; margin: 12px 0; }
.choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; font-size: 15px; color: var(--ink); font-weight: 600; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* Intro walkthrough */
.intro { display: flex; flex-direction: column; min-height: calc(100vh - 190px); }
.intro-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.linkbtn { background: none; border: 0; color: var(--brand-text); font-weight: 800; font-size: 15px; cursor: pointer; padding: 8px; min-height: 44px; }
.intro-visual { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.2; max-height: 52vh;
  background: radial-gradient(420px 260px at 90% 0%, rgba(34,212,127,.35), transparent 65%), linear-gradient(160deg, var(--forest-2), var(--forest)); box-shadow: var(--shadow-lg); }
.intro-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.intro-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,31,0) 35%, rgba(11,46,31,.75)); }
.intro-ui { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; }
.intro-title { margin: 18px 0 6px; font-size: clamp(28px, 8vw, 36px); }
.intro-text { color: var(--ink-2); font-size: 16px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 8px 0 14px; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: var(--line-strong); cursor: pointer; transition: width .2s, background .2s; }
.dots button.on { width: 26px; background: var(--brand); }
.intro-nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: auto; }
.pv-card { background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px 14px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); color: var(--ink); }
.pv-center { text-align: center; } .pv-center svg { width: 110px; height: 110px; }
.pv-big { display: block; font-family: var(--display); font-size: 22px; margin: 2px 0 8px; }
.pv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; }
.pv-dark { background: var(--forest); color: #cfe9dc; border-radius: 12px; padding: 8px 10px; } .pv-dark b { color: #fff; font-size: 16px; }
.pv-white { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; } .pv-white b { font-size: 16px; }
.pv-trainer { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; }
.pv-av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #9fd9b9, #3d8a63); }
.pv-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; font-size: 11px; color: var(--ink-3); }
.pv-cal span { border-radius: 10px; padding: 4px 0; } .pv-cal b { display: block; font-size: 15px; color: var(--ink); }
.pv-cal .on { background: var(--forest); color: #cfe9dc; } .pv-cal .on b { color: #fff; }
.pv-slots { display: flex; gap: 6px; margin: 8px 0; font-size: 12px; font-weight: 700; } .pv-slots span { border: 1px solid var(--line-strong); border-radius: 99px; padding: 4px 10px; }
.pv-slots .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pv-pin { font: 700 22px ui-monospace, monospace; letter-spacing: .2em; }
.pv-check { font-weight: 700; color: var(--brand-text); font-size: 14px; padding: 2px 0; }

/* Setup journey / forms */
.journey { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.journey li { flex: 1; min-width: 52px; text-align: center; font-size: 10.5px; color: var(--ink-3); font-weight: 700; }
.journey span { display: grid; place-items: center; width: 26px; height: 26px; margin: 0 auto 4px; border-radius: 50%; background: var(--surface-3); color: var(--ink-2); font-size: 12px; }
.journey em { font-style: normal; display: block; line-height: 1.2; }
.journey .done span { background: var(--brand); color: #fff; } .journey .now span { background: var(--forest); color: var(--lime); } .journey .now { color: var(--ink); }
.hint { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 0; }
.vsteps { display: grid; gap: 10px; margin: 14px 0; }
.vstep { display: flex; gap: 14px; align-items: center; margin: 0; } .vstep p { margin: 2px 0 0; }
.vicon { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand-soft); }
.howsteps { list-style: none; padding: 0; margin: 12px 0; }
.howsteps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; } .howsteps p { margin: 2px 0 0; }
.num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--forest); color: var(--lime); display: grid; place-items: center; font-weight: 800; }
.faq summary { list-style: none; } .faq summary::-webkit-details-marker { display: none; } .faq { padding: 14px 16px; }
@media (min-width: 760px) { .vsteps { grid-template-columns: 1fr 1fr; } .intro { max-width: 520px; margin: 0 auto; } }

/* Home v2: spacing, search, filters, trainer cards, map */
body.has-fab { padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
.fab { bottom: calc(92px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); padding: 13px 22px; min-height: 48px; z-index: 29; }
.fab.quiet { background: #fff; color: var(--forest); border: 1px solid var(--line-strong); }
body.typing .nav, body.typing .fab { display: none; }
@media (min-width: 760px) { body.typing .nav, body.typing .fab { display: flex; } }
.hello { margin: 2px 0 12px; }
.hero.compact { padding: 18px; } .hero.compact h1 { font-size: clamp(24px, 7vw, 30px); }
.grid2 { margin-bottom: 10px; }
.tile { min-height: 124px; padding: 14px 16px; }
.tile-cta { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--lime); }
.card.tile:not(.dark) .tile-cta { color: var(--brand-text); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card.slim { padding: 12px 16px 12px 22px; }
.goalcard { padding: 14px 16px; }
.goalbar { display: flex; gap: 6px; margin: 10px 0 8px; } .goalbar i { flex: 1; height: 10px; border-radius: 99px; background: var(--surface-3); }
.goalbar i.done { background: var(--brand); } .goalbar i.up { background: repeating-linear-gradient(45deg, #9fdcbb 0 6px, #c9eed9 6px 12px); }
.sec { margin: 16px 0 8px; }
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.searchbar input { border: 0; box-shadow: none !important; padding: 13px 0; background: transparent; }
.searchbar svg { color: var(--ink-3); flex: none; }
.locrow { display: flex; gap: 8px; margin: 10px 0 8px; align-items: center; }
.locinput { position: relative; flex: 1; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; padding-left: 10px; }
.locinput input { border: 0; padding: 11px 8px 11px 0; box-shadow: none !important; }
.locrow .btn { white-space: nowrap; }
.ac { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.ac button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: 600 15px var(--font); color: var(--ink); cursor: pointer; min-height: 44px; }
.ac button:hover, .ac button:focus { background: var(--brand-soft); }
.radii { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.radii button, .viewtoggle button, .daypick button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 700 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.radii button.on, .viewtoggle button.on, .daypick button.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.radii button:disabled { opacity: .45; cursor: default; }
.filterrow { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.filterrow select { padding: 10px 12px; }
.viewtoggle { display: flex; gap: 4px; } .viewtoggle button { padding: 0 12px; }
.safety-mini { background: var(--amber-bg); border: 1px solid var(--amber-line); color: #5c3a00; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 10px; }
.safety-mini summary { cursor: pointer; font-weight: 700; list-style: none; } .safety-mini summary::-webkit-details-marker { display: none; }
.safety-mini summary::after { content: " ▾"; } .safety-mini[open] summary::after { content: " ▴"; }
.safety-mini ul { margin: 8px 0; padding-left: 18px; } .safety-mini a { color: inherit; }
#meta { margin: 4px 2px 8px; }
.skeleton { height: 150px; border-radius: var(--radius); margin-bottom: 12px; background: linear-gradient(90deg, #e9efeb, #f5f8f6, #e9efeb); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.tcard { display: grid; grid-template-columns: 88px 1fr auto; gap: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); }
.tphoto { grid-row: span 1; } .tphoto img { width: 88px; height: 104px; border-radius: 16px; object-fit: cover; background: var(--surface-3); display: block; }
.tbody { min-width: 0; }
.tname { display: flex; align-items: center; gap: 6px; min-width: 0; } .tname h3 { margin: 0; font-size: 17px; min-width: 0; }
.vbadge { flex: none; font-size: 11.5px; font-weight: 800; color: var(--brand-text); background: var(--brand-soft); border-radius: 99px; padding: 2px 8px; }
.tchips { margin: 6px 0 2px; } .tchips .chip { margin-bottom: 3px; }
.tmeta { font-size: 13px; margin-top: 3px; }
.tprice { text-align: right; } .tprice b { display: block; font-family: var(--display); font-size: 20px; } .tprice span { font-size: 11.5px; color: var(--ink-3); }
.tbtn { grid-column: 1 / -1; margin-top: 8px; }
@media (max-width: 360px) { .tcard { grid-template-columns: 72px 1fr; } .tphoto img { width: 72px; height: 88px; } .tprice { grid-column: 2; text-align: left; } .tprice b { display: inline; margin-right: 4px; } }
.tmap { position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; background: #e7eee9 repeating-linear-gradient(0deg, transparent 0 39px, #dbe5de 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, #dbe5de 39px 40px); touch-action: none; cursor: grab; }
.tmap .tiles img { position: absolute; width: 256px; height: 256px; user-select: none; }
.tmap .mk { position: absolute; transform: translate(-50%, -100%); min-width: 34px; height: 34px; border-radius: 17px 17px 17px 4px; border: 2px solid #fff; background: var(--forest); color: var(--lime); font-weight: 800; cursor: pointer; box-shadow: var(--shadow-lg); rotate: 0deg; }
.tmap .me-dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #2f7cf6; border: 3px solid #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(47,124,246,.2); }
.mapctl { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; } .mapctl button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.attr { position: absolute; right: 6px; bottom: 4px; font-size: 10px; background: rgba(255,255,255,.8); padding: 1px 4px; border-radius: 4px; }
.slotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: #fff; font: 700 13.5px var(--font); color: var(--ink); cursor: pointer; padding: 6px 10px; }
.slot:hover, .slot.on { border-color: var(--brand); background: var(--brand-soft); }
.goalpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.goalpick button { min-height: 58px; border-radius: 16px; border: 1px solid var(--line-strong); background: #fff; font: 800 20px var(--display); color: var(--ink); cursor: pointer; }
.goalpick button:last-child { font-size: 15px; } .goalpick button.on { background: var(--forest); color: #fff; border-color: var(--forest); }
.daypick { display: flex; gap: 6px; flex-wrap: wrap; } .daypick button { padding: 0 11px; }
.linklist { padding: 4px 16px; } .linklist a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.linklist a:last-child { border-bottom: 0; } .linklist span { color: var(--ink-3); }
.intro-visual { background: url("/icon-512.png") center 38% / 34% no-repeat, radial-gradient(420px 260px at 90% 0%, rgba(34,212,127,.35), transparent 65%), linear-gradient(160deg, var(--forest-2), var(--forest)); }
.card.dark .eyebrow { letter-spacing: .08em; }
.radii[hidden] { display: none; }

/* Beta landing pages */
body.landing .nav { display: none; } body.landing { padding-bottom: 24px; }
.lhero { position: relative; overflow: hidden; border-radius: 28px; min-height: 440px; display: flex; align-items: flex-end; margin: 0 0 18px;
  background: url("/icon-512.png") 85% 18% / 28% no-repeat, radial-gradient(420px 260px at 90% 0%, rgba(34,212,127,.35), transparent 65%), linear-gradient(160deg, var(--forest-2), var(--forest)); box-shadow: var(--shadow-lg); }
.lphoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,46,31,.05) 20%, rgba(11,46,31,.92) 72%); }
.lhero-in { position: relative; z-index: 1; padding: 22px 20px; color: #eafaf1; }
.lhero h1 { color: #fff; font-size: clamp(38px, 11vw, 60px); line-height: .95; margin: 8px 0 10px; }
.lhero p { font-size: 18px; color: #d3efe0; } .lhero .btn { background: var(--lime); color: var(--forest); box-shadow: none; }
.lsec { margin: 22px 0; } .lsec h2 { margin-bottom: 10px; }
.lsteps { display: grid; gap: 10px; } .lsteps .card { margin: 0; } .lsteps .num { margin-bottom: 8px; } .lsteps p { margin: 4px 0 0; }
.checks { list-style: none; padding: 0; margin: 8px 0; } .checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.pillpick { display: flex; flex-wrap: wrap; gap: 6px; }
.pillpick button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 700 13.5px var(--font); color: var(--ink-2); cursor: pointer; }
.pillpick button[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }
.zipmsg { font-size: 13px; margin: 6px 0 0; } .zipmsg.ok { color: var(--brand-text); } .zipmsg.wait { color: var(--amber); }
.funnel { display: grid; grid-template-columns: 1fr auto 44px; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; text-transform: capitalize; }
.funnel em { font-style: normal; color: var(--ink-3); text-align: right; }
@media (min-width: 760px) { .lsteps { grid-template-columns: repeat(3, 1fr); } .lhero { min-height: 520px; } }
.dob { border: 0; padding: 0; margin: 12px 0 0; } .dob legend { font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 0; margin-bottom: 2px; }
.dobrow { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 8px; } .dobrow label { margin-top: 4px; font-weight: 600; color: var(--ink-3); font-size: 12px; }
body.beta .shield.cta { background: var(--brand); color: #fff; border-color: var(--brand); }
