/* ===================================================================
   OptionsGym — home landing (dark, risk-first, mobile-first)
   Palette mirrors the interactive lesson (GitHub dark dimmed).
   =================================================================== */

:root {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--og-bg);
    color: var(--og-text);
}

.og {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.og h1,
.og h2,
.og h3 {
    text-wrap: balance;
}

.og p {
    text-wrap: pretty;
}

.og *,
.og *::before,
.og *::after {
    box-sizing: border-box;
}

/* low-specificity reset: beats Bootstrap defaults (loaded earlier) but yields
   to component .og-* classes, so their margins actually apply */
h1,
h2,
h3,
p,
ol,
figure,
figcaption {
    margin: 0;
}

.og-grad {
    background: linear-gradient(90deg, var(--og-accent), var(--og-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.og-red {
    color: var(--og-red);
}

/* ---------- buttons (base + primary live in og-shared.css) ---------- */
.og-btn--ghost {
    background: transparent;
    color: var(--og-text);
    border-color: var(--og-line);
}

.og-btn--ghost:hover {
    border-color: var(--og-accent);
    color: var(--og-accent);
}

.og-btn--sm {
    padding: 9px 16px;
    font-size: .9rem;
    border-radius: 9px;
}

.og-btn--lg {
    padding: 16px 30px;
    font-size: 1.08rem;
}

/* ---------- hero ---------- */
.og-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 28px;
    padding-bottom: 48px;
    align-items: center;
}

.og-hero__title {
    font-size: clamp(2.1rem, 7vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -.02em;
    font-weight: 800;
    margin-top: 14px;
}

.og-hero__sub {
    color: var(--og-muted);
    font-size: clamp(1rem, 2.6vw, 1.18rem);
    margin-top: 22px;
    max-width: 36em;
}

.og-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.og-hero__meta {
    color: var(--og-muted);
    font-size: .85rem;
    margin-top: 16px;
}

/* ---------- interactive demo ---------- */
.og-demo {
    background: var(--og-panel);
    border: 1px solid var(--og-line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

.og-demo__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.og-demo__title {
    font-weight: 700;
    font-size: .98rem;
}

.og-demo__price {
    color: var(--og-muted);
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.og-demo__price b {
    color: var(--og-text);
}

.og-demo__canvas {
    display: block;
    width: 100%;
    height: 200px;
}

.og-demo__slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(248, 81, 73, .65), rgba(210, 153, 34, .5) 45%, rgba(63, 185, 80, .65));
    outline: none;
    margin: 16px 0 4px;
    cursor: pointer;
}

.og-demo__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--og-text);
    border: 3px solid var(--og-accent);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
    cursor: pointer;
}

.og-demo__slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--og-text);
    border: 3px solid var(--og-accent);
    cursor: pointer;
}

.og-demo__readout {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}

.og-demo__pnl {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--og-green);
    font-variant-numeric: tabular-nums;
    transition: color .15s ease;
}

.og-demo__note {
    min-height: 3.1em;
    color: var(--og-muted);
    font-size: .95rem;
    font-style: italic;
    text-wrap: pretty;
    transition: color .15s ease;
}

.og-demo__hint {
    color: var(--og-muted);
    font-size: .8rem;
    margin-top: 14px;
}

/* ---------- generic section (.og-section lives in og-shared.css) ---------- */
.og-section__head {
    margin-bottom: 32px;
}

.og-section__title {
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -.01em;
    font-weight: 800;
    margin-top: 12px;
    max-width: 20em;
}

/* ---------- value cards ---------- */
.og-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.og-card {
    background: var(--og-panel);
    border: 1px solid var(--og-line);
    border-radius: 14px;
    padding: 22px;
}

.og-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--og-raised);
    border: 1px solid var(--og-line);
    color: var(--og-accent);
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.og-card__icon--red {
    color: var(--og-red);
}

.og-card__icon--green {
    color: var(--og-green);
}

.og-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.og-card__text {
    color: var(--og-muted);
    font-size: .98rem;
}

/* ---------- steps ---------- */
.og-steps {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    counter-reset: og-step;
}

.og-step {
    background: var(--og-panel);
    border: 1px solid var(--og-line);
    border-radius: 14px;
    padding: 22px;
}

.og-step__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--og-raised);
    border: 1px solid var(--og-accent);
    color: var(--og-accent);
    font-weight: 800;
    margin-bottom: 14px;
}

.og-step__title {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.og-step__text {
    color: var(--og-muted);
    font-size: .96rem;
}

/* ---------- learning path ---------- */
.og-path {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.og-block {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    position: relative;
}

.og-block:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 50px;
    bottom: -2px;
    width: 2px;
    background: var(--og-line);
}

.og-block__num {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--og-panel);
    border: 1px solid var(--og-line);
    color: var(--og-muted);
    font-weight: 800;
    font-size: .95rem;
    position: relative;
    z-index: 1;
}

.og-block--active .og-block__num {
    border-color: var(--og-accent);
    color: var(--og-accent);
    box-shadow: 0 0 0 4px rgba(88, 166, 255, .12);
}

.og-block__body {
    flex: 1 1 auto;
    background: var(--og-panel);
    border: 1px solid var(--og-line);
    border-radius: 14px;
    padding: 16px 18px;
}

.og-block--active .og-block__body {
    border-color: rgba(88, 166, 255, .4);
    background: linear-gradient(180deg, rgba(88, 166, 255, .06), rgba(88, 166, 255, 0));
}

.og-block__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.og-block__title {
    font-size: 1.18rem;
    font-weight: 700;
}

.og-block__text {
    color: var(--og-muted);
    font-size: .96rem;
    margin-bottom: 16px;
}

.og-badge {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--og-raised);
    border: 1px solid var(--og-line);
    color: var(--og-muted);
}

.og-badge--live {
    background: rgba(63, 185, 80, .14);
    border-color: rgba(63, 185, 80, .4);
    color: var(--og-green);
}

/* ---------- module preview (Options from Zero — "what's inside") ---------- */
.og-module-preview {
    list-style: decimal;
    margin: 0 0 18px;
    padding-left: 1.5em;
    color: var(--og-muted);
    font-size: .9rem;
}

.og-module-preview li {
    padding: 3px 0;
}

/* ---------- honesty band ---------- */
.og-band {
    background: linear-gradient(180deg, var(--og-raised), var(--og-panel));
    border: 1px solid var(--og-line);
    border-left: 4px solid var(--og-accent);
    border-radius: 16px;
    padding: 28px;
}

.og-band__title {
    font-size: clamp(1.3rem, 3.6vw, 1.7rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.og-band__text {
    color: var(--og-muted);
    font-size: 1.02rem;
    max-width: 52em;
}

/* ---------- final cta ---------- */
.og-cta {
    text-align: center;
}

.og-cta__title {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.og-cta__sub {
    color: var(--og-muted);
    font-size: 1.05rem;
    margin-top: 12px;
    margin-bottom: 28px;
}

/* waitlist styles live in waitlist.css (WaitlistAsset) — the widget also
   renders on CMS pages where this stylesheet is not loaded */

.og-block__link {
    display: inline-block;
    color: var(--og-accent);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    padding: 9px 4px;
    margin: -9px -4px;
}

.og-block__link:hover {
    color: #79c0ff;
}

/* ---------- entrance animation ---------- */
.og-hero__copy > *,
.og-demo {
    animation: og-fade-up .5s ease both;
}

.og-hero__copy > *:nth-child(1) { animation-delay: 0s; }
.og-hero__copy > *:nth-child(2) { animation-delay: .09s; }
.og-hero__copy > *:nth-child(3) { animation-delay: .18s; }
.og-hero__copy > *:nth-child(4) { animation-delay: .27s; }
.og-hero__copy > *:nth-child(5) { animation-delay: .36s; }

.og-demo {
    animation-delay: .2s;
}

@keyframes og-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }

    .og-hero__copy > *,
    .og-demo {
        animation: none;
    }
}

/* ---------- breakpoints ---------- */
@media (min-width: 760px) {
    .og-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .og-demo__note {
        min-height: 1.55em;
    }
}

@media (min-width: 920px) {
    .og-hero {
        grid-template-columns: 1.05fr .95fr;
        gap: 48px;
        padding-top: 48px;
        padding-bottom: 72px;
    }

    .og-demo__canvas {
        height: 240px;
    }

    .og-section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}
