/* ============================================
   LAUNCH PAD — Dawn Launch Design System
   Palette: Deep indigo + warm amber/gold
   ============================================ */

:root {
    --bg: #0c0e1a;
    --bg-alt: #111325;
    --bg-card: #161830;
    --bg-surface: #1a1d35;
    --ink: #e8e6f0;
    --ink-soft: #b0adbe;
    --muted: #706d80;
    --border: rgba(255,255,255,.06);
    --border-light: rgba(255,255,255,.1);
    --accent: #d4a054;
    --accent-dark: #b8872e;
    --accent-pale: rgba(212,160,84,.08);
    --accent-glow: rgba(212,160,84,.15);
    --accent-bright: #e8b86a;
    --indigo: #4e4b8a;
    --indigo-soft: rgba(78,75,138,.15);
    --success: #4ecb8a;
    --danger: #e05858;
    --serif: 'Libre Baskerville', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --sidebar-w: 270px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ---- SIDEBAR ---- */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: var(--sidebar-w); height: 100vh;
    background: linear-gradient(180deg, #0f1128 0%, #0c0e1a 100%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 98; overflow-y: auto;
    transition: transform .3s ease;
}
.sidebar-header {
    padding: 2rem 1.5rem 1.4rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(212,160,84,.06) 0%, transparent 100%);
}
.sidebar-icon {
    font-size: 2rem; margin-bottom: .3rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.sidebar-title {
    font-family: var(--serif); font-size: 1.15rem;
    font-weight: 400; color: var(--accent);
}
.sidebar-sub {
    font-size: .65rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: .15em; margin-top: .15rem;
}
.sidebar-nav { flex: 1; padding: .5rem 0; overflow-y: auto; }
.nav-part {
    padding: .8rem 1.5rem .4rem; font-size: .6rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); opacity: .7; margin-top: .4rem;
}
.nav-part:first-child { margin-top: 0; }
.nav-lesson {
    padding: .55rem 1.5rem; font-size: .8rem; color: var(--muted);
    cursor: pointer; border-left: 2px solid transparent;
    transition: all .15s; display: flex; align-items: center;
    gap: .5rem; text-decoration: none;
}
.nav-lesson:hover { background: rgba(212,160,84,.04); color: var(--ink); }
.nav-lesson.active {
    border-left-color: var(--accent); color: var(--accent);
    font-weight: 600; background: rgba(212,160,84,.06);
}
.nav-lesson .nav-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--accent-pale); color: var(--accent);
    font-weight: 700; font-size: .6rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ---- MOBILE ---- */
.mobile-header {
    display: none; position: fixed; top: 0; left: 0; right: 0;
    height: 50px; background: rgba(12,14,26,.95);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--border);
    z-index: 90; padding: 0 1rem; align-items: center; gap: .75rem;
}
.menu-btn {
    background: none; border: none; font-size: 1.3rem;
    cursor: pointer; color: var(--accent);
}
.mobile-title {
    font-family: var(--serif); font-size: .95rem; color: var(--accent);
}
.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 97;
}
@media(max-width:768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .mobile-header { display: flex; }
    .main { margin-left: 0 !important; padding-top: 60px !important; }
}

/* ---- MAIN ---- */
.main { margin-left: var(--sidebar-w); min-height: 100vh; padding: 2.5rem 2rem; }
.content { max-width: 700px; margin: 0 auto; padding-bottom: 4rem; }
.module-content { display: none; }
.module-content.active { display: block; }

/* ---- MODULE HEADER ---- */
.module-header {
    background: linear-gradient(135deg, var(--accent-pale) 0%, var(--indigo-soft) 100%);
    border: 1px solid var(--border-light);
    border-radius: 14px; padding: 2.2rem 2rem; margin-bottom: 2rem;
}
.module-header .module-label {
    font-size: .7rem; font-weight: 600; letter-spacing: .2em;
    text-transform: uppercase; color: var(--accent); margin-bottom: .5rem;
}
.module-header h2 {
    font-family: var(--serif); font-size: 1.7rem;
    font-weight: 400; line-height: 1.3; color: var(--ink);
}

/* ---- CONTENT BODY ---- */
.content-body { font-size: .95rem; line-height: 1.85; color: var(--ink-soft); }
.content-body h3 {
    font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
    color: var(--ink); margin: 2.5rem 0 .75rem;
}
.content-body p { margin-bottom: 1.25rem; }
.content-body ul, .content-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.content-body li { margin-bottom: .5rem; }
.content-body em { color: var(--accent-bright); font-style: italic; }
.content-body strong { color: var(--ink); font-weight: 600; }

/* ---- CALLOUT ---- */
.callout {
    border-left: 3px solid var(--accent);
    padding: 1.25rem 1.5rem;
    background: var(--accent-pale);
    border-radius: 0 10px 10px 0;
    margin: 1.5rem 0;
}
.callout p {
    font-family: var(--serif); font-size: 1.05rem;
    font-style: italic; color: var(--ink-soft); margin-bottom: 0;
}

/* ---- NAV BUTTONS ---- */
.nav-buttons {
    display: flex; justify-content: space-between;
    margin-top: 3rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.nav-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.25rem; border-radius: 8px;
    text-decoration: none; font-size: .85rem; font-weight: 600;
    transition: all .2s; cursor: pointer;
}
.nav-btn-prev {
    border: 1px solid var(--border-light); color: var(--ink-soft); background: var(--bg-card);
}
.nav-btn-prev:hover { border-color: var(--accent); color: var(--ink); }
.nav-btn-next {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg); border: none;
}
.nav-btn-next:hover { opacity: .9; transform: translateY(-1px); }

/* ---- FOOTER ---- */
.footer { text-align: center; margin-top: 3rem; font-size: .8rem; color: var(--muted); }
.footer a { color: var(--ink-soft); text-decoration: none; }
.help {
    text-align: center; margin-top: 2rem; padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.help p { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.help a { color: var(--accent); text-decoration: none; }
.help a:hover { text-decoration: underline; }

/* ---- PAYWALL ---- */
.paywall-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.paywall-overlay.hidden { display: none; }
.paywall-card {
    max-width: 480px; text-align: center;
    padding: 3rem 2.5rem;
    border: 1px solid var(--accent);
    border-radius: 16px;
    background: var(--bg-card);
    box-shadow: 0 8px 60px rgba(212,160,84,.08);
}
.paywall-card .paywall-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: .5rem;
}
.paywall-card h2 {
    font-family: var(--serif); font-size: 1.8rem;
    font-weight: 400; margin-bottom: .75rem; color: var(--ink);
}
.paywall-card h2 em { font-style: italic; color: var(--accent); }
.paywall-card p {
    font-size: .95rem; color: var(--ink-soft);
    margin-bottom: 1.5rem; line-height: 1.7;
}
.paywall-card .cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg); font-size: 1rem; font-weight: 600;
    padding: 1rem 2rem; border-radius: 8px; text-decoration: none;
    transition: all .2s; box-shadow: 0 4px 20px var(--accent-glow);
}
.paywall-card .cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.paywall-card .cta-btn::after { content: '\2192'; }
.paywall-price {
    display: block; margin-top: .75rem;
    font-size: .85rem; color: var(--muted);
}
.paywall-login { margin-top: 1.5rem; }
.paywall-login p { font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.paywall-login input {
    padding: .5rem .75rem; border: 1px solid var(--border-light);
    border-radius: 6px; font-size: .85rem; width: 200px;
    background: var(--bg-alt); color: var(--ink);
}
.paywall-login button {
    padding: .5rem 1rem; background: var(--accent);
    color: var(--bg); border: none; border-radius: 6px;
    font-size: .85rem; cursor: pointer; margin-left: .5rem;
}
.paywall-login .error { color: var(--danger); font-size: .8rem; margin-top: .5rem; display: none; }

/* ============================================
   INTERACTIVE EXPERIENCES
   ============================================ */

/* -- Shared experience container -- */
.ix-container {
    margin: 2.5rem 0;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--bg-card);
    overflow: hidden;
}
.ix-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-pale) 0%, var(--indigo-soft) 100%);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: .6rem;
}
.ix-badge {
    font-size: .6rem; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent);
    background: rgba(212,160,84,.12); padding: .25rem .6rem;
    border-radius: 20px;
}
.ix-title {
    font-family: var(--serif); font-size: 1rem;
    font-weight: 400; color: var(--ink);
}
.ix-body { padding: 1.5rem; }

/* -- Buttons in experiences -- */
.ix-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .6rem 1.2rem; border-radius: 8px;
    font-size: .85rem; font-weight: 600; cursor: pointer;
    transition: all .2s; border: none;
}
.ix-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--bg);
}
.ix-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.ix-btn-secondary {
    background: var(--bg-surface); color: var(--ink-soft);
    border: 1px solid var(--border-light);
}
.ix-btn-secondary:hover { border-color: var(--accent); color: var(--ink); }

/* -- Textareas in experiences -- */
.ix-textarea {
    width: 100%; min-height: 100px; padding: 1rem;
    background: var(--bg-alt); border: 1px solid var(--border-light);
    border-radius: 10px; color: var(--ink); font-family: var(--sans);
    font-size: .9rem; line-height: 1.6; resize: vertical;
    transition: border-color .2s;
}
.ix-textarea:focus { outline: none; border-color: var(--accent); }
.ix-textarea::placeholder { color: var(--muted); }

/* -- Radio/option cards -- */
.ix-options { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.ix-option {
    padding: .75rem 1rem; border: 1px solid var(--border-light);
    border-radius: 10px; cursor: pointer; transition: all .15s;
    font-size: .85rem; color: var(--ink-soft);
    background: var(--bg-surface);
}
.ix-option:hover { border-color: var(--accent); color: var(--ink); }
.ix-option.selected {
    border-color: var(--accent); background: var(--accent-pale);
    color: var(--accent);
}

/* -- Progress/step indicators -- */
.ix-steps { display: flex; gap: .5rem; margin-bottom: 1.2rem; }
.ix-step {
    flex: 1; height: 4px; border-radius: 2px;
    background: var(--border-light); transition: background .3s;
}
.ix-step.done { background: var(--accent); }
.ix-step.active { background: var(--accent-glow); animation: pulse-step 1.5s ease infinite; }
@keyframes pulse-step {
    0%, 100% { opacity: .5; }
    50% { opacity: 1; }
}

/* -- Skill radar chart (Module 4) -- */
.ix-radar {
    display: flex; justify-content: center; gap: 2rem;
    flex-wrap: wrap; margin: 1.5rem 0;
}
.ix-radar-col {
    text-align: center; flex: 1; min-width: 100px;
}
.ix-radar-bar {
    width: 40px; height: 120px; margin: 0 auto .5rem;
    background: var(--bg-surface); border-radius: 6px;
    position: relative; overflow: hidden;
    border: 1px solid var(--border-light);
}
.ix-radar-fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, var(--accent) 0%, var(--accent-bright) 100%);
    border-radius: 0 0 5px 5px; transition: height .5s ease;
}
.ix-radar-label {
    font-size: .7rem; font-weight: 600; color: var(--muted);
    text-transform: uppercase; letter-spacing: .08em;
}

/* -- Quest tracker (Module 5) -- */
.ix-quest {
    display: flex; align-items: center; gap: .75rem;
    padding: .8rem 1rem; border: 1px solid var(--border-light);
    border-radius: 10px; margin-bottom: .5rem;
    background: var(--bg-surface); transition: all .2s;
    cursor: pointer;
}
.ix-quest:hover { border-color: var(--border-light); background: var(--bg-alt); }
.ix-quest.completed {
    border-color: rgba(78,203,138,.2);
    background: rgba(78,203,138,.04);
}
.ix-quest-check {
    width: 24px; height: 24px; border-radius: 50%;
    border: 2px solid var(--border-light);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; transition: all .2s; flex-shrink: 0;
}
.ix-quest.completed .ix-quest-check {
    border-color: var(--success); background: var(--success); color: var(--bg);
}
.ix-quest-label { font-size: .85rem; color: var(--ink-soft); }
.ix-quest.completed .ix-quest-label { color: var(--success); }

/* -- North Star card (Module 3) -- */
.ix-star-card {
    border: 1px solid var(--accent);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-pale) 0%, var(--bg-card) 100%);
    padding: 2rem; text-align: center;
    box-shadow: 0 4px 30px var(--accent-glow);
}
.ix-star-card h4 {
    font-family: var(--serif); font-size: 1.1rem;
    color: var(--accent); margin-bottom: 1.5rem;
}

/* -- Hidden state -- */
.ix-hidden { display: none; }

/* -- Reveal animation -- */
.ix-reveal {
    animation: fadeSlideUp .4s ease;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -- Scrollbar styling -- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
