@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --ink: #14161a;
    --paper: #fbfaf8;
    --paper-alt: #f1efe9;
    --accent: #1f5f4f;
    --accent-light: #e9f2ee;
    --gold: #c9a227;
    --muted: #6b6f76;
    --border: #e4e1da;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; margin: 0; }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- Top bar ---- */
.topbar {
    position: sticky; top: 0; z-index: 20;
    background: rgba(251,250,248,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; max-width: 1080px; margin: 0 auto;
}
.brand { font-family: 'Fraunces', serif; font-weight: 700; font-size: 19px; }
.topbar .btn-small { padding: 9px 18px; font-size: 14px; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 34px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #201a04; }

/* ---- Hero ---- */
.hero {
    padding: 96px 24px 80px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, var(--accent-light) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, #fdf6e3 0%, transparent 40%);
}
.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(34px, 5.5vw, 58px);
    font-weight: 600;
    line-height: 1.08;
    max-width: 780px;
    margin: 0 auto 22px;
    letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
}
.hero-price { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-price strong { color: var(--ink); font-size: 16px; }

/* ---- Sections ---- */
.section { padding: 80px 24px; }
.section-alt { background: var(--paper-alt); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---- Learning path (signature element) ---- */
.path {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}
.path::before {
    content: '';
    position: absolute;
    left: 27px; top: 12px; bottom: 12px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--border) 0 6px, transparent 6px 12px);
}
.path-step {
    position: relative;
    display: flex;
    gap: 22px;
    padding: 0 0 40px;
}
.path-step:last-child { padding-bottom: 0; }
.path-num {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 19px;
    z-index: 1;
}
.path-body h3 { font-size: 18px; margin-bottom: 6px; }
.path-body p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---- Benefit grid ---- */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.benefit-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 26px;
}
.benefit-card .icon { font-size: 24px; margin-bottom: 12px; }
.benefit-card h3 { font-size: 16px; margin-bottom: 6px; }
.benefit-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---- Final CTA ---- */
.cta-final {
    text-align: center;
    padding: 90px 24px;
    background: var(--ink);
    color: #fff;
}
.cta-final h2 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin-bottom: 16px; }
.cta-final p { color: #c7c9cd; max-width: 480px; margin: 0 auto 32px; }

/* ---- Footer ---- */
.footer {
    padding: 32px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* ---- Modal / popups ---- */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(20,22,26,0.55);
    z-index: 100;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-panel {
    background: #fff;
    border-radius: 14px;
    max-width: 420px;
    width: 100%;
    padding: 34px 30px;
    position: relative;
}
.modal-panel.hidden { display: none; }
.modal-close {
    position: absolute; top: 16px; right: 18px;
    background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted);
}
.modal-panel h2 { font-size: 21px; margin-bottom: 6px; }
.modal-panel .modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.field { margin-bottom: 14px; text-align: left; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}
.form-error { color: #b3261e; font-size: 13px; min-height: 18px; margin-bottom: 6px; }

.pay-summary-box {
    background: var(--paper-alt);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 22px;
}

.confirm-status { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.confirm-sub { color: var(--muted); font-size: 14px; margin: 0; }
.confirm-icon { font-size: 40px; margin-bottom: 16px; }

button[type="submit"], #pay-btn { width: 100%; }

@media (max-width: 560px) {
    .hero { padding: 64px 20px 56px; }
    .section { padding: 56px 20px; }
}
