/* Road to 50 — site styles. Light only. */

:root {
    color-scheme: light;
    --paper: #f6f4ef;
    --surface: #ffffff;
    --sunk: #efece5;
    --ink: #121211;
    --ink-2: #2b2b29;
    --muted: #5d5b55;
    --quiet: #8f8c84;
    --line: rgba(18, 18, 17, 0.09);
    --line-strong: rgba(18, 18, 17, 0.16);
    --green: #39ff14;
    --green-deep: #1d8a06;
    --green-wash: #e9fbe1;
    --on-green: #000000;

    --max: 1200px;
    --narrow: 720px;
    --pad: clamp(20px, 5vw, 72px);
    --gap: clamp(32px, 6vw, 96px);
    --section: clamp(96px, 12vw, 176px);
    --radius: 14px;
    --radius-lg: 24px;
    --pill: 999px;
    --shadow-sm: 0 1px 2px rgba(18, 18, 17, 0.05), 0 2px 8px rgba(18, 18, 17, 0.04);
    --shadow-lg: 0 2px 4px rgba(18, 18, 17, 0.04), 0 24px 48px -12px rgba(18, 18, 17, 0.22), 0 48px 96px -24px rgba(18, 18, 17, 0.18);

    --sans: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --display: Anybody, "Arial Narrow", sans-serif;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --fast: 160ms;
}

@font-face {
    font-family: Anybody;
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-display: swap;
    src: url("/Assets/RoadTo50/fonts/anybody-italic-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Familjen Grotesk";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/Assets/RoadTo50/fonts/familjen-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Familjen Grotesk";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/Assets/RoadTo50/fonts/familjen-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-bottom: env(safe-area-inset-bottom);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--green); color: var(--on-green); }

.wrap {
    width: min(var(--max), calc(100% - (var(--pad) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right)));
    margin-inline: auto;
}

.visually-hidden {
    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: 16px;
    top: -60px;
    z-index: 50;
    padding: 10px 16px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--paper);
    font-weight: 600;
    text-decoration: none;
}

.skip:focus { top: 12px; }

:where(a, button, summary, input, [tabindex]):focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Type ---------- */

.display {
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

h1.display { font-size: clamp(3.5rem, 1.4rem + 7.4vw, 8.25rem); }

.h2 {
    font-size: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);
    letter-spacing: -0.038em;
    line-height: 1.04;
}

.h2.display { font-size: clamp(2.75rem, 1.4rem + 4.4vw, 5.25rem); letter-spacing: -0.03em; }

.h3 {
    font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.lede {
    max-width: 34ch;
    color: var(--muted);
    font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.45;
    letter-spacing: -0.012em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px var(--green-wash);
}

.muted { color: var(--muted); }

/* ---------- Wordmark ---------- */

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
    min-height: 44px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-synthesis: none;
    font-size: 22px;
    letter-spacing: -0.01em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    color: var(--ink);
}

.wordmark b {
    display: inline-block;
    padding: 0.14em 0.22em 0.08em 0.18em;
    border-radius: 4px;
    background: var(--green);
    color: var(--on-green);
    font-weight: inherit;
}

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

.btn,
.store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--pill);
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--fast) ease, border-color var(--fast) ease, color var(--fast) ease, transform var(--fast) ease, box-shadow var(--fast) ease;
}

.btn:active,
.store:active { transform: translateY(1px) scale(0.985); }

.store {
    background: var(--ink);
    color: var(--paper);
}

.store:hover { background: var(--ink-2); box-shadow: 0 8px 20px -10px rgba(18, 18, 17, 0.6); }

.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green); box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.18), 0 10px 24px -10px rgba(57, 255, 20, 0.55); }

.btn-ghost {
    border-color: var(--line-strong);
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

.store {
    min-height: 56px;
    padding: 0 22px 0 18px;
    border-radius: var(--radius);
    text-align: left;
}

.store svg { width: 22px; height: 22px; flex: 0 0 auto; fill: currentColor; margin-top: -3px; }

.store span { display: flex; flex-direction: column; line-height: 1.05; }

.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.82; }

.store strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.link-arrow span { transition: transform var(--fast) ease; }
.link-arrow:hover span { transform: translateX(3px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.cta-note { color: var(--quiet); font-size: 14px; }

/* ---------- Header ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 32px);
    font-size: 15px;
    font-weight: 500;
}

.nav a:not(.btn) {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--fast) ease;
}

.nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease);
}

.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--ink); }

.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }

.steps {
    grid-column: 1;
    grid-row: 2;
    list-style: none;
    counter-reset: step;
}

.step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-height: 62vh;
    max-width: 30rem;
    padding-block: 48px;
}

.step:last-child { min-height: 70vh; }

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--quiet);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 200ms ease;
}

.step-label i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 0;
    transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.step p { color: var(--muted); font-size: 18px; max-width: 34ch; }

.step.is-current .step-label { color: var(--ink); }
.step.is-current .step-label i { border-color: var(--green); background: var(--green); color: var(--on-green); }

/* Demo controls */

.demo-controls {
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--pill);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.demo-controls button {
    min-width: 92px;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--pill);
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--fast) ease, color var(--fast) ease, transform var(--fast) ease;
}

.demo-controls button:hover { color: var(--ink); background: var(--sunk); }
.demo-controls button:active { transform: scale(0.97); }

.demo-controls button[aria-selected="true"] {
    background: var(--ink);
    color: var(--paper);
}

.demo-controls button:focus-visible { border-radius: var(--pill); }

.demo-caption { display: none; }

/* ---------- Device ---------- */

.device {
    position: relative;
    width: 320px;
    max-width: 100%;
    padding: 10px;
    border-radius: 54px;
    background: linear-gradient(145deg, #2c2c2a, #0c0c0b 40%, #1d1d1b);
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

.screen {
    position: relative;
    aspect-ratio: 300 / 640;
    overflow: hidden;
    border-radius: 44px;
    background: var(--surface);
    color: var(--ink);
    font-size: 13px;
    line-height: 1.35;
}

.status {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 4px 28px 0 34px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.bar {
    height: 5px;
    margin-top: 8px;
    border-radius: var(--pill);
    background: rgba(18, 18, 17, 0.07);
    overflow: hidden;
}

.bar span {
    display: block;
    width: var(--p, 0%);
    height: 100%;
    border-radius: var(--pill);
    background: var(--green);
}

.latest {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--green-wash);
    color: var(--green-deep);
    font-size: 11.5px;
    font-weight: 600;
}

.latest::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-deep);
}

.device.has-logged .latest { display: flex; }

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--quiet);
    font-size: 10.5px;
    font-weight: 500;
}

.tab svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
}

.context { list-style: none; margin-top: 12px; display: grid; gap: 8px; }

.context li {
    display: grid;
    grid-template-columns: 26px 1fr;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.context i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--sunk);
}

.context svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.insight { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.insight p { color: var(--muted); font-size: 12.5px; }
.insight .row { margin-top: 12px; color: var(--muted); font-size: 11px; }
.insight .row span:last-child { color: var(--green); font-weight: 600; }

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

.close {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--gap);
    align-items: center;
}

/* ---------- Plans page ---------- */

.page-head {
    display: grid;
    gap: 24px;
    justify-items: start;
    padding-block: clamp(32px, 6vw, 80px) clamp(48px, 6vw, 80px);
}

.page-head.center { justify-items: center; text-align: center; }
.page-head.center .lede { margin-inline: auto; }

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 920px;
    margin-inline: auto;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.plan-pro { background: var(--ink); color: var(--ink); box-shadow: var(--shadow-lg); }

.plan-badge {
    position: absolute;
    top: clamp(28px, 4vw, 44px);
    right: clamp(28px, 4vw, 44px);
    padding: 5px 12px;
    border-radius: var(--pill);
    background: var(--green);
    color: var(--on-green);
    font-size: 13px;
    font-weight: 600;
}

.plan-name { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.plan-pro .plan-name { color: var(--muted); }

.plan-price { display: grid; gap: 6px; }

.plan-price strong {
    font-size: clamp(2.5rem, 1.8rem + 2vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1;
}

.plan-price strong small { font-size: 0.42em; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.plan-pro .plan-price strong small { color: var(--muted); }
.plan-price span { color: var(--muted); font-size: 15px; }
.plan-pro .plan-price span { color: var(--muted); }

.ticks { list-style: none; display: grid; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan-pro .ticks { border-color: var(--muted); }

.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 16px; }

.ticks li::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sunk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23121211' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.plan-pro .ticks li::before { background-color: var(--green); }

.plan .btn { margin-top: auto; width: 100%; }

.plan-pro .btn-ghost { border-color: var(--muted); color: var(--ink); }

.fine {
    max-width: 620px;
    margin: 32px auto 0;
    color: var(--quiet);
    font-size: 13.5px;
    line-height: 1.55;
    text-align: center;
}

/* ---------- FAQ ---------- */

.faq { max-width: var(--narrow); border-top: 1px solid var(--line-strong); }
.faq.center { margin-inline: auto; }

.faq details { border-bottom: 1px solid var(--line-strong); }

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 20px 0;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
    transition: color var(--fast) ease;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 16h10M16 11v10' fill='none' stroke='%23121211' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 32px no-repeat;
    box-shadow: 0 0 0 1px var(--line);
    transition: transform 200ms var(--ease), background-color var(--fast) ease;
}

.faq summary:hover::after { background-color: var(--green-wash); }
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
    max-width: 60ch;
    padding: 0 56px 24px 0;
    color: var(--muted);
    font-size: 16.5px;
}

.faq details p + p { margin-top: -12px; }
.faq a { text-underline-offset: 3px; }

/* ---------- Prose (story, legal, contact) ---------- */

.prose { max-width: 680px; padding-bottom: var(--section); }

.prose p,
.prose li { color: var(--muted); font-size: 18px; line-height: 1.65; }

.prose p + p,
.prose ul,
.prose h2 + p { margin-top: 18px; }

.prose h2 {
    margin-top: 56px;
    font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a.btn-green { color: var(--on-green); text-decoration: none; }
.prose ul { padding-left: 1.2em; }

.legal-meta { color: var(--quiet); font-size: 14px; }

.legal-h1 {
    font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
    letter-spacing: -0.045em;
    line-height: 1;
}

.prose .first { color: var(--ink); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.5; letter-spacing: -0.012em; }

.follow { display: flex; align-items: center; gap: 8px; margin-top: 40px; }
.follow-label { margin-right: 8px; color: var(--quiet); font-size: 15px; }

.social {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink);
    transition: background-color var(--fast) ease, transform var(--fast) ease;
}

.social:hover { background: var(--green-wash); }
.social:active { transform: scale(0.95); }
.social svg { width: 20px; height: 20px; }

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

.site-footer {
    margin-top: clamp(24px, 4vw, 48px);
    padding: clamp(56px, 7vw, 96px) 0 calc(32px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-strong);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 48px var(--gap);
}

.footer-brand { display: grid; gap: 20px; justify-items: start; align-content: start; }
.footer-brand p { max-width: 26ch; color: var(--muted); }

.footer-col h2 {
    margin-bottom: 12px;
    color: var(--quiet);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col ul { list-style: none; display: grid; }

.footer-col a,
.footer-cookie {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 15.5px;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--fast) ease;
}

.footer-col a:hover,
.footer-cookie:hover { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: clamp(48px, 6vw, 80px);
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 13.5px;
}

/* ---------- Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
    html.reveal-on .reveal {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 400ms var(--ease), transform 400ms var(--ease);
    }

    html.reveal-on .reveal.is-in { opacity: 1; transform: none; }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dot { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }

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

/* ---------- Cookie banner + dialog ---------- */

.cookie-banner {
    position: fixed;
    z-index: 20;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    left: 16px;
    width: min(760px, calc(100% - 32px));
    margin-inline: auto;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgba(18, 18, 17, 0.3);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.cookie-banner p { max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.45; }

.cookie-banner a,
.cookie-note a { text-underline-offset: 3px; }

.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.cookie-actions .footer-cookie { min-height: 44px; padding: 0 8px; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.choice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: var(--pill);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) ease;
}

.choice:hover { border-color: var(--ink); }
.choice:active { transform: scale(0.97); }

.choice.is-primary { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice.is-primary:hover { background: var(--ink-2); }

.cookie-overlay {
    position: fixed;
    z-index: 30;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(18, 18, 17, 0.42);
}

.cookie-overlay[hidden] { display: none; }

.cookie-dialog {
    position: relative;
    width: min(100%, 480px);
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.cookie-dialog h2 { margin: 0 40px 8px 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.cookie-dialog > p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.cookie-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 24px;
    cursor: pointer;
}

.cookie-close:hover { background: var(--sunk); }

.cookie-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.cookie-row h3 { margin: 0 0 4px; font-size: 15px; }
.cookie-row p { color: var(--quiet); font-size: 13px; line-height: 1.45; }
.cookie-fixed { color: var(--quiet); font-size: 13px; font-weight: 600; }

.cookie-switch { position: relative; flex: 0 0 44px; width: 44px; height: 44px; }

.cookie-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.cookie-switch span {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    height: 24px;
    border-radius: 999px;
    background: rgba(18, 18, 17, 0.12);
    pointer-events: none;
    transition: background-color var(--fast) ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform var(--fast) ease;
}

.cookie-switch input:checked + span { background: var(--green); }
.cookie-switch input:checked + span::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.cookie-dialog .cookie-actions { margin-top: 24px; }
.cookie-note { margin-top: 16px; color: var(--quiet); font-size: 13px; }

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

@media (max-width: 1080px) {
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {

    .steps { grid-row: 3; }

    .step { min-height: 0; padding-block: 0 32px; max-width: none; }
    .step:last-child { min-height: 0; }

    html.demo-ready .steps { display: none; }

    html.demo-ready .demo-caption {
        display: grid;
        gap: 8px;
        max-width: 32ch;
        min-height: 7.5em;
        text-align: center;
    }

    .demo-caption strong { font-size: 20px; letter-spacing: -0.025em; line-height: 1.2; }
    .demo-caption span { color: var(--muted); font-size: 16px; }

    .close { grid-template-columns: minmax(0, 1fr); }

    .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
    .plan-pro { order: -1; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }

    .site-header { min-height: 72px; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .prose p, .prose li { font-size: 17px; }
    .faq details p { padding-right: 0; }

    .cookie-banner-inner { flex-direction: column; align-items: stretch; }
    .cookie-actions .choice { flex: 1; }
}

@media (max-width: 380px) {
    .device { width: 100%; }
    .demo-controls button { min-width: 0; padding: 0 12px; }
}

/* ---------- Small helpers ---------- */

html:not(.demo-ready) .demo-controls { display: none; }

.faq-more { margin-top: 32px; }
.faq-more a { color: var(--ink); text-underline-offset: 3px; }

.wrap.reading { width: min(760px, calc(100% - (var(--pad) * 2) - env(safe-area-inset-left) - env(safe-area-inset-right))); }
.reading .prose { max-width: none; }
.reading .faq { max-width: none; }

/* ---------- Legal documents ---------- */

.legal-doc h2 { scroll-margin-top: 24px; }

.legal-doc h3 {
    margin-top: 32px;
    font-size: 17px;
    letter-spacing: -0.015em;
}

.legal-doc h3 + p { margin-top: 8px; }

.legal-doc ul { display: grid; gap: 10px; }

.legal-doc li strong { color: var(--ink); font-weight: 600; }

.address { color: var(--ink) !important; line-height: 1.7 !important; }

.callout {
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.callout-title.callout-title { margin: 0 0 14px; font-size: 18px; }
.callout ul { list-style: none; padding: 0; margin: 0; }

.callout li {
    position: relative;
    padding-left: 22px;
    color: var(--ink);
    font-size: 16.5px;
}

.callout li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.toc { margin-top: 40px; padding: 24px 0; border-block: 1px solid var(--line); }

.toc ol {
    columns: 2;
    column-gap: 32px;
    margin: 0;
    padding-left: 1.4em;
    color: var(--quiet);
    font-size: 15px;
}

.toc li { break-inside: avoid; padding: 3px 0; color: var(--quiet); font-size: 15px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.basis { list-style: none; padding: 0 !important; }

.basis li {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.basis li span { display: block; margin-top: 4px; color: var(--quiet); font-size: 15px; }

@media (max-width: 640px) {
    .toc ol { columns: 1; }
    .callout { padding: 22px; }
}

/* ---------- Parallax (desktop, motion allowed) ---------- */

.frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sunk);
    transform: translateZ(0);
}

.frame img { border-radius: 0; }

html.parallax-on .frame img { scale: 1.14; will-change: translate; }
html.parallax-on [data-parallax]:not(img) { will-change: translate; }

/* ---------- Dark: the brand look, on every page and every device ---------- */

:root {
    /* Same hex values as the app (RoadColor dark): canvas, surface, ink, secondary.
       Text uses two colours only: --ink for main text, --muted for supporting text. */
    color-scheme: dark;
    --paper: #111210;
    --surface: #1c1d1a;
    --sunk: #222220;
    --ink: #f4f1e9;
    --ink-2: #f4f1e9;
    --muted: #adaea6;
    --quiet: #adaea6;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --green-wash: rgba(57, 255, 20, 0.14);
    --green-deep: #39ff14; /* one neon green on dark, no lime */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 30px 60px -20px rgba(0, 0, 0, 0.85);
    --violet: #6336ed;
    --pink: #ff588e;
    --on-pink: #101010;
    --warning: #ffb547;
    --error: #ff6b5b;
}

html .plan-pro { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

html .device { box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }

html .ticks li::before {
    background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23f3f1ec' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

html .plan-pro .ticks li::before { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23121211' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

html .faq summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M11 16h10M16 11v10' fill='none' stroke='%23f3f1ec' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Story: reel card ---------- */

.reel {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
    margin: 0 0 clamp(48px, 6vw, 72px);
}

@media (max-width: 640px) {
    .reel { grid-template-columns: minmax(0, 1fr); }
}

/* Buttons inside long-form text keep their own colours */
.prose a.store,
.prose a.btn { text-decoration: none; }
.prose a.store { color: var(--paper); }

/* ---------- Contact ---------- */

.contact-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.contact-label {
    color: var(--quiet);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-address {
    color: var(--ink);
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-address:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; }

.copy-status { color: var(--green-deep); font-size: 14px; font-weight: 600; }

.quick { margin-top: clamp(48px, 6vw, 72px); }

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
    list-style: none;
}

.quick-links a {
    display: grid;
    gap: 6px;
    height: 100%;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow var(--fast) ease, transform var(--fast) ease;
}

.quick-links a:hover { box-shadow: 0 0 0 1px var(--ink); transform: translateY(-2px); }
.quick-links a:active { transform: translateY(0); }
.quick-links strong { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.quick-links span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

.safety-note {
    margin-top: 40px;
    padding-bottom: var(--section);
    color: var(--quiet);
    font-size: 14px;
}

@media (max-width: 640px) {
    .quick-links { grid-template-columns: minmax(0, 1fr); }
    .contact-actions .btn { flex: 1 1 100%; }
}

/* ---------- Real app screens in the device ---------- */
/* Screenshots from the app carry their own status bar and Dynamic Island. */
.screen.screen-shot { aspect-ratio: 1206 / 2622; background: var(--paper); }
.device-static .screen > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Trial claims stay hidden until TRIAL_LIVE (road-to-50-theme.js). */
[data-trial] { display: none; }
html.trial-live [data-trial] { display: revert; }
html.trial-live [data-no-trial] { display: none; }

/* ---------- Header: the same four destinations everywhere ---------- */
/* Desktop: links in a row, Get the app beside them. Phones: Get the app stays in view and the
   links fold into a menu, the convention people expect from a premium site. */
.site-header { position: relative; }
.nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

@media (max-width: 640px) {
    .menu-toggle {
        display: inline-grid;
        place-content: center;
        gap: 6px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }
    .menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 200ms var(--ease);
    }
    .site-header.is-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
    .site-header.is-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

    .nav {
        position: absolute;
        z-index: 20;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px var(--gutter, 16px) 24px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.25);
        font-size: 22px;
        font-weight: 600;
        letter-spacing: -0.01em;
    }
    .site-header.is-open .nav { display: flex; }
    .nav a:not(.btn) { min-height: 56px; color: var(--ink); border-bottom: 1px solid var(--line); }
    .nav a:not(.btn)::after { display: none; }
    .nav a:last-child { border-bottom: 0; }
}

/* ---------- One training log: hero CTA, workout card, feature rows ---------- */
.btn-store { min-height: 56px; padding-inline: 26px 28px; font-size: 17px; }
.btn-store svg { width: 20px; height: 20px; fill: currentColor; margin-top: -2px; }

.feature {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--gap);
    align-items: center;
}
.device-static { width: 300px; }

@media (max-width: 900px) {
    .feature { grid-template-columns: minmax(0, 1fr); }
    .device-static { width: min(280px, 78vw); }
}

@media (max-width: 640px) {
    .btn-store { width: 100%; }
}
/* Three short lines: sized so "One training log." stays on one line beside the phone. */
.hero h1.display { font-size: clamp(3rem, 0.6rem + 5.2vw, 6.25rem); }

@media (max-width: 640px) {
    /* Keep "One training log." on one line at phone widths. */
    .hero h1.display { font-size: min(56px, calc(14.2vw - 6px)); }
}
@media (max-width: 640px) {
    .nav { left: calc(-1 * var(--pad)); right: calc(-1 * var(--pad)); padding-inline: var(--pad); }
}

/* ---------- Real photo + share sticker (replaces the watercolour) ---------- */
.photo-card {
    position: relative;
    justify-self: center;
    width: min(100%, 420px);
    margin: 0;
    aspect-ratio: 720 / 1000;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.photo-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-card::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.62));
    pointer-events: none;
}
.sticker {
    position: absolute;
    z-index: 1;
    left: 24px;
    bottom: 24px;
    display: grid;
    justify-items: start;
    gap: 2px;
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.sticker-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    font-family: var(--display, inherit);
    font-style: italic;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}
.sticker-badge b { padding: 1px 5px; border-radius: 4px; background: var(--green); color: var(--on-green); text-shadow: none; }
.sticker strong { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; }
.sticker > span:last-child {
    font-family: var(--display, inherit);
    font-style: italic;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
}
.sticker-line > span:last-child { font-size: 34px; line-height: 0.95; letter-spacing: -0.01em; }

/* ---------- My ten before 50 (story) ---------- */
.challenges { margin-block: 40px; }
.challenges .h3 { margin-bottom: 16px; }
.ch-n { display: inline-block; width: 1.6em; color: var(--quiet); font-weight: 400; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
    .ch-n { display: none; }
}

/* ---------- Hero: one message, one workout ---------- */
/* The phone demo lives in How it works; the hero shows a single real result. */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    column-gap: var(--gap);
    min-height: min(760px, calc(100svh - 88px));
    padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 120px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero .lede { max-width: 32ch; font-size: clamp(19px, 0.95rem + 0.5vw, 22px); }
.hero .cta-row { margin-top: 8px; }
.hero .cta-note { margin-top: -12px; }
.hero .cta-note a { color: var(--ink); text-underline-offset: 3px; }

/* How it works: heading, then the phone beside the three steps. */
.how { padding-top: var(--section); }

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        row-gap: 40px;
        padding-block: 8px 24px;
    }
    .hero-copy { gap: 22px; }
}

@media (max-width: 640px) {
    .hero .cta-row { width: 100%; }
    .hero .lede { font-size: 18px; }
}

/* ---------- Sticky header ---------- */
/* The header row stays at the top while scrolling: clear over the hero, then frosted paper
   with a hairline once the page moves. */
html { scroll-padding-top: 104px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}
body { overflow-x: clip; }
.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 200ms ease, border-color 200ms ease;
}
.site-header.is-stuck::before {
    /* Frosted charcoal over the dark page, not cream. */
    background: rgba(24, 24, 22, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line);
}

@media (max-width: 640px) {
    html { scroll-padding-top: 88px; }
}

/* ==========================================================================
   Story-led site: hero photo, origin + board, the app, finale, My ten
   ========================================================================== */

.hero h1.display { font-size: clamp(2.9rem, 0.5rem + 4.6vw, 5.6rem); line-height: 0.92; }
.hero .lede { max-width: 30ch; }

/* Hero photo with a live-looking result tag */
.hero-photo {
    position: relative;
    justify-self: end;
    width: min(100%, 460px);
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sunk);
    box-shadow: var(--shadow-lg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-tag {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: grid;
    gap: 6px;
    padding: 14px 16px 16px;
    border-radius: var(--radius);
    background: rgba(18, 18, 17, 0.62);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    color: var(--paper);
}
.hero-tag-who { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.hero-tag-val { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hero-tag-val strong { color: var(--ink); font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-tag-goal { color: var(--muted); font-size: 15px; }


/* Shared progress bar + challenge rows */
.ch-bar { display: block; height: 6px; border-radius: var(--pill); background: var(--sunk); overflow: hidden; }
.ch-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.ch-list { list-style: none; margin: 0; padding: 0; }
.ch { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.ch:first-child { border-top: 0; }
.ch-body { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ch-name { font-weight: 600; letter-spacing: -0.01em; }
.ch-val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-val strong { font-weight: 700; }
.ch-val span { color: var(--quiet); }
.ch-meta { color: var(--quiet); font-size: 13px; }
.ch-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ch-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ch.is-pending .ch-val strong { color: var(--quiet); font-weight: 600; }
.ch.is-pending .ch-bar { background: repeating-linear-gradient(90deg, var(--sunk) 0 6px, transparent 6px 10px); }
.ch-n { flex: 0 0 auto; width: 2ch; color: var(--quiet); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding-top: 3px; }

/* Origin: Mark's promise beside where he is now */
.origin { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gap); align-items: start; }
.origin-copy { display: grid; gap: 28px; }
.origin .h2 { font-size: clamp(2.2rem, 1.2rem + 2.8vw, 3.75rem); max-width: 14ch; }
.origin-text { display: grid; gap: 14px; max-width: 36rem; }
.origin-text p { color: var(--muted); font-size: clamp(18px, 1rem + 0.3vw, 20px); line-height: 1.55; }
.origin-text p:first-child { color: var(--ink); }
.origin-sign { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 75%; text-transform: uppercase; color: var(--ink) !important; font-size: 22px !important; }
.origin-board {
    display: grid;
    gap: 8px;
    padding: 24px 26px 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.board-head { display: flex; justify-content: space-between; color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.origin-board .link-arrow { justify-self: start; }

/* The app: one screen, three steps */
.app { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; }
.app-device { display: grid; justify-items: center; }
.app-copy { display: grid; gap: 24px; justify-items: start; }
.app-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 22px; max-width: 34rem; }
.app-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; }
.app-steps li > span {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    background: var(--green); color: var(--on-green); font-size: 14px; font-weight: 700;
}
.app-steps p { color: var(--muted); font-size: 18px; line-height: 1.5; padding-top: 3px; }
.app-steps strong { color: var(--ink); font-weight: 600; }
.app-steps code { padding: 2px 6px; border-radius: 6px; background: var(--green-wash); color: var(--ink-2); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; white-space: nowrap; }
.app .cta-note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* Finale */
.finale { display: grid; justify-items: center; gap: 24px; text-align: center; }
.finale-title { font-size: clamp(3rem, 1rem + 6vw, 7rem); line-height: 0.9; letter-spacing: -0.03em; }
.finale .lede { max-width: 30ch; }
.finale .cta-row { justify-content: center; }

/* Footer: links only */
.footer-brand p, .footer-brand .store { display: none; }

@media (max-width: 900px) {
    .hero-photo { justify-self: stretch; width: 100%; aspect-ratio: 4 / 5; }
    .origin, .app { grid-template-columns: minmax(0, 1fr); }
    .app-device { order: 2; }
}
@media (max-width: 640px) {
    .hero h1.display { font-size: min(52px, calc(13vw - 2px)); }
    .origin-board { padding: 18px 18px 12px; }
    .finale .btn-store { width: 100%; }
    .ch-val { font-size: 15px; }
}

/* ---------- My ten ---------- */
.ten-head { display: grid; gap: 20px; padding-block: clamp(32px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.ten-head .lede { max-width: 40ch; }
.ten-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.ten-stats span { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 14px; color: var(--muted); }
.ten-stats strong { color: var(--ink); }
.ten-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ten-area {
    padding: 22px 26px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ten-area h2 { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.ten-area-strength { grid-row: span 2; }
.ten-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: center; padding-block: var(--section); }
.ten-story .photo-card { justify-self: start; }
@media (max-width: 900px) {
    .ten-grid, .ten-story { grid-template-columns: minmax(0, 1fr); }
    .ten-area-strength { grid-row: auto; }
}
@media (max-width: 640px) {
    .ten-area { padding: 18px 18px 8px; }
}
.ten-story .prose { padding-bottom: 0; }


/* Progress bars fill once as they come into view. */
html.bars-ready .ch-bar i { transform: scaleX(0); transform-origin: left center; }
html.bars-ready .is-filled .ch-bar i,
html.bars-ready .ch-bar.is-filled i { transform: scaleX(1); transition: transform 1.1s var(--ease); }
html.bars-ready .is-filled .ch:nth-child(2) .ch-bar i { transition-delay: 80ms; }
html.bars-ready .is-filled .ch:nth-child(3) .ch-bar i { transition-delay: 160ms; }
html.bars-ready .is-filled .ch:nth-child(4) .ch-bar i { transition-delay: 240ms; }
html.bars-ready .is-filled .ch:nth-child(5) .ch-bar i { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
    html.bars-ready .ch-bar i { transform: none !important; transition: none !important; }
}

/* Progress widths as classes: the site CSP (style-src 'self') blocks inline style attributes. */
.p0{width:0%}.p1{width:1%}.p2{width:2%}.p3{width:3%}.p4{width:4%}.p5{width:5%}.p6{width:6%}.p7{width:7%}.p8{width:8%}.p9{width:9%}.p10{width:10%}.p11{width:11%}.p12{width:12%}.p13{width:13%}.p14{width:14%}.p15{width:15%}.p16{width:16%}.p17{width:17%}.p18{width:18%}.p19{width:19%}.p20{width:20%}.p21{width:21%}.p22{width:22%}.p23{width:23%}.p24{width:24%}.p25{width:25%}.p26{width:26%}.p27{width:27%}.p28{width:28%}.p29{width:29%}.p30{width:30%}.p31{width:31%}.p32{width:32%}.p33{width:33%}.p34{width:34%}.p35{width:35%}.p36{width:36%}.p37{width:37%}.p38{width:38%}.p39{width:39%}.p40{width:40%}.p41{width:41%}.p42{width:42%}.p43{width:43%}.p44{width:44%}.p45{width:45%}.p46{width:46%}.p47{width:47%}.p48{width:48%}.p49{width:49%}.p50{width:50%}.p51{width:51%}.p52{width:52%}.p53{width:53%}.p54{width:54%}.p55{width:55%}.p56{width:56%}.p57{width:57%}.p58{width:58%}.p59{width:59%}.p60{width:60%}.p61{width:61%}.p62{width:62%}.p63{width:63%}.p64{width:64%}.p65{width:65%}.p66{width:66%}.p67{width:67%}.p68{width:68%}.p69{width:69%}.p70{width:70%}.p71{width:71%}.p72{width:72%}.p73{width:73%}.p74{width:74%}.p75{width:75%}.p76{width:76%}.p77{width:77%}.p78{width:78%}.p79{width:79%}.p80{width:80%}.p81{width:81%}.p82{width:82%}.p83{width:83%}.p84{width:84%}.p85{width:85%}.p86{width:86%}.p87{width:87%}.p88{width:88%}.p89{width:89%}.p90{width:90%}.p91{width:91%}.p92{width:92%}.p93{width:93%}.p94{width:94%}.p95{width:95%}.p96{width:96%}.p97{width:97%}.p98{width:98%}.p99{width:99%}.p100{width:100%}
.ten-cta { margin-top: 32px; }

/* ---------- Challenge videos: one platform-labelled link per tested challenge ---------- */
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.ch-watch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-block: 10px;
    margin-block: -6px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}
.ch-watch svg { width: 14px; height: 14px; flex: none; }
.ch-watch span { transition: transform var(--fast) ease; }
.ch-watch:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ch-watch:hover span { transform: translate(2px, -2px); }
.ch-watch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- Page-to-page: the bars on the homepage glide into place on My ten ---------- */
@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
}
::view-transition-group(*) { animation-duration: 460ms; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
.site-header { view-transition-name: site-header; }
.vt-bench-press .ch-bar { view-transition-name: bar-bench-press; }
.vt-back-squat .ch-bar { view-transition-name: bar-back-squat; }
.vt-trap-bar-deadlift .ch-bar { view-transition-name: bar-trap-bar-deadlift; }
.vt-strict-pull-ups .ch-bar { view-transition-name: bar-strict-pull-ups; }
.vt-front-plank .ch-bar { view-transition-name: bar-front-plank; }
.vt-5k-run .ch-bar { view-transition-name: bar-5k-run; }
.vt-vo2-max .ch-bar { view-transition-name: bar-vo2-max; }
.vt-dead-hang .ch-bar { view-transition-name: bar-dead-hang; }
.vt-toe-touch .ch-bar { view-transition-name: bar-toe-touch; }
.vt-golf .ch-bar { view-transition-name: bar-golf; }
html.bars-instant .ch-bar i { transition: none !important; }

/* ---------- Hero photo parallax (desktop; the frame engine moves it, the scale hides the edges) ---------- */
/* The photo is slightly taller than its 4:5 frame (1080 x 1430), centred; parallax slides it
   vertically inside that spare height, so nothing is ever cropped at the sides. */
.hero-photo img { position: absolute; left: 0; top: -2.96%; width: 100%; height: auto; }
html.parallax-on .hero-photo img { will-change: translate; }
/* The tag sits over the empty wall at the top, clear of the lifter. */
.hero-tag { top: 16px; bottom: auto; }

/* ---------- Contact form: email + message, sent through Netlify Forms ---------- */
.contact-card { justify-items: stretch; }
.contact-form { display: grid; gap: 18px; width: 100%; max-width: 560px; }
.contact-form[hidden] { display: none; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    line-height: 1.45;
    transition: border-color var(--fast) ease, box-shadow var(--fast) ease, background-color var(--fast) ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--quiet); }
.field input:hover,
.field textarea:hover { border-color: var(--quiet); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px var(--green-wash); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #c4361b; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .btn { min-width: 160px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 14px; font-weight: 600; color: var(--muted); }
.form-status.is-error { color: #c4361b; }
.form-note { color: var(--quiet); font-size: 14px; }
.form-note a { color: var(--muted); text-underline-offset: 3px; }
.form-done { display: grid; gap: 6px; max-width: 560px; padding: 20px 22px; border-radius: var(--radius); background: var(--green-wash); outline: none; }
.form-done[hidden] { display: none; }
.form-done-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.form-done p:last-child { color: var(--muted); }
/* Honeypot for spam bots: off-screen, never shown or read out. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
    .form-actions .btn { width: 100%; }
}

/* Hero: the line under the download button is centred on the button. */
.cta-stack { display: inline-grid; justify-items: center; gap: 12px; }
.cta-stack .cta-note { margin-top: 0; text-align: center; }
@media (max-width: 640px) { .cta-stack { display: grid; width: 100%; } }

/* ---------- Hero, editorial: full-height photograph, result card across its bottom edge ---------- */
/* The photograph runs from the headline's top to the bottom of the download area. */
.hero { align-items: stretch; align-content: center; }
.hero-photo {
    position: relative;
    justify-self: stretch;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.hero-frame {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: var(--sunk);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    isolation: isolate;
}
/* A little taller than the frame, so the desktop parallax never shows an edge. */
.hero-media { position: absolute; left: 0; right: 0; top: -4%; height: 108%; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media img,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 62%;
}
.hero-video { opacity: 0; transition: opacity 500ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero-play {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 17, 15, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #f6f4ef;
    cursor: pointer;
}
.hero-play[hidden] { display: none; }
.hero-play svg { width: 14px; height: 14px; fill: currentColor; }
.hero-play .i-play { display: none; }
.hero-play.is-paused .i-play { display: block; }
.hero-play.is-paused .i-pause { display: none; }
.hero-play:focus-visible { outline: 2px solid #f6f4ef; outline-offset: 2px; }
/* The result card sits across the photograph's bottom edge, clear of the lift. */
.hero-tag {
    top: auto;
    left: 22px;
    right: 22px;
    bottom: 0;
    z-index: 3;
    /* Just over the edge: a sliver on the photograph, clear of the lift and the feet. */
    transform: translateY(calc(100% - 14px));
    border: 1px solid rgba(246, 244, 239, 0.08);
    border-radius: var(--radius);
    background: rgba(18, 17, 15, 0.8);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
    backdrop-filter: blur(18px) saturate(1.3);
    box-shadow: 0 12px 30px rgba(20, 18, 14, 0.18);
}
@media (max-width: 900px) {
    /* Phones: a still, cropped for the bar, both plates and Mark's face; no motion. */
    .hero-photo { min-height: 0; aspect-ratio: 640 / 784; margin-bottom: 116px; }
    .hero-media { top: 0; height: 100%; }
    .hero-media img { object-position: 50% 50%; }
    .hero-video, .hero-play { display: none; }
    .hero-tag { left: 14px; right: 14px; }
}

/* ---------- Ribbons, as on the social posts ---------- */
.ribbon {
    display: inline-block;
    padding: 3px 7px 2px;
    border-radius: 3px;
    font-family: var(--display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}
.ribbon-baseline { background: var(--violet); color: #fff; }
.ribbon-final { background: var(--pink); color: var(--on-pink); }
.ch-val .ribbon { margin-left: 8px; }
