/* ============================================================
   book-landing.css — shared styles for the per-book landing pages
   (owner-optional.html, field-guide.html, seen-from-every-seat.html).
   Extracted from book.html's inline styles so the three titles stay
   visually consistent with the series page.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Aliased to styles.css's shared tokens. */
    --primary-navy: var(--navy);
    --accent-gold: var(--gold);
    --accent-orange: var(--orange);
    --accent-teal: var(--teal);
    --light-teal: #e8f2f4;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #f8f8f8;
    --cream: var(--paper);
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--cream);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(212, 165, 80, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(91, 163, 163, 0.08) 0%, transparent 50%),
        var(--cream);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(44, 74, 86, 0.02) 0px, transparent 1px, transparent 80px, rgba(44, 74, 86, 0.02) 81px),
        repeating-linear-gradient(0deg, rgba(44, 74, 86, 0.02) 0px, transparent 1px, transparent 80px, rgba(44, 74, 86, 0.02) 81px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.launch-date { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; }

.book-eyebrow {
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.highlight { color: var(--accent-gold); position: relative; display: inline-block; }
.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em; left: -0.1em; right: -0.1em;
    height: 0.3em;
    background: var(--accent-gold);
    opacity: 0.2;
    z-index: -1;
    transform: skew(-3deg);
}

.subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--medium-gray);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.credential-line {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-bottom: 2.5rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.cover-wrap { margin: 2rem auto 2.5rem; max-width: 280px; }
.cover-wrap img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-cta { animation: fadeInUp 1s ease-out 1s backwards; }

/* ---------- Panels ---------- */
.panel {
    background: #fff;
    padding: 4rem 0;
    margin: 3rem 0;
    border-radius: 24px;
    border: 1px solid rgba(44, 74, 86, 0.1);
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-subtitle {
    text-align: center;
    color: var(--medium-gray);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3.5rem;
}

.benefit-item { position: relative; padding-left: 3rem; }

.benefit-icon {
    position: absolute;
    left: 0; top: 0;
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}

.benefit-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.benefit-description { color: var(--medium-gray); line-height: 1.7; }

/* ---------- CTA ---------- */
.cta-section {
    background: var(--primary-navy);
    color: #fff;
    padding: 4.5rem 0;
    margin: 3rem 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 20%, rgba(212, 165, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(91, 163, 163, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: var(--accent-teal);
}

.button-grid { max-width: 420px; margin: 0 auto 1.5rem; }

.cta-links { margin-top: 1.5rem; }
.cta-links a { color: var(--accent-teal); font-weight: 600; }

/* Scoped so this doesn't collide with the shared .btn-primary pill
   button in the site-nav header (styles.css). */
.hero-cta .btn-primary,
.button-grid .btn-primary {
    display: inline-block;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    text-align: center;
}

.hero-cta .btn-primary.btn-lg { max-width: 420px; }

.hero-cta .btn-primary:hover,
.button-grid .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 80, 0.4);
}

.hero-cta .btn-primary span,
.button-grid .btn-primary span { display: block; }

.hero-cta .btn-primary small,
.button-grid .btn-primary small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 0.25rem;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--medium-gray);
    font-size: 0.9rem;
}
footer a { color: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .benefit-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll animations ---------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
