:root {
    --bg-canvas: #fafaf9;
    --surface-card: rgba(255, 255, 255, 0.78);
    --surface-elevated: #f3f4f6;
    --text-main: #1e293b;
    --text-muted: #475569;
    --accent-main: #b45309;
    --accent-light: #d97706;
    --border-color: #cbd5e1;
    --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #92400e 100%);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* --- Warm Night-Drive Dark Mode (Matches Book Cover) --- */
body.dark-mode {
    --bg-canvas: #1c1815;
    --surface-card: rgba(41, 37, 34, 0.88);
    --surface-elevated: #292522;
    --text-main: #f5f3ff;
    --text-muted: #d6d3d1;
    --accent-main: #d97706;
    --accent-light: #f59e0b;
    --border-color: #57534e;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    background-color: var(--bg-canvas);
    background-image: radial-gradient(rgba(180, 83, 9, 0.06) 1.5px, transparent 1.5px),
        radial-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- WCAG Focus Accessibility Rings --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent-main) !important;
    outline-offset: 2px !important;
}

/* --- EDITORIAL TYPOGRAPHY --- */
.headline-font {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.addon-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-main);
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background-color: rgba(180, 83, 9, 0.05);
}

.core-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: 50rem;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
    background-color: var(--surface-elevated);
}

.client-provision-note {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-main);
    background-color: rgba(180, 83, 9, 0.08);
    border-left: 3px solid var(--accent-main);
    padding: 8px 16px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* --- Hero Section & Wrapper --- */
.hero-section {
    padding: 8rem 0 6rem 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(241, 245, 249, 0.6) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode .hero-section {
    background: transparent !important;
}

.hero-row {
    align-items: center !important;
}

.hero-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* True Frosted Glass Hero Wrapper in Dark Mode (Semi-transparent with background blur) */
body.dark-mode .hero-section {
    background: rgba(28, 24, 21, 0.55) !important;
}

/* STRICT OVERRIDE: Force ALL text and paragraphs inside hero-wrapper to be bright white in dark mode */
body.dark-mode .hero-wrapper p,
body.dark-mode .hero-wrapper .text-muted,
body.dark-mode .hero-wrapper span,
body.dark-mode .hero-wrapper div {
    color: #f5f3ff !important;
}

.hero-image-col {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* --- Book Cover & Float Animation --- */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.book-cover-wrapper {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.book-cover-img {
    width: auto;
    max-width: 240px;
    max-height: 380px;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: block;
    will-change: transform;
    animation: floatAnimation 4s ease-in-out infinite;
}

/* --- Mobile Stacked Adjustments --- */
@media (max-width: 991.98px) {
    .hero-row {
        flex-wrap: wrap !important;
    }

    .hero-text-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        text-align: center !important;
    }

    .hero-image-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        display: flex;
        justify-content: center;
        margin-bottom: 2rem;
    }

    .book-cover-img {
        max-width: 180px !important;
        max-height: 280px !important;
    }

    .hero-section h1 {
        font-size: 2.25rem !important;
    }

    .hero-section h2 {
        font-size: 1rem !important;
    }

    .hero-section p {
        font-size: 0.95rem !important;
    }

    .retailer-btn {
        padding: 0.6rem 1.25rem !important;
        font-size: 0.85rem !important;
        gap: 8px !important;
    }
}

/* --- Scroll Indicator & Arrows --- */
.scroll-indicator-absolute {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-indicator-absolute:hover,
.section-scroll-link:hover {
    opacity: 1;
}

.section-scroll-link {
    text-decoration: none;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    color: var(--accent-main);
    font-size: 2rem;
    display: block;
}

/* --- Retailer Buttons --- */
.retailer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--text-main);
    color: var(--bg-canvas);
    border: 2px solid var(--text-main);
    border-radius: 50rem;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.retailer-btn:hover {
    background-color: var(--accent-main);
    color: #ffffff;
    border-color: var(--accent-main);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.3);
}

/* --- Content & Synopsis --- */
.content-section {
    padding: 5rem 0;
    background-color: var(--bg-canvas);
}

.dropcap {
    float: left;
    font-size: 3.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    padding-top: 0.2rem;
    color: var(--accent-main);
    font-weight: 700;
}

/* --- Author Profile Card --- */
.author-section {
    background-color: var(--surface-elevated);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.bracket-frame-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    cursor: pointer;
}

.editorial-author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.bracket-frame-wrapper:hover .editorial-author-img {
    transform: scale(1.02);
}

.bracket {
    position: absolute;
    width: 26px;
    height: 26px;
    border-color: var(--accent-main);
    border-style: solid;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bracket.tl {
    top: -8px;
    left: -8px;
    border-width: 3px 0 0 3px;
}

.bracket.tr {
    top: -8px;
    right: -8px;
    border-width: 3px 3px 0 0;
}

.bracket.bl {
    bottom: -8px;
    left: -8px;
    border-width: 0 0 3px 3px;
}

.bracket.br {
    bottom: -8px;
    right: -8px;
    border-width: 0 3px 3px 0;
}

.bracket-frame-wrapper:hover .bracket {
    border-color: var(--accent-light);
}

.author-social {
    color: var(--accent-main);
    font-size: 1.4rem;
    margin: 0 12px;
    transition: color 0.2s ease;
}

.author-social:hover {
    color: var(--text-main);
}

/* --- Add-on Block Utility Styles --- */
.addon-section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-canvas);
}

/* --- Lead Router Input Styling --- */
.lead-router-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface-card);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.lead-router-input:focus {
    border-color: var(--accent-main);
    box-shadow: 0 0 10px rgba(180, 83, 9, 0.2);
}

.lead-router-input option {
    background: var(--surface-elevated);
    color: var(--text-main);
}

.lead-router-input::placeholder {
    color: var(--text-muted);
}

/* --- EPK Press Kit Frosted Glass Cards --- */
.epk-box {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: var(--glass-shadow);
}

/* --- Balanced Press Kit Headshot Container --- */
.epk-headshot-container {
    width: 100%;
    max-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--surface-elevated, #f3f4f6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-bottom: 0.5rem;
}

.epk-headshot-img {
    width: 100%;
    height: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}

.audio-player-sim {
    background: var(--surface-elevated);
    color: var(--text-main);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

/* --- Dark Mode Text & Container Readability Fixes --- */
body.dark-mode p,
body.dark-mode .text-muted,
body.dark-mode .accordion-body,
body.dark-mode .small {
    color: #d6d3d1 !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode strong {
    color: #f5f3ff !important;
}

/* Ensure accordion items adapt their background and text correctly in dark mode */
body.dark-mode .accordion-button {
    background-color: #292522 !important;
    color: #f59e0b !important;
}

body.dark-mode .accordion-button:not(.collapsed) {
    background-color: #38322e !important;
    color: #f59e0b !important;
}

body.dark-mode .bg-light {
    background-color: #292522 !important;
}

/* --- Ambient Autumn Glow Effect in Dark Mode --- */
body.dark-mode .epk-box,
body.dark-mode .content-section .bg-white,
body.dark-mode .author-section .bg-white {
    background-color: rgba(41, 37, 34, 0.9) !important;
    box-shadow: 0 0 25px rgba(217, 119, 6, 0.18), inset 0 0 15px rgba(217, 119, 6, 0.06) !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
}

/* Ambient Backlit Glow for the Book Cover in Dark Mode */
body.dark-mode .book-cover-img {
    box-shadow: 0 0 40px rgba(217, 119, 6, 0.3), 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

/* Interactive Glow on Hover for Cards */
body.dark-mode .epk-box:hover {
    box-shadow: 0 0 35px rgba(217, 119, 6, 0.28), inset 0 0 20px rgba(217, 119, 6, 0.1) !important;
    border-color: rgba(217, 119, 6, 0.55) !important;
    transition: all 0.3s ease;
}

/* --- Hero Wrapper Muted Text Black in Light Mode 
:root:not(.dark-mode) .hero-wrapper .text-muted {
    color: #000000 !important;
} --- */
/* --- Force Hero Text Bright White in Dark Mode --- */
body.dark-mode .hero-wrapper .text-muted,
body.dark-mode .hero-wrapper p,
body.dark-mode .hero-wrapper h2,
body.dark-mode .hero-wrapper span {
    color: #f5f3ff !important;
}

/* --- Dark Mode High-Contrast Moving Platinum Shine --- */
@keyframes silverShine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body.dark-mode .hero-wrapper .gold-gradient-text {
    /* Uses pure white (#ffffff) and bright platinum (#e2e8f0) so it always stands out */
    background: linear-gradient(
        120deg, 
        #cbd5e1 0%, 
        #ffffff 35%, 
        #f8fafc 50%, 
        #ffffff 65%, 
        #cbd5e1 100%
    ) !important;
    background-size: 250% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: silverShine 4s linear infinite;

    /* Adds a subtle deep shadow behind the gradient text to lift it off the background */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* --- Falling Leaves Atmospheric Background --- */
.hero-section {
    position: relative;
    overflow: hidden;

    /* Keeps leaves contained within the hero section */
}

.falling-leaves-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;

    /* Allows visitors to click through the leaves normally */
    z-index: 1;
}

.hero-section {
    position: relative;
    z-index: 1;

    /* <--- THIS forces the hero content & frosted glass container above the leaves */
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -10%;
    width: 24px;
    height: 24px;
    opacity: 0.6;
    animation: fallAndSway linear infinite;
}

/* Dark mode leaf adjustment for better visibility */
body.dark-mode .leaf {
    opacity: 0.45;
    filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.3));
}

@keyframes fallAndSway {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(110vh) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

/* Staggered leaf speeds and positions for natural motion */
.leaf:nth-child(1) {
    left: 10%;
    animation-duration: 9s;
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    left: 25%;
    animation-duration: 12s;
    animation-delay: 3s;
}

.leaf:nth-child(3) {
    left: 45%;
    animation-duration: 10s;
    animation-delay: 1s;
}

.leaf:nth-child(4) {
    left: 65%;
    animation-duration: 14s;
    animation-delay: 4s;
}

.leaf:nth-child(5) {
    left: 80%;
    animation-duration: 11s;
    animation-delay: 2s;
}

.leaf:nth-child(6) {
    left: 92%;
    animation-duration: 13s;
    animation-delay: 5s;
}