/* ============================================================================
   product-bet.css — "The Bet" SupaDupa product page (Direction 4)
   Thesis-forward, maximally typographic. All colors via semantic tokens so
   light / dark / cool modes keep working. Namespaces: .bet-* (page),
   .pnotes-* (build-notes section). Uses existing .container / .section /
   .button / .eyebrow from components.css. Does NOT define .note-chip /
   [data-note-type] — those come from the notes agent's note.css.
   ========================================================================== */

/* ── Shared type primitives ─────────────────────────────────────────────── */
.bet-page {
    color: var(--color-ink);
}

.bet-eyebrow {
    display: inline-flex;
    margin-bottom: var(--space-4);
    color: var(--color-muted);
}

.bet-eyebrow--center {
    justify-content: center;
}

.bet-h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 auto var(--space-4);
    max-width: 20ch;
    text-align: center;
}

.bet-h2--left {
    margin-inline: 0;
    text-align: left;
    max-width: 18ch;
}

.bet-para {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.075rem;
    line-height: 1.6;
    text-align: center;
}

.bet-para--left {
    margin-inline: 0;
    text-align: left;
}

.bet-para code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-accent-soft);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
}

/* ── 1 · HERO ───────────────────────────────────────────────────────────── */
.bet-hero {
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}

.bet-h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 var(--space-5);
    max-width: 16ch;
}

.bet-h1 em {
    font-style: italic;
    color: var(--color-highlight);
}

.bet-lead {
    max-width: 40rem;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    line-height: 1.5;
    color: var(--color-muted);
    margin: 0 0 var(--space-6);
}

.bet-cta-row {
    margin-bottom: var(--space-6);
}

.bet-arrow {
    color: var(--color-highlight);
    margin-left: 0.4em;
    transition: transform 0.15s ease;
}

.button:hover .bet-arrow {
    transform: translateX(2px);
}

.bet-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.bet-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    color: var(--color-muted);
}

.bet-pill-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-highlight);
}

/* ── 2 & 5 · THESIS / PULL-QUOTE BANDS ──────────────────────────────────── */
.bet-thesis {
    text-align: center;
}

.bet-quote {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 20ch;
    margin: 0 auto var(--space-5);
}

.bet-quote span {
    color: var(--color-highlight);
}

.bet-support {
    max-width: 44rem;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.075rem;
    line-height: 1.6;
}

/* ── 3 & 5 · THE 3-PANEL LENS ───────────────────────────────────────────── */
.bet-band-center {
    text-align: center;
}

.bet-lens {
    list-style: none;
    padding: 0;
    margin: var(--space-7) auto 0;
    max-width: 60rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
}

.bet-lens-panel {
    padding: var(--space-6) var(--space-5);
    text-align: left;
    border-left: 1px solid var(--color-border);
}

.bet-lens-panel:first-child {
    border-left: 0;
}

.bet-lens-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-highlight);
    margin-bottom: var(--space-3);
}

.bet-lens-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 var(--space-2);
}

.bet-lens-body {
    color: var(--color-muted);
    font-size: 0.975rem;
    line-height: 1.5;
    margin: 0;
}

/* ── 4 · PRODUCT / TIERS ────────────────────────────────────────────────── */
.bet-product {
    text-align: center;
}

.bet-tiers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    max-width: 56rem;
    margin: var(--space-7) auto 0;
    text-align: left;
}

.bet-tier {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.bet-tier--pro {
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border-color: transparent;
}

.bet-tier-name {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 var(--space-5);
}

.bet-tier-price {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-muted);
}

.bet-tier--pro .bet-tier-price {
    color: color-mix(in srgb, var(--color-accent-contrast) 70%, transparent);
}

.bet-tier-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.bet-tier-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
    padding-left: 1.4em;
    position: relative;
    font-size: 1rem;
    line-height: 1.45;
}

.bet-tier-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--color-highlight);
}

.bet-flag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid color-mix(in srgb, var(--color-highlight) 40%, transparent);
    color: var(--color-highlight);
    white-space: nowrap;
}

/* ── 6 · ORIGIN ─────────────────────────────────────────────────────────── */
.bet-origin {
    text-align: center;
}

.bet-origin .bet-para {
    max-width: 47.5rem; /* ~760px reading measure */
}

/* ── 7 · PRIVACY + CURRENT STAGE ────────────────────────────────────────── */
.bet-stage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.bet-spec {
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.bet-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.bet-spec-row dt {
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

.bet-spec-row dd {
    margin: 0;
    text-align: right;
    color: var(--color-ink);
}

/* ── 8 · BUILD NOTES (Featured + Stream) ────────────────────────────────── */
.pnotes-head {
    margin-bottom: var(--space-7);
}

.pnotes-feat {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--space-5);
    align-items: stretch;
}

/* Dark feature card for the origin note. */
.pnotes-feature {
    position: relative;
    display: block;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pnotes-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.pnotes-feature-num {
    position: absolute;
    top: -0.15em;
    right: 0.1em;
    font-family: var(--font-display);
    font-size: clamp(6rem, 14vw, 11rem);
    line-height: 1;
    color: color-mix(in srgb, var(--color-accent-contrast) 8%, transparent);
    pointer-events: none;
    user-select: none;
}

.pnotes-feature-body {
    position: relative;
    z-index: 1;
    max-width: 34ch;
}

.pnotes-feature-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: var(--space-4) 0 var(--space-3);
}

.pnotes-feature-excerpt {
    color: color-mix(in srgb, var(--color-accent-contrast) 78%, transparent);
    line-height: 1.55;
    margin: 0 0 var(--space-4);
}

.pnotes-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    color: var(--color-highlight);
}

.pnotes-side {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pnotes-mini {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-decoration: none;
    color: var(--color-ink);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.pnotes-mini:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--color-highlight) 45%, var(--color-border));
}

.pnotes-mini-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.25;
}

/* Stream — compact rows. */
.pnotes-stream {
    margin-top: var(--space-7);
    border-top: 1px solid var(--color-border);
}

.pnotes-stream-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin: var(--space-5) 0 var(--space-2);
}

.pnotes-row {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-ink);
    transition: background-color 0.15s ease;
}

.pnotes-row:hover {
    background: var(--color-accent-soft);
}

.pnotes-row-title {
    flex: 1;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.3;
}

.pnotes-row-date {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.pnotes-all {
    margin-top: var(--space-6);
    text-align: center;
}

/* ── 9 · CLOSING (dark band) ────────────────────────────────────────────── */
.bet-close {
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    text-align: center;
    padding-top: var(--space-9);
    padding-bottom: var(--space-9);
}

.bet-quote--close {
    color: var(--color-accent-contrast);
}

.bet-quote--close span {
    color: var(--color-highlight);
}

.bet-support--close {
    color: color-mix(in srgb, var(--color-accent-contrast) 78%, transparent);
}

.bet-cta-row--close {
    justify-content: center;
    margin-top: var(--space-6);
}

.bet-btn-fill {
    background: var(--color-highlight);
    color: #fff;
    border-color: transparent;
}

.bet-btn-ghost {
    background: transparent;
    color: var(--color-accent-contrast);
    border-color: color-mix(in srgb, var(--color-accent-contrast) 45%, transparent);
}

/* ── Responsive: stack on mobile ────────────────────────────────────────── */
@media (max-width: 760px) {
    .bet-lens {
        grid-template-columns: 1fr;
    }

    .bet-lens-panel {
        border-left: 0;
        border-top: 1px solid var(--color-border);
    }

    .bet-lens-panel:first-child {
        border-top: 0;
    }

    .bet-tiers,
    .bet-stage-grid,
    .pnotes-feat {
        grid-template-columns: 1fr;
    }

    .bet-h2--left,
    .bet-para--left {
        max-width: none;
    }
}

/* ── Motion preferences ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .bet-arrow,
    .button:hover .bet-arrow,
    .pnotes-feature,
    .pnotes-feature:hover,
    .pnotes-mini,
    .pnotes-mini:hover,
    .pnotes-row {
        transition: none;
        transform: none;
    }
}
