/* ===== Reset / Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    background: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

:root {
    --line: #e5e5e5;
    --line-strong: #000;
    --muted: #666;
    --muted-2: #999;
    --bg-soft: #fafafa;
    --pad-x: 48px;
    --max: 1200px;
}

/* ===== Nav ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px var(--pad-x);
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.15s;
}

.nav-links a:hover { color: #000; }

.nav-cta {
    border: 1px solid #000;
    color: #000 !important;
    padding: 8px 18px;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
}
.nav-cta:hover { background: #000; color: #fff !important; }

/* ===== Container helpers ===== */
.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 120px var(--pad-x);
}

.section-bordered {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}
.section-bordered .section-head,
.section-bordered .book-grid,
.section-bordered .categories,
.section-bordered .pricing-grid {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}

.section-head {
    text-align: center;
    margin-bottom: 72px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-title {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 96px var(--pad-x) 80px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 88px;
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 19px;
    color: #333;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-meta {
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted-2);
}

/* ===== CTA ===== */
.cta {
    display: inline-block;
    padding: 16px 40px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    border: 1px solid #000;
}
.cta:active { transform: translateY(1px); }

.cta-primary { background: #000; color: #fff; }
.cta-primary:hover { background: #fff; color: #000; }

/* ===== Hero image ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    max-width: 560px;
    height: auto;
    display: block;
}

/* ===== Trust strip ===== */
.trust {
    max-width: var(--max);
    margin: 0 auto;
    padding: 36px var(--pad-x);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 16px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.trust-item strong {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.trust-item span {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--line);
}

/* ===== Steps ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
}

.step {
    padding: 48px 36px;
    border-right: 1px solid var(--line);
}
.step:last-child { border-right: none; }

.step-num {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    color: var(--muted);
}

.step h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== Book floating list ===== */
.book-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 64px;
    row-gap: 28px;
    margin: 0 auto 72px;
    max-width: 760px;
}

.book-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
}

.book-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #000;
}

.book-author {
    margin-left: auto;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* ===== Categories (static tags) ===== */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.cat {
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ===== Feature highlights ===== */
.hl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}
.hl:last-child { margin-bottom: 0; }

.hl-reverse .hl-copy { order: 2; }
.hl-reverse .hl-visual { order: 1; }

.hl-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.hl-copy h3 {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hl-copy > p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

.hl-list li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
}
.hl-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 12px;
    height: 1px;
    background: #000;
}

/* ===== Feature highlight images ===== */
.hl-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hl-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
}

/* ===== Pricing ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
}

.plan {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
}

.plan-pro {
    border-color: #000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: #000;
    color: #fff;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.plan-head {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.plan-name {
    display: block;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.plan-price {
    font-size: 44px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #000;
}

.plan-period {
    font-size: 14px;
    color: var(--muted);
    margin-left: 6px;
}

.plan-tagline {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 14px;
}

.plan-list {
    margin-bottom: 32px;
    flex: 1;
}
.plan-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.55;
}
.plan-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 7px;
    border-left: 1.5px solid #000;
    border-bottom: 1.5px solid #000;
    transform: rotate(-45deg);
}

.cta-secondary {
    background: #fff;
    color: #000;
    border-color: #000;
}
.cta-secondary:hover {
    background: #000;
    color: #fff;
}

.plan .cta {
    align-self: flex-start;
}

/* ===== Final CTA ===== */
.final-cta {
    text-align: center;
    padding: 120px var(--pad-x);
    border-top: 1px solid var(--line);
    background: #000;
    color: #fff;
}
.final-cta h2 {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.final-cta p {
    font-size: 17px;
    color: #aaa;
    margin-bottom: 36px;
}
.final-cta .cta-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}
.final-cta .cta-primary:hover {
    background: #000;
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--line);
    padding: 32px var(--pad-x);
    background: #fff;
}
.footer-row {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-row + .footer-row {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.footer-nav {
    display: flex;
    gap: 24px;
}
.footer-nav a {
    font-size: 13px;
    color: var(--muted);
}
.footer-nav a:hover { color: #000; }
.footer-bottom {
    font-size: 12px;
    color: var(--muted-2);
}

.footer-legal {
    flex-wrap: wrap;
    gap: 12px;
}
.footer-email {
    font-size: 13px;
    color: var(--muted);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    :root { --pad-x: 24px; }

    .nav-links { gap: 18px; }
    .nav-links a:not(.nav-cta) { display: none; }

    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 64px var(--pad-x) 56px;
        text-align: center;
    }
    .hero-title { font-size: 64px; }
    .hero-sub { font-size: 17px; margin-left: auto; margin-right: auto; }
    .hero-visual { order: -1; }
    .hero-img { max-width: 360px; }
    .hl-img { max-width: 100%; }

    .trust {
        flex-wrap: wrap;
        gap: 24px;
        padding: 28px var(--pad-x);
    }
    .trust-divider { display: none; }
    .trust-item { flex: 1 1 40%; }

    .section { padding: 80px var(--pad-x); }
    .section-title { font-size: 32px; }
    .section-sub { font-size: 15px; }
    .section-head { margin-bottom: 48px; }

    .steps { grid-template-columns: 1fr; }
    .step { border-right: none; border-bottom: 1px solid var(--line); padding: 36px 28px; }
    .step:last-child { border-bottom: none; }

    .book-list { grid-template-columns: 1fr; column-gap: 0; row-gap: 18px; max-width: none; }
    .book-list li { padding-bottom: 14px; }
    .book-title { font-size: 18px; }

    .hl {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 72px;
    }
    .hl-reverse .hl-copy,
    .hl-reverse .hl-visual { order: unset; }
    .hl-copy h3 { font-size: 26px; }

    .final-cta { padding: 80px var(--pad-x); }
    .final-cta h2 { font-size: 36px; }

    .footer-row { flex-direction: column; gap: 12px; align-items: flex-start; }
    .footer-bottom { font-size: 11px; }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .plan { padding: 32px 24px; }
    .plan-price { font-size: 36px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 48px; }
    .section-title { font-size: 26px; }
    .final-cta h2 { font-size: 28px; }
}

/* ===== Subscribe modal (matches home.css signup styles) ===== */
.signup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 210;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.18s;
}
.signup-overlay:not([hidden]) { opacity: 1; }
.signup-overlay[hidden] { display: none !important; }

.signup-box {
    position: relative;
    width: 360px;
    max-width: 100%;
    padding: 36px 28px 24px;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.signup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: color 0.15s, background 0.15s;
    font-family: inherit;
}
.signup-close:hover { color: #000; background: var(--bg-soft); }

.signup-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.signup-sub {
    font-size: 13px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 18px;
}

.signup-box input[type="text"],
.signup-box input[type="email"] {
    display: block;
    width: 100%;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.15s;
    box-sizing: border-box;
    background: #fff;
}

.signup-box input:focus { border-color: #000; }

.signup-submit {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 4px;
    margin-bottom: 8px;
}
.signup-submit:hover { background: #222; }
.signup-submit:active { transform: translateY(1px); }
.signup-submit:disabled { background: #ddd; cursor: not-allowed; }

.signup-status {
    font-size: 12px;
    min-height: 16px;
    margin-top: 6px;
    color: #c44;
}
.signup-status.ok { color: #090; }
