/* === Design tokens === */
:root {
    --bg: #ffffff;
    --bg-alt: #f0f4f8;
    --bg-dark: #0d1b2a;
    --bg-dark-2: #162436;
    --text: #1a2535;
    --text-muted: #5a6b7c;
    --text-light: #8a99a8;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-light: #dcfce7;
    --gold: #d97706;
    --gold-light: #fef3c7;
    --border: #e2e8f0;
    --border-dark: #2a3a4a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
    --shadow: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,.14);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --nav-h: 66px;
    --max-w: 1160px;
    --transition: 0.18s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* === Layout === */
.container {
    width: min(var(--max-w), 100% - 2.4rem);
    margin-inline: auto;
}

/* === Typography === */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 700; }
p { color: var(--text-muted); }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
}
.section-label::before {
    content: '';
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 99px;
}
.section-h2 { color: var(--text); margin-bottom: 0.5rem; }
.section-sub { font-size: 1.05rem; margin-bottom: 2.5rem; max-width: 60ch; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 0.65rem 1.3rem;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.3;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn--lg { font-size: 1.02rem; padding: 0.82rem 1.7rem; border-radius: 10px; }
.btn--sm { font-size: 0.83rem; padding: 0.4rem 0.9rem; border-radius: 7px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* === Tag badge === */
.tag {
    display: inline-block;
    background: var(--gold-light);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

/* === Navigation === */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(13,27,42,.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-dark);
    transition: box-shadow var(--transition);
}
.nav--scrolled { box-shadow: 0 6px 28px rgba(0,0,0,.32); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav__logo { font-size: 1.2rem; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.nav__logo:hover { color: #fff; }
.nav__logo span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav__links a { color: rgba(255,255,255,.7); font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.8rem; border-radius: 7px; transition: color var(--transition), background var(--transition); }
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* === Hero === */
.hero {
    background: var(--bg-dark);
    color: #fff;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 60% at 75% 55%, rgba(22,163,74,.11) 0%, transparent 68%);
    pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero__text h1 { color: #fff; margin-bottom: 1.2rem; }
.hero__text h1 em { color: var(--accent); font-style: normal; }
.hero__sub { color: rgba(255,255,255,.68); font-size: 1.1rem; line-height: 1.72; margin-bottom: 2rem; max-width: 52ch; }
.hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero__stats { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.stat { font-size: 0.85rem; color: rgba(255,255,255,.5); }
.stat strong { color: #fff; }
.stat__div { width: 1px; height: 13px; background: rgba(255,255,255,.18); }

/* Hero book spine visual */
.hero__books { display: flex; flex-direction: column; gap: 10px; }
.hero__book-spine {
    width: 44px;
    height: 148px;
    background: var(--spine-color);
    border-radius: 3px 7px 7px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.58rem;
    font-weight: 800;
    color: rgba(255,255,255,.65);
    letter-spacing: .04em;
    box-shadow: -4px 4px 14px rgba(0,0,0,.45);
    animation: bookSpine 0.55s cubic-bezier(.22,.68,0,1.2) both;
    animation-delay: var(--spine-delay);
    padding: 8px 5px;
    overflow: hidden;
}

/* === How it works === */
.how-it-works { padding: 5rem 0; background: var(--bg-alt); }
.how-it-works .section-h2 { margin-bottom: 2.4rem; }
.steps { display: flex; align-items: flex-start; }
.step { flex: 1; padding: 1.5rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step__num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-weight: 900; font-size: 1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.85rem; }
.step h3 { color: var(--text); margin-bottom: 0.35rem; font-size: 1rem; }
.step p { font-size: 0.88rem; max-width: none; }
.step__arrow { flex-shrink: 0; font-size: 1.3rem; color: var(--border); padding: 0 0.4rem; margin-top: 1.7rem; align-self: flex-start; }

/* === Books catalog === */
.books-section { padding: 5.5rem 0; }
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}
.book-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow var(--transition), transform var(--transition); }
.book-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.book-card__cover { height: 195px; background: var(--cover-color); display: flex; overflow: hidden; flex-shrink: 0; text-decoration: none; }
.book-card__cover:hover { opacity: .92; }
.book-card__spine { width: 18px; background: rgba(0,0,0,.22); flex-shrink: 0; }
.book-card__face { flex: 1; padding: 1.1rem 1rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.38) 100%); }
.book-card__category { font-size: 0.68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 0.35rem; display: block; }
.book-card__title { color: #fff; font-size: 1rem; font-weight: 800; line-height: 1.2; margin-bottom: 0.28rem; }
.book-card__sub { font-size: 0.73rem; color: rgba(255,255,255,.58); line-height: 1.4; }
.book-card__body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.72rem; }
.book-card__desc { font-size: 0.87rem; line-height: 1.55; max-width: none; }
.book-card__includes { display: flex; flex-direction: column; gap: 0.28rem; }
.book-card__includes li { font-size: 0.81rem; color: var(--text-muted); padding-left: 1.1rem; position: relative; }
.book-card__includes li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.book-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.price-label { font-size: 0.72rem; color: var(--text-light); display: block; line-height: 1; margin-bottom: 0.08rem; }
.book-card__price strong { font-size: 1.55rem; font-weight: 900; color: var(--text); }
.price-note { font-size: 0.7rem; color: var(--text-light); margin-left: 0.1rem; }

/* === Trust bar === */
.trust-bar { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.2rem 0; }
.trust-bar__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.trust-item { display: flex; flex-direction: column; gap: 0.28rem; }
.trust-item__icon { font-size: 1.35rem; margin-bottom: 0.28rem; }
.trust-item strong { font-size: 0.95rem; color: var(--text); }
.trust-item span { font-size: 0.83rem; color: var(--text-muted); }

/* === Testimonials === */
.testimonials { padding: 5.5rem 0; background: var(--bg-dark); }
.testimonials .section-label { color: var(--accent); }
.testimonials .section-h2 { color: #fff; margin-bottom: 2.4rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.testimonial { background: var(--bg-dark-2); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 1.6rem; display: flex; flex-direction: column; gap: 1rem; }
.testimonial__stars { color: var(--gold); letter-spacing: 2px; font-size: 0.9rem; }
.testimonial__quote { color: rgba(255,255,255,.78); font-size: 0.93rem; line-height: 1.66; font-style: italic; max-width: none; flex: 1; }
.testimonial__footer { display: flex; flex-direction: column; gap: 0.12rem; padding-top: 0.9rem; border-top: 1px solid var(--border-dark); }
.testimonial__footer strong { color: #fff; font-size: 0.88rem; }
.testimonial__footer span { color: rgba(255,255,255,.42); font-size: 0.8rem; }
.testimonial__book { color: var(--accent) !important; font-size: 0.76rem !important; font-weight: 700; }

/* === FAQ section === */
.faq-section { padding: 5.5rem 0; background: var(--bg-alt); }
.faq-section__inner { display: grid; grid-template-columns: 1fr 1.7fr; gap: 4.5rem; align-items: start; }
.faq-col p { margin-top: 1rem; font-size: 0.94rem; }
.faq-items { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary { padding: 1.1rem 1.3rem; font-size: 0.95rem; font-weight: 700; cursor: pointer; color: var(--text); display: flex; justify-content: space-between; align-items: center; user-select: none; list-style: none; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--text-muted); flex-shrink: 0; }
.faq-item[open] > summary::after { content: '−'; }
.faq-item[open] > summary { border-bottom: 1px solid var(--border); }
.faq-item p { padding: 1rem 1.3rem; font-size: 0.91rem; line-height: 1.62; max-width: none; }

/* === Footer === */
.footer { background: var(--bg-dark); border-top: 1px solid var(--border-dark); padding: 3rem 0 2rem; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer__brand p { margin-top: 0.5rem; font-size: 0.83rem; color: rgba(255,255,255,.4); max-width: 36ch; }
.footer__links { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.footer__links a { font-size: 0.84rem; color: rgba(255,255,255,.45); }
.footer__links a:hover { color: #fff; }
.footer__legal { grid-column: 1 / -1; font-size: 0.76rem; color: rgba(255,255,255,.28); padding-top: 1.5rem; border-top: 1px solid var(--border-dark); max-width: none; line-height: 1.65; }

/* === Book detail hero === */
.book-detail-hero { background: var(--bg-dark); color: #fff; padding: 5rem 0 4rem; }
.book-detail-hero__inner { display: grid; grid-template-columns: auto 1fr; gap: 3.5rem; align-items: start; }
.book-detail-cover { width: 200px; height: 280px; background: var(--cover-color); border-radius: 3px 12px 12px 3px; display: flex; flex-shrink: 0; box-shadow: -7px 7px 24px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); }
.book-detail-cover__spine { width: 26px; background: rgba(0,0,0,.24); flex-shrink: 0; border-radius: 3px 0 0 3px; }
.book-detail-cover__face { flex: 1; padding: 1.5rem 1.2rem; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(to bottom, transparent, rgba(0,0,0,.42)); border-radius: 0 12px 12px 0; overflow: hidden; }
.book-detail-cover__face .cover-cat { font-size: 0.62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62); display: block; margin-bottom: 0.5rem; }
.book-detail-cover__face h2 { color: #fff; font-size: 1rem; font-weight: 900; line-height: 1.18; }
.book-detail-info { display: flex; flex-direction: column; gap: 0.75rem; }
.book-detail-info .tag { align-self: flex-start; }
.book-meta { font-size: 0.8rem; color: rgba(255,255,255,.4); display: block; }
.book-detail-info h1 { color: #fff; }
.book-detail-subtitle { color: rgba(255,255,255,.6); font-size: 1.1rem; max-width: 52ch; }
.book-detail-desc { color: rgba(255,255,255,.68); max-width: 56ch; font-size: 0.97rem; line-height: 1.72; }
.book-detail-price { display: flex; align-items: baseline; gap: 0.45rem; }
.book-detail-price strong { font-size: 2.5rem; font-weight: 900; color: #fff; }
.book-detail-price span { color: rgba(255,255,255,.38); font-size: 0.88rem; }
.book-detail-cta { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.coming-soon-note { font-size: 0.82rem; color: rgba(255,255,255,.38); max-width: none; }
.coming-soon-note a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* Book detail content sections */
.book-section { padding: 5rem 0; }
.book-section__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.book-section h2 { font-size: 1.45rem; margin-bottom: 1.2rem; }
.outcomes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.outcomes-list li { padding: 0.9rem 1rem 0.9rem 2.8rem; background: var(--accent-light); border-radius: var(--radius); position: relative; font-size: 0.91rem; color: var(--text); line-height: 1.52; border: 1px solid rgba(22,163,74,.12); }
.outcomes-list li::before { content: '✓'; position: absolute; left: 1rem; color: var(--accent); font-weight: 900; }
.includes-list { display: flex; flex-direction: column; gap: 0.6rem; }
.includes-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.94rem; color: var(--text); padding: 0.75rem 1rem; background: var(--bg-alt); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.includes-list li::before { content: '📥'; font-size: 1rem; flex-shrink: 0; }
.more-books { background: var(--bg-alt); padding: 5rem 0; border-top: 1px solid var(--border); }
.more-books h2 { margin-bottom: 2rem; }

/* === FAQ standalone page === */
.faq-standalone { padding: 5rem 0 6rem; background: var(--bg-alt); }
.faq-standalone .section-h2 { margin-bottom: 0.5rem; }
.faq-standalone .section-sub { margin-bottom: 2.5rem; }
.faq-standalone .faq-items { max-width: 760px; }

/* === Animations === */
@keyframes bookSpine {
    from { opacity: 0; transform: translateX(24px) rotate(2deg); }
    to   { opacity: 1; transform: translateX(0) rotate(0); }
}

/* === Responsive === */
@media (max-width: 900px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__books { display: none; }
    .steps { flex-direction: column; }
    .step__arrow { display: none; }
    .faq-section__inner { grid-template-columns: 1fr; gap: 2rem; }
    .book-detail-hero__inner { grid-template-columns: 1fr; }
    .book-section__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 640px) {
    .nav__links {
        display: none;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(13,27,42,.98);
        flex-direction: column;
        padding: 0.75rem;
        border-bottom: 1px solid var(--border-dark);
        gap: 0.1rem;
    }
    .nav__links--open { display: flex; }
    .nav__burger { display: flex; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .book-detail-cover { width: 160px; height: 224px; }
}