/* Holdini website: the landing page and the gym account pages (docs/web-plan.md §2). */

/* Holdini tokens, from shared/.../theme/HoldiniColorScheme.kt */
:root {
  --ground: #F1F2EA; --surface: #FFFFFF; --surface-low: #F6F7F0; --lichen: #E8EBDD;
  --ink: #1F2420; --ink-2: #3F4840; --muted: #5F6A60; --outline: #7A857B; --outline-variant: #D2D6C6;
  --primary: #1E4A39; --on-primary: #FFFFFF; --primary-container: #C4E3D3; --on-primary-container: #052A1D;
  --secondary: #8A5523; --sandstone: #D79A5B; --on-sandstone: #2E1A06; --sand-container: #F6E3CF; --on-sand-container: #4A2C0E;
  --error: #BA1A1A; --error-container: #FFDAD6; --on-error-container: #410002;
  --logo: #17191D;
  --intro: #1E4A39; --on-intro: #F5F5F2; --on-intro-2: #C4E3D3;
  --deep: #0F2A20; /* dark panels behind app screens, the same in both themes */
  --map-bg: #E3E6D7; --map-floor: #FBFBF6; --map-wall: #1F2420;
  --shadow: 0 1px 2px rgba(31,36,32,.06), 0 8px 24px rgba(31,36,32,.06);
  --radius-card: 28px; --radius-lg: 32px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --wordmark: 'Archivo', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #141816; --surface: #1E2420; --surface-low: #1A1F1C; --lichen: #282E2A;
    --ink: #EEF0E8; --ink-2: #D3DAD1; --muted: #BFC8BD; --outline: #899388; --outline-variant: #3F4740;
    --primary: #A8D0BC; --on-primary: #0B3526; --primary-container: #1E4A39; --on-primary-container: #C4E3D3;
    --secondary: #E9B47E; --logo: #F5F5F2; --sand-container: #6B4A26; --on-sand-container: #FFDDBE;
    --error: #FFB4AB; --error-container: #93000A; --on-error-container: #FFDAD6;
    --map-bg: #0E110F; --map-floor: #323A34; --map-wall: #8C9A8F;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #141816; --surface: #1E2420; --surface-low: #1A1F1C; --lichen: #282E2A;
  --ink: #EEF0E8; --ink-2: #D3DAD1; --muted: #BFC8BD; --outline: #899388; --outline-variant: #3F4740;
  --primary: #A8D0BC; --on-primary: #0B3526; --primary-container: #1E4A39; --on-primary-container: #C4E3D3;
  --secondary: #E9B47E; --logo: #F5F5F2; --sand-container: #6B4A26; --on-sand-container: #FFDDBE;
  --error: #FFB4AB; --error-container: #93000A; --on-error-container: #FFDAD6;
  --map-bg: #0E110F; --map-floor: #323A34; --map-wall: #8C9A8F;
  --shadow: 0 1px 2px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }

/* Buttons: fully round, as in the app */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px;
       font: 600 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-light { background: var(--on-intro); color: #1F2420; }
.btn-ghost-light { color: var(--on-intro); box-shadow: inset 0 0 0 1.5px rgba(245,245,242,.45); }
.btn-outline { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--outline-variant); background: transparent; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 3px; }

/* Header sits on the pine hero */
.site-header { background: var(--intro); color: var(--on-intro); }
.nav { display: flex; align-items: center; gap: 32px; height: 76px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand svg { width: 32px; height: 28px; }
.wordmark { font-family: var(--wordmark); font-weight: 800; font-stretch: 125%; font-size: 22px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; }

.hero { background: var(--intro); color: var(--on-intro); padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.hero-copy { padding-bottom: 96px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 80px); line-height: .98; letter-spacing: -0.03em; max-width: 640px; }
.hero h1 em { font-style: normal; color: var(--sandstone); }
.hero .lead { color: var(--on-intro-2); margin-top: 22px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--on-intro-2); opacity: .9; }

/* Phone with the climber's map */
.phone { justify-self: center; width: 320px; background: #0F1311; border-radius: 48px 48px 0 0; padding: 12px 12px 0;
         box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.screen { border-radius: 38px 38px 0 0; overflow: hidden; background: var(--map-bg); position: relative; height: 520px; }

section { padding: 112px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; max-width: 720px; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: stretch; }
.plan { background: var(--surface); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.price { font: 700 64px/1 var(--display); letter-spacing: -0.03em; }
.price small { font: 500 17px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.price-note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.pricing-tax-note { font-size: 14px; color: var(--muted); text-align: center; margin-top: 24px; }
.trial-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 14px; border-radius: 16px;
               background: var(--primary-container); color: var(--on-primary-container); font-size: 14px; font-weight: 500; }
.plan .btn { margin-top: 26px; width: 100%; justify-content: center; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; align-content: start; }
.includes li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-2); }
.includes svg { width: 20px; height: 20px; color: var(--primary); margin-top: 3px; }
.groups { border-radius: var(--radius-lg); padding: 36px; background: var(--intro); color: var(--on-intro); display: flex; flex-direction: column; gap: 14px; }
.groups p { color: var(--on-intro-2); }
.groups .btn { margin-top: auto; align-self: flex-start; }

/* FAQ */
.faq { max-width: 800px; }
details { border-top: 1px solid var(--outline-variant); }
details:last-child { border-bottom: 1px solid var(--outline-variant); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font: 600 19px/1.3 var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
/* A chevron drawn from two borders: points down when closed, up when open. */
summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: 4px 6px 0 0; border: solid var(--muted);
                 border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
details p { padding: 0 0 22px; color: var(--ink-2); max-width: 680px; }

footer { padding: 56px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.foot .brand { color: var(--ink); }
.foot .brand svg { fill: var(--logo); }
.foot nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

.cta-band { border-radius: var(--radius-lg); padding: 44px; background: var(--intro); color: var(--on-intro); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-band p { color: var(--on-intro-2); margin-top: 8px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; }
.climber-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--outline-variant); font-size: 13px; }

@media (max-width: 960px) {
  .hero-grid, .pricing-grid, .plan { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .nav-links { display: none; }
  .nav-links + .btn { margin-left: auto; }
  section { padding: 80px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 12px; }
  .plan, .groups { padding: 26px; }
  .phone { width: 280px; }
  .screen { height: 460px; }
  .foot nav { margin-left: 0; }
  .cta-band { padding: 28px; }
  .cta-actions { margin-left: 0; }
}

/* Feature spotlight, set-up steps and the app screens they show. */
/* A phone, cut off at its panel's bottom edge. */
.device { width: 300px; background: #0F1311; border-radius: 44px 44px 0 0; padding: 10px 10px 0; box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.device .screen { border-radius: 34px 34px 0 0; overflow: hidden; height: 420px; position: relative; }

.section-head.centred { margin: 0 auto 56px; text-align: center; align-items: center; }

@media (max-width: 600px) {
  .device { width: 264px; }
  .device .screen { height: 380px; }
}

/* Showcase: the phone in the middle column, three features to its left and two to its right. */
.showcase { padding: 112px 0 56px; }
.showcase-grid { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto repeat(3, auto); column-gap: 48px; row-gap: 12px; align-items: center; }
.col-label { grid-row: 1; padding: 0 22px; font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); align-self: end; }
.col-gym { grid-column: 1; }
.col-climbers { grid-column: 3; }
.showcase-device { grid-column: 2; grid-row: 1 / span 4; }
.picks { display: contents; }
.pick:nth-child(-n+3) { grid-column: 1; }
.pick:nth-child(n+4) { grid-column: 3; }
.pick:nth-child(1), .pick:nth-child(4) { grid-row: 2; }
.pick:nth-child(2), .pick:nth-child(5) { grid-row: 3; }
.pick:nth-child(3) { grid-row: 4; }
.pick { all: unset; box-sizing: border-box; cursor: pointer; padding: 20px 22px; border-radius: 24px; display: flex; flex-direction: column; gap: 6px; transition: background .2s, box-shadow .2s; }
.pick b { font: 600 20px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.pick span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.pick:hover { background: var(--surface-low); }
.pick[aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow); }
.pick[aria-selected="true"] b { color: var(--primary); }
.pick:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 2px; }
.showcase-device { width: auto; border-radius: 44px; padding: 10px; }
.showcase-device .screen { border-radius: 34px; width: 290px; height: 629px; background: var(--ground); }
.showcase-device img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.showcase-device img.fading, .setup-shot img.fading { opacity: 0; }

/* Set-up steps: the steps on a light half, the phone on a dark half. */
.setup { padding: 56px 0 112px; }
.setup-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--lichen); border-radius: 48px; overflow: hidden; }
.setup-copy { padding: 56px; display: flex; flex-direction: column; gap: 14px; }
.setup-copy .lead { margin-bottom: 14px; }
.setup-copy .btn { align-self: flex-start; margin-top: 18px; }
.step-picks { display: grid; gap: 6px; }
.step-pick { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center;
             padding: 16px 20px; border-radius: 24px; transition: background .2s, box-shadow .2s; }
.step-num { display: flex; flex-direction: column; align-items: center; font: 700 34px/1 var(--display); letter-spacing: -0.02em; color: var(--muted); }
.step-num small { font: 600 13px/1.4 var(--body); letter-spacing: 0; }
.step-text { display: flex; flex-direction: column; gap: 4px; }
.step-text > b { font: 600 20px/1.2 var(--display); letter-spacing: -0.01em; color: var(--ink-2); }
.step-text > span { display: none; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.step-text > span b { font-weight: 600; }
.step-pick:hover { background: var(--surface-low); }
.step-pick[aria-selected="true"] { background: var(--surface); box-shadow: inset 0 0 0 2px var(--primary), var(--shadow); }
.step-pick[aria-selected="true"] .step-num { color: var(--secondary); }
.step-pick[aria-selected="true"] .step-text > b { color: var(--ink); }
.step-pick[aria-selected="true"] .step-text > span { display: block; }
.step-pick:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 2px; }
/* The whole phone, centred in the dark half. */
.setup-shot { background: var(--deep); display: flex; justify-content: center; align-items: center; padding: 48px 24px; }
.setup-shot .device { width: auto; border-radius: 44px; padding: 10px; box-shadow: 0 0 0 1px rgba(245,245,242,.14), 0 24px 60px rgba(0,0,0,.3); }
.setup-shot .screen { width: 290px; height: auto; border-radius: 34px; background: var(--ground); }
.setup-shot img { display: block; width: 100%; height: auto; transition: opacity .15s; }

@media (max-width: 960px) {
  /* The phone first, then the features as a row of cards to swipe through. */
  .showcase-grid { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .picks { display: flex; gap: 12px; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; }
  .pick { flex: 0 0 min(78%, 320px); scroll-snap-align: start; background: var(--surface-low); }
  .col-label { display: none; }
  .setup-card { grid-template-columns: 1fr; }
  .setup-shot { order: -1; padding: 40px 24px; }
  .setup-copy { padding: 36px 28px; }
}
@media (max-width: 600px) {
  .showcase { padding: 72px 0 40px; }
  .showcase-device .screen { width: 250px; height: 542px; }
  .setup { padding: 40px 0 80px; }
  .setup-card { border-radius: 32px; }
  .setup-copy { padding: 28px 16px; }
  .setup-shot .screen { width: 250px; }
  .step-pick { padding: 14px 14px; grid-template-columns: 44px 1fr; gap: 12px; }
}

/* The header's map screenshot fills the phone's width and is cut off at the hero's edge. */
.hero-phone .screen img { display: block; width: 100%; height: auto; }

/* Gym account pages (/account): sign in, your gyms and a gym's plan. Design: docs/web/manage.html. */
body.account { min-height: 100vh; font-size: 16px; }
.account a:not(.btn) { color: var(--primary); }
.account .btn { height: 48px; padding: 0 24px; font-size: 15px; justify-content: center; background: transparent; color: var(--ink); }
.account .btn-primary { background: var(--primary); color: var(--on-primary); }
.account .btn-outline { box-shadow: inset 0 0 0 1.5px var(--outline-variant); }
.account .btn-text { color: var(--primary); padding: 0 12px; }
.account .btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.account .btn[disabled] { opacity: .45; cursor: default; }
.account input:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 2px; }
.account [hidden] { display: none !important; }

.top { display: flex; align-items: center; gap: 14px; padding: 20px 32px; max-width: 1160px; margin: 0 auto; }
.account .top .brand { color: var(--ink); }
.top .brand svg { width: 30px; height: 26px; fill: var(--logo); }
.top .wordmark { font-size: 20px; }
.crumb { color: var(--muted); font-weight: 500; padding-left: 14px; border-left: 1px solid var(--outline-variant); }
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container);
          display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; text-transform: uppercase; }

/* Signing in: one card in the middle of the page */
.center { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 24px 16px 64px; }
.auth { width: 100%; max-width: 920px; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.auth.narrow { grid-template-columns: 1fr; max-width: 560px; }
.auth-side { background: var(--intro); color: var(--on-intro); padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.auth-side h2 { font-size: 30px; line-height: 1.1; }
.auth-side p { color: var(--on-intro-2); }
.auth-side ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li svg { width: 20px; height: 20px; flex: none; color: var(--sandstone); margin-top: 2px; }
.auth-main { padding: 44px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.auth-main h1 { font-size: 34px; line-height: 1.08; }
.auth-main .sub { color: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input { height: 52px; border-radius: 16px; border: 1.5px solid var(--outline-variant); background: var(--surface); color: var(--ink);
               padding: 0 18px; font: 16px var(--body); }
.field input:focus { border-color: var(--primary); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field .err { color: var(--error); font-size: 13px; }
.fine { font-size: 13px; color: var(--muted); }
.mail-icon { width: 64px; height: 64px; border-radius: 22px; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; }
.mail-icon svg { width: 30px; height: 30px; }
.callout { background: var(--surface-low); border-radius: 18px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.callout svg { flex: none; width: 20px; height: 20px; color: var(--muted); margin-top: 1px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--lichen); border-top-color: var(--primary); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Signed in */
.page { max-width: 1160px; margin: 0 auto; padding: 8px 32px 72px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin: 12px 0 28px; flex-wrap: wrap; }
.page-head h1 { font-size: 40px; line-height: 1.05; }
.page-head .addr { color: var(--muted); margin-top: 6px; }
.page-head .right { margin-left: auto; display: flex; gap: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted) !important; text-decoration: none; font-size: 14px; font-weight: 500; margin-top: 8px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--body); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pine { background: var(--primary-container); color: var(--on-primary-container); }
.pill.sand { background: var(--sand-container); color: var(--on-sand-container); }
.pill.err { background: var(--error-container); color: var(--on-error-container); }
.pill.grey { background: var(--lichen); color: var(--ink-2); }

.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow); }
.card h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head .pill { margin-left: auto; }
.label { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.plan-title { font: 700 32px/1.1 var(--display); letter-spacing: -0.02em; }
.plan-body { color: var(--ink-2); margin-top: 10px; max-width: 560px; }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0 2px; }
.people { display: grid; gap: 14px; margin-top: 4px; }
.person { display: flex; gap: 12px; align-items: center; font-size: 15px; min-width: 0; }
.person .avatar { width: 32px; height: 32px; font-size: 13px; }
.person span:nth-child(2) { overflow-wrap: anywhere; }
.person .role { margin-left: auto; font-size: 13px; color: var(--muted); }
.divider { height: 1px; background: var(--lichen); margin: 18px 0; }

/* Your gyms */
.gyms { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.gym { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink) !important; background: var(--surface); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow); transition: transform .15s; }
.gym:hover { transform: translateY(-2px); }
.gym h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.gym .meta { color: var(--muted); font-size: 14px; }
.gym-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--lichen); font-size: 14px; color: var(--muted); }
.gym-foot .pill { margin-left: auto; }

.no-gyms { max-width: 560px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.no-gyms h1 { font-size: 34px; }
.no-gyms p { color: var(--ink-2); }
.no-gyms svg { fill: currentColor; }

@media (max-width: 960px) {
  .account-grid, .auth { grid-template-columns: 1fr; }
  .auth-side ul { display: none; }
}
@media (max-width: 600px) {
  .top { padding: 16px; }
  .crumb, .who .email { display: none; }
  .page { padding: 4px 16px 56px; }
  .page-head h1 { font-size: 32px; }
  .page-head .right { margin-left: 0; }
  .auth-side, .auth-main { padding: 28px 24px; }
  .card { padding: 22px; }
}

/* Privacy policy and terms: one readable column under the site header. */
.legal { max-width: 760px; padding-top: 64px; padding-bottom: 88px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.legal .updated { color: var(--muted); font-size: 15px; margin-top: 12px; }
.legal .summary { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); }
.legal .summary ul { margin: 12px 0 0; }
.legal h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; margin-top: 48px; }
.legal h3 { font-size: 19px; margin-top: 28px; }
.legal p, .legal ul { margin: 14px 0 0; color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal a { color: var(--primary); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th { text-align: left; font: 600 12px/1.3 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; }
.legal td { padding: 12px 12px 12px 0; border-top: 1px solid var(--outline-variant); vertical-align: top; color: var(--ink-2); }
@media (max-width: 600px) {
  .legal { padding-top: 40px; padding-bottom: 64px; }
  .legal .summary { padding: 20px; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-top: 0; padding: 2px 0; }
  .legal tr { border-top: 1px solid var(--outline-variant); padding: 10px 0; }
  .legal td:first-child { font-weight: 600; color: var(--ink); }
}

/* Pre-launch page (prelaunch.html): one pine screen, the line and the form on the left, the app's map on the right.
   On a phone: the line, the map, then the form. */
body.prelaunch { min-height: 100vh; display: flex; flex-direction: column; }
.soon { flex: 1; background: var(--intro); color: var(--on-intro); padding: 48px 0 0; overflow: hidden; display: flex; }
.soon-grid { width: 100%; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: "copy phone" "card phone"; column-gap: 64px; align-items: end; }
.soon-copy { grid-area: copy; }
.soon-phone { grid-area: phone; }
.soon-brand svg { width: 40px; height: 34px; }
.soon-brand .wordmark { font-size: 28px; }
.soon h1 { margin-top: 48px; font-size: clamp(40px, 5.4vw, 68px); line-height: 1; letter-spacing: -0.03em; max-width: 620px; }
.soon h1 span, .soon h1 em { display: block; }
.soon h1 em { font-style: normal; color: var(--sandstone); }
.soon .lead { color: var(--on-intro-2); margin-top: 22px; }
.soon-card { grid-area: card; align-self: start; margin: 40px 0 72px; max-width: 520px; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.soon-card form { display: flex; flex-direction: column; gap: 16px; }
.soon-card h2 { font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.soon-card .btn { justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; }
.soon-card .btn[disabled] { opacity: .6; cursor: default; }
.soon-card .fine a { color: var(--primary); }
.soon-card [hidden] { display: none !important; }
.soon-phone .screen { height: 600px; }
.field select { height: 52px; border-radius: 16px; border: 1.5px solid var(--outline-variant); background: var(--surface); color: var(--ink);
                padding: 0 14px; font: 16px var(--body); }
.field select:focus { border-color: var(--primary); outline: none; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--sandstone); outline-offset: 2px; }
.field .optional { font-weight: 400; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-size: 14px; font-weight: 500; }
.thanks { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; outline: none; }
.thanks p { color: var(--ink-2); }
.thanks-icon { width: 56px; height: 56px; border-radius: 20px; background: var(--primary-container); color: var(--on-primary-container); display: grid; place-items: center; }
.thanks-icon svg { width: 28px; height: 28px; }
@media (max-width: 960px) {
  /* The whole phone between the line and the form, its map cropped to a window. */
  .soon-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "phone" "card"; row-gap: 40px; }
  .soon h1 { margin-top: 32px; }
  .soon-phone { border-radius: 48px; padding-bottom: 12px; }
  .soon-phone .screen { height: 420px; border-radius: 38px; }
  .soon-card { max-width: none; margin: 0 0 48px; }
}
@media (max-width: 600px) {
  .soon { padding-top: 28px; }
  .soon-card { padding: 24px; border-radius: var(--radius-card); }
  .soon-phone .screen { height: 360px; }
}
