/* ============================================================================
   home-launch.css — the launch sections of the public homepage (index.html)
   ============================================================================
   Oct 10 2026 (lane L2). Owns ONLY the `hl-*` classes: the Pro play designer
   showcase, the Coming Soon row, the Free-tier checklist and the mobile CTA.
   Page-wide tokens (--bg-*, --text-*, --font-*) come from index.html :root;
   the volt family is copied from platform/css/volt-day.css (the Volt Operator
   language) — FILL with dark ink, never volt text on a light surface.

   Laws this file keeps (scripts/test-homepage-launch.js enforces them):
   - hex ONLY inside custom-property declarations in :root below
   - Saira Condensed for display, Rajdhani for UI; NO Orbitron (numerals only,
     and these sections carry none)
   - no pill soup: the look switcher is ONE joined segmented control; status
     ("Coming soon") is the only full-radius badge
   ============================================================================ */

:root {
    /* The accent is the SECTION's (css/sc-accent.css; Carlos, Oct 10: volt
       only for the referee device and the platform). These sections are the
       coach product, so they carry data-accent="coach": grass green. */
    --hl-panel: rgba(18, 22, 31, 0.86);
    --hl-panel-edge: rgba(255, 255, 255, 0.09);
    --hl-panel-edge-strong: rgba(255, 255, 255, 0.18);
    --hl-soon: #f59e0b;
    --hl-soon-muted: rgba(245, 158, 11, 0.14);
    --hl-soon-edge: rgba(245, 158, 11, 0.38);
    /* the device we draw ourselves (no stock frame): graphite body, a lit edge */
    --hl-device-body: #0b0d12;
    --hl-device-edge: rgba(255, 255, 255, 0.16);
    --hl-device-shadow: rgba(0, 0, 0, 0.55);
}

/* ─── Free-tier checklist (Oct 10 2026, lane PR1) ───
   Replaces the glowing pill row (an AI tell): plain text in two columns, a
   small drawn check in the coach accent, no borders, no glow. */
.hl-checklist {
    list-style: none;
    margin: 4px auto 0;
    padding: 0;
    max-width: 560px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 12px;
    text-align: left;
}
.hl-checklist li {
    position: relative;
    padding-left: 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.35;
    color: var(--text-primary);
}
.hl-checklist li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.32em;
    width: 6px;
    height: 11px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@media (max-width: 480px) {
    .hl-checklist { grid-template-columns: 1fr; max-width: 320px; row-gap: 10px; }
}
/* ─── Four-up stat row (AI Play Generator, Oct 10 2026) ───
   .moat-stats is auto-fit minmax(160px): in the narrow stack-block text column
   only three fit and the fourth wrapped onto its own line. Four equal columns
   on desktop, the page's own 2×2 on a phone. Same box + hairline dividers. */
.moat-stats.hl-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }
.moat-stats.hl-stats-4 .moat-stat { padding: 22px 14px; }
.moat-stats.hl-stats-4 .moat-stat-label { white-space: nowrap; letter-spacing: 0.16em; }
@media (max-width: 720px) {
    .moat-stats.hl-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* An icon in a numeral slot: the stat's size and accent, never an emoji. */
.hl-stat-icon { display: flex; align-items: center; height: clamp(28px, 3vw, 40px); }
.hl-stat-icon svg { width: auto; height: 100%; }

.hl-accent-text { color: var(--primary); }

/* .hl-mobile-cta moved to css/sc-site-header.css as .sch-mobile-cta (lane L4b). */

/* ─── Fixed chrome clearance ───
   The top nav (fixed, 62–76px) and the tier score-bug (fixed, bottom at
   109px; 121px on a phone) sit over the page. Every in-page jump on this page
   is scrollIntoView({block:'start'}) or a #fragment, and both honour
   scroll-margin-top, so a section reached by a jump lands with its eyebrow and
   headline BELOW the bars instead of under them. */
:root { --hl-chrome-clear: 120px; }
body > section[id] { scroll-margin-top: var(--hl-chrome-clear); }

/* ─── Shared section frame ─── */
.hl-section {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}
.hl-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }
.hl-head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.hl-headline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 84px);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}
.hl-headline .hl-volt-fill {
    display: inline-block;
    background: rgb(var(--sc-page-accent-rgb));
    color: var(--sc-page-accent-ink);
    padding: 0 0.14em;
    transform: skewX(-6deg);
}
/* Coming soon headline (Oct 10 2026): one sentence per line, never broken
   inside a sentence, sized to fit the 820px head at every width. */
.hl-soon-headline { font-size: clamp(36px, 7vw, 92px); }
.hl-soon-headline .hl-line { white-space: nowrap; }
.hl-sub {
    margin-top: 20px;
    font-family: var(--font-body);
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.5;
    color: var(--text-secondary);
}
.hl-sub strong { color: var(--text-primary); font-weight: 700; }

/* ─── PRO DESIGNER showcase ─── */
.hl-designer {
    background:
        radial-gradient(60% 50% at 50% 38%, rgba(var(--sc-page-accent-rgb), 0.22) 0%, transparent 70%),
        var(--bg-dark);
    border-top: 1px solid var(--hl-panel-edge);
}
.hl-designer-stage {
    /* Carlos, round 3: "we're showing way too much of the play designer" —
       the iPad sits at ≤ 70% of the content column, centred; a phone fits
       it to the width. */
    position: relative;
    margin: 0 auto;
    width: min(70%, 860px);
}
@media (max-width: 900px) { .hl-designer-stage { width: 100%; } }
.hl-designer-shot {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    background: var(--bg-card);
}
.hl-designer-shot[hidden] { display: none; }

/* the ONE segmented control (control grammar: joined, hairline dividers,
   active = ink fill + volt bottom edge) */
.hl-seg {
    display: inline-flex;
    margin: 0 auto 22px;
    border: 1px solid var(--hl-panel-edge-strong);
    border-radius: 4px;
    overflow: hidden;
    background: var(--hl-panel);
}
.hl-seg-wrap { text-align: center; }
.hl-seg button {
    appearance: none;
    border: 0;
    border-left: 1px solid var(--hl-panel-edge);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    min-height: 44px;
    padding: 0 20px;
    cursor: pointer;
    box-shadow: inset 0 -3px 0 transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.hl-seg button:first-child { border-left: 0; }
.hl-seg button:hover { color: var(--text-primary); }
.hl-seg button[aria-pressed="true"] {
    background: var(--bg-elevated);
    color: var(--text-primary);
    box-shadow: inset 0 -3px 0 rgb(var(--sc-page-accent-rgb));
}
.hl-seg button:focus-visible { outline: 2px solid rgb(var(--sc-page-accent-rgb)); outline-offset: -2px; }

.hl-designer-caption {
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-label);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.hl-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 48px auto 0;
    max-width: 1120px;
    background: var(--hl-panel-edge);
    border: 1px solid var(--hl-panel-edge);
    border-radius: 14px;
    overflow: hidden;
}
.hl-feature {
    background: var(--bg-card);
    padding: 26px 22px 28px;
    box-shadow: inset 0 3px 0 transparent;
}
.hl-feature:first-child { box-shadow: inset 0 3px 0 rgb(var(--sc-page-accent-rgb)); }
.hl-feature-label {
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--sc-page-accent-deep-rgb));
}
.hl-feature-title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-primary);
}
.hl-feature-body {
    margin-top: 10px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.hl-designer-foot {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 24px;
}
.hl-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: rgb(var(--sc-page-accent-rgb));
    color: var(--sc-page-accent-ink);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(var(--sc-page-accent-rgb), 0.22);
}
.hl-cta:hover { background: rgb(var(--sc-page-accent-deep-rgb)); }
.hl-rollout {
    font-family: var(--font-label);
    font-size: 14px;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

/* ─── COMING SOON ─── */
.hl-soon-section {
    background:
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--hl-panel-edge);
}
.hl-soon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}
.hl-soon-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hl-panel);
    border: 1px solid var(--hl-panel-edge);
    border-radius: 14px;
    overflow: hidden;
}
.hl-soon-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--hl-panel-edge);
    overflow: hidden;
}
.hl-soon-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hl-soon-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--hl-soon-muted);
    border: 1px solid var(--hl-soon-edge);
    color: var(--hl-soon);
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hl-soon-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    text-transform: uppercase;
    color: var(--text-primary);
}
.hl-soon-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.hl-soon-list {
    list-style: none;
    margin-top: 4px;
    display: grid;
    gap: 6px;
}
.hl-soon-list li {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}
.hl-soon-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 2px;
    background: var(--hl-soon);
}

/* ─── Coming-soon schematics (inline SVG, token-coloured) ─── */

/* ─── iPad portrait + below ─── */
@media (max-width: 1024px) {
    .hl-section { padding: 96px 24px; }
    .hl-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hl-soon-grid { grid-template-columns: 1fr; max-width: 560px; }
}
/* ─── phone ─── */
@media (max-width: 600px) {
    :root { --hl-chrome-clear: 132px; }
    .hl-section { padding: 72px 16px; }
    .hl-designer-stage { padding: 6px; border-radius: 12px; }
    .hl-feature-grid { grid-template-columns: 1fr; }
    .hl-seg button { padding: 0 12px; font-size: 12px; letter-spacing: 0.1em; }
    .hl-soon-title { font-size: 26px; }
}

/* ─── Typography pass (Oct 10 2026, Carlos: "it has to be intentional") ───
   Headlines break where they are designed to (<br> + .hl-ph phrase spans that
   never break inside), and balance as the fallback; body copy wraps "pretty"
   so a paragraph never ends on one word. Eyebrows and buttons never wrap.
   scripts/test-homepage-launch.js --browser measures it at 1440/1024/768/390. */
body :is(h1, h2, h3):not(:has(br, .hl-ph)) { text-wrap: balance; }
body :is(p, li, summary) { text-wrap: pretty; }
.hl-ph { white-space: nowrap; }
.dnd-eyebrow, .dnd-eyebrow > span, [class*="-eyebrow"], .stack-block-tag { white-space: nowrap; }
:is(a, button)[class*="cta"], :is(a, button)[class*="btn"], .explore-pill { white-space: nowrap; }
/* Designed lines must fit their column before they are allowed to wrap. */
.moat-section .moat-headline { font-size: clamp(40px, 6vw, 84px); }
.stack-block-title.hl-title-fit { font-size: clamp(30px, 3.6vw, 60px); }

/* ─── Devices (Oct 10 2026, PR1: "enterprise-level — every screenshot sits in a
   device frame we own"). Drawn in CSS: no stock render, no third-party frame.
   iPad is the primary device; the athlete app sits in a phone. ─── */
.hl-ipad, .hl-phone {
    position: relative;
    margin: 0;
    background: var(--hl-device-body);
    box-shadow: 0 0 0 1px var(--hl-device-edge), 0 30px 80px var(--hl-device-shadow);
}
.hl-ipad { border-radius: clamp(16px, 2.2vw, 34px); padding: clamp(9px, 1.25vw, 18px); }
.hl-ipad > img, .hl-ipad > .hl-designer-shot { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: clamp(6px, 0.8vw, 12px); }
.hl-ipad > .hl-designer-shot[hidden] { display: none; }   /* the look switcher hides two of three */
.hl-ipad.hl-designer-stage { margin: 0 auto; }
.hl-designer-fig { margin: 0; }   /* the frame's margin:0 must not un-centre the hero */
.hl-ipad::before {           /* the front camera, on the long edge in landscape */
    content: '';
    position: absolute;
    top: 50%;
    left: calc(clamp(9px, 1.25vw, 18px) / 2 - 2px);
    width: 4px; height: 4px; margin-top: -2px;
    border-radius: 50%;
    background: var(--hl-device-edge);
}
.hl-phone { border-radius: 34px; padding: 8px; }
.hl-phone > img { display: block; width: 100%; height: auto; border-radius: 27px; }
.hl-ipad--sm { border-radius: 16px; padding: 8px; }
.hl-ipad--sm > img { border-radius: 6px; object-fit: cover; object-position: top left; }
.hl-phone--sm { border-radius: 24px; padding: 6px; }
.hl-phone--sm > img { border-radius: 19px; }

/* ─── The live flow: four real moments on one progress line ───
   Not a numbered list and not an icon grid: the frames stand on a single
   solid accent line, a node where each one touches it. The steps share one
   subgrid so the line and the nodes sit on the same row whatever the copy
   length. Phone: the line runs down the left and the steps stack. */
.hl-flow {
    --hl-flow-gap: clamp(16px, 2.4vw, 36px);
    list-style: none;
    margin: 0 auto 96px;
    padding: 0;
    max-width: 1100px;      /* inside the page's edge vignette (index.html .edge-vignette) */
    display: grid;
    grid-template-columns: 1.45fr 1.45fr 0.7fr 0.7fr;
    grid-template-rows: auto 12px auto;
    column-gap: var(--hl-flow-gap);
    row-gap: 18px;
}
.hl-flow-step { display: grid; grid-row: span 3; grid-template-rows: subgrid; position: relative; }
.hl-flow-step > figure { grid-row: 1; align-self: end; width: 100%; }
.hl-flow-step:not(.hl-flow-step--wide) > figure { max-width: 220px; }
.hl-flow-step::before {      /* the node */
    content: '';
    grid-row: 2; grid-column: 1;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgb(var(--sc-page-accent-rgb));
    position: relative; z-index: 1;
}
.hl-flow-step::after {       /* this step's stretch of the one line */
    content: '';
    grid-row: 2; grid-column: 1;
    align-self: center;
    height: 2px;
    margin-right: calc(-1 * var(--hl-flow-gap));
    background: rgb(var(--sc-page-accent-rgb));
}
.hl-flow-step:last-child::after { margin-right: 0; }
.hl-flow-copy { grid-row: 3; }
.hl-flow-title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(20px, 1.7vw, 26px);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--text-primary);
}
.hl-flow-text {
    margin: 0;
    max-width: 34ch;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.45;
    color: var(--text-secondary);
}
@media (max-width: 900px) {
    .hl-flow { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 44px; padding-left: 30px; position: relative; }
    .hl-flow::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: rgb(var(--sc-page-accent-rgb)); }
    .hl-flow-step { display: flex; flex-direction: column; grid-row: auto; }
    .hl-flow-step::before { position: absolute; left: -30px; top: 0; }
    .hl-flow-step::after { display: none; }
    .hl-flow-step:not(.hl-flow-step--wide) > figure { max-width: 240px; }
    .hl-flow-step > figure { margin-bottom: 16px; }
}

/* the secondary row — visibly quieter than the live flow above it */
.hl-soon-head { text-align: center; margin: 0 auto 28px; }
.hl-soon-heading {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(26px, 2.6vw, 36px);
    text-transform: uppercase;
    color: var(--text-primary);
}
.hl-soon-sub { margin: 0 auto; max-width: 60ch; font-family: var(--font-body); font-size: 17px; color: var(--text-secondary); }
.hl-soon-visual { display: flex; align-items: center; justify-content: center; padding: 20px; aspect-ratio: auto; height: 250px; }
.hl-soon-visual > figure { height: 100%; width: auto; max-width: 100%; }
.hl-soon-visual > figure > img { height: 100%; width: auto; max-width: 100%; object-fit: cover; object-position: top left; }
.hl-soon-visual > .hl-ipad--sm > img { aspect-ratio: 4 / 3; }
.hl-soon-visual > .hl-phone--sm > img { aspect-ratio: 480 / 972; }

/* plain eyebrow — text, the accent, letter-spaced; no chip, no pill */
.hl-eyebrow {
    margin: 0 0 18px;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgb(var(--sc-page-accent-rgb));
}
