/* ============================================================
   CheesCoach — landing page

   The page is shaped like a game: it opens with a position
   under judgement, then walks the opening, the middlegame and
   the endgame, then the post-mortem. The numbering earns its
   place because the content really is that sequence.
   ============================================================ */

/* ============================================================
   1. Shared section furniture
   ============================================================ */

.band {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    position: relative;
}

.band-tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.band-paper {
    background: var(--paper);
    color: var(--paper-text);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: var(--space-4);
}

.eyebrow-ice { color: var(--ice); }
.eyebrow-gold { color: var(--gold); }

.lede {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 58ch;
    line-height: var(--leading-normal);
}


.section-head {
    max-width: 62ch;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head h2 {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    margin-bottom: var(--space-5);
}

/* ============================================================
   2. Navbar tweaks over components.css
   ============================================================ */

.navbar-logo span {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.navbar-links a {
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

/* ============================================================
   3. Hero — a position under judgement
   ============================================================ */

.hero {
    position: relative;
    padding: clamp(6rem, 10vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    background:
        radial-gradient(ellipse 70% 55% at 22% -5%, rgba(185, 166, 232, 0.17) 0%, transparent 62%),
        radial-gradient(ellipse 55% 45% at 88% 18%, rgba(159, 193, 234, 0.10) 0%, transparent 58%),
        var(--bg-primary);
    overflow: hidden;
}

.hero::after {
    /* a single faint board, bled off the right edge */
    content: '';
    position: absolute;
    right: -14%;
    top: 8%;
    width: 46rem;
    height: 46rem;
    background-image:
        linear-gradient(45deg, rgba(185, 166, 232, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(185, 166, 232, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(185, 166, 232, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(185, 166, 232, 0.05) 75%);
    background-size: 5.75rem 5.75rem;
    background-position: 0 0, 0 2.875rem, 2.875rem -2.875rem, -2.875rem 0;
    transform: rotate(-12deg);
    pointer-events: none;
    mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
    z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

/* The one orchestrated moment on the page: the hero settles into place
   once, on load. Written in CSS so it never depends on a script landing. */
@keyframes hero-settle {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.hero-content > *,
.annotation {
    animation: hero-settle 0.42s cubic-bezier(.22, .8, .3, 1) backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.02s; }
.hero-content > *:nth-child(2) { animation-delay: 0.07s; }
.hero-content > *:nth-child(3) { animation-delay: 0.12s; }
.hero-content > *:nth-child(4) { animation-delay: 0.17s; }
.hero-content > *:nth-child(5) { animation-delay: 0.22s; }
.annotation { animation-delay: 0.14s; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(185, 166, 232, 0.09);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.42rem 0.95rem;
    margin-bottom: var(--space-6);
}

.hero-kicker img { width: 20px; height: 20px; border-radius: 4px; }

.hero .hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    line-height: 1.03;
    margin-bottom: var(--space-6);
    max-width: 14ch;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.7vw, 1.28rem);
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: var(--space-8);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
}

.hero-note {
    margin-top: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* --- The annotation: the thing the product actually does --- */

.annotation {
    background: linear-gradient(168deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: clamp(1.15rem, 2vw, 1.6rem);
    box-shadow: var(--shadow-xl), var(--shadow-glow-blue-strong);
    position: relative;
    max-width: 25rem;
    margin-left: auto;
    width: 100%;
}

.annotation-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.annotation-move {
    font-family: var(--font-mono);
    font-size: clamp(1.35rem, 2.3vw, 1.75rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.annotation-move .glyph {
    color: var(--grade-blunder);
    margin-left: 0.06em;
}

.annotation-eval {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--grade-blunder);
    white-space: nowrap;
}

.annotation-verdict {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--grade-blunder);
    background: rgba(239, 140, 134, 0.12);
    border: 1px solid rgba(239, 140, 134, 0.3);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.8rem;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.annotation-board {
    display: grid;
    /* minmax(0, 1fr), not 1fr: plain `1fr` means minmax(AUTO, 1fr), so every
       rank reserves at least the height of the piece standing on it and the
       empty rank is left with the remainder — 5px against 49px, measured.
       Zeroing the minimum is what makes all 64 squares actually square. */
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(8, minmax(0, 1fr));
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-5);
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}

.annotation-board span {
    display: grid;
    place-items: center;
    position: relative;
    user-select: none;
}

/* The Staunty set the app ships, pulled from the same vector drawables. */
.annotation-board .pc {
    width: 92%;
    height: 92%;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.annotation-board span.d { background: var(--board-dark); }
.annotation-board span.l { background: var(--board-light); }
.annotation-board span.hit { box-shadow: inset 0 0 0 100vmax rgba(239, 140, 134, 0.42); }
.annotation-board span.from { box-shadow: inset 0 0 0 100vmax rgba(255, 255, 0, 0.28); }

.annotation-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.62;
}

.annotation-text + .annotation-text {
    margin-top: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.annotation-foot {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.annotation-foot .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--grade-best);
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero::after { display: none; }
    .annotation { max-width: 27rem; margin-left: 0; }
    .hero .hero-title { max-width: none; }
}

/* ============================================================
   4. The gap — one light band, one claim
   ============================================================ */

.gap-band {
    background: var(--paper);
    color: var(--paper-text);
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.gap-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.gap-grid h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    margin-bottom: var(--space-5);
}

.gap-quote {
    border-left: 3px solid var(--accent-dim);
    padding-left: var(--space-6);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.6;
    color: var(--paper-text);
}

.gap-quote span {
    display: block;
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--paper-text-muted);
}

@media (max-width: 860px) {
    .gap-grid { grid-template-columns: 1fr; }
    .gap-grid .phone { margin-inline: auto !important; }
}

/* ============================================================
   5. Device frame for real screenshots
   ============================================================ */

.phone {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    background: #0B1020;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
    aspect-ratio: 840 / 1708;
}

.phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.band-paper .phone,
.gap-band .phone {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 44px rgba(26, 29, 38, 0.2);
}

.phone-crop { aspect-ratio: 840 / 1180; }
.phone-crop img { object-position: top; }

.caveat {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 46ch;
}

.phone-caption {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}


/* ============================================================
   6. The three acts
   ============================================================ */

.act {
    position: relative;
    padding: clamp(4rem, 7.5vw, 6.5rem) 0;
    border-top: 1px solid var(--border-subtle);
}

.act-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.act-rev .act-inner { direction: rtl; }
.act-rev .act-inner > * { direction: ltr; }

.act-num {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-5);
}

.act-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-strong), transparent);
    max-width: 7rem;
}

.act-ice .act-num { color: var(--ice); }
.act-ice .act-num::after { background: linear-gradient(90deg, rgba(159,193,234,.4), transparent); }

.act h2 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin-bottom: var(--space-5);
}

.act p.lede { margin-bottom: var(--space-8); }

.act-art {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
}

.act-art img { width: 100%; display: block; }

/* the two halves of each lab: learn it, then play it */
.act-halves {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-6);
}

.half {
    background: linear-gradient(170deg, rgba(20, 29, 51, 0.9), rgba(14, 21, 38, 0.9));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.half h3 {
    font-size: 1.08rem;
    margin-bottom: var(--space-2);
}

.half p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.half-count {
    display: block;
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.act-ice .half-count { color: var(--ice); }

.act-shots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
}

.act-shots > div { display: flex; flex-direction: column; }

/* The two screenshots in an act have different heights when one is cropped,
   so pin their captions to the same baseline. */
.act-shots .phone-caption { margin-top: auto; padding-top: var(--space-4); }

@media (max-width: 900px) {
    .act-inner { grid-template-columns: 1fr; }
    .act-rev .act-inner { direction: ltr; }
    .act-halves { grid-template-columns: 1fr; }
    .act-shots { grid-template-columns: 1fr; max-width: 20rem; margin-inline: auto; }
    .act-shots .phone-caption { margin-top: 0; }
}

/* ============================================================
   7. Soon badge — the app says "coming soon", so does the page
   ============================================================ */

.soon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-glow);
    border: 1px solid rgba(227, 181, 76, 0.32);
    border-radius: var(--radius-full);
    padding: 0.32rem 0.8rem;
    margin-left: 0.6rem;
    vertical-align: middle;
}

.premium-tag {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--gold);
    line-height: 1.6;
    max-width: 52ch;
}

/* ============================================================
   8. The post-mortem — review + coach
   ============================================================ */

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: start;
}

.review-note {
    background: rgba(20, 29, 51, 0.62);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.review-note h3 { font-size: 1.1rem; margin-bottom: var(--space-3); }
.review-note p { color: var(--text-secondary); font-size: 0.95rem; }

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

/* ============================================================
   9. The course ladder
   ============================================================ */

.ladder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.rung {
    position: relative;
    background: rgba(20, 29, 51, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.rung-level {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    color: var(--text-muted);
}

.rung h3 { font-size: 1.15rem; }

.rung p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rung-elo {
    margin-top: auto;
    padding-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent);
}

.rung[data-state="free"] { border-color: rgba(127, 199, 133, 0.35); }
.rung[data-state="free"] .rung-elo { color: var(--grade-best); }
.rung[data-state="soon"] { opacity: 0.62; }
.rung[data-state="soon"] .rung-elo { color: var(--text-muted); }

/* ============================================================
   10. Play — modes rail
   ============================================================ */

.modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
    margin-top: var(--space-8);
}

.mode {
    /* The app draws these as a round medallion with the label beneath it,
       so the page does too: text over the artwork never reads cleanly, and
       the medallion is the shape the illustrations were drawn for. */
    background: linear-gradient(170deg, rgba(20, 29, 51, 0.72), rgba(14, 21, 38, 0.72));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.mode:hover {
    border-color: var(--border-hover);
    background: linear-gradient(170deg, rgba(27, 38, 69, 0.8), rgba(20, 29, 51, 0.8));
}

.mode img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin-bottom: var(--space-4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.mode h3 {
    font-size: 1.22rem;
}

.mode p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ============================================================
   11. The AI layer
   ============================================================ */

.ai-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: var(--space-3);
}

.provider {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: rgba(20, 29, 51, 0.55);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.provider:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.provider strong {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
}

.provider span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.provider-mark {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-bottom: 0.35rem;
}

.access {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.access-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
}

.access-key {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ice);
    padding-top: 0.25rem;
    min-width: 5.5rem;
}

.access-row p { color: var(--text-secondary); font-size: 0.95rem; }

@media (max-width: 900px) {
    .ai-grid { grid-template-columns: 1fr; }
    .access-row { grid-template-columns: 1fr; gap: var(--space-2); }
}

/* ============================================================
   12. Download
   ============================================================ */

.download {
    text-align: center;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(185, 166, 232, 0.14), transparent 62%),
        var(--bg-deepest);
    border-top: 1px solid var(--border-subtle);
}

.download h2 {
    font-size: clamp(2.1rem, 4.6vw, 3.2rem);
    margin-bottom: var(--space-5);
}

.download .lede { margin: 0 auto var(--space-8); }

.stores {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.store-button:hover {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.store-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-weight: 700;
    font-size: 1.08rem;
    text-align: left;
}

.store-button small {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.download-note {
    margin-top: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ============================================================
   13. Screenshot rail — the horizontal tour
   ============================================================ */

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(13rem, 15rem);
    gap: clamp(1rem, 2.2vw, 1.6rem);
    overflow-x: auto;
    overflow-y: hidden;   /* or the rail swallows the page's vertical scroll */
    padding-bottom: var(--space-4);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.rail > figure { scroll-snap-align: start; margin: 0; }
.rail figcaption {
    margin-top: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

/* ============================================================
   14. Language toggle + footer touch-ups
   ============================================================ */

.lang-toggle button,
.lang-toggle a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
}

/* ============================================================
   15. Light band corrections

   Everything above is written for the dark page. The two light
   bands (the gap and the courses) need their own text and card
   colours, or the dark-page tokens leak in at 2:1 contrast.
   ============================================================ */

/* Everything above is written for the dark page. The two light bands need
   their own colours or the dark tokens leak in at 2:1 — and they must be
   keyed on BOTH classes, because `variables.css` sets a colour on h1..h6 and
   on `a` as own declarations, which beat inheritance from the band. */

.band-paper,
.gap-band { color: var(--paper-text); }

.band-paper :is(h1, h2, h3, h4, h5, h6),
.gap-band :is(h1, h2, h3, h4, h5, h6) { color: #1A1D26; }

.band-paper :is(.lede, .phone-caption, p),
.gap-band :is(.lede, .phone-caption, p) { color: var(--paper-text-muted); }

.band-paper .eyebrow,
.gap-band .eyebrow { color: #7863AD; }

.band-paper a,
.gap-band a { color: #5B4A8C; }

.band-paper a:hover,
.gap-band a:hover { color: #3F3268; }

.band-paper .rung,
.gap-band .rung {
    background: #FFFFFF;
    border-color: rgba(26, 29, 38, 0.09);
    box-shadow: 0 2px 10px rgba(26, 29, 38, 0.05);
}

.band-paper .rung-level { color: #6B7080; }
.band-paper .rung-elo { color: #7863AD; }

.band-paper .rung[data-state="free"] {
    border-color: rgba(67, 110, 46, 0.35);
    background: #FBFDFA;
}
.band-paper .rung[data-state="free"] .rung-elo { color: var(--success-dim); }

.band-paper .rung[data-state="soon"] {
    opacity: 1;
    background: transparent;
    border-style: dashed;
    border-color: rgba(26, 29, 38, 0.16);
    box-shadow: none;
}
.band-paper .rung[data-state="soon"] :is(h3, h4) { color: #5A5E65; }
.band-paper .rung[data-state="soon"] .rung-elo { color: #6B7080; }


/* The download band closes the page with the app itself: the home screen,
   which is the only screen every visitor will actually land on. */
.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    text-align: left;
}

.download-copy .lede { margin: 0 0 var(--space-8); }
.download-copy .stores { justify-content: flex-start; }
.download-copy .download-note { text-align: left; }

.download-shot .phone { max-width: 17rem; margin: 0 auto; }
.download-shot .phone-caption { text-align: center; }

@media (max-width: 900px) {
    .download-grid { grid-template-columns: 1fr; text-align: center; }
    .download-copy .lede { margin-inline: auto; }
    .download-copy .stores { justify-content: center; }
    .download-copy .download-note { text-align: center; }
}

/* Skip link: hidden until a keyboard lands on it, then it is the first thing
   on the page. Without it the navbar's seven links come before the content on
   every load. */
.skip-link {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -140%);
    z-index: calc(var(--z-sticky) + 1);
    background: var(--accent);
    color: var(--text-inverse);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-sm);
    padding: 0.7rem 1.4rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translate(-50%, 0);
    color: var(--text-inverse);
}

/* The rail is focusable so it can be scrolled from the keyboard. */
.rail:focus-visible { outline-offset: 6px; }

/* ============================================================
   16. The engines

   Three cards, not a feature grid: each one answers a different
   question, and the third is the one that actually differentiates
   the app, so it carries the lavender.
   ============================================================ */

.engines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: clamp(1rem, 2.4vw, 1.75rem);
}

.engine {
    background: linear-gradient(170deg, rgba(20, 29, 51, 0.72), rgba(14, 21, 38, 0.72));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.engine h3 {
    font-size: 1.45rem;
    margin-bottom: 0.2rem;
}

.engine-role {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ice);
    margin-bottom: var(--space-4);
}

.engine p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.62;
}

.engine-accent {
    border-color: var(--border-strong);
    background: linear-gradient(170deg, rgba(40, 32, 66, 0.78), rgba(16, 22, 42, 0.86));
}

.engine-accent .engine-role { color: var(--accent); }

/* A plain link from a section to its guide page. */
.act-link {
    margin: calc(var(--space-4) * -1) 0 var(--space-6);
}

.act-link a {
    color: var(--accent-bright);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}
