:root {
    --bg: #fffbe8;
    --panel: #ffffff;
    --panel-soft: #fff4bf;
    --line: #e5d48a;
    --text: #2c250f;
    --muted: #6f6432;
    --primary: #f3cf4b;
    --primary-strong: #ddb92b;
    --white-soft: #fffdf4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.site-shell {
    position: relative;
}

.topbar,
.section-layout,
.footer {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: var(--white-soft);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    color: var(--text);
    background: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
}

.brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav a {
    color: var(--muted);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.menu-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--panel);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.2rem;
    height: 2px;
    margin: 0.3rem auto;
    background: var(--text);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    display: block;
    padding: 6rem 0 3rem;
}

.hero-copy,
.info-card,
.subject-card,
.download-banner {
    background: var(--panel);
    border: 1px solid var(--line);
}

.hero-copy {
    padding: 1rem 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
}

.hero h1 span {
    color: var(--primary-strong);
}

.hero-text,
.section-heading p,
.info-card p,
.subject-card p,
.footer p,
.download-banner p {
    color: var(--muted);
}

.hero-text {
    max-width: 42rem;
    font-size: 1.08rem;
}

.hero-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-actions {
    margin: 1.8rem 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
}

.btn {
    padding: 0.9rem 1.35rem;
    font-weight: 700;
}

.btn-primary {
    color: var(--text);
    background: var(--primary);
}

.btn-secondary {
    color: var(--text);
    background: var(--panel);
}

.stats-grid,
.card-grid,
.subject-grid {
    display: grid;
    gap: 1rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid var(--line);
    background: var(--white-soft);
}

.stat-card strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.4rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero h2,
.section-heading h2,
.download-banner h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.section-layout {
    padding: 1.5rem 0 4rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.75rem;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card,
.subject-card {
    border-radius: 1.35rem;
}

.info-card,
.subject-card {
    padding: 1.35rem;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pricing-value {
    color: var(--primary-strong);
    font-size: 1.6rem;
    font-weight: 800;
}

.pricing-copy {
    max-width: 16rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.info-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.95rem;
    border-radius: 0.95rem;
    background: var(--panel-soft);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.info-card h3,
.subject-card h3 {
    margin-bottom: 0.55rem;
}

.subject-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.subject-badge {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-strong);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.download-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: 1.5rem;
}

.footer {
    padding: 0 0 3rem;
    text-align: center;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: calc(100% + 0.75rem);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 1.25rem;
        background: var(--panel);
    }

    .nav.nav-open {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .download-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .topbar,
    .section-layout,
    .footer {
        width: min(100% - 1rem, 1180px);
    }

    .topbar {
        margin-top: 0.5rem;
        padding: 0.85rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}