/* ===========================================================================
   Scheduler feature / landing page — SCH4, task SC_10068
   ===========================================================================

   Its own stylesheet, deliberately NOT scheduler_css.css. That file is 190 KB
   of app chrome that this page uses none of, and every rule in it is scoped to
   an app screen a logged-out visitor never reaches. Loading it here would cost
   a marketing page — the one page on this module most likely to be opened on a
   phone off a Facebook link — a large blocking download for nothing.

   Every rule below is namespaced `.schfp-` so nothing can leak into the app,
   and the page sits inside the site's own black/gold header for continuity
   (feature-page.md §4). The scheduler blue #1976d2 is the single accent, the
   same token the app uses.

   ⚠ Mobile is not the afterthought here that it is in the app. Base rules are
   the phone layout; the wider shapes are the two min-width blocks at the foot.
   =========================================================================== */

.schfp {
    --schfp-blue: #1976d2;
    --schfp-blue-dark: #1565c0;
    --schfp-ink: #1b2430;
    --schfp-body: #46525f;
    --schfp-line: #e3e8ee;
    --schfp-tint: #f5f8fc;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--schfp-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;

    /* 🛑 NOT REDUNDANT. header.php drops the page inside a bare <div> whose
       computed text-align is `-webkit-center`, so EVERY paragraph, heading and
       card on this page arrives centred unless it is turned off here — measured
       in Chromium 2026-09-14, and it made the body copy and the feature cards
       read as a poster rather than a page. Only the blocks that opt in with
       .schfp-centered are meant to be centred. */
    text-align: left;
}

/* One width rule for every band, so the whole page shares a spine. */
.schfp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.schfp-narrow { max-width: 720px; }
.schfp-centered { text-align: center; }

.schfp-band { padding: 48px 0; }
.schfp-band-tint { background: var(--schfp-tint); }
.schfp-band-pain { background: #fff; }
.schfp-band-foot {
    background: var(--schfp-ink);
    color: #c9d4e0;
    padding: 56px 0 64px;
}
.schfp-band-foot .schfp-h2 { color: #fff; }
.schfp-band-foot .schfp-cta-note { color: #9fb0c2; }
.schfp-band-foot .schfp-cta-note a { color: #8fc0f5; }

/* ─── Type scale ─────────────────────────────────────────────────────────── */

.schfp-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--schfp-blue);
    margin-bottom: 14px;
}

.schfp-h1 {
    margin: 0 0 16px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--schfp-ink);
}
.schfp-accent { color: var(--schfp-blue); display: block; }

.schfp-h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--schfp-ink);
}

.schfp-h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--schfp-ink);
}

.schfp-lead {
    margin: 0 0 26px;
    font-size: 17px;
    line-height: 1.6;
}
.schfp-body { margin: 0 0 14px; font-size: 15px; }
.schfp-body:last-child { margin-bottom: 0; }
.schfp-fine { font-size: 13px; color: #6b7785; }

/* ⚠ `.schfp a` (0,1,1) OUT-SPECIFIES `.schfp-btn` (0,1,0), so it wins the
   `color` on a button that is an anchor — which painted the CTA blue text on a
   blue fill and made the label invisible, measured in Chromium 2026-09-14. The
   button rule below therefore has to be at least as specific. Keep the two
   together; splitting them is how this comes back. */
.schfp a { color: var(--schfp-blue); }
.schfp a.schfp-btn, .schfp a.schfp-btn:hover { color: #fff; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.schfp-hero {
    padding: 44px 0 48px;
    background:
        radial-gradient(1100px 420px at 15% -10%, #eaf3fd 0%, rgba(234, 243, 253, 0) 70%),
        #fff;
    border-bottom: 1px solid var(--schfp-line);
}
.schfp-hero-grid { display: block; }
.schfp-hero-copy { min-width: 0; }

/* ─── Call to action ─────────────────────────────────────────────────────── */
/*
   Link, never a form. The sign-in box this page was drafted with belonged to
   the scheduler's own auth, and SC_12185 removed that on 2026-09-14 — the CTA
   now hands the visitor to the shared /login/. See the head of
   scheduler_feature_page.php.
*/

.schfp-btn {
    display: inline-block;
    padding: 13px 22px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: var(--schfp-blue);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}
.schfp-btn:hover { background: var(--schfp-blue-dark); color: #fff; }
.schfp-btn-lg { padding: 15px 26px; font-size: 16px; }

.schfp-cta-note {
    margin: 0 0 10px;
    font-size: 13px;
    color: #6b7785;
}
.schfp-cta-note:last-child { margin-bottom: 0; }

/* ─── The hero's self-solving mini grid ──────────────────────────────────── */
/*
   Stands in for the product screenshot feature-page.md §4 asks for, which
   needs the 9.15 sample area to exist first. Four equipment columns, four
   rows of time, eight class chips that settle into place one after another —
   the whole pitch, without a word. Replace this block with a real screenshot
   when there is a real gym to shoot.
*/

.schfp-demo { margin-top: 34px; }

.schfp-demo-frame {
    background: #fff;
    border: 1px solid var(--schfp-line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(27, 36, 48, 0.1);
    padding: 14px;
    overflow: hidden;
}

.schfp-demo-head,
.schfp-demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
}
.schfp-demo-head {
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8b98a7;
    text-align: center;
}
.schfp-demo-grid {
    grid-template-rows: repeat(4, 34px);
    background:
        repeating-linear-gradient(to bottom, var(--schfp-tint) 0 34px, #fff 34px 41px);
    border-radius: 8px;
}

.schfp-chip {
    grid-row: var(--r);
    grid-column: var(--c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 7px;
    padding: 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: schfp-settle 9s cubic-bezier(.2, .8, .2, 1) var(--d) infinite;
}
.schfp-chip-a { background: #1976d2; }
.schfp-chip-b { background: #2e7d32; }
.schfp-chip-c { background: #6a1b9a; }
.schfp-chip-d { background: #ef6c00; }

/*
   One keyframe, staggered by each chip's --d: it drifts in from off-place,
   holds for most of the cycle (that's the "solved" state anyone glancing at
   the page actually sees), then resets. 9s with a 3.5s stagger means the grid
   is fully settled far longer than it is moving.
*/
@keyframes schfp-settle {
    0%   { opacity: 0; transform: translate(-26px, -14px) scale(0.9); }
    6%   { opacity: 1; transform: translate(0, 0) scale(1); }
    92%  { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(26px, 14px) scale(0.9); }
}

.schfp-demo-foot {
    margin-top: 10px;
    font-size: 12px;
    color: #8b98a7;
    text-align: center;
}

/* 🛑 Motion is decoration here and nothing depends on it — so the whole
   animation goes away and every chip sits in its final place. */
@media (prefers-reduced-motion: reduce) {
    .schfp-chip { animation: none; opacity: 1; transform: none; }
}

/* ─── How it works ───────────────────────────────────────────────────────── */

.schfp-steps {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 22px;
}
.schfp-step { min-width: 0; }
.schfp-step-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: var(--schfp-blue);
    border-radius: 50%;
}

/* ─── Feature grid ───────────────────────────────────────────────────────── */

.schfp-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
}
.schfp-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--schfp-line);
    border-radius: 12px;
    padding: 20px;
}
.schfp-card-wide { border-color: #c9dcf3; background: #f7fbff; }

/* ─── Revenue highlight ──────────────────────────────────────────────────── */

.schfp-highlight {
    background: #fff;
    border: 1px solid var(--schfp-line);
    border-left: 5px solid var(--schfp-blue);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 18px;
}

/* ─── Mini-FAQ ───────────────────────────────────────────────────────────── */

.schfp-faq { margin: 26px 0 0; }
.schfp-faq dt {
    font-size: 16px;
    font-weight: 700;
    color: var(--schfp-ink);
    margin-top: 20px;
}
.schfp-faq dt:first-of-type { margin-top: 0; }
.schfp-faq dd {
    margin: 6px 0 0;
    font-size: 15px;
}

/* ─── Tablet ─────────────────────────────────────────────────────────────── */

@media (min-width: 700px) {
    .schfp-band { padding: 64px 0; }
    .schfp-h1 { font-size: 42px; }
    .schfp-h2 { font-size: 28px; }
    .schfp-lead { font-size: 18px; }

    .schfp-steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
    .schfp-grid  { grid-template-columns: repeat(2, 1fr); }
    .schfp-card-wide { grid-column: 1 / -1; }

    .schfp-demo-grid { grid-template-rows: repeat(4, 40px); }
}

/* ─── Desktop ────────────────────────────────────────────────────────────── */

@media (min-width: 1000px) {
    .schfp-hero { padding: 72px 0 76px; }
    .schfp-hero-grid {
        display: grid;
        grid-template-columns: 1.05fr 0.95fr;
        gap: 48px;
        align-items: center;
    }
    .schfp-demo { margin-top: 0; }

    .schfp-h1 { font-size: 50px; }
    .schfp-grid { grid-template-columns: repeat(3, 1fr); }
}
