/*
   pages.css — shared styles for the standalone pages (/cohort, /privacy).
   Loaded after styles.css, so every colour, font and radius comes from the
   design tokens defined there. Mobile-first: single column by default, grids
   only widen at the breakpoints below.
*/

/* ── Shared layout ────────────────────────────────── */

.container-narrow {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Standalone pages have no full-height hero, so the fixed navbar needs
   clearing manually. */
.page-top {
    padding-top: calc(var(--nav-height) + 64px);
}

/* ── Cohort hero ──────────────────────────────────── */

.cohort-hero {
    position: relative;
    padding-bottom: 72px;
    overflow: hidden;
}

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

.cohort-hero-inner {
    max-width: 780px;
}

.cohort-headline {
    font-size: clamp(2rem, 5.2vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}

.cohort-subhead {
    font-size: clamp(1.02rem, 2.2vw, 1.18rem);
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: 2rem;
}

.cohort-hero-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
}

/* Facts strip under the hero CTAs */
.cohort-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
}

.cohort-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    background-color: var(--bg-card-soft);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}

.cohort-facts i {
    color: var(--accent-teal);
    font-size: 0.95rem;
}

/* ── "Who this is for" cards ──────────────────────── */

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.audience-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.audience-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.audience-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.audience-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--accent-teal-soft);
    border: 1px solid rgba(45, 212, 191, 0.18);
    color: var(--accent-teal);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.audience-index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.audience-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

/* ── Outcome / how-it-works lists ─────────────────── */

.marker-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.marker-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background-color: var(--bg-card-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.15rem 1.35rem;
    color: var(--text-secondary);
}

.marker-list i {
    color: var(--accent-teal);
    font-size: 1.25rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* ── Results ──────────────────────────────────────── */

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.result-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.result-metric {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-teal);
    line-height: 1.1;
}

.result-headline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.result-card p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin: 0;
}

.result-attrib {
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

/* ── Details ──────────────────────────────────────── */

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.detail-tile {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem;
    text-align: center;
}

.detail-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.detail-label {
    display: block;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

/* ── Waitlist ─────────────────────────────────────── */

.waitlist-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    max-width: 560px;
    margin: 0 auto;
}

.waitlist-form {
    gap: 1rem;
}

/* Sets the paid expectation at the moment of commitment, so the price email in
   November is never a surprise. Sits inside the form, so it clears on success. */
.waitlist-paid-note {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background-color: var(--bg-inset);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
}

.waitlist-paid-note i {
    color: var(--accent-teal);
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.waitlist-form .form-group {
    gap: 0.5rem;
}

/* Visible error state — red border plus the message below the field. */
.waitlist-form input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.field-error {
    display: none;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--danger);
}

.field-error.visible {
    display: flex;
}

.waitlist-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.waitlist-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1rem 0;
}

.waitlist-success.visible {
    display: flex;
}

.waitlist-success i {
    font-size: 2.5rem;
    color: var(--accent-teal);
}

.waitlist-success p {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    margin: 0;
}

/* ── Bio ──────────────────────────────────────────── */

.bio-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-card-soft);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-teal);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.bio-block p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

/* ── Legal / privacy prose ────────────────────────── */

.legal-prose h2 {
    font-size: 1.35rem;
    margin: 2.5rem 0 0.85rem;
}

.legal-prose h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-prose p,
.legal-prose li {
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.legal-prose ul {
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.legal-prose li::marker {
    color: var(--accent-teal);
}

.legal-prose a {
    color: var(--accent-teal);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-updated {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Breakpoints — widen the grids on larger screens ─ */

@media (min-width: 600px) {
    .cohort-hero-ctas {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .waitlist-panel {
        padding: 2.5rem;
    }

    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .audience-grid,
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .marker-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Three-item lists get three columns so the last item is not orphaned. */
    .marker-list--3up {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Call CTA + demoted waitlist ─────────────────────
   Booking a call is the page's primary action; the waitlist is the
   low-commitment fallback. This block sits AFTER the breakpoint rules
   deliberately: the --secondary overrides must out-cascade the 600px
   .waitlist-panel padding rule by source order. */

.call-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3rem;
    /* Anchor target: clear the fixed navbar when arriving via /cohort/#call */
    scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

/* Hero-scale button — must visually dominate the demoted waitlist submit
   below it at every breakpoint, including narrow phones. */
.call-cta .btn {
    width: 100%;
    max-width: 360px;
    font-size: 1.05rem;
    padding: 1rem 2rem;
}

.call-cta-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Repeat CTA under the first-cohort results */
.results-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.75rem;
}

.results-cta .btn {
    font-size: 1.05rem;
    padding: 1rem 2rem;
}

/* Quieter frame for the demoted form: narrower, softer border, secondary
   submit button. Same form, same endpoint — only the visual weight changes. */
.waitlist-panel--secondary {
    max-width: 480px;
    padding: 1.75rem 1.5rem;
    border-color: var(--border-color);
}

.waitlist-fallback-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 0.4rem;
}

.waitlist-fallback-sub {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1.25rem;
}

/* 1:1-between-cohorts line under the Details tiles */
.between-cohorts-note {
    max-width: 640px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.between-cohorts-note a {
    color: var(--accent-teal);
}
