/* CrossAdapt marketing site. Ported from the "CrossAdapt Website" design canvas; the palette is the
   web app's dark theme (CrossAdaptiOS web/CrossAdapt.Web/wwwroot/app.css). */

:root {
  --bg: #0B0C0B;
  --bg2: #101210;
  --sf: #141714;
  --sf2: #1C201C;
  --line: #23261F;
  --bd: #2C302B;
  --bd2: #3A3F37;
  --tx: #F1EEE6;
  --tx2: #CFD3C9;
  --tx3: #979D91;
  --tx4: #727968;
  --tx5: #4E5449;
  --ac: #58A0E6;
  --ac-hi: #79B7F0;
  --ac-tint: #143148;
  --ac-bd: #2D577D;
  --ac-soft: #A9D2F5;
  --gym: #E08A2E;
  --gym-bd: #4A3220;
  --bio: #9BCC85;
  --bio-tint: #182117;
  --warn: #E2A33A;
  --red: #E0566C;
  --z4: #E0C43A;
  --radius: 12px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--tx);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

main { flex: 1; }

a { color: var(--ac); text-decoration: none; }
a:hover { color: var(--ac-hi); }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; border-radius: 6px; }

img { max-width: 100%; display: block; }

h1, h2, h3, p { margin: 0; }

input, select, textarea, button { font: inherit; color: inherit; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ac); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.band-top { border-top: 1px solid var(--line); background: var(--bg2); }

/* ------------------------------------------------------------------ type */

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx4); }
.eyebrow-dot { display: flex; align-items: center; gap: 10px; }
.eyebrow-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bio); }
.eyebrow.ac { color: var(--ac); }
.eyebrow.gym { color: var(--gym); }

.display { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.display .dim { color: var(--tx3); }
.title { font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.h2 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.lede { font-size: 17px; line-height: 1.55; color: var(--tx2); text-wrap: pretty; }
.body { font-size: 15px; line-height: 1.6; color: var(--tx2); }
.small { font-size: 13px; color: var(--tx4); }
.muted { color: var(--tx3); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--ac); color: var(--bg); }
.btn-primary:hover { background: var(--ac-hi); color: var(--bg); }
.btn-ghost { border-color: var(--bd2); color: var(--tx); background: transparent; }
.btn-ghost:hover { background: var(--sf2); color: var(--tx); }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ nav */

.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 12, 11, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--tx); }
.brand:hover { color: var(--tx); }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.wordmark { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.wordmark span { color: var(--tx3); }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--tx3); white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tx); }
.nav-links a:hover { background: var(--sf2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--tx3); padding: 8px 10px; white-space: nowrap; }
.nav-signin:hover { color: var(--tx); }
/* Five links and the sign-in fit down to the 720px menu breakpoint only with tighter padding. */
@media (max-width: 860px) {
  .nav-links { gap: 0; }
  .nav-links a, .nav-signin { padding-left: 7px; padding-right: 7px; }
}

.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--bd2); display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 14px; height: 1.5px; background: var(--tx); border-radius: 1px; }
.nav-menu-panel { position: absolute; right: 0; top: 44px; min-width: 180px; background: var(--sf); border: 1px solid var(--bd); border-radius: var(--radius); padding: 6px; display: grid; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.nav-menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--tx); font-size: 15px; }
.nav-menu-panel a:hover { background: var(--sf2); }

@media (max-width: 720px) {
  .nav-links, .nav-signin { display: none; }
  .nav-menu { display: block; }
  .wrap { padding-left: 16px; padding-right: 16px; }
}

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tx3); }
.footer-brand img { border-radius: 5px; }
.footer-brand b { color: var(--tx); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.footer-links a { color: var(--tx3); }
.footer-links a:hover { color: var(--tx); }
.footer-legal { font-size: 12px; color: var(--tx5); }

/* ------------------------------------------------------------------ cards and grids */

.card { background: var(--sf); border: 1px solid var(--bd); border-radius: var(--radius); padding: 20px; }
a.card { display: block; color: var(--tx); }
a.card:hover { background: var(--sf2); color: var(--tx); }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.card-text { font-size: 13px; line-height: 1.55; color: var(--tx3); margin-top: 8px; }
.grid { display: grid; gap: 12px; }
.grid-160 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-250 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px; align-items: center; }

.section { padding-top: 64px; padding-bottom: 64px; }

.tag { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--bd); border-radius: 6px; padding: 2px 6px; color: var(--tx3); }

/* ------------------------------------------------------------------ legal */

.legal { max-width: 760px; padding-bottom: 88px; }
.legal section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.legal h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.legal h3 { font-size: 15px; font-weight: 600; color: var(--tx); margin-top: 20px; }
.legal p, .legal li { font-size: 15px; line-height: 1.65; color: var(--tx2); text-wrap: pretty; }
.legal h2 + p, .legal h2 + ul { margin-top: 12px; }
.legal h3 + p { margin-top: 6px; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal b { color: var(--tx); font-weight: 600; }

/* ------------------------------------------------------------------ home */

.hero { padding-top: 80px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero h1 { margin-top: 18px; }
.hero .lede { margin-top: 22px; }
.hero .actions { margin-top: 30px; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--tx4); }

/* The three screens: the gym's web dashboard behind, the phone in front left, the watch right. */
.devices { position: relative; aspect-ratio: 520 / 450; width: 100%; max-width: 560px; justify-self: end; }
.devices .browser { position: absolute; right: 0; top: 0; width: 100%; }
.devices .phone { position: absolute; left: 0; bottom: 0; width: 36.5%; }
.devices .watch { position: absolute; right: 5%; bottom: 2%; width: 23.5%; }

.browser { border: 1px solid var(--bd); border-radius: var(--radius); background: var(--sf); overflow: hidden; }
.browser-bar { height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--bd); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--bd); }
.browser-bar span { margin-left: 8px; font-size: 11px; color: var(--tx5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.phone { aspect-ratio: 9 / 19.5; border-radius: 30px; border: 1px solid var(--bd2); padding: 6px; background: #0E100E; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }
.watch { aspect-ratio: 416 / 496; border-radius: 26%/22%; border: 6px solid #2A2D2A; padding: 3px; background: #000; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: 22%/18%; }

.audience { padding-top: 24px; padding-bottom: 48px; }
.audience a.card { padding: 26px 26px 22px; }
.audience-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; text-wrap: balance; }
.audience p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--tx2); }
.audience .more { margin-top: 18px; font-size: 14px; font-weight: 600; }

.flow { margin-top: 36px; }
.flow .card { padding: 18px; }
.flow-n { font-size: 26px; font-weight: 700; color: var(--tx5); letter-spacing: -.02em; }
.flow-t { font-size: 16px; font-weight: 600; margin-top: 12px; }
.flow-d { font-size: 13px; line-height: 1.5; color: var(--tx3); margin-top: 6px; }

.apple { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(236px, 100%), 1fr)); gap: 16px; align-items: start; }
.apple .card-title { font-size: 16px; }

.proof { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 32px; }
.proof-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }

.cta a.card { padding: 28px; }
.cta a.card.athlete:hover { border-color: var(--ac); background: var(--sf); }
.cta a.card.gym:hover { border-color: var(--gym); background: var(--sf); }
.cta-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }

/* ------------------------------------------------------------------ inner pages */

.page-hero { padding-top: 88px; padding-bottom: 56px; }
.page-hero .title { margin-top: 14px; }
.page-hero .lede { margin-top: 22px; }
.page-hero .actions { margin-top: 28px; }

.screens { display: flex; gap: 16px; align-items: flex-end; justify-content: center; }
.screens .phone { width: min(220px, 52%); }
.screens .watch { width: min(150px, 34%); margin-bottom: 40px; }

.score-card { display: grid; gap: 10px; padding: 18px 20px; }
.score-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.score-sub { font-size: 11px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--tx3); margin-top: 2px; }
.score-rows { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; font-size: 13px; color: var(--tx2); border-top: 1px solid var(--bd); padding-top: 10px; }
.score-rows .k { color: var(--tx4); }
.score-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--bd); padding-top: 10px; }
.score-total b { font-size: 22px; }
.score-total em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--bio); margin-left: 6px; }

.closer { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.closer-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }

.pair { background: #000; padding: 40px 24px; text-align: center; }
.pair-code { font-size: clamp(34px, 6vw, 52px); font-weight: 700; letter-spacing: .08em; margin-top: 12px; }
.pair-kinds { display: inline-flex; gap: 6px; margin-top: 22px; }
.pair-kinds span { font-size: 12px; font-weight: 600; color: var(--tx3); border: 1px solid var(--bd); border-radius: 15px; padding: 5px 12px; }
.pair-kinds span:first-child { color: var(--tx); background: var(--sf2); }

/* ------------------------------------------------------------------ pricing */

.price-card { display: flex; flex-direction: column; padding: 24px; }
.price-card.featured { border-color: var(--ac-bd); }
.price-card.featured-gym { border-color: var(--gym-bd); }
.price-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price-name { font-size: 17px; font-weight: 600; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 10px; }
.price small { font-size: 15px; font-weight: 500; color: var(--tx3); letter-spacing: 0; }
.price-sub { font-size: 13px; color: var(--tx3); margin-top: 2px; }
.price-list { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--tx2); line-height: 1.4; }
.price-note { font-size: 14px; color: var(--tx2); line-height: 1.5; margin-top: 18px; }
.price-card .btn { margin-top: auto; }
.price-card .spacer { flex: 1; min-height: 24px; }
.fine { margin-top: 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; font-size: 13px; line-height: 1.5; color: var(--tx3); }
.fine b { color: var(--tx); font-weight: 600; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px 40px; margin-top: 20px; }
.faq h3 { font-size: 15px; font-weight: 600; }
.faq p { font-size: 14px; line-height: 1.55; color: var(--tx3); margin-top: 6px; }

/* ------------------------------------------------------------------ sign-up */

.signup { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: start; }
.signup-intro { max-width: 440px; }
.signup-intro h1 { margin-top: 14px; font-size: clamp(34px, 4vw, 48px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.signup-intro p { margin-top: 18px; font-size: 15px; line-height: 1.6; color: var(--tx2); }
.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-size: 14px; color: var(--tx3); line-height: 1.45; }
.checks li::before { content: "✓"; color: var(--bio); font-weight: 700; }

.form-card { padding: 24px; max-width: 520px; width: 100%; min-width: 0; justify-self: end; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border: 1px solid var(--bd); border-radius: 8px; padding: 3px; }
.tabs a { display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--tx3); }
.tabs a[aria-current="page"] { background: var(--sf2); color: var(--tx); }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .legend { font-size: 13px; color: var(--tx3); }
.field > span small, .legend small { color: var(--tx5); font-size: 13px; }
.input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--bd2); background: var(--bg); outline: none; }
.input:focus { border-color: var(--ac); }
.input::placeholder { color: var(--tx5); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx3) 50%), linear-gradient(135deg, var(--tx3) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.prefixed { display: flex; align-items: center; height: 40px; border-radius: 8px; border: 1px solid var(--bd2); background: var(--bg); overflow: hidden; }
.prefixed:focus-within { border-color: var(--ac); }
.prefixed > span { padding-left: 12px; font-size: 14px; color: var(--tx5); white-space: nowrap; }
.prefixed input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 12px 0 2px; outline: none; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.rule { height: 1px; background: var(--bd); }
.hint { font-size: 12px; color: var(--tx4); line-height: 1.5; }
.error { font-size: 13px; color: var(--red); }
.field-error { font-size: 12px; color: var(--red); }
.input.invalid, .prefixed.invalid { border-color: var(--red); }

/* Choice cards: radio inputs styled as the design's option buttons. */
.choices { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { position: relative; display: block; padding: 12px; border-radius: 8px; border: 1px solid var(--bd2); cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice b { display: block; font-size: 14px; font-weight: 600; }
.choice span { display: block; font-size: 12px; color: var(--tx3); margin-top: 2px; }
.choice:has(input:checked) { background: var(--ac-tint); border-color: var(--ac-bd); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ac); outline-offset: 2px; }
.choices.tight .choice { padding: 10px 8px; }
.choices.tight b { font-size: 13px; }

/* The athlete form shows the part for the way they train. Without :has() both parts show. */
.mode-gym, .mode-own { display: grid; gap: 14px; }
.athlete-form:has(#mode-own:checked) .mode-gym { display: none; }
.athlete-form:has(#mode-gym:checked) .mode-own { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { margin-top: 22px; display: grid; gap: 14px; }
.done-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--bio-tint); color: var(--bio); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.done-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.done p { font-size: 14px; line-height: 1.55; color: var(--tx3); }
.done p b { color: var(--tx); font-weight: 600; }
.steps { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--tx3); counter-reset: step; }
.steps li { display: flex; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); color: var(--tx5); font-weight: 600; }

/* ------------------------------------------------------------------ the gym dashboard mock */
/* Drawn rather than screenshotted so it never shows a real gym's members or money. Every size is
   in container units, so it scales as one picture from the hero's frame to the Gyms page's. */

.dash { container-type: inline-size; aspect-ratio: 16 / 8.6; background: var(--bg); overflow: hidden; }
.dash-in { display: grid; grid-template-columns: 19cqw 1fr; height: 100%; font-size: 1.35cqw; color: var(--tx); }
.dash-side { border-right: 1px solid var(--line); padding: 2.2cqw 1.6cqw; display: grid; align-content: start; gap: .35cqw; background: var(--bg2); }
.dash-brand { display: flex; align-items: center; gap: .9cqw; font-weight: 700; margin-bottom: 1.6cqw; }
.dash-brand i { width: 2.2cqw; height: 2.2cqw; border-radius: .6cqw; background: linear-gradient(160deg, #6D64F5, #4F46E5 46%, #3B32BE); }
.dash-side .sec { font-size: 1cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--tx4); font-weight: 600; margin: 1.2cqw 0 .4cqw; }
.dash-side .item { padding: .55cqw .9cqw; border-radius: .7cqw; color: var(--tx3); }
.dash-side .item.on { background: var(--sf2); color: var(--tx); }
.dash-main { padding: 2.4cqw 2.6cqw; display: grid; align-content: start; gap: 1.4cqw; min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; }
.dash-head b { font-size: 2.4cqw; letter-spacing: -.02em; }
.dash-head span { color: var(--tx4); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1cqw; }
.dash-tile { background: var(--sf); border: 1px solid var(--bd); border-radius: 1cqw; padding: 1.1cqw 1.2cqw; min-width: 0; }
.dash-tile .l { font-size: 1cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--tx4); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tile .v { font-size: 2.6cqw; font-weight: 700; letter-spacing: -.02em; margin-top: .4cqw; }
.dash-tile .v.warn { color: var(--warn); }
.dash-tile .v.red { color: var(--red); }
.dash-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1cqw; }
.dash-panel { background: var(--sf); border: 1px solid var(--bd); border-radius: 1cqw; padding: 1.2cqw 1.4cqw; display: grid; gap: .25cqw; min-width: 0; }
.dash-panel .l { font-size: 1cqw; letter-spacing: .06em; text-transform: uppercase; color: var(--tx4); font-weight: 600; margin-bottom: .4cqw; }
.dash-row { display: flex; justify-content: space-between; gap: 1cqw; padding: .45cqw 0; border-top: 1px solid var(--line); white-space: nowrap; }
.dash-row:first-of-type { border-top: 0; }
.dash-row span { color: var(--tx3); overflow: hidden; text-overflow: ellipsis; }
.dash-tag { font-size: .9cqw; font-weight: 600; letter-spacing: .05em; border-radius: .5cqw; padding: .15cqw .5cqw; border: 1px solid; }
.dash-tag.active { color: var(--bio); border-color: #2E4426; }
.dash-tag.trial { color: var(--ac); border-color: var(--ac-bd); }
.dash-tag.pending { color: var(--warn); border-color: #4A3C1C; }

.dash-frame { margin-top: 44px; }

@media (max-width: 720px) {
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .page-hero, .signup { padding-top: 56px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .proof, .cta a.card { padding: 24px; }
}

/* ------------------------------------------------------------------ guide */
/* /guide and its topic pages. The topics and their sections are listed once, in
   Pages/Guide/GuideTopics.cs; _GuideLayout draws the sidebar and the previous/next links from it. */

.guide { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; padding-top: 48px; padding-bottom: 88px; align-items: start; }
.guide-side { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding-right: 4px; font-size: 14px; scrollbar-width: thin; scrollbar-color: var(--bd2) transparent; }
.guide-side .eyebrow { margin: 22px 0 6px 10px; }
.guide-side .eyebrow:first-child { margin-top: 0; }
.guide-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.guide-side a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--tx3); line-height: 1.35; }
.guide-side a:hover { background: var(--sf2); color: var(--tx); }
.guide-side a[aria-current="page"] { background: var(--sf2); color: var(--tx); font-weight: 600; }
.guide-side .toc { margin: 2px 0 8px 10px; padding-left: 10px; border-left: 1px solid var(--bd); }
.guide-side .toc a { font-size: 13px; padding: 4px 10px; }
.guide-home { font-weight: 600; color: var(--tx) !important; }

.guide-menu { display: none; border: 1px solid var(--bd); border-radius: var(--radius); background: var(--sf); margin-bottom: 28px; }
.guide-menu summary { list-style: none; cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after { content: "+"; color: var(--tx3); font-size: 18px; font-weight: 500; }
.guide-menu[open] summary::after { content: "–"; }
.guide-menu .guide-side { position: static; max-height: none; overflow: visible; padding: 0 8px 12px; }

@media (max-width: 900px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 28px; }
  .guide > .guide-side { display: none; }
  .guide-menu { display: block; }
}

/* A topic page's article. Wider than .legal, with room for steps, paths and notes. */
.doc { max-width: 740px; min-width: 0; }
.doc-head .title { font-size: clamp(36px, 4.4vw, 52px); margin-top: 12px; }
.doc-head .lede { margin-top: 18px; }
.doc-for { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.doc section { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.doc h2 { font-size: 24px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.doc h3 { font-size: 16px; font-weight: 600; color: var(--tx); scroll-margin-top: 80px; }
.doc p, .doc li { font-size: 15px; line-height: 1.65; color: var(--tx2); text-wrap: pretty; }
/* Flow: everything in a section is spaced the same, headings pull their first line closer. */
.doc section > * + * { margin-top: 14px; }
.doc section > h3 { margin-top: 26px; }
.doc section > h2 + * { margin-top: 12px; }
.doc section > h3 + * { margin-top: 8px; }
.doc .note > * + * { margin-top: 8px; }
.doc .note > .note-t + * { margin-top: 0; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc li > ul, .doc li > ol { margin-top: 8px; }
.doc b, .doc strong { color: var(--tx); font-weight: 600; }
.doc em { font-style: italic; }

/* On phones the contents menu sits inside the article; it keeps the sidebar's lists, not the article's. */
.doc .guide-side ul { padding-left: 0; }
.doc .guide-side .toc { padding-left: 10px; }
.doc .guide-side li { font-size: 14px; line-height: 1.35; }
.doc .guide-side .toc li { font-size: 13px; }
.doc .guide-side li + li { margin-top: 1px; }
.doc .guide-side li > ul { margin-top: 2px; }

/* Numbered steps: a circle per step. */
.doc ol.how { list-style: none; padding: 0; counter-reset: how; display: grid; gap: 10px; }
.doc ol.how > li { counter-increment: how; position: relative; padding-left: 38px; margin: 0; }
.doc ol.how > li::before { content: counter(how); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--sf2); border: 1px solid var(--bd2); color: var(--tx2); font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* Definition lists: a term and what it does, side by side when there's room. */
.doc dl { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 10px 20px; margin-bottom: 0; }
.doc dt { font-size: 14px; font-weight: 600; color: var(--tx); line-height: 1.6; }
.doc dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tx2); }
@media (max-width: 560px) {
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd + dt { margin-top: 12px; }
}

/* A place in the app, written the way you tap through it: Profile › My maxes. */
.path { display: inline; font-size: .9em; font-weight: 600; color: var(--tx); background: var(--sf2); border: 1px solid var(--bd); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
/* A button or field label, as it reads on screen. */
.ui { font-weight: 600; color: var(--tx); }

/* Where a feature lives, and who sees it. */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; border: 1px solid var(--bd2); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--tx3); white-space: nowrap; }
.pill.ac { color: var(--ac-soft); border-color: var(--ac-bd); background: var(--ac-tint); }
.pill.gym { color: var(--gym); border-color: var(--gym-bd); }

.note { border: 1px solid var(--bd); border-left: 3px solid var(--ac); background: var(--sf); border-radius: 8px; padding: 14px 16px; }
.note.gym { border-left-color: var(--gym); }
.note.tip { border-left-color: var(--bio); }
.note p, .note li { font-size: 14px; }
.note-t { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ac); margin-bottom: 4px; }
.note.gym .note-t { color: var(--gym); }
.note.tip .note-t { color: var(--bio); }

.doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tx4); padding: 0 12px 8px 0; border-bottom: 1px solid var(--bd); }
.doc td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--tx2); vertical-align: top; line-height: 1.5; }
.doc td:first-child { color: var(--tx); font-weight: 600; width: 32%; min-width: 120px; }
.table-scroll { overflow-x: auto; }

.doc-figure { display: flex; gap: 16px; align-items: flex-end; justify-content: center; margin: 24px 0 4px; }
.doc-figure .phone { width: min(200px, 48%); }
.doc-figure .watch { width: min(150px, 36%); margin-bottom: 36px; }

.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; margin-top: 48px; }
.pager a.card { padding: 16px 18px; }
.pager .next { text-align: right; }
.pager .small { display: block; }
.pager b { display: block; font-size: 15px; margin-top: 4px; }
.doc-help { margin-top: 28px; font-size: 14px; color: var(--tx3); }

/* The hub. */
.guide-roles { padding-bottom: 24px; }
.guide-roles a.card { padding: 22px; }
.guide-roles .card-title { font-size: 19px; margin-top: 8px; }
.guide-group { padding-top: 40px; }
.guide-group > .eyebrow { margin-bottom: 14px; }
.guide-group a.card .card-text { font-size: 13px; }
.guide-group a.card:hover .card-title { color: var(--ac-hi); }
