/* ============================================================
   Online page (/online-programs). Loads after /css/site.css and only
   adds what this page needs: the two-option hero, the program intro,
   the 4-phase timeline, the included list, price cards, live-session
   steps, the "good fit" cards and the coach block. Everything else
   (header, footer, FAQ, CTA panel, buttons, reveal) comes from site.css.
   Tokens, motion and rules: docs/design-system.md.
============================================================ */

/* ---- Hover easing for this page's triggers (same pattern as site.css) ---- */
.pick-card, .price-card, .live-step, .fit-item, .incl li, .tailored li {
    --e: var(--ease-in-out);
    --e-spring: var(--ease-in-out);
}
.pick-card:hover, .pick-card:focus-visible, .price-card:hover, .live-step:hover,
.fit-item:hover, .incl li:hover, .tailored li:hover {
    --e: var(--ease-out);
    --e-spring: var(--ease-spring);
}


/* Line icons in this page's slots ease with their trigger */
.pick-card .chip .ic, .tailored .tile, .incl .tile, .live-step .tile, .fit-item .tile {
    transition: color var(--dur-2) var(--e), translate var(--dur-2) var(--e);
}

/* ---- Hero: heading and lede on one row, the two options below ---- */
.ohero { padding: 64px 0 112px; }
.ohero-head {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: end;
    margin-bottom: 64px;
}
.ohero-title h1 { margin: 0; max-width: 11ch; }
.ohero-side .hero-lede { margin-bottom: 32px; }
.ohero .hero-meta { margin: 0; }

/* Option picker: card, "or", card (the "or" divider is the shared .offer-or) */
.pick { display: grid; grid-template-columns: 1fr 88px 1fr; align-items: stretch; }
.pick .offer-or { grid-column: auto; grid-row: auto; }
.pick-card {
    position: relative; min-width: 0;
    display: flex; flex-direction: column; gap: 16px;
    padding: 32px 32px 28px; color: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-rest);
    transition: border-color var(--dur-2) var(--e), background-color var(--dur-2) var(--e), translate var(--dur-2) var(--e);
}
.pick-card:hover { color: inherit; }
.pick-card::after, .price-card::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
    box-shadow: var(--shadow-lift); opacity: 0;
    transition: opacity var(--dur-2) var(--e);
}
.pick-title { font-size: clamp(26px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
.pick-text { font-size: 16px; margin: 0; }
.pick-facts { display: grid; gap: 10px; padding: 4px 0 8px; }
.pick-facts li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.pick-facts .ic { width: 16px; height: 16px; flex-basis: 16px; color: var(--ink-3); }
/* Real brand marks in their own colours, same size as the line icons */
.brand-inline { display: inline-flex; align-items: center; gap: 5px; vertical-align: top; }
.brand-inline .logo, .apps .logo { width: 16px; height: 16px; flex-basis: 16px; }
.apps { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; }
.apps span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pick-foot {
    margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px;
}
.pick-foot .price { color: var(--ink-2); }
.pick-foot .price .num { font-family: var(--serif); font-variation-settings: "SOFT" 50; font-size: 22px; color: var(--ink); letter-spacing: -0.01em; }
.pick-foot .more { display: inline-flex; align-items: center; gap: 6px; color: var(--honey-ink); font-weight: 500; white-space: nowrap; }
.pick-foot .more .ic { width: 16px; height: 16px; flex-basis: 16px; transition: translate var(--dur-2) var(--e); }
.pick-card:focus-visible .more .ic { translate: 0 var(--nudge); }
@media (hover: hover) {
    .pick-card:hover { border-color: var(--line-2); background: #fff; translate: 0 var(--lift-md); }
    .pick-card:hover::after { opacity: 1; }
    .pick-card:hover .chip .ic { color: var(--honey-ink); }
    .pick-card:hover .more .ic { translate: 0 var(--nudge); }
}
.pick-card:active { translate: 0 var(--lift-sm); transition-duration: var(--dur-press); }

/* ---- Program intro: photo beside the text and the four "why custom" points ---- */
.prog-intro, .live { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
.prog-photo, .live-photo {
    position: relative; min-height: 420px;
    border-radius: var(--r-panel); overflow: hidden; background: var(--bg-2);
}
.prog-photo picture, .live-photo picture { display: contents; }
.prog-photo img, .live-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-photo img { object-position: 45% 50%; }
.live-photo img { object-position: 62% 50%; }
.prog-lead { font-size: 19px; line-height: 1.55; color: var(--ink); }
.prog-text > p:not(.prog-lead) { font-size: 16px; max-width: 34rem; }
.tailored {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px;
    margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line-2);
}
.tailored li, .incl li { display: flex; gap: 14px; align-items: flex-start; }
.tailored .tile, .incl .tile { padding-top: 1px; }
.tailored strong, .incl strong { display: block; color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.tailored span span, .incl span span { display: block; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
@media (hover: hover) {
    .tailored li:hover .tile, .incl li:hover .tile { color: var(--honey-ink); translate: 0 var(--lift-sm); }
}

/* ---- Twelve weeks: four equal columns, each with a hairline and a short honey rule on top ---- */
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.phase { position: relative; padding-top: 24px; border-top: 1px solid var(--line-2); }
.phase::before {
    content: ""; position: absolute; left: 0; top: -1px; width: 40px; height: 2px;
    background: var(--honey); border-radius: 0 0 2px 2px;
}
.phase-n { display: block; font-size: 14px; font-weight: 500; color: var(--honey-ink); margin-bottom: 10px; }
.phase h3 { font-size: 22px; margin-bottom: 8px; }
.phase p { font-size: 15px; }

/* ---- What's included + program price ---- */
.incl-wrap { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: start; }
.incl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.incl li { padding: 24px 0; border-top: 1px solid var(--line-2); }
.incl li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-2); }

.price-card {
    position: relative; min-width: 0;
    display: flex; flex-direction: column;
    padding: 32px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-card);
    box-shadow: var(--shadow-rest);
    transition: border-color var(--dur-2) var(--e), background-color var(--dur-2) var(--e);
}
/* Featured card: a short honey rule on the top edge, like the signature dash on the homepage */
.price-card--feature::before {
    content: ""; position: absolute; top: -1px; left: 32px; width: 40px; height: 2px;
    background: var(--honey); border-radius: 0 0 2px 2px;
}
.price-card-label {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 16px;
}
.price-flag { font-size: 13px; font-weight: 500; color: var(--honey-ink); }
.price-amount {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
    margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.price-amount .num {
    font-family: var(--serif); font-variation-settings: "SOFT" 50; font-weight: 400;
    font-size: 52px; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.price-unit { font-size: 15px; color: var(--ink-3); }
.price-card-text { font-size: 15px; margin: 0; }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.4; }
.ticks .ic { width: 16px; height: 16px; flex-basis: 16px; color: var(--honey-ink); }
.price-card-cta { display: grid; gap: 10px; margin-top: 28px; }
.price-card-cta .btn { justify-content: center; }
@media (hover: hover) {
    .price-card:hover { border-color: var(--line-2); background: #fff; }
    .price-card:hover::after { opacity: .6; }
}
.price-note { margin: 40px 0 0; max-width: 46rem; font-size: 15px; color: var(--ink-3); }

/* ---- Live sessions: photo beside four steps ---- */
.live-steps { display: flex; flex-direction: column; justify-content: center; }
.live-step { display: flex; gap: 16px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--line-2); }
.live-step:last-child { border-bottom: 1px solid var(--line-2); }
.live-step .tile { padding-top: 2px; }
.live-step-n { display: block; font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.live-step h3 { font-size: 21px; margin-bottom: 6px; }
.live-step p { font-size: 15px; }
@media (hover: hover) {
    .live-step:hover .tile { color: var(--honey-ink); translate: 0 var(--lift-sm); }
}

/* ---- Who live sessions suit ---- */
.fit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fit-item {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 28px 24px; box-shadow: var(--shadow-rest);
}
.fit-item .tile { margin-bottom: 20px; }
.fit-item h3 { font-size: 20px; margin-bottom: 8px; }
.fit-item p { font-size: 15px; }
@media (hover: hover) {
    .fit-item:hover .tile { color: var(--honey-ink); translate: 0 var(--lift-sm); }
}

/* ---- Live session prices ---- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.prices-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 24px 40px;
    margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line);
}
.prices-foot p { max-width: 36rem; font-size: 16px; margin: 0; }
.prices-foot-cta { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ---- Coach ---- */
.coach { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; }
.coach-photo { border-radius: var(--r-panel); overflow: hidden; background: var(--bg-2); }
.coach-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.coach-text > p:not(.label) { font-size: 17px; max-width: 36rem; }
.coach .creds { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.coach .creds li { border-top: 1px solid var(--line); }
.coach .creds li:nth-child(-n+2) { border-top: 0; }

/* Grid children may shrink below their content width */
.ohero-head > *, .pick > *, .prog-intro > *, .live > *, .phases > *, .incl-wrap > *, .incl > *,
.prices > *, .fit > *, .coach > *, .tailored > * { min-width: 0; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .pick { grid-template-columns: 1fr 72px 1fr; }
    .fit { grid-template-columns: 1fr 1fr; }
    .incl-wrap { grid-template-columns: 1.3fr 1fr; gap: 40px; }
    .incl { grid-template-columns: 1fr; }
    .incl li:nth-last-child(-n+2) { border-bottom: 0; }
    .incl li:last-child { border-bottom: 1px solid var(--line-2); }
}

@media (max-width: 900px) {
    .ohero { padding: 32px 0 80px; }
    .ohero-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
    .ohero-title h1 { max-width: 14ch; }
    .pick { grid-template-columns: 1fr; }
    .prog-intro, .live, .incl-wrap, .coach { grid-template-columns: 1fr; gap: 40px; }
    .prog-photo, .live-photo { min-height: 0; aspect-ratio: 16 / 10; }
    .phases { grid-template-columns: 1fr 1fr; row-gap: 48px; }
    .incl { grid-template-columns: 1fr 1fr; }
    .incl li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-2); }
    .prices { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
    .price-card { padding: 28px 24px; }
    .price-card--feature::before { left: 24px; }
    .price-amount .num { font-size: 44px; }
    .prices-foot { flex-direction: column; align-items: flex-start; }
    .coach-photo { max-width: 420px; }
    .incl-wrap .price-card { max-width: 480px; }
}

@media (max-width: 720px) {
    .prices { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .pick-card { padding: 24px 20px 22px; }
    .tailored, .incl, .phases, .fit, .coach .creds { grid-template-columns: 1fr; }
    .incl li:nth-last-child(-n+2) { border-bottom: 0; }
    .incl li:last-child { border-bottom: 1px solid var(--line-2); }
    .coach .creds li:nth-child(2) { border-top: 1px solid var(--line); }
    .phases { row-gap: 40px; }
    .prices-foot-cta, .prices-foot-cta .btn { width: 100%; justify-content: center; }
    .pick-foot { flex-wrap: wrap; }
}

