/* Masterplan X — Masterclass landing pages
   Design tokens mirror masterplanx-lp-v13.tsx (COLORS / FONT_* / type scale). */

:root {
    --bg: #0a0a0a;
    --bg-pure: #000000;
    --panel: #111111;
    --text: #f5f5f0;
    --text85: rgba(245, 245, 240, 0.85);
    --text70: rgba(245, 245, 240, 0.7);
    --text55: rgba(245, 245, 240, 0.5);
    --text35: rgba(245, 245, 240, 0.35);
    --blue: #8aa5ff;
    --blue-tint: rgba(138, 165, 255, 0.08);
    --blue-tint-border: rgba(138, 165, 255, 0.25);
    --lime: #e8ff47;
    --green: #4ade80;
    --green-tint: rgba(74, 222, 128, 0.12);
    --red: #ff5c5c;
    --card-border: rgba(255, 255, 255, 0.08);
    --card-fill: rgba(255, 255, 255, 0.04);
    --navy-gradient: radial-gradient(ellipse at top, #131a3a 0%, #0a0a0a 55%, #000000 100%);
    --font-heading: "Montserrat", system-ui, sans-serif;
    --font-body: "Montserrat", system-ui, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    position: relative;
}

.narrow {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* ── TYPE SCALE (mobile-first, same numbers as v13) ── */
.fs-hero {
    font-size: 26px;
    line-height: 1.2;
}
.fs-section {
    font-size: 24px;
}
.fs-lead {
    font-size: 18px;
}
.fs-price {
    font-size: 28px;
}
@media (min-width: 768px) {
    .fs-hero {
        font-size: 42px;
    }
    .fs-section {
        font-size: 36px;
    }
    .fs-lead {
        font-size: 20px;
    }
    .fs-price {
        font-size: 32px;
    }
}
@media (min-width: 1200px) {
    .fs-hero {
        font-size: 50px;
    }
    .fs-section {
        font-size: 42px;
    }
    .fs-price {
        font-size: 36px;
    }
}

/* ── SECTIONS ── */
.sec {
    padding: 88px 24px;
    position: relative;
    background: var(--bg);
}
.sec-navy {
    background: var(--navy-gradient);
}
.sec-pure {
    background: var(--bg-pure);
}
@media (max-width: 640px) {
    .sec {
        padding: 64px 18px;
    }
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue);
    text-align: center;
    margin-bottom: 12px;
}

.heading {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    max-width: 820px;
    margin: 0 auto 16px;
}
.heading .hl,
.hl {
    color: var(--blue);
}

.body {
    color: var(--text70);
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.body strong {
    color: var(--text);
    font-weight: 800;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── BADGE / PILL ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b4bd6, #5b6ef0);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--blue-tint);
    border: 1px solid var(--blue-tint-border);
    color: var(--blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.pill-lime {
    background: rgba(232, 255, 71, 0.1);
    border-color: rgba(232, 255, 71, 0.35);
    color: var(--lime);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    padding: 16px 28px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(90deg, #8aa5ff, #3b4bd6);
    box-shadow: 0 0 26px rgba(138, 165, 255, 0.45);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 0 42px rgba(138, 165, 255, 0.75);
}
.btn:active {
    transform: scale(0.98);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--blue-tint-border);
    box-shadow: none;
    color: var(--text);
}
.btn-outline:hover {
    box-shadow: 0 0 24px rgba(138, 165, 255, 0.3);
}
.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}
.btn-block {
    width: 100%;
}
.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
}
.cta-note {
    font-size: 12px;
    color: var(--text55);
}

/* ── TOPBAR ── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 24px;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}
.brand b {
    font-weight: 800;
}
.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #8aa5ff, #3b4bd6);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    color: #fff;
}

/* ── HERO ── */
.hero {
    padding-top: 64px;
    padding-bottom: 88px;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    max-width: 1600px;
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}
.hero-inner {
    text-align: center;
}
.hero h1 {
    font-family: var(--font-heading);
    font-weight: 800;
    max-width: 880px;
    margin: 20px auto;
}
.hero .lead {
    color: var(--text85);
    font-weight: 600;
    max-width: 680px;
    margin: 0 auto 12px;
}
.hero-video {
    max-width: 680px;
    margin: 32px auto 0;
}

.avatar-strip {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text70);
    margin-bottom: 18px;
}
.avatar-strip .avatars {
    display: flex;
}
.avatar-strip img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg);
    margin-left: -8px;
}
.avatar-strip img:first-child {
    margin-left: 0;
}

/* ── VIDEO ── */
.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000;
    border: 1px solid var(--card-border);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(138, 165, 255, 0.12);
}
.video-box iframe,
.video-box img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}
.video-placeholder {
    background: linear-gradient(135deg, #14162b, #0a0a0f);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text55);
}
.play-dot {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    display: grid;
    place-items: center;
    color: #0a0a0a;
    font-size: 20px;
}
.unmute-btn,
.lite-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
}

/* ── MARQUEE ── */
.marquee {
    width: 100%;
    overflow: hidden;
    margin: 28px 0 0;
    font-weight: 600;
    font-size: 15px;
    color: var(--text70);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 22s linear infinite;
}
.marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 24px;
}
.marquee-item .dot {
    color: var(--text35);
    margin-left: 24px;
}
@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* ── CARDS / GRIDS ── */
.card {
    background: var(--panel);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
}
.grid {
    display: grid;
    gap: 16px;
}
.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 400px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}
@media (max-width: 400px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.icon-tile {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--blue-tint);
    border: 1px solid var(--blue-tint-border);
    color: var(--blue);
    margin-bottom: 16px;
}

/* Symptom list (hairline rows) */
.hairline-list {
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: var(--card-fill);
    overflow: hidden;
    margin-top: 32px;
    text-align: left;
}
.hairline-list > div {
    display: flex;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text85);
}
.hairline-list > div:last-child {
    border-bottom: none;
}
.hairline-list .num {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--blue);
    min-width: 28px;
}

/* Curriculum */
.module-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 0 60px rgba(138, 165, 255, 0.15);
    background: #0d0f1c;
}
.chapter {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--card-border);
    text-align: left;
}
.chapter:last-child {
    border-bottom: none;
}
.chapter .ch-num {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--blue);
    text-transform: uppercase;
    min-width: 76px;
    padding-top: 3px;
}
.chapter .ch-title {
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
}

/* What you get */
.get-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
}
.get-card p {
    font-size: 14px;
    color: var(--text70);
}
.get-card .pill {
    margin-bottom: 12px;
}
.get-card.featured {
    border-color: var(--blue-tint-border);
    background: linear-gradient(180deg, rgba(138, 165, 255, 0.08), var(--panel) 60%);
}

.sop-mock {
    margin-top: 18px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: #0d0f1c;
    overflow: hidden;
}
.sop-mock .chrome {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
}
.sop-mock .chrome i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text35);
}
.sop-mock .rows {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sop-mock .row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text70);
}
.sop-mock .row b {
    color: var(--blue);
    font-weight: 700;
}
.sop-mock .bar {
    flex: 1;
    height: 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

/* Proof */
.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0 48px;
}
.logo-row img {
    height: 56px;
    width: 96px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition: filter 0.2s, opacity 0.2s;
}
.logo-row img:hover {
    filter: none;
    opacity: 1;
}
.alumni {
    text-align: center;
}
.alumni img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    margin-bottom: 10px;
}
.alumni .name {
    font-size: 13px;
    font-weight: 700;
}
.alumni .meta {
    font-size: 12px;
    color: var(--text55);
}
.grid-alumni {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.video-label {
    font-size: 13px;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}
.video-label span {
    display: block;
    font-weight: 500;
    color: var(--text55);
    font-size: 12px;
}

/* Checklists */
.check-card {
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: var(--card-fill);
    overflow: hidden;
}
.check-card .ck-head {
    padding: 16px 22px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    border-bottom: 1px solid var(--card-border);
}
.check-row {
    display: flex;
    gap: 12px;
    padding: 14px 22px;
    border-bottom: 1px solid var(--card-border);
    font-size: 14px;
    color: var(--text85);
    text-align: left;
}
.check-row:last-child {
    border-bottom: none;
}
.check-row .mk {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}
.mk-ok {
    background: var(--blue-tint);
    color: var(--blue);
    border: 1px solid var(--blue-tint-border);
}
.mk-no {
    background: rgba(255, 92, 92, 0.1);
    color: var(--red);
    border: 1px solid rgba(255, 92, 92, 0.3);
}
.mk-muted {
    color: var(--text35);
}

/* Founder */
.founder-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    aspect-ratio: 3 / 4;
    max-width: 380px;
    margin: 0 auto;
}
.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.founder-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 26px;
}
.founder-role {
    color: var(--blue);
    font-weight: 600;
    font-size: 14px;
    margin: 4px 0 16px;
}
.founder-text p {
    color: var(--text70);
}

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 860px;
    margin: 40px auto 0;
    align-items: stretch;
}
@media (max-width: 400px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
}
.price-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 28px;
}
.price-card.featured {
    border-color: rgba(138, 165, 255, 0.5);
    background: linear-gradient(180deg, rgba(59, 75, 214, 0.18), var(--panel) 55%);
    box-shadow: 0 0 60px rgba(138, 165, 255, 0.18);
}
.price-card .plan {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text55);
}
.price-card.featured .plan {
    color: var(--blue);
}
.price-card .pname {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    line-height: 1.3;
    margin: 6px 0 16px;
}
.price-card .amount {
    font-family: var(--font-heading);
    font-weight: 800;
}
.price-card .once {
    font-size: 12px;
    color: var(--text55);
    margin-bottom: 20px;
}
.price-card .features {
    border-top: 1px solid var(--card-border);
    margin-bottom: 24px;
    flex: 1;
}
.price-card .check-row {
    padding: 12px 0;
}
.price-card .ribbon {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lime);
    color: #0a0a0a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}
.pay-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}
.pay-methods span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text70);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--card-fill);
}
.trust-box {
    max-width: 860px;
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(74, 222, 128, 0.25);
    background: var(--green-tint);
    font-size: 13px;
    text-align: center;
    color: var(--text85);
}
.trust-box b {
    color: var(--green);
}

/* FAQ */
.faq {
    max-width: 760px;
    margin: 32px auto 0;
}
.faq details {
    border-bottom: 1px solid var(--card-border);
    padding: 20px 0;
}
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
}
.faq summary::-webkit-details-marker {
    display: none;
}
.faq summary::after {
    content: "+";
    color: var(--blue);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
    transform: rotate(45deg);
}
.faq details p {
    color: var(--text70);
    font-size: 14px;
    margin-top: 12px;
}

/* Footer */
.footer {
    padding: 40px 24px 110px;
    border-top: 1px solid var(--card-border);
    background: var(--bg-pure);
    font-size: 13px;
    color: var(--text55);
}
.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}
.footer a {
    color: var(--text70);
    text-decoration: none;
    margin-left: 16px;
}
@media (min-width: 900px) {
    .footer {
        padding-bottom: 40px;
    }
}

/* Sticky mobile CTA */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--card-border);
    transform: translateY(110%);
    transition: transform 0.35s var(--ease);
}
.sticky-cta.show {
    transform: translateY(0);
}
.sticky-cta .sc-price {
    font-size: 12px;
    color: var(--text55);
    line-height: 1.3;
}
.sticky-cta .sc-price b {
    display: block;
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text);
}
@media (min-width: 900px) {
    .sticky-cta {
        display: none;
    }
}

/* ── REVEAL (same feel as v13 Reveal / RevealItem) ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.in {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .marquee-track {
        animation: none;
    }
}

/* ── DRAFT MARKERS (toggle via CONFIG.SHOW_DRAFT_MARKERS) ── */
.show-draft .draft {
    outline: 1px dashed rgba(232, 255, 71, 0.55);
    outline-offset: 6px;
    position: relative;
}
.show-draft .draft::before {
    content: "DRAFT COPY";
    position: absolute;
    top: -18px;
    right: 0;
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0a0a0a;
    background: var(--lime);
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 3;
}
