﻿:root {
    --font-heading: "Space Grotesk", "Trebuchet MS", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --bg: #f3f6fa;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-muted: #f9fbfd;
    --text: #15263a;
    --text-muted: #4b5f75;
    --line: #d8e1eb;
    --accent: #145d58;
    --accent-strong: #104946;
    --focus: #9a4b0d;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-soft: 0 8px 22px rgba(17, 28, 43, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 10%, rgba(31, 84, 147, 0.08) 0%, transparent 32%),
        radial-gradient(circle at 87% 13%, rgba(20, 93, 88, 0.1) 0%, transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fb 55%, #eff4fa 100%);
}

.container {
    width: min(1140px, calc(100% - 2.2rem));
    margin: 0 auto;
}

.section-pad {
    padding: 5.3rem 0;
}

.section-alt {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(238, 243, 249, 0.52));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 252, 255, 0.93);
    backdrop-filter: blur(9px);
}

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.14rem;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus-visible {
    color: var(--text);
    border-color: var(--accent);
    outline: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding-top: 6.2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--text);
}

.hero-copy h1 {
    margin-top: 0.72rem;
    font-size: clamp(2.05rem, 4vw, 3.16rem);
    line-height: 1.1;
    max-width: 18ch;
}

.eyebrow {
    margin: 0;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem;
    font-weight: 700;
}

.lead {
    margin: 1.15rem 0 0;
    color: var(--text-muted);
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.btn {
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.7rem 1.16rem;
    border: 1px solid transparent;
    transition: 0.2s ease;
}

.btn-solid {
    color: #fff;
    background: linear-gradient(120deg, var(--accent-strong), var(--accent));
}

.btn-solid:hover,
.btn-solid:focus-visible {
    background: linear-gradient(120deg, #0e4441, #124d49);
    outline: none;
}

.btn-ghost {
    color: var(--accent-strong);
    border-color: rgba(20, 93, 88, 0.28);
    background: #ecf6f4;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: #dff0ed;
    outline: none;
}

.btn-block {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.meta-note {
    margin: 0.95rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.risk-note {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: #7f3f0f;
    font-weight: 600;
}

.hero-panel,
.card,
.faq-wrap {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    padding: 1.2rem;
}

.hero-panel h2 {
    font-size: 1.16rem;
    margin-bottom: 0.55rem;
}

.hero-panel ul {
    margin: 0;
    padding-left: 1rem;
}

.hero-panel li {
    margin-bottom: 0.38rem;
    color: var(--text-muted);
}

.section-head {
    max-width: 72ch;
    margin-bottom: 1.6rem;
}

.section-head h2 {
    font-size: clamp(1.54rem, 3vw, 2.25rem);
    margin-top: 0.62rem;
}

.section-head p {
    margin: 0.82rem 0 0;
    color: var(--text-muted);
}

.grid {
    display: grid;
    gap: 1rem;
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    padding: 1rem;
}

.card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.38rem;
}

.card p {
    margin: 0;
    color: var(--text-muted);
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5c6f84;
    margin-bottom: 0.75rem;
}

.compact {
    padding: 0.88rem;
}

.list-tight {
    margin: 0;
    padding-left: 1.04rem;
}

.list-tight li {
    margin-bottom: 0.34rem;
    color: var(--text-muted);
}

.roadmap-flow {
    margin-top: 1rem;
}

.block-links-title {
    margin-top: 0.85rem;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.link-group {
    display: grid;
    gap: 0.55rem;
}

.link-group a {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    padding: 0.52rem 0.68rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.link-group a:hover,
.link-group a:focus-visible {
    border-color: #a7b8cc;
    background: #f0f5fa;
    outline: none;
}

.resource-layout {
    display: grid;
    gap: 0.95rem;
}

.account-grid {
    align-items: start;
}

.auth-state {
    margin-bottom: 0.9rem;
    min-height: 1.8rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.auth-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.64rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
}

.auth-session strong {
    color: var(--text);
}

.signout-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.45rem 0.78rem;
    cursor: pointer;
}

.auth-form {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    padding: 0.84rem;
    display: grid;
    gap: 0.48rem;
    margin-top: 0.75rem;
}

.auth-form h4 {
    margin: 0 0 0.14rem;
    font-size: 0.96rem;
}

.auth-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.auth-form input {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.54rem 0.6rem;
    font: inherit;
    background: #fff;
    color: var(--text);
}

.auth-form input:focus-visible {
    outline: 2px solid rgba(20, 93, 88, 0.4);
    border-color: var(--accent);
}

.auth-message {
    min-height: 1.2rem;
    margin: 0.72rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-message.error {
    color: #9b2c2c;
}

.auth-message.success {
    color: #1a6b3d;
}

.progress-header {
    margin-bottom: 0.92rem;
}

.progress-meter {
    width: 100%;
    height: 10px;
    background: #e6edf5;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.progress-meter-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    transition: width 0.25s ease;
}

.progress-percent {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.progress-checklist {
    list-style: none;
    margin: 0 0 0.84rem;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.progress-checklist li {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-muted);
    padding: 0.52rem 0.62rem;
}

.progress-checklist label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.progress-checklist input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.progress-checklist input[type="checkbox"]:disabled + span {
    color: #7f8ea0;
}

.is-hidden {
    display: none !important;
}

.faq-wrap {
    padding: 1.2rem;
}

.faq-wrap h2 {
    margin-top: 0.58rem;
    margin-bottom: 0.95rem;
    font-size: clamp(1.45rem, 2.9vw, 2rem);
}

details {
    margin-top: 0.62rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    padding: 0.7rem 0.82rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
}

details p {
    margin: 0.54rem 0 0;
    color: var(--text-muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #edf2f8;
    padding: 1.15rem 0 1.4rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-row p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero-grid,
    .two-col,
    .three-col,
    .four-col {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 5rem;
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        width: min(320px, 92vw);
        display: grid;
        gap: 0.26rem;
        padding: 0.74rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        box-shadow: var(--shadow-soft);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-7px);
        transition: 0.2s ease;
    }

    .site-header.nav-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        border: none;
        border-radius: 8px;
        padding: 0.5rem 0.54rem;
    }

    .nav-link:hover,
    .nav-link.active,
    .nav-link:focus-visible {
        background: #eef3f8;
    }
}

@media (max-width: 640px) {
    .section-pad {
        padding: 4.2rem 0;
    }

    .container {
        width: min(1140px, calc(100% - 1.35rem));
    }

    .hero-copy h1 {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

.back-link {
    text-decoration: none;
    color: inherit;
}

.community-btn {
    background: var(--accent);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    cursor: pointer;
}

.whitepaper-container {
    border: 1px solid var(--line);
}

/* Lesson pages */
.lesson-topbar {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.lesson-backlink {
    text-decoration: none;
    color: var(--accent-strong);
    font-weight: 700;
    border: 1px solid rgba(20, 93, 88, 0.28);
    background: #ecf6f4;
    border-radius: 999px;
    padding: 0.52rem 0.9rem;
    font-size: 0.9rem;
}

.lesson-backlink:hover,
.lesson-backlink:focus-visible {
    background: #dff0ed;
    outline: none;
}

.lesson-page .section-pad {
    padding-top: 3.4rem;
}

.lesson-shell {
    width: min(880px, 100%);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 1.4rem 1.35rem;
}

.lesson-shell h1 {
    margin-top: 0.6rem;
    font-size: clamp(1.8rem, 3.7vw, 2.65rem);
    line-height: 1.15;
}

.lesson-intro {
    margin: 0.95rem 0 0.2rem;
    color: var(--text-muted);
    max-width: 64ch;
}

.lesson-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.8rem;
}

.lesson-pill {
    border: 1px solid var(--line);
    background: var(--surface-muted);
    border-radius: 999px;
    padding: 0.24rem 0.64rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #4a5d72;
    letter-spacing: 0.02em;
}

.lesson-box {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-muted);
    padding: 0.9rem 0.9rem 0.78rem;
}

.lesson-box h2 {
    font-size: 1.05rem;
    margin: 0 0 0.44rem;
}

.lesson-box p {
    margin: 0;
    color: var(--text-muted);
}

.lesson-section {
    margin-top: 1.25rem;
    padding-top: 1.05rem;
    border-top: 1px solid var(--line);
}

.lesson-section h2 {
    font-size: 1.28rem;
    margin-bottom: 0.5rem;
}

.lesson-section p {
    margin: 0 0 0.6rem;
    color: var(--text-muted);
}

.lesson-list {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
}

.lesson-list li {
    margin-bottom: 0.44rem;
    color: var(--text-muted);
}

.lesson-note {
    margin-top: 0.8rem;
    border-radius: 8px;
    padding: 0.65rem 0.72rem;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

.lesson-note strong {
    color: var(--text);
}

.lesson-note.info {
    background: #eef4fc;
    border-color: #ccd9ea;
}

.lesson-note.warning {
    background: #fff3e8;
    border-color: #f0d8be;
}

.lesson-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .lesson-shell {
        padding: 1rem;
    }

    .lesson-topbar {
        min-height: 64px;
    }
}
