/* TrainWithCoach landing. Same world as the app (assets/css/app.css):
   gym-floor dark, teal = athlete, violet = coach, Outfit. */

:root {
    color-scheme: dark;

    --bg: #0d0d0f;
    --surface: #16161a;
    --surface-2: #1e1e24;
    --line: #2a2a32;
    --text: #f0f0f0;
    --muted: #9a9aaa;
    --ink: #0d0d0f;

    --teal: #00d4aa;
    --teal-hi: #00eebb;
    --teal-deep: #062a23;
    --violet: #7b5cff;
    --violet-field: #8466ff;   /* dark ink on it holds 4.9:1 */
    --violet-text: #a693ff;    /* violet text on the dark ground, 7:1 */
    --violet-deep: #1b1440;
    --check: #2ed573;
    --amber: #ffa502;

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bar-h: 64px;
    --wrap: 1200px;
    --gutter: clamp(20px, 4vw, 48px);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--teal); color: var(--ink); }

html { scrollbar-color: #3a3a44 var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #34343e; border-radius: 12px; border: 3px solid var(--bg); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--teal); color: var(--ink); font-weight: 600;
    padding: 10px 16px; border-radius: 10px;
    transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.icon {
    width: 1.15em; height: 1.15em; flex: none;
    stroke: currentColor; fill: none; stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
    min-height: 56px; padding: 0 28px;
    border-radius: 14px;
    font: 600 1.0625rem/1 var(--font);
    letter-spacing: -0.005em;
    cursor: pointer; border: 0;
    transition: transform 0.25s var(--ease-out), background-color 0.2s, box-shadow 0.25s var(--ease-out);
}
.btn .icon { transition: transform 0.25s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.narrow-only { display: none; }
.btn-sm { white-space: nowrap; min-height: 44px; padding: 0 18px; font-size: 0.95rem; border-radius: 12px; }

.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6); }
.btn-ink:hover { background: #1c1c22; }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: var(--teal-hi); }
.btn-violet { background: var(--violet-field); color: var(--ink); }
.btn-violet:hover { background: #937aff; }

/* ---------- Top bar ---------- */

.bar {
    position: sticky; top: 0; z-index: 50;
    height: var(--bar-h);
    display: flex; align-items: center; gap: 24px;
    padding-inline: var(--gutter);
    background: rgba(13, 13, 15, 0.86);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid rgba(42, 42, 50, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; }
.bar-nav { display: flex; gap: 4px; margin-left: 16px; }
.bar-nav a {
    color: var(--muted); font-weight: 500; font-size: 0.95rem;
    padding: 10px 12px; border-radius: 10px;
    transition: color 0.2s, background-color 0.2s;
}
.bar-nav a:hover { color: var(--text); background: var(--surface); }
.bar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-login {
    white-space: nowrap;
    font-weight: 500; padding: 12px 14px; border-radius: 10px; color: var(--text);
    transition: background-color 0.2s;
}
.link-login:hover { background: var(--surface); }

/* Burger menu: below 1180px the section links, the pole page and (on phones)
   Log in move into a panel under the bar. Shown only when JS runs. */
.bar-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 11px; flex: none;
    border: 0; border-radius: 10px; background: transparent; cursor: pointer;
    transition: background-color 0.2s;
}
.bar-burger:hover { background: var(--surface); }
.bar-burger span {
    display: block; height: 2px; border-radius: 2px; background: var(--text);
    transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.bar-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bar-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bar-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bar-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column;
    padding: 4px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.8);
}
.bar-menu[hidden] { display: none; }
.bar-menu a {
    padding: 16px 4px; font-size: 1.125rem; font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.bar-menu a:last-child { border-bottom: 0; }
.bar-menu a:hover { color: var(--teal); }

/* ---------- Doors (first viewport) ---------- */

.doors {
    position: relative;
    display: flex;
    height: calc(100svh - var(--bar-h));
    min-height: 620px;
    max-height: 940px;
    overflow: hidden;
}

.door {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex; flex-direction: column;
    padding: clamp(40px, 6vh, 72px) clamp(28px, 4.5vw, 72px) 0;
    color: var(--ink);
    overflow: hidden;
    transition: flex-grow 0.7s var(--ease-out), filter 0.5s var(--ease-out);
}
.door-coach { background: var(--violet-field); }
.door-athlete { background: var(--teal); }

/* Floor light: the phones stand on a darker band of their own colour */
.door::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 38%;
    background: linear-gradient(to bottom, transparent, rgba(13, 13, 15, 0.16));
    pointer-events: none;
}

.door-copy { position: relative; z-index: 2; max-width: 30rem; }

.door-title {
    font-weight: 800;
    font-size: clamp(3.25rem, 7.2vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.04em;
    color: var(--ink);
}
.door-lede {
    margin-top: 18px;
    max-width: 22em;
    font-size: clamp(1.0625rem, 1.35vw, 1.3125rem);
    line-height: 1.4;
    font-weight: 500;
}
.door .btn { margin-top: 28px; }
.door-note { margin-top: 14px; font-size: 0.9375rem; font-weight: 500; opacity: 0.92; }

/* "One app instead of four": four tools fused into one block; the hairlines
   between them are the 1px gap over a darker backing. */
.four { position: relative; z-index: 2; margin: 22px 0 32px; }
.four-title { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.005em; }
.four-row {
    display: grid; grid-template-columns: auto;
    gap: 1px; width: max-content; max-width: 100%;
    margin-top: 8px;
    border-radius: 14px; overflow: hidden;
    background: rgba(13, 13, 15, 0.22);
    border: 1px solid rgba(13, 13, 15, 0.22);
}
.four-row li {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 13px;
    background: var(--teal);
    font-size: 0.875rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.four-row .icon { width: 17px; height: 17px; stroke-width: 2.2; }
.four { transition: opacity 0.35s var(--ease-out); }
@media (min-width: 900px) {
    /* Desktop: a column in the empty lower-left corner of the door, clear of the phone */
    .four { position: absolute; left: clamp(28px, 4.5vw, 72px); bottom: clamp(28px, 5vh, 52px); margin: 0; }
}
@media (hover: hover) and (min-width: 900px) {
    /* The narrowed athlete door has no room beside its phone: the block steps aside */
    .doors:has(.door-coach:hover) .four,
    .doors:has(.door-coach:focus-within) .four { opacity: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) {
    /* Narrow desktop doors: the phone moves to the edge to clear the block */
    .door.door-athlete .door-phone { right: 12px; }
}

.door .door-phone {
    position: absolute; z-index: 1;
    width: clamp(230px, 22vw, 320px);
    right: clamp(24px, 6vw, 96px);
    bottom: 0;
    transform: translateY(var(--sink, 36%)) rotate(var(--tilt, 0deg));
    transition: transform 0.7s var(--ease-out);
}
.door-coach .door-phone { --tilt: -3deg; }
.door-athlete .door-phone { --tilt: 3deg; }

@media (hover: hover) and (min-width: 900px) {
    .doors:has(.door:hover) .door { filter: saturate(0.8) brightness(0.9); }
    .doors .door:hover,
    .doors .door:focus-within { flex-grow: 1.32; filter: none; }
    .door:hover .door-phone,
    .door:focus-within .door-phone { --sink: 22%; --tilt: 0deg; }
}

.seam {
    position: absolute; z-index: 5;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 112px; height: 112px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--ink); color: var(--text);
    font-size: 0.8125rem; font-weight: 600; line-height: 1.2; text-align: center;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55);
    transition: left 0.7s var(--ease-out), opacity 0.3s;
    pointer-events: none;
}
.seam span { display: block; }
@media (hover: hover) and (min-width: 900px) {
    .doors:has(.door-coach:hover) .seam,
    .doors:has(.door-coach:focus-within) .seam { left: 56.9%; }
    .doors:has(.door-athlete:hover) .seam,
    .doors:has(.door-athlete:focus-within) .seam { left: 43.1%; }
}

/* ---------- Phone frame ---------- */

.phone {
    position: relative;
    aspect-ratio: 390 / 844;
    padding: 9px;
    border-radius: 46px;
    background: #050507;
    box-shadow:
        inset 0 0 0 1.5px #34343c,
        0 2px 4px rgba(0, 0, 0, 0.25),
        0 30px 60px -18px rgba(0, 0, 0, 0.55);
}
.phone img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    border-radius: 37px;
    background: var(--bg);
}

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

.h-section {
    font-weight: 800;
    font-size: clamp(2.25rem, 4.6vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
    word-spacing: 0.08em;
    text-wrap: balance;
}
.lede {
    margin-top: 20px;
    max-width: 34em;
    color: var(--muted);
    font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
    line-height: 1.55;
}

/* ---------- How it connects: the set log ---------- */

.connect { padding: clamp(88px, 12vw, 160px) 0 clamp(48px, 6vw, 88px); }
.connect-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.setlog {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 10px 14px 14px;
}
.setlog-head, .setrow {
    display: grid;
    grid-template-columns: 52px minmax(0, 1.25fr) minmax(0, 0.95fr) 56px;
    align-items: center;
    gap: 10px;
}
.setlog-head {
    padding: 12px 4px;
    margin-bottom: 4px;
    border-radius: 12px;
    background: var(--surface-2);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--muted);
}
.setlog-head span:first-child { color: var(--teal); text-align: center; }
.setrow { padding: 8px 4px; border-top: 1px solid var(--line); }
.setrow:first-of-type { border-top: 0; }
.setrow-n {
    text-align: center; font-weight: 700; font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}
.setrow.is-coach .setrow-n { color: var(--violet-text); }
.setrow.is-athlete .setrow-n { color: var(--teal); }
.cell {
    min-height: 56px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.9375rem; line-height: 1.3;
}
.cell b { font-weight: 600; font-size: 1rem; }
.cell-dim { color: var(--muted); }
.tick {
    width: 48px; height: 48px; justify-self: end;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2);
    border: 2px solid #3a3a44;
    color: transparent;
    transition: background-color 0.35s var(--ease-out), border-color 0.35s, color 0.35s, transform 0.45s var(--ease-out);
}
.tick .icon { width: 24px; height: 24px; stroke-width: 2.6; }
.setrow.is-done .tick {
    background: var(--check); border-color: var(--check); color: var(--ink);
    transform: scale(1.04);
}

/* ---------- Sides: coaches / athletes ---------- */

.side { position: relative; padding: clamp(88px, 11vw, 150px) 0; overflow: hidden; }
.side-coach { background: linear-gradient(180deg, var(--bg) 0%, var(--violet-deep) 22%, var(--violet-deep) 78%, var(--bg) 100%); }
.side-athlete { background: linear-gradient(180deg, var(--bg) 0%, var(--teal-deep) 22%, var(--teal-deep) 78%, var(--bg) 100%); }

.side-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.side-grid-flip .side-copy { order: 2; }
.side-grid-flip .side-phones { order: 1; }

.side-coach .h-role { color: var(--violet-text); }
.side-athlete .h-role { color: var(--teal); }

.feature-list { margin: 36px 0 40px; display: grid; gap: 0; }
.feature-list li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.feature-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.feature-list li::before {
    content: "";
    grid-row: 1 / span 2;
    width: 28px; height: 28px; margin-top: 1px;
    border-radius: 50%;
    background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.side-coach .feature-list li::before { background-color: var(--violet-field); }
.side-athlete .feature-list li::before { background-color: var(--teal); }
.feature-list h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.feature-list p { color: var(--muted); margin-top: 4px; max-width: 34em; }

.side-phones {
    position: relative;
    height: clamp(560px, 52vw, 700px);
}
.side-phones .phone { position: absolute; width: clamp(220px, 19vw, 272px); }
.phone-back { top: 0; left: 0; transform: rotate(-4deg); }
.phone-front { bottom: 0; right: 0; transform: rotate(3deg); }
.side-grid-flip .phone-back { left: auto; right: 0; transform: rotate(4deg); }
.side-grid-flip .phone-front { right: auto; left: 0; transform: rotate(-3deg); }

/* ---------- Atlas ---------- */

.atlas { padding: clamp(88px, 11vw, 150px) 0; }
.atlas-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}
.atlas-phone { width: min(100%, 330px); justify-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 32px; font-size: 1rem; color: var(--muted); }
.chips li { font-weight: 500; }
.chips li.is-on { color: var(--teal); font-weight: 700; }
.credit { margin-top: 28px; font-size: 0.8125rem; color: #858594; }

/* ---------- Calorie tracker ---------- */

.cal { padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 8vw, 110px); }
.cal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.setlog-ways { margin: 40px 0; }
.setlog-ways .setlog-head,
.setlog-ways .setrow { grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 0.78fr) 56px; }
.setlog-ways .cell:not(.cell-dim) { color: var(--muted); }
.setlog-ways .cell b { margin-bottom: 2px; color: var(--text); }
.cell-soon, .cell-pro { color: #ffb733; }
.setrow.is-soon .tick { background: transparent; border: 2px dashed rgba(255, 183, 51, 0.7); }

.cal-phones { position: relative; height: clamp(560px, 50vw, 690px); }
.cal-phones .phone { position: absolute; width: clamp(196px, 16.5vw, 236px); }
.cal-phone-a { left: -5%; top: 96px; transform: rotate(-6deg); }
.cal-phone-b { right: -5%; top: 96px; transform: rotate(6deg); }
.cal-phones .cal-phone-c { left: 50%; top: 0; z-index: 2; width: clamp(214px, 18.5vw, 266px); transform: translateX(-50%); }

@media (max-width: 1080px) {
    .cal-grid { grid-template-columns: minmax(0, 1fr); }
    .cal-phones { height: 600px; max-width: 560px; width: 100%; margin-inline: auto; }
}

/* ---------- Progress ---------- */

.progress { padding: clamp(64px, 8vw, 110px) 0 clamp(24px, 3vw, 40px); }
.progress-head, .modules-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px clamp(40px, 6vw, 96px);
    align-items: end;
}
.progress-head .lede, .modules-head .lede { margin-top: 0; }
.strip {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
.strip-item:nth-child(2) { margin-top: 72px; }
.strip-item:nth-child(3) { margin-top: 24px; }
.strip-item .phone { width: min(100%, 290px); margin-inline: auto; }
.strip-item figcaption {
    max-width: 290px; margin: 22px auto 0;
    color: var(--muted); font-size: 1rem; line-height: 1.5;
}
.strip-item figcaption b { color: var(--text); font-weight: 600; }
.strip:focus-visible { outline-offset: 8px; }

.also {
    margin-top: clamp(56px, 7vw, 88px);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 5vw, 72px);
}
.also li {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.also p { color: var(--muted); }
.also b { color: var(--text); font-weight: 600; }

/* Icon tile shared by the "also" rows and the module index */
.also-icon, .mod-icon {
    width: 44px; height: 44px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--teal);
    transition: background-color 0.2s, border-color 0.2s;
}
.also-icon .icon, .mod-icon .icon { width: 22px; height: 22px; stroke-width: 2; }

/* ---------- Everything in one app ---------- */

.modules { padding: clamp(40px, 6vw, 80px) 0 clamp(88px, 11vw, 150px); }
.mods {
    margin-top: 48px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(24px, 3.5vw, 48px);
}
.mods li { border-top: 1px solid var(--line); }
.mod { display: flex; gap: 16px; align-items: flex-start; height: 100%; padding: 20px 4px 22px 0; }
.mod-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mod-text b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; transition: color 0.2s; }
.mod-text span { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
a.mod b::after {
    content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-left: 6px; vertical-align: -0.02em;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10M7 17 17 7'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: 0.45; transition: opacity 0.2s, transform 0.25s var(--ease-out);
}
a.mod:hover b { color: var(--teal); }
a.mod:hover b::after { opacity: 1; transform: translate(2px, -2px); }
a.mod:hover .mod-icon { background: var(--teal-deep); border-color: rgba(0, 212, 170, 0.45); }

/* ---------- AI ---------- */

.ai {
    padding: clamp(88px, 11vw, 150px) 0;
    background: var(--surface);
    border-block: 1px solid var(--line);
}
.ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: center;
}
.ai-phone { width: min(100%, 320px); justify-self: center; }

.pro {
    margin-top: 40px;
    padding: 28px;
    border-radius: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
}
.pro-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.pro-name { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; }
.pro-price { color: var(--muted); font-size: 1.0625rem; }
.pro-price b { color: var(--text); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pro-lead { margin-top: 14px; color: var(--muted); }
.pro-next { margin-top: 20px; font-weight: 600; }
.pro-list { margin-top: 12px; display: grid; gap: 10px; }
.pro-list li { position: relative; padding-left: 30px; }
.pro-list li::before {
    content: ""; position: absolute; left: 0; top: 0.2em;
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px dashed rgba(255, 183, 51, 0.7);
}

/* ---------- Pricing ledger ---------- */

.pricing { padding: clamp(88px, 11vw, 150px) 0; }
.table-scroll { margin-top: 48px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.ledger { width: 100%; min-width: 720px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th, .ledger td { padding: 18px 22px; text-align: left; border-top: 1px solid var(--line); }
.ledger thead th { border-top: 0; background: var(--surface-2); font-size: 1.125rem; font-weight: 700; vertical-align: bottom; }
.ledger thead th span { display: block; margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.ledger thead .col-athlete { color: var(--teal); }
.ledger thead .col-coach { color: var(--violet-text); }
.ledger thead .col-pro { color: #ffb733; }
.ledger tbody th { font-weight: 500; width: 40%; }
.ledger td { width: 20%; color: var(--muted); font-size: 0.9375rem; }
.ledger td.yes { color: var(--text); font-weight: 500; }
.ledger td.yes::before {
    content: ""; display: inline-block; vertical-align: -5px; margin-right: 10px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d0d0f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ledger td.soon::before { background: transparent; border: 2px dashed rgba(255, 183, 51, 0.7); }
.ledger td.no { color: #5a5a66; }
.ledger td.no::before { content: "\2014"; }
.fine { margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Close ---------- */

.close { display: grid; grid-template-columns: 1fr 1fr; }
.close-door {
    display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
    min-height: clamp(260px, 30vw, 380px);
    padding: clamp(32px, 4vw, 56px);
    color: var(--ink);
    transition: filter 0.3s;
}
.close-coach { background: var(--violet-field); }
.close-athlete { background: var(--teal); }
.close-door:hover { filter: brightness(1.06); }
.close-big { font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; letter-spacing: -0.04em; }
.close-cta { align-self: flex-start; }
.close-cta .icon { transition: transform 0.25s var(--ease-out); }
.close-door:hover .close-cta .icon { transform: translateX(4px); }
.close-door:focus-visible { outline-color: var(--text); outline-offset: -6px; }

/* ---------- Footer ---------- */

.foot { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* Second footer line: the legal pages, centred under the first */
.foot .foot-legal { justify-content: center; margin-top: 20px; font-size: 0.875rem; }
.foot a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(154, 154, 170, 0.4); }
.foot a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (min-width: 1181px) {
    .bar-menu, .bar-menu[hidden] { display: none; }
}

@media (max-width: 1180px) {
    .bar-nav { display: none; }
    .js .bar-burger { display: flex; }
}

@media (min-width: 641px) {
    .bar-menu .menu-login { display: none; }
}

@media (max-width: 640px) {
    .js .link-login { display: none; }
}

@media (max-width: 899px) {
    .doors { flex-direction: column; height: auto; max-height: none; min-height: 0; }
    .door { flex: 0 0 auto; min-height: 400px; padding: 36px var(--gutter) 0; }
    .door-copy { max-width: 62%; }
    .door-title { font-size: clamp(3rem, 13vw, 4.5rem); }
    .door-lede { font-size: 1.0625rem; }
    .door .btn { margin-top: 22px; }
    .door .door-phone { width: clamp(150px, 34vw, 230px); right: var(--gutter); --sink: 30%; }
    .seam { width: 92px; height: 92px; font-size: 0.75rem; top: 50%; left: auto; right: var(--gutter); transform: translateY(-50%); }

    .connect-grid, .side-grid, .atlas-grid, .ai-grid, .cal-grid { grid-template-columns: minmax(0, 1fr); }
    .progress-head, .modules-head { grid-template-columns: minmax(0, 1fr); }
    .cal-phones { height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
    .cal-phone-a { left: 0; }
    .cal-phone-b { right: 0; }
    .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .side-grid-flip .side-copy { order: 1; }
    .side-grid-flip .side-phones { order: 2; }
    .side-phones { height: 560px; max-width: 520px; width: 100%; margin-inline: auto; }
    .atlas-grid .atlas-phone { order: 2; }
    /* The phones scroll sideways instead of stacking three screens tall */
    .strip {
        display: flex; gap: 20px; align-items: flex-start;
        margin-inline: calc(var(--gutter) * -1);
        padding: 4px var(--gutter) 12px;
        overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }
    .strip::-webkit-scrollbar { display: none; }
    .strip-item { flex: 0 0 min(72vw, 270px); scroll-snap-align: start; }
    .strip-item:nth-child(n) { margin-top: 0; }
    .also { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
    body { font-size: 1rem; }
    .bar { gap: 12px; }
    .brand span { font-size: 1rem; }
    .link-login { padding: 10px 8px; }
    .bar-actions .btn-sm { padding: 0 14px; font-size: 0.875rem; }

    .door { min-height: 380px; }
    .door-copy { max-width: 58%; }
    .door-lede { font-size: 1rem; }
    .door .btn { min-height: 52px; padding: 0 18px; font-size: 1rem; }
    .door .door-phone { width: 150px; right: 16px; }
    .door-note { font-size: 0.875rem; }
    .seam { display: none; }

    .setlog { padding: 8px 8px 10px; border-radius: 18px; }
    .setlog-head, .setrow { grid-template-columns: 30px minmax(0, 1fr) 44px; gap: 8px; }
    .setlog-head span:nth-child(3), .setrow .cell-dim { display: none; }
    .tick { width: 42px; height: 42px; }
    .cell { min-height: 52px; padding: 8px 12px; }

    .side-phones { height: 470px; }
    .cal-phones { height: 430px; }
    .cal-phones .phone { width: 148px; }
    .cal-phones .cal-phone-c { width: 172px; }
    .cal-phone-a, .cal-phone-b { top: 48px; }
    .cal-phone-a { left: 0; }
    .cal-phone-b { right: 0; }
    .setlog-ways .setlog-head, .setlog-ways .setrow { grid-template-columns: 30px minmax(0, 1fr) 44px; }
    .mods { grid-template-columns: minmax(0, 1fr); }
    .mod { padding: 16px 0; }
    .setlog-ways .setrow .cell-soon, .setlog-ways .setrow .cell-pro { display: block; grid-column: 2; grid-row: 2; min-height: 0; padding: 0 2px 4px; border: 0; background: none; font-size: 0.875rem; }
    .side-phones .phone { width: 170px; }
    .phone { border-radius: 36px; padding: 7px; }
    .phone img { border-radius: 30px; }

    .wide-only { display: none; }
    .narrow-only { display: inline; }
    .brand-mark { width: 28px; height: 28px; }

    .table-scroll { overflow-x: visible; }
    .ledger { min-width: 0; table-layout: fixed; }
    .ledger th, .ledger td { padding: 14px 8px; }
    .ledger thead th:first-child { width: 43%; }
    .ledger thead th:not(:first-child) { width: 19%; }
    .ledger tbody th { font-size: 0.875rem; line-height: 1.35; padding-left: 14px; }
    .ledger thead th { font-size: 0.9375rem; text-align: center; }
    .ledger thead th span { font-size: 0.75rem; }
    .ledger td { width: 18%; font-size: 0; text-align: center; }
    .ledger td.yes::before { margin-right: 0; vertical-align: middle; }
    .ledger td.no::before { font-size: 0.9375rem; }

    .close { grid-template-columns: minmax(0, 1fr); }
    .close-door { min-height: 220px; }
    .pro { padding: 22px; }
}

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