/* Warm Editorial Homepage Styles */

.ed-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ed-hero-actions > a { max-width: 100%; min-width: 0; box-sizing: border-box; text-align: center; }
.ed-quiz-note { display: block; margin-top: 16px; line-height: 1.6; color: #5c6e60; }
@media (max-width: 992px) { .ed-hero-actions { justify-content: center; } }

:root {
    --ed-cream: #FAF4EF;
    --ed-surface: #FFFDFB;
    --ed-forest: #23392B;
    --ed-peach: #F4E2DD;
    --ed-peach-light: #F9EFEB;
    --ed-terracotta: #D38E7E;
    --ed-terracotta-dark: #C27D6E;
    --ed-sage: #A3B5A9;
    --ed-sage-light: #C4D1CA;
    --ed-text: #424744;
    --ed-text-light: #6D746F;
}

body.home-editorial {
    background-color: var(--ed-cream);
    color: var(--ed-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.home-editorial h1,
.home-editorial h2,
.home-editorial h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    color: var(--ed-forest);
    line-height: 1.15;
}

.home-editorial em {
    font-style: italic;
    color: var(--ed-terracotta);
}

.ed-kicker {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ed-terracotta);
    margin-bottom: 1.2rem;
}

.ed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.ed-btn-primary {
    background-color: var(--ed-terracotta);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 15px rgba(211, 142, 126, 0.2);
}

.ed-btn-primary:hover {
    background-color: var(--ed-terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 142, 126, 0.3);
}

.ed-btn-outline {
    background-color: transparent;
    color: var(--ed-forest);
    border: 1px solid var(--ed-forest);
}

.ed-btn-outline:hover {
    background-color: var(--ed-forest);
    color: #fff !important;
}

.ed-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ed-terracotta);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.ed-link:hover {
    border-color: var(--ed-terracotta);
}

/* Hero Section */
.ed-hero {
    padding: 180px 6% 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.ed-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: center;
}

.ed-hero-content h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
}

.ed-hero-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ed-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: 300;
}

.ed-hero-image {
    position: relative;
}

.ed-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px 120px 20px 120px;
    object-fit: cover;
    aspect-ratio: 4/5;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(211, 142, 126, 0.15);
}

.ed-image-accent {
    position: absolute;
    top: -30px;
    right: -30px;
    bottom: 30px;
    left: 30px;
    background-color: var(--ed-peach-light);
    border-radius: 20px 120px 20px 120px;
    z-index: 1;
}

.botanical-hero-svg {
    position: absolute;
    bottom: -40px;
    left: -40px;
    z-index: 3;
    width: 120px;
    height: 120px;
    color: var(--ed-terracotta);
    opacity: 0.8;
}

/* Intro Section */
.ed-intro {
    padding: 80px 6% 100px;
    text-align: center;
}

.ed-intro-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ed-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

.ed-intro p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ed-text-light);
    font-weight: 300;
}

/* Discovery Section */
.ed-discovery {
    padding: 0 6% 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.ed-discovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.ed-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    padding: 40px 32px;
    background: var(--ed-surface);
    border-radius: 24px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    box-shadow: 0 10px 40px rgba(211, 142, 126, 0.04);
}

.ed-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--ed-peach-light) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.6s ease;
}

.ed-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(211, 142, 126, 0.1);
}

.ed-card:hover::before {
    transform: scale(1.5);
}

.ed-card-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: var(--ed-terracotta);
    margin-bottom: 1rem;
    line-height: 1;
    opacity: 0.6;
}

.ed-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ed-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ed-text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.ed-card-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ed-terracotta);
    display: inline-flex;
    align-items: center;
}

.ed-card-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.ed-card:hover .ed-card-link::after {
    transform: translateX(4px);
}

/* Highlight Section */
.ed-highlight {
    padding: 140px 6%;
    background-color: var(--ed-peach-light);
    position: relative;
    overflow: hidden;
}

.botanical-bg-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    color: var(--ed-terracotta);
}

.ed-highlight-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ed-highlight-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ed-highlight-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--ed-text);
    font-weight: 300;
}

/* Library Section */
.ed-library {
    padding: 140px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.ed-library-header {
    text-align: center;
    margin-bottom: 80px;
}

.ed-library-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.ed-library-header p {
    font-size: 1.1rem;
    color: var(--ed-text-light);
    font-weight: 300;
}

.ed-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.ed-book {
    text-align: center;
    background: var(--ed-surface);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(211, 142, 126, 0.04);
    transition: transform 0.4s ease;
}

.ed-book:hover {
    transform: translateY(-8px);
}

.ed-book img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(211, 142, 126, 0.15);
    margin-bottom: 2rem;
    transition: transform 0.4s ease;
}

.ed-book:hover img {
    transform: scale(1.02);
}

.ed-book-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.ed-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--ed-terracotta);
    margin-bottom: 1.5rem;
}

.ed-btn-sm {
    padding: 10px 24px;
    font-size: 0.75rem;
}

/* Bundle Callout */
.ed-bundle-callout {
    text-align: center;
    padding: 60px 40px;
    background: var(--ed-surface);
    border-radius: 30px;
    max-width: 800px;
    margin: 80px auto 0;
    box-shadow: 0 15px 50px rgba(211, 142, 126, 0.06);
    position: relative;
    overflow: hidden;
}

.ed-bundle-callout::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--ed-peach-light) 0%, transparent 70%);
    z-index: 0;
}

.ed-bundle-callout > * {
    position: relative;
    z-index: 1;
}

.ed-bundle-callout .bundle-saving {
    display: inline-block;
    background: var(--ed-peach);
    color: var(--ed-terracotta-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
}

.ed-bundle-callout h3 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.ed-bundle-callout .bundle-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--ed-terracotta);
    line-height: 1;
}

.ed-bundle-callout .bundle-price-orig {
    font-size: 0.95rem;
    color: var(--ed-text-light);
    text-decoration: line-through;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* SEO Articles Grid */
.ed-seo-articles {
    padding: 100px 6%;
    background-color: var(--ed-peach-light);
}

.ed-seo-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.ed-seo-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.ed-seo-header p {
    font-size: 1.05rem;
    color: var(--ed-text-light);
    line-height: 1.8;
}

.ed-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.ed-seo-card {
    display: block;
    background: var(--ed-surface);
    border-radius: 20px;
    padding: 32px 28px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(211, 142, 126, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.ed-seo-card::before {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--ed-peach) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.ed-seo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(211, 142, 126, 0.1);
}

.ed-seo-card:hover::before {
    transform: scale(1.5);
}

.ed-seo-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.ed-seo-card p {
    font-size: 0.95rem;
    color: var(--ed-text-light);
    line-height: 1.6;
    margin: 0;
}

/* Email Capture / Lead Magnet */
.ed-email-capture {
    padding: 140px 6%;
    background: var(--ed-terracotta);
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.ed-email-capture h2 {
    color: #fff;
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.ed-email-capture p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.ed-email-form {
    display: flex;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto 20px;
}

.ed-email-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ed-text);
    background: var(--ed-surface);
    outline: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ed-email-form button {
    padding: 18px 36px;
    background: var(--ed-forest);
    color: white;
    border: none;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.ed-email-form button:hover {
    background: #183020;
    transform: translateY(-2px);
}

.ed-email-form button:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.ed-email-gdpr {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}

.ed-email-gdpr input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--ed-forest);
}

.ed-email-gdpr label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.ed-email-gdpr label a {
    color: rgba(255,255,255,1);
    text-decoration: underline;
}

.email-form-msg {
    margin-top: 20px; font-size: 0.95rem; font-weight: 500;
    min-height: 24px; display: none;
}

.email-form-msg.success { color: rgba(255,255,255,0.95); display: block; }
.email-form-msg.error { color: #FFCFC0; display: block; }

/* Botanical Accents for Email Capture */
.ed-capture-botanical-left,
.ed-capture-botanical-right {
    position: absolute;
    width: 300px;
    height: 300px;
    opacity: 0.15;
    pointer-events: none;
    color: var(--ed-surface);
}

.ed-capture-botanical-left {
    top: -50px;
    left: -50px;
    transform: rotate(15deg);
}

.ed-capture-botanical-right {
    bottom: -50px;
    right: -50px;
    transform: rotate(195deg);
}

.email-capture-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.95);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 8px 18px; border-radius: 40px; margin-bottom: 28px;
}

/* Final CTA */
.ed-final-cta {
    padding: 140px 6%;
    background: var(--ed-cream);
    text-align: center;
}

.ed-final-cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.ed-final-cta h2 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.ed-final-cta p {
    font-size: 1.15rem;
    color: var(--ed-text-light);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 3rem;
}

.ed-final-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 992px) {
    .ed-hero-inner {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .ed-hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .ed-hero-image img {
        aspect-ratio: 1/1;
    }

    .ed-email-form {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .ed-hero {
        padding-top: 140px;
    }

    .ed-discovery-grid,
    .ed-library-grid,
    .ed-seo-grid {
        grid-template-columns: 1fr;
    }
    
    .ed-card, .ed-seo-card {
        padding: 30px;
    }

    .ed-final-cta-buttons {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ed-btn, .ed-card, .ed-seo-card, .ed-book img {
        transition: none !important;
        transform: none !important;
    }
}


/* ─── EMAIL POPUP ─── */
#email-popup {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(35, 57, 43, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
     align-items: center; justify-content: center;
     padding: max(16px, env(safe-area-inset-top, 0px))
              max(16px, env(safe-area-inset-right, 0px))
              max(16px, env(safe-area-inset-bottom, 0px))
              max(16px, env(safe-area-inset-left, 0px));
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
     overscroll-behavior: contain;
}

#email-popup.popup-visible { display: flex; }

.popup-box {
    background: var(--ed-surface); border-radius: 30px;
     padding: 64px 48px 52px; max-width: 520px; width: 100%;
     max-height: calc(100vh - 32px);
     max-height: calc(100dvh - 32px);
     min-height: 0;
     box-sizing: border-box;
     overflow-y: auto;
     -webkit-overflow-scrolling: touch;
     overscroll-behavior: contain;
    position: relative; text-align: center;
    box-shadow: 0 30px 80px rgba(211, 142, 126, 0.2);
}

.popup-close {
     position: absolute; top: 12px; right: 16px; z-index: 1;
    background: none; border: none; font-size: 1.4rem;
    color: var(--ed-text-light); cursor: pointer;
     min-width: 44px; min-height: 44px; padding: 8px;
     display: inline-flex; align-items: center; justify-content: center;
     line-height: 1; transition: color 0.2s;
}

.popup-close:hover { color: var(--ed-text); }
.popup-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--ed-terracotta); display: flex; justify-content: center; }

.popup-box h3 { font-size: 1.8rem; color: var(--ed-forest); margin-bottom: 12px; }
.popup-box p { color: var(--ed-text-light); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.7; }

.popup-form { display: flex; flex-direction: column; gap: 12px; }

.popup-form input[type="email"] {
    padding: 16px 20px; border: 1.5px solid rgba(211, 142, 126, 0.2);
    border-radius: 12px; font-size: 0.97rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--ed-text); background: white; outline: none; transition: border-color 0.2s;
}

.popup-form input[type="email"]:focus { border-color: var(--ed-terracotta); }
.popup-form input[type="email"]::placeholder { color: var(--ed-text-light); }

.popup-form button {
    padding: 16px; background: var(--ed-terracotta); color: white;
    border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: background 0.2s;
}

.popup-form button:hover { background: var(--ed-terracotta-dark); }
.popup-form button:disabled { opacity: 0.7; cursor: not-allowed; }

.popup-gdpr { display: flex; align-items: flex-start; gap: 10px; text-align: left; }

.popup-gdpr input[type="checkbox"] {
    width: 16px; height: 16px; min-width: 16px;
    margin-top: 2px; cursor: pointer; accent-color: var(--ed-terracotta);
}

.popup-gdpr label { font-size: 0.77rem; color: var(--ed-text-light); line-height: 1.5; }
.popup-gdpr label a { color: var(--ed-terracotta); }

.popup-form-msg { font-size: 0.9rem; font-weight: 500; min-height: 22px; }
.popup-form-msg.success { color: var(--ed-sage); }
.popup-form-msg.error { color: var(--ed-terracotta); }

.popup-dismiss {
    margin-top: 14px; background: none; border: none;
    font-size: 0.8rem; color: var(--ed-text-light); cursor: pointer;
     min-height: 44px; padding: 8px 12px;
     text-decoration: underline; font-family: 'Plus Jakarta Sans', sans-serif;
}

@media (max-width: 768px) {
     .popup-box {
         padding: 60px 28px 40px;
         height: calc(100vh - 32px);
         height: calc(100dvh - 32px);
         max-height: calc(100vh - 32px);
         max-height: calc(100dvh - 32px);
         min-height: 0;
     }
}
