/* Styles shared by every page of the marketing site (index.html, trainers.html).
   Plain CSS, no build step: edit here and every page picks it up. */
/* Theme tokens mirror packages/core/src/data/colorThemes.ts (THEME_COMBOS). Update both together. */
:root, [data-theme="forge-dark"] {
  --bg: #15120d; --bg-2: #1a160f; --surface: #1e1a13; --border: #362e22; --border-strong: #4b4030;
  --text: #f3eee1; --text-2: #c9bfa9; --muted: #8f8570;
  --accent: #e8813a; --accent-2: #f2a25e; --on-accent: #1b1006;
  --hero-top: #2a1e11; --glow: rgba(232,129,58,.28); --em: linear-gradient(180deg,#ffd3a1 0%,#f08a3e 55%,#c9601b 100%);
  --card-shadow: 0 30px 60px -30px rgba(0,0,0,.7); --phone-glow: rgba(232,129,58,.35); color-scheme: dark;
}
[data-theme="forge-light"] {
  --bg: #f5efe4; --bg-2: #fbf6ec; --surface: #ece1cf; --border: #d8c7a8; --border-strong: #c2ac81;
  --text: #2a2118; --text-2: #4a3d2b; --muted: #6b5c46;
  --accent: #c9601b; --accent-2: #c9601b; --on-accent: #fdf6ec;
  --hero-top: #fbf1df; --glow: rgba(201,96,27,.16); --em: none;
  --card-shadow: 0 24px 50px -30px rgba(80,50,20,.35); --phone-glow: rgba(201,96,27,.18); color-scheme: light;
}
[data-theme="basic-dark"] {
  --bg: #030712; --bg-2: #111827; --surface: #1f2937; --border: #374151; --border-strong: #4b5563;
  --text: #f3f4f6; --text-2: #d1d5db; --muted: #9ca3af;
  --accent: #3b82f6; --accent-2: #60a5fa; --on-accent: #ffffff;
  --hero-top: #0c1631; --glow: rgba(59,130,246,.28); --em: linear-gradient(180deg,#dbeafe 0%,#60a5fa 50%,#3b82f6 100%);
  --card-shadow: 0 30px 60px -30px rgba(0,0,0,.7); --phone-glow: rgba(59,130,246,.35); color-scheme: dark;
}
[data-theme="basic-light"] {
  --bg: #ffffff; --bg-2: #ffffff; --surface: #f3f6fb; --border: #e5e7eb; --border-strong: #d1d5db;
  --text: #111827; --text-2: #374151; --muted: #6b7280;
  --accent: #2563eb; --accent-2: #2563eb; --on-accent: #ffffff;
  --hero-top: #eaf1ff; --glow: rgba(37,99,235,.14); --em: none;
  --card-shadow: 0 24px 50px -30px rgba(30,50,110,.3); --phone-glow: rgba(37,99,235,.16); color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 'Work Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .35s, color .35s; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: 'Oswald', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .005em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5vw, 56px); }
h3 { font-size: 22px; font-weight: 600; letter-spacing: .02em; }
em { font-style: normal; color: var(--accent-2); }
[data-theme$="dark"] h1 em, [data-theme$="dark"] h2 em { background: var(--em); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 36em; }
.muted { color: var(--muted); }
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font: 600 16px 'Work Sans', sans-serif; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--phone-glow); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .03em; }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.nav-themes { display: flex; gap: 4px; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }
.nav-themes button { border: 0; padding: 0; background: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.nav-themes button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.nav-themes i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(128,128,128,.45); }
.nav-themes b { width: 8px; height: 8px; border-radius: 50%; }
@media (max-width: 820px) { .nav-links { display: none; } .nav-themes { margin-left: auto; } }
.brand, .nav .btn { white-space: nowrap; }
/* Phones: the hero's own button sits right below, so the nav keeps just the brand and theme picker. */
@media (max-width: 520px) { .nav .btn { display: none; } }
@media (max-width: 360px) { .nav-themes button { width: 24px; height: 24px; } .nav-themes i { width: 18px; height: 18px; } .brand { font-size: 18px; } .brand img { width: 32px; height: 32px; } }

/* ---- device ---- */
.phone { --pw: 300px; position: relative; width: var(--pw); flex: none; border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .027);
  background: linear-gradient(145deg, #4a4a4e 0%, #1a1a1c 18%, #0c0c0e 55%, #2a2a2d 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #0a0a0b, 0 50px 90px -30px rgba(0,0,0,.6), 0 0 90px -20px var(--phone-glow); }
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .137); background: #000; }
.phone.sm { --pw: 250px; }

/* ---- hero ---- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 8vw, 100px); background: radial-gradient(ellipse 70% 60% at 70% 30%, var(--glow), transparent 70%), linear-gradient(180deg, var(--hero-top), var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
.hero .lede { margin-top: 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--accent-2); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.hero-visual .crest { position: absolute; width: 470px; max-width: none; opacity: .16; filter: blur(.5px); top: 50%; left: 50%; transform: translate(-50%, -50%); }
[data-theme$="light"] .hero-visual .crest { opacity: .1; }
.hero-visual .phone { --pw: 290px; transform: rotate(3deg); }
.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border), var(--card-shadow); font-size: 14px; font-weight: 600; white-space: nowrap; animation: bob 6s ease-in-out infinite; }
.float small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.float .tag { flex: none; }
.float.f1 { left: -4%; top: 20%; }
.float.f2 { right: -6%; top: 46%; animation-delay: -2s; }
.float.f3 { left: 2%; bottom: 12%; animation-delay: -4s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .hero-visual .crest { width: 380px; }
  .hero-visual .phone { --pw: 250px; }
  .float { font-size: 13px; padding: 9px 12px; }
  .float.f1 { left: 0; top: 14%; } .float.f2 { right: 0; top: 50%; } .float.f3 { left: 0; bottom: 8%; }
}
@media (max-width: 420px) { .float { display: none; } }

.sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparks i { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ffe2bd 0%, var(--accent) 55%, transparent 72%); box-shadow: 0 0 10px 1px var(--accent); animation: rise linear infinite; opacity: 0; }
[data-theme^="basic"] .sparks { display: none; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: var(--o); } 100% { transform: translateY(-260px); opacity: 0; } }

/* ---- numbers strip ---- */
.numbers { border-block: 1px solid var(--border); background: var(--bg-2); padding: 26px 0; }
.numbers .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.numbers b { display: block; font: 700 clamp(30px, 4vw, 44px)/1 'Oswald', sans-serif; color: var(--accent-2); }
.numbers span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .numbers .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } }

/* ---- the loop ---- */
.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: 20px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font: 700 44px/1 'Oswald', sans-serif; color: var(--accent-2); margin-bottom: 14px; opacity: .9; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 16px; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -16px; width: 12px; height: 12px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.loop-back { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .loop { grid-template-columns: 1fr; } .step:not(:last-child)::after { top: auto; bottom: -17px; right: 50%; transform: translateX(50%) rotate(135deg); } }

/* ---- feature rows ---- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature.flip .copy { order: 2; }
.feature .visual { display: flex; justify-content: center; align-items: flex-end; gap: 22px; position: relative; }
.feature .visual::before { content: ''; position: absolute; inset: 10% 0; background: radial-gradient(ellipse 60% 55% at 50% 55%, var(--glow), transparent 70%); z-index: -1; }
.feature h2 { margin-bottom: 18px; }
.feature .visual .phone:nth-child(2) { margin-bottom: 40px; }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .copy { order: 0; }
  .feature .visual .phone { --pw: min(250px, 44vw); }
}
@media (max-width: 520px) { .feature .visual .phone.second { display: none; } .feature .visual .phone { --pw: 250px; } }

.bullets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.bullets li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--text-2); }
.bullets li b { color: var(--text); font-weight: 600; }
.bullets svg { width: 22px; height: 22px; color: var(--accent-2); margin-top: 2px; }

/* mini review cards, styled after the app's Workout Review sheet */
.review-cards { display: grid; gap: 10px; margin-top: 28px; }
.rc { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); }
.rc strong { font-weight: 600; font-size: 15px; }
.rc p { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.tag { align-self: start; font: 700 10.5px/1 'Work Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.tag.neutral { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.rc .delta { grid-column: 1 / -1; font-size: 13px; font-weight: 600; color: var(--muted); }
.rc .delta b { color: var(--accent-2); }
.rc .delta b.down { color: var(--muted); }

/* ---- level cards ---- */
/* Five goals: a centered wrap, so the short last row (two of three, one of two) sits in the middle. */
.levels { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 48px; }
.level { flex: 0 0 calc((100% - 32px) / 3); padding: 24px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); }
.level .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2); margin-bottom: 16px; }
.level .ico svg { width: 24px; height: 24px; }
.level h3 { font-size: 20px; margin-bottom: 6px; }
.level p { font-size: 15px; color: var(--text-2); }
.xp { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.xp span { padding: 10px 16px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; color: var(--text-2); }
.xp b { color: var(--text); }
@media (max-width: 920px) { .level { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 520px) { .level { flex-basis: 100%; } }

/* ---- themes ---- */
.themes { background: var(--bg-2); border-block: 1px solid var(--border); overflow: hidden; }
.themes .wrap { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; margin-top: 30px; }
.swatch { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 0; background: var(--bg); color: var(--text); font: 600 15px 'Work Sans', sans-serif; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--border); text-align: left; transition: box-shadow .2s; }
.swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.swatch .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(128,128,128,.4); flex: none; }
.swatch .dot i { width: 12px; height: 12px; border-radius: 50%; }
.theme-stack { width: min(460px, 100%); height: auto; }
@media (max-width: 820px) { .themes .wrap { grid-template-columns: 1fr; justify-items: center; } .themes .copy { text-align: center; } .themes .lede { margin-inline: auto; } .swatches { justify-content: center; } }
@media (max-width: 420px) { .swatches { grid-template-columns: 1fr; width: 100%; } }

/* ---- everything else ---- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.tile { padding: 22px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); }
.tile svg { width: 26px; height: 26px; color: var(--accent-2); margin-bottom: 12px; }
.tile h3 { font: 600 17px/1.3 'Work Sans', sans-serif; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.tile p { font-size: 15px; color: var(--muted); }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 20px; margin-top: 48px; }
.plan { position: relative; padding: 30px; border-radius: 22px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); text-align: left; }
.plan.best { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 70px -40px var(--phone-glow); }
.plan .badge { position: absolute; top: -13px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; }
.plan h3 { font-size: 20px; }
.price { margin: 14px 0 4px; font: 700 52px/1 'Oswald', sans-serif; }
.price small { font: 500 17px 'Work Sans', sans-serif; color: var(--muted); }
.plan p { color: var(--muted); font-size: 15px; }
.plan .btn { width: 100%; margin-top: 24px; }
.fine { margin-top: 22px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

/* ---- faq ---- */
.faq { max-width: 780px; margin: 44px auto 0; }
details { border-bottom: 1px solid var(--border); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 400 26px/1 'Work Sans', sans-serif; color: var(--accent-2); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--text-2); }

/* ---- final cta + footer ---- */
.final { text-align: center; background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--glow), transparent 70%); overflow: hidden; }
.final img.crest { width: 200px; margin: 0 auto 26px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.final .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); }
footer { border-top: 1px solid var(--border); padding: 30px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }
.disclaimer { width: 100%; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---- feature switches (assets/site.js FEATURES) ----
   data-needs="<name>": only once that feature is on production. data-until="<name>": only until then. */
html:not([data-linking]) [data-needs~="linking"] { display: none !important; }
html[data-linking] [data-until~="linking"] { display: none !important; }
html:not([data-together]) [data-needs~="together"] { display: none !important; }
html[data-together] [data-until~="together"] { display: none !important; }

/* ---- audience link in the hero ---- */
.pill-link { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: box-shadow .2s; }
.pill-link:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--text); }
.pill-link b { padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pill-link svg { width: 16px; height: 16px; color: var(--accent-2); }
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---- trainer band on the home page ---- */
.band { background: var(--bg-2); border-block: 1px solid var(--border); overflow: hidden; }
.band .feature .visual::before { inset: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 600; color: var(--accent-2); text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform .15s; }
.text-link:hover svg { transform: translateX(3px); }

/* ---- profile roster, styled after the app's Profiles tab ---- */
.avatar { --c: var(--accent); flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 'Work Sans', sans-serif; color: var(--c); box-shadow: inset 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.float .avatar { width: 30px; height: 30px; font-size: 12px; }
.roster { display: grid; gap: 10px; margin-top: 28px; }
.roster .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.roster .row strong { display: block; font-weight: 600; font-size: 15px; }
.roster .row small { display: block; font-size: 13px; color: var(--muted); }
.roster .row .tag { margin-left: auto; align-self: center; }
.roster .group { margin: 8px 0 -2px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---- handoff illustration (client invites, behind the linking switch) ---- */
.handoff { display: grid; gap: 14px; width: min(380px, 100%); }
.handoff .card { padding: 18px; border-radius: 16px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--border), var(--card-shadow); }
.handoff .card h3 { font: 600 12px/1 'Work Sans', sans-serif; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.handoff .who { display: flex; align-items: center; gap: 12px; }
.handoff .who strong { display: block; font-weight: 600; }
.handoff .who small { display: block; font-size: 13px; color: var(--muted); }
.handoff .pair { position: relative; flex: none; width: 46px; height: 40px; }
.handoff .pair .avatar { position: absolute; left: 0; top: 0; width: 40px; height: 40px; }
.handoff .pair .avatar + .avatar { left: auto; right: -6px; top: auto; bottom: -6px; width: 22px; height: 22px; font-size: 9px; background: var(--bg-2); }
.handoff .access { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.handoff .btnish { display: inline-flex; margin-top: 12px; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px; }
.handoff .code { margin-top: 6px; font: 700 26px/1 'Oswald', sans-serif; letter-spacing: .12em; color: var(--text); }

/* ---- Train Together illustration (two workout bars, behind the together switch) ----
   Drawn after the app's Active Workout Bar: avatar and name, exercise, set, timer, play/check. */
.together { display: grid; gap: 10px; width: min(440px, 100%); }
.tbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 14px; padding: 14px 16px 14px 18px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 0 0 2px var(--accent), var(--card-shadow); }
.tbar.dim { box-shadow: inset 0 0 0 1px var(--border-strong), var(--card-shadow); }
.tbar .who { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.tbar .who .avatar { width: 24px; height: 24px; font-size: 10px; }
.tbar .ex { display: block; font: 600 20px/1.15 'Oswald', sans-serif; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbar .set { display: block; font-size: 13px; color: var(--text-2); }
.tbar .clock { text-align: right; line-height: 1; }
.tbar .clock small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--accent-2); }
.tbar .clock span { font: 700 30px/1 'Oswald', sans-serif; color: var(--accent-2); font-variant-numeric: tabular-nums; }
.tbar .go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.tbar .go svg { width: 20px; height: 20px; }
.tbar .segs { grid-column: 1 / -1; display: flex; gap: 6px; margin-top: 6px; }
.tbar .segs i { flex: 1; height: 4px; border-radius: 2px; background: var(--border-strong); }
.tbar .segs i.done { background: var(--accent); }
.tswitch { justify-self: center; padding: 5px 14px; border-radius: 999px; border: 1px dashed var(--border-strong); font-size: 13px; font-weight: 500; color: var(--text-2); }
.ttoast { justify-self: center; display: flex; gap: 16px; align-items: center; margin-top: 4px; padding: 10px 14px; border-radius: 12px; background: var(--surface); font-size: 13px; color: var(--text); }
.ttoast b { color: var(--accent-2); font-weight: 600; }
