/* ══════════════════════════════════════════════════════
   The RAG Book — Landing Page
   Warm-paper editorial system: off-white, clay-gold accent,
   mono eyebrow labels, hairline borders. No glows, no gradients.
   ══════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
    --bg:        #FAF7F1;   /* warm paper */
    --bg-2:      #F1EADD;   /* deeper warm band */
    --card:      #FFFFFF;
    --ink:       #1C1A16;   /* warm near-black */
    --ink-2:     #6E665B;   /* warm gray, secondary text */
    --line:      #E6DECE;   /* hairline border */
    --accent:    #A6753A;   /* clay-gold */
    --accent-dk: #875E2C;   /* clay-gold hover */
    --accent-sf: rgba(166,117,58,0.09); /* gold tint surface */

    --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', 'SFMono-Regular', Consolas, monospace;
}

body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
ul { list-style: none; }

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

/* ── Mono eyebrow / labels ──────────────────────────── */
.hero-eyebrow,
.module-group-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-eyebrow { margin-bottom: 22px; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font);
    line-height: 1.0;
    cursor: pointer;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #FCF8F0;
}
.btn-primary:hover {
    background: var(--accent-dk);
    color: #FCF8F0;
    transform: translateY(-1px);
}

/* Outline + glass both render as a hairline-outline button on light bg */
.btn-outline,
.btn-glass {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-outline:hover,
.btn-glass:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: #fff;
    transform: translateY(-1px);
}

.btn-lg { padding: 15px 30px; font-size: 15px; }

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
    background: var(--bg);
    padding: 96px 0 88px;
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    gap: 72px;
    align-items: center;
}

.hero-cover-wrap { display: block; padding: 6px 0; }

.hero-cover {
    width: 100%;
    height: auto;
    max-width: 390px;
    margin: 0 auto;
    display: block;
    border-radius: 3px;
    box-shadow:
        0 1px 1px rgba(40,30,15,0.06),
        0 22px 50px rgba(40,30,15,0.22);
    transform: perspective(1600px) rotateY(-5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}
.hero-cover-wrap:hover .hero-cover {
    transform: perspective(1600px) rotateY(-2deg) translateY(-6px);
    box-shadow:
        0 2px 2px rgba(40,30,15,0.06),
        0 30px 64px rgba(40,30,15,0.28);
}

.hero-content { text-align: left; }
.hero-content .hero-stats { justify-content: flex-start; }
.hero-content .hero-cta { justify-content: flex-start; }

.hero-title {
    font-size: 76px;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -3px;
    color: var(--ink);
    margin-bottom: 22px;
}

/* "RAG" accent — solid clay-gold, no gradient */
.hero-title .gradient-text { color: var(--accent); }

.hero-subtitle {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.2px;
    color: var(--ink);
    margin-bottom: 6px;
}

.hero-sub-light {
    color: var(--ink-2);
    font-style: italic;
}

.hero-byline {
    font-size: 14px;
    color: var(--ink-2);
    margin-top: 12px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-2);
    margin: 32px 0 34px;
    flex-wrap: wrap;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line);
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero chip (mono pill, always visible) */
.launch-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 12px;
    border-radius: 100px;
    background: var(--accent-sf);
    border: 1px solid rgba(166,117,58,0.25);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.launch-chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════
   SECTIONS — every section gets a hairline base
   ══════════════════════════════════════════════════════ */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }

.section-white    { background: var(--bg); }
.section-dark     { background: var(--bg-2); }   /* warm accent band */
.section-dark-mid { background: var(--bg); }

.section-heading {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -1.4px;
    text-align: center;
    color: var(--ink);
    margin-bottom: 16px;
}
/* On a light site, both legacy variants resolve to ink */
.section-heading.light,
.section-heading.dark { color: var(--ink); }

.section-lead {
    font-size: 18px;
    font-weight: 400;
    color: var(--ink-2);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.section-lead.light { color: var(--ink-2); }

.stripe-divider {
    width: 48px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto 36px;
    border-radius: 1px;
}

/* ── Day Cards ──────────────────────────────────────── */
.days-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.day-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 32px 26px;
    transition: all 0.2s ease;
}
.day-card:hover {
    border-color: #D8CBB2;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(40,30,15,0.08);
}

.day-badge {
    display: inline-block;
    background: var(--accent-sf);
    border: 1px solid rgba(166,117,58,0.22);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.day-card h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-bottom: 10px;
}

.day-card > p {
    font-size: 15px;
    color: var(--ink-2);
    margin-bottom: 18px;
    line-height: 1.55;
}

.day-card li {
    font-size: 14px;
    color: var(--ink);
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.45;
}
.day-card li::before {
    content: "\2192";
    color: var(--accent);
    font-size: 13px;
    position: absolute;
    left: 0;
    top: 6px;
}

/* ── Module List ────────────────────────────────────── */
.modules-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.module-group-title {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.module-item {
    font-size: 14px;
    color: var(--ink);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.4;
    transition: color 0.15s ease;
}
.module-item:hover { color: var(--accent-dk); }
.module-item.bundle { color: var(--accent-dk); }

.module-num {
    display: inline-block;
    width: 36px;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* ── Tracks ─────────────────────────────────────────── */
.tracks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.track-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 38px 32px;
    transition: all 0.2s ease;
}
.track-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(40,30,15,0.08);
}

.track-pl  { border-left: 3px solid var(--accent); }
.track-eng { border-left: 3px solid var(--ink); }

.track-card h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin-bottom: 20px;
}

.track-card li {
    font-size: 15px;
    color: var(--ink-2);
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.45;
}
.track-pl li::before,
.track-eng li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-size: 13px;
}
.track-pl li::before  { color: var(--accent); }
.track-eng li::before { color: var(--ink); }

/* ── Preview Section ────────────────────────────────── */
.preview-section {
    padding: 80px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

/* ── Author ─────────────────────────────────────────── */
.author-block {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 56px;
    align-items: start;
}

.author-image-wrap { position: relative; }

.author-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow:
        0 2px 4px rgba(40,30,15,0.06),
        0 24px 48px rgba(40,30,15,0.16);
}

.author-text p {
    font-size: 16px;
    color: var(--ink-2);
    margin-bottom: 16px;
    line-height: 1.65;
}
.author-text strong { color: var(--ink); font-weight: 600; }

.author-link { margin-top: 12px; }
.author-link a { color: var(--accent); font-weight: 500; font-size: 15px; }
.author-link a:hover { color: var(--accent-dk); }

/* ── Final CTA ──────────────────────────────────────── */
.cta-final {
    background: var(--bg);
    padding: 108px 0;
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.cta-title {
    font-size: 46px;
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -1.6px;
    color: var(--ink);
    margin-bottom: 16px;
}

.cta-sub {
    font-size: 18px;
    color: var(--ink-2);
    margin-bottom: 30px;
}

/* "Free" label above the final CTA */
.price-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.price-tag .dollar { font-size: 13px; vertical-align: baseline; color: var(--accent); }

/* ── Footer ─────────────────────────────────────────── */
.footer {
    background: var(--bg-2);
    color: var(--ink-2);
    padding: 30px 0;
    text-align: center;
    font-size: 13px;
    border-top: 1px solid var(--line);
}
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer p { margin-bottom: 4px; }

/* ── Capture Modal ──────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 26, 22, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: var(--card);
    border-radius: 14px;
    padding: 44px 38px 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 70px rgba(40,30,15,0.30);
}

.modal-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink-2);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.modal-close:hover { color: var(--ink); }

.modal-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--ink);
    margin-bottom: 8px;
    text-align: center;
}

.modal-sub {
    font-size: 14px;
    color: var(--ink-2);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 26px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.modal-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-sf);
}
.modal-form input::placeholder { color: #A89E8E; }

.modal-btn { margin-top: 4px; width: 100%; text-align: center; }

.modal-fine {
    font-size: 11px;
    color: var(--ink-2);
    text-align: center;
    margin-top: 16px;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-title { font-size: 60px; letter-spacing: -2px; }
    .hero-grid { gap: 56px; }
    .hero-cover { max-width: 340px; }
    .days-grid { grid-template-columns: 1fr 1fr; }
    .modules-list { grid-template-columns: 1fr 1fr; }
    .author-block { grid-template-columns: 280px 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-content { text-align: center; }
    .hero-content .hero-stats,
    .hero-content .hero-cta { justify-content: center; }
    .hero-cover { max-width: 300px; transform: none; }
    .hero-cover-wrap:hover .hero-cover { transform: translateY(-4px); }
    .author-block {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .author-image-wrap { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero { padding: 72px 0 64px; }
    .hero-title { font-size: 48px; letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 18px; }
    .section { padding: 64px 0; }
    .section-heading { font-size: 32px; letter-spacing: -1px; }
    .cta-title { font-size: 34px; letter-spacing: -1px; }
    .days-grid { grid-template-columns: 1fr; }
    .modules-list { grid-template-columns: 1fr; }
    .tracks-grid { grid-template-columns: 1fr; }
    .cta-final { padding: 80px 0; }
    .faq-item { padding: 22px 22px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 40px; letter-spacing: -1px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn-lg { width: 100%; text-align: center; }
    .section-heading { font-size: 28px; }
    .hero-cover { max-width: 260px; }
}

/* ══════════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════════ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    padding: 24px 28px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--line);
}

.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 9px;
    letter-spacing: -0.2px;
}

.faq-a {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.faq-a code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--accent-dk);
}

.faq-a em { color: var(--ink); font-style: italic; }
