/* TDK Publishing House - Fresh Air: Blue, Green & Maroon */
:root {
    --blue-deep: #0066CC;
    --blue-primary: #0077FF;
    --blue-rich: #1E90FF;
    --blue-light: #4DA6FF;
    --blue-pale: #B3D9FF;
    --green-sage: #4A7C59;
    --green-mint: #7CB68F;
    --green-fresh: #9FD4A8;
    --green-soft: #C8E6D0;
    --text-maroon: #000000;
    --text-maroon-primary: #000000;
    --text-maroon-rich: #1a1a1a;
    --text-maroon-light: #333333;
    --accent-red: #B22222;
    --cream: #F0F8FF;
    --cream-warm: #E6F2FF;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(0, 102, 204, 0.15);
    --shadow-medium: 0 8px 30px rgba(0, 102, 204, 0.2);
    --shadow-hover: 0 12px 40px rgba(0, 102, 204, 0.25);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    background: linear-gradient(160deg, var(--cream-warm) 0%, var(--cream) 40%, var(--blue-pale) 70%, var(--green-soft) 100%);
    background-attachment: fixed;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ========== HOMEPAGE HEADER (replaces sidebar) ========== */
.home-page .main-content {
    margin-left: 0;
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 2rem;
    padding-top: max(1rem, env(safe-area-inset-top));
    background: linear-gradient(180deg, var(--blue-deep) 0%, var(--green-sage) 100%);
    box-shadow: var(--shadow-medium);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 2px solid var(--cream);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-icon {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.open .menu-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .menu-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.header-brand:hover {
    color: var(--white);
}

.header-brand .brand-icon {
    font-size: 1.5rem;
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1rem;
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--green-mint);
    color: var(--cream);
}

.header-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--green-mint);
    color: var(--cream);
}

.home-page .main-content {
    padding-top: max(4rem, calc(3.5rem + env(safe-area-inset-top)));
}

@media (max-width: 900px) {
    .home-page .main-content {
        padding-bottom: 2rem;
    }

    .page-header {
        flex-wrap: nowrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .header-brand {
        flex: 1;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(180deg, var(--blue-primary) 0%, var(--blue-deep) 100%);
        padding: 0.5rem;
        box-shadow: var(--shadow-hover);
        border-top: 2px solid var(--green-mint);
        max-height: 70vh;
        overflow-y: auto;
    }

    .header-nav.open {
        display: flex;
    }

    .header-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-btn:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .header-btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.25rem;
    }

    .seo-section {
        padding: 2rem 0;
    }

    .seo-section-alt {
        padding: 2rem 1rem;
    }

    .seo-section h2 {
        font-size: 1.5rem;
    }

    .seo-quote {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* Landing Page Mobile Header with Hamburger */
.landing-mobile-header {
    display: none;
}

@media (max-width: 900px) {
    .landing-page .landing-mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        padding-top: max(0.75rem, env(safe-area-inset-top));
        background: linear-gradient(180deg, var(--blue-deep) 0%, var(--green-sage) 100%);
        box-shadow: var(--shadow-medium);
    }

    .landing-page .landing-mobile-header .menu-toggle {
        display: flex;
        flex-shrink: 0;
    }

    .landing-page .landing-mobile-header .header-brand {
        flex: 1;
        justify-content: flex-start;
        font-size: 1rem;
    }

    .landing-page .sidebar {
        display: none;
    }

    .landing-page .main-content {
        margin-left: 0;
        padding-bottom: 2rem;
    }

    .landing-mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(180deg, var(--blue-primary) 0%, var(--blue-deep) 100%);
        padding: 0.5rem;
        box-shadow: var(--shadow-hover);
        border-top: 2px solid var(--green-mint);
        max-height: 70vh;
        overflow-y: auto;
    }

    .landing-mobile-nav.open {
        display: flex;
    }

    .landing-mobile-header .header-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .landing-mobile-header .header-btn:last-child {
        border-bottom: none;
    }
}

@media (min-width: 901px) {
    .landing-mobile-header {
        display: none !important;
    }
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, var(--blue-deep) 0%, var(--green-sage) 100%);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-medium);
    z-index: 100;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    color: inherit;
}

.sidebar-brand:hover {
    opacity: 0.95;
}

.sidebar-nav-internal {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-link.internal.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--green-mint);
    color: var(--cream);
}

.brand-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sidebar-brand h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 500;
    color: var(--cream);
    transition: var(--transition);
    border: 2px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
    border-color: var(--green-mint);
    color: var(--cream);
}

.sidebar-link .link-icon {
    font-size: 1.1rem;
}

.link-text-mobile {
    display: none;
}

.sidebar-link.youtube:hover { box-shadow: 0 0 20px rgba(255, 0, 0, 0.3); }
.sidebar-link.google:hover { box-shadow: 0 0 20px rgba(66, 133, 244, 0.3); }
.sidebar-link.amazon:hover { box-shadow: 0 0 20px rgba(255, 153, 0, 0.3); }
.sidebar-link.amazon-store:hover { box-shadow: 0 0 20px rgba(255, 153, 0, 0.3); }
.sidebar-link.ai:hover { box-shadow: 0 0 20px rgba(147, 51, 234, 0.3); }

.sidebar-decoration {
    margin-top: auto;
    position: relative;
    height: 80px;
}

.floating-book {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.floating-book:nth-child(1) { left: 10px; top: 10px; animation-delay: 0s; }
.floating-book:nth-child(2) { left: 50px; top: 30px; animation-delay: 0.7s; }
.floating-book:nth-child(3) { left: 20px; top: 50px; animation-delay: 1.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-6px) translateX(2px); }
    66% { transform: translateY(-4px) translateX(-2px); }
}

/* Main Content */
.main-content {
    margin-left: 260px;
    color: #000000;
    min-height: 100vh;
    padding: 2rem 2rem 4rem;
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero + Signup Wrapper - side by side on desktop */
.hero-signup-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
    width: 100%;
    max-width: 960px;
    padding: 2rem 0 3rem;
}

@media (max-width: 900px) {
    .hero-signup-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(124, 182, 143, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(77, 166, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: left;
    margin: 0;
}

.animate-in {
    animation: fadeInUp 0.9s ease-out both;
}

.signup-section .animate-in {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--blue-light), var(--cream));
    color: var(--text-maroon);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    animation: pulse 2s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-soft); }
    50% { transform: scale(1.02); box-shadow: 0 6px 24px rgba(74, 124, 89, 0.25); }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.75rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-maroon);
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.headline-accent {
    color: #000000;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-maroon-rich);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.hero-visual {
    margin-top: 1rem;
}

.hero-content .hero-visual {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .hero-content .hero-visual {
        justify-content: center;
    }
}

.ebook-mockup {
    perspective: 1000px;
    animation: fadeInUp 0.8s ease-out;
    display: inline-block;
}

.ebook-cover {
    background: linear-gradient(145deg, var(--blue-primary) 0%, var(--green-sage) 100%);
    border: 4px solid var(--green-mint);
    border-radius: 8px;
    padding: 2rem 3rem;
    box-shadow: var(--shadow-hover), 0 0 40px rgba(0, 102, 204, 0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ebook-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cream);
}

.ebook-subtitle {
    font-size: 1rem;
    color: var(--cream);
    opacity: 0.95;
}

.ebook-by {
    font-size: 0.85rem;
    color: var(--blue-pale);
    margin-top: 0.5rem;
}

/* Signup Section */
.signup-section {
    flex: 1;
    min-width: 0;
    max-width: 420px;
    padding: 0;
}

@media (max-width: 900px) {
    .signup-section {
        max-width: 480px;
        width: 100%;
    }
}

.signup-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2.25rem;
    width: 100%;
    box-shadow: var(--shadow-hover), 0 0 0 1px rgba(0, 102, 204, 0.2);
    border: 3px solid var(--green-mint);
}

.signup-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-maroon-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.signup-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: var(--text-maroon);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.signup-description {
    color: var(--text-maroon-rich);
    margin-bottom: 1.75rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-maroon);
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem 1.25rem;
    min-height: 48px;
    border: 2px solid var(--text-maroon-light);
    border-radius: var(--radius-sm);
    font-size: 16px; /* Prevents iOS zoom on focus */
    font-family: inherit;
    transition: var(--transition);
    background: var(--cream);
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

.form-group input::placeholder {
    color: var(--text-maroon-light);
    opacity: 0.8;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 1.2rem 2.25rem;
    background: linear-gradient(135deg, var(--green-sage) 0%, var(--blue-primary) 100%);
    color: var(--cream);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.15rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-medium), 0 0 0 0 rgba(0, 102, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-hover), 0 0 30px rgba(74, 124, 89, 0.25);
    background: linear-gradient(135deg, var(--blue-primary) 0%, var(--green-sage) 100%);
}

.submit-btn:active {
    transform: translateY(0) scale(1);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-maroon-light);
    text-align: center;
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 2rem 1rem 2rem;
    width: 100%;
    max-width: 560px;
}

.social-proof-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--text-maroon-rich);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    padding: 0 2.5rem;
}

.social-proof-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--green-mint);
    opacity: 0.6;
    font-family: Georgia, serif;
}

.social-proof-text::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: -1rem;
    font-size: 3rem;
    color: var(--green-mint);
    opacity: 0.6;
    font-family: Georgia, serif;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
    padding: 2rem 0 3rem;
    width: 100%;
    max-width: 720px;
}

.feature {
    text-align: center;
    padding: 1.75rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 102, 255, 0.2);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--green-mint);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-maroon);
    margin-bottom: 0.5rem;
}

.feature p {
    font-size: 0.95rem;
    color: var(--text-maroon-rich);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-maroon-light);
    font-size: 0.9rem;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    display: inline-block;
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    line-height: 1.5;
    color: var(--text-maroon-rich);
    text-decoration: none;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-maroon);
    text-decoration: underline;
}

/* ========== HOMEPAGE STYLES ========== */
.home-hero {
    position: relative;
    padding: 2rem 0 2.5rem;
    overflow: visible;
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 16rem;
    flex-wrap: wrap;
    margin-left: 0;
}

.home-hero .hero-bg-pattern {
    transform: none;
}

.hero-building {
    flex-shrink: 0;
}

.publishing-house-img {
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 700px) {
    .home-hero {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.5rem 0 2rem;
        margin-left: 0;
        overflow: hidden;
    }
    .home-hero .hero-bg-pattern {
        transform: none;
    }
    .hero-building {
        order: -1;
    }
    .publishing-house-img {
        width: 240px;
        height: 170px;
    }
    .home-hero-content {
        text-align: center;
        margin-left: 0;
        min-width: 0;
        width: 100%;
        align-items: center;
    }
    .home-hero h1 {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
    }
    .home-hero-content .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
        max-width: 100%;
    }
    .home-hero-ctas {
        justify-content: center;
    }
    .home-hero-content .btn-primary,
    .home-hero-content .btn-secondary {
        font-size: 0.98rem;
        padding: 0.7rem 1.35rem;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .home-hero {
        padding: 1rem 0 1.5rem;
    }
    .publishing-house-img {
        width: 200px;
        height: 140px;
    }
    .home-hero h1 {
        font-size: 1.45rem;
    }
    .home-hero-content .home-hero-subtitle {
        font-size: 1rem;
    }
}

.home-hero-content {
    position: relative;
    text-align: left;
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-left: 0;
}

.home-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.65rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-maroon);
    line-height: 1.25;
    margin-bottom: 0.5rem;
    width: 100%;
}

.home-hero-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.15rem);
    color: var(--text-maroon-rich);
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 420px;
    width: 100%;
}

.home-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-start;
    align-items: center;
}

.home-hero-content .btn-primary,
.home-hero-content .btn-secondary {
    font-size: 1rem;
    padding: 0.8rem 1.6rem;
    min-height: 42px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--green-sage) 0%, var(--blue-primary) 100%);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-maroon-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--text-maroon-primary);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-maroon-primary);
    color: var(--cream);
    transform: translateY(-2px);
}

.books-section {
    width: 100%;
    max-width: 720px;
    padding: 2rem 0;
    text-align: center;
}

.books-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-maroon);
    margin-bottom: 0.75rem;
}

.books-intro {
    color: var(--text-maroon-rich);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.books-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--green-sage) 0%, var(--blue-primary) 100%);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.books-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.books-cta-icon {
    font-size: 1.25rem;
}

.cta-section {
    width: 100%;
    max-width: 560px;
    padding: 2rem 0 4rem;
}

.cta-card {
    background: var(--white);
    border: 2px solid var(--green-mint);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-maroon);
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: var(--text-maroon-rich);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cta-card .btn-primary {
    display: inline-flex;
}

/* SEO Content Sections */
.seo-section {
    width: 100%;
    max-width: 720px;
    padding: 3rem 0;
    text-align: center;
}

.seo-section-alt {
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 0 auto 2rem;
}

.seo-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text-maroon);
    margin-bottom: 1rem;
}

.seo-intro {
    color: var(--text-maroon-rich);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.seo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
    text-align: left;
}

.seo-benefit {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid rgba(0, 102, 255, 0.2);
    transition: var(--transition);
}

.seo-benefit:hover {
    border-color: var(--green-mint);
    box-shadow: var(--shadow-soft);
}

.seo-benefit h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--text-maroon);
    margin-bottom: 0.5rem;
}

.seo-benefit p {
    color: var(--text-maroon-rich);
    font-size: 0.95rem;
    line-height: 1.6;
}

.seo-list {
    text-align: left;
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-maroon-rich);
    line-height: 1.8;
    padding-left: 1.5rem;
}

.seo-list li {
    margin-bottom: 0.75rem;
}

.seo-list strong {
    color: var(--text-maroon);
}

.seo-quote {
    margin: 0;
    padding: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-maroon-rich);
    border-left: 4px solid var(--green-mint);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    text-align: left;
}

.seo-quote p {
    margin: 0;
}

/* Success state */
.form-success .submit-btn {
    background: linear-gradient(135deg, #2E7D32, #388E3C);
}

.form-success .submit-btn .btn-text {
    content: "Check your download!";
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.75rem 1rem;
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .sidebar-brand {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
    }

    .sidebar-nav-internal,
    .sidebar-nav-external {
        width: 100%;
        justify-content: center;
    }

    .sidebar-link .link-text {
        display: none;
    }

    .sidebar-link .link-text-mobile {
        display: inline;
    }

    .sidebar-link {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }

    .sidebar-link .link-icon {
        display: none;
    }

    .sidebar-decoration {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem 1rem;
        padding-top: max(3.5rem, calc(3rem + env(safe-area-inset-top)));
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(5.5rem, calc(5rem + env(safe-area-inset-bottom)));
    }

    .hero,
    .signup-section,
    .features {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .signup-card {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .ebook-cover {
        padding: 1.25rem 1.5rem;
    }

    .ebook-title {
        font-size: 1.4rem;
    }

    .signup-card h2 {
        font-size: 1.35rem;
    }

    .social-proof-text {
        font-size: 1.15rem;
        padding: 0 1.5rem;
    }

    .feature {
        padding: 1.25rem;
    }

    .feature h3 {
        font-size: 1.1rem;
    }

    .feature p {
        font-size: 0.9rem;
    }
}

/* Extra small screens (e.g. iPhone SE, narrow phones) */
@media (max-width: 380px) {
    .main-content {
        padding: 1rem 1rem;
        padding-bottom: max(5rem, calc(4.5rem + env(safe-area-inset-bottom)));
    }

    .hero-signup-wrapper {
        padding: 1rem 0 2rem;
        gap: 1.5rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .signup-card {
        padding: 1.25rem;
    }

    .signup-card h2 {
        font-size: 1.2rem;
    }

    .sidebar-link {
        min-width: 0;
        padding: 0.65rem 0.5rem;
        font-size: 0.85rem;
    }
}
