@import url('tokens.css');

/* Hero */
.hero {
    padding: var(--space-16) 0;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: var(--space-5);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1px;
    background-color: var(--gold);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    max-width: 14ch;
    margin: 0 auto var(--space-5);
    line-height: 1.05;
}

.hero-title em {
    color: var(--gold);
    font-style: normal;
}

.hero-subtitle {
    max-width: 60ch;
    margin: 0 auto var(--space-8);
    color: var(--muted);
    font-size: 1.125rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

/* Booklet showcase */
.showcase {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-10);
}

.pcl-mockup {
    width: 380px;
    height: 540px;
    background: var(--gold);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    position: relative;
    flex-shrink: 0;
    /* reserve horizontal room for the protruding index tabs */
    margin-right: 64px;
}

.pcl-mockup::before {
    content: '';
    width: 52px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    background: repeating-linear-gradient(
        45deg,
        var(--ink),
        var(--ink) 8px,
        var(--gold) 8px,
        var(--gold) 16px
    );
}

.pcl-mockup-body {
    flex: 1;
    padding: var(--space-10) var(--space-6) var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--navy);
}

.pcl-mockup-body .top {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-10);
}

.pcl-mockup-body .title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.pcl-mockup-body .agency {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: auto;
}

/* Right-edge index tabs — distributed evenly down the full cover height */
.pcl-mockup-tabs {
    position: absolute;
    /* right = -(width) + overlap: left edge sits 4 px inside the book's right edge */
    right: -52px;
    top: 0;
    bottom: 0;
    width: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: var(--space-2) 0;
    pointer-events: none;
}

.mockup-tab {
    /* proportions: 2 : 1 ratio — real binder index tab shape */
    width: 46px;
    height: 22px;
    padding: 0 3px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.57rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--navy);
    /* solid gold — exact match to the booklet body so tabs read as part of the book */
    background: var(--gold);
    border: 1px solid var(--gold-dark);
    border-left: none;          /* seamless join to the book's right edge */
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 1px 3px rgba(26, 26, 26, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    /* no transform in transition — active state must never float away from the book */
    transition: width 0.15s ease, background 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease;
}

.mockup-tab:hover,
.mockup-tab:focus-visible,
.mockup-tab.is-active {
    /* wider — protrudes further to the RIGHT, left edge stays flush with the book */
    width: 54px;
    /* NO transform: translateX — that was pulling tabs away from the book edge */
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy-light);
    box-shadow: 3px 2px 8px rgba(22, 32, 58, 0.40);
    outline: none;
}

.preview-card {
    width: 250px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-dark);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    text-align: left;
    color: var(--navy);
}

.preview-card .eyebrow {
    color: var(--gold-dark);
    margin-bottom: var(--space-2);
}

.preview-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
    color: var(--navy);
}

.preview-card ul {
    list-style: none;
    font-size: 0.8rem;
}

.preview-card li {
    margin-bottom: var(--space-2);
    padding-left: var(--space-4);
    position: relative;
}

.preview-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--red-badge);
}

/* Problems section */
.problems-intro {
    text-align: center;
    max-width: 60ch;
    margin: 0 auto var(--space-10);
}

.problems-intro h2 {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

.problems-intro p {
    color: var(--muted);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

.stats-grid .stat-card:nth-child(3) {
    background-color: var(--navy);
    color: var(--cream);
}

.stats-grid .stat-card:nth-child(3) .number,
.stats-grid .stat-card:nth-child(3) .label,
.stats-grid .stat-card:nth-child(3) p {
    color: var(--cream);
}

/* Tab list */
.tab-list-section {
    text-align: center;
    margin-bottom: var(--space-16);
}

.tab-list-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin-bottom: var(--space-5);
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

/* Authors */
.authors-section {
    text-align: center;
}

.authors-section h2 {
    font-size: 2rem;
    margin-bottom: var(--space-3);
    color: var(--cream);
}

.authors-section .subtitle {
    color: rgba(244, 241, 232, 0.75);
    max-width: 70ch;
    margin: 0 auto var(--space-10);
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    max-width: 800px;
    margin: 0 auto;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.process-step {
    text-align: center;
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-2);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Audience */
.audience-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.audience-pills .pill {
    border: 1px solid rgba(244, 241, 232, 0.25);
    color: var(--cream);
    background: transparent;
}

/* Trust section */
.trust-headline {
    text-align: center;
    margin-bottom: var(--space-10);
}

.trust-headline h2 {
    font-size: 2rem;
}

.trust-headline h2 em {
    color: var(--gold);
    font-style: normal;
}

.trust-subline {
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto;
}

.trust-divider {
    text-align: center;
    margin: var(--space-12) 0;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--space-8);
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--gold);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
}

.faq-question:hover {
    color: var(--gold-dark);
}

.faq-question:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    color: var(--gold-dark);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--muted);
    line-height: 1.65;
}

.faq-answer[hidden] {
    display: none;
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: var(--space-16) 0;
}

.final-cta h2 {
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
}

.final-cta h2 em {
    color: var(--gold);
    font-style: normal;
}

.final-cta p {
    color: var(--muted);
    max-width: 55ch;
    margin: 0 auto var(--space-8);
}

/* Responsive */
@media (max-width: 960px) {
    .showcase {
        flex-direction: column;
    }

    .stats-grid,
    .process-grid,
    .authors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pcl-mockup {
        width: 280px;
        height: 400px;
        margin-right: 58px;
    }

    .pcl-mockup-body {
        padding: var(--space-8) var(--space-5) var(--space-6);
    }

    .pcl-mockup-body .title {
        font-size: 1.5rem;
    }

    .mockup-tab {
        font-size: 0.55rem;
    }

    .preview-card {
        width: 280px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
