/* ============================================
   DETOX PLAN — HERO
   ============================================ */
.detox-hero {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    padding: 70px 20px 60px;
    text-align: center;
    border-bottom: 1px solid #c8e6c9;
}

.detox-hero h1 {
    font-size: 2.6em;
    color: #1b5e20;
    margin-bottom: 16px;
}

.detox-hero .detox-hero-sub {
    font-size: 1.15em;
    color: #555;
    max-width: 680px;
    margin: 0 auto 28px;
    line-height: 1.7;
    text-align: center;
}

.detox-hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.detox-badge {
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.88em;
    font-weight: 600;
}

/* ============================================
   SHARED SECTION HELPERS
   ============================================ */
.dp-section {
    padding: 60px 20px;
}

.dp-section-alt {
    background: #f8f9fa;
}

.dp-section-title {
    font-size: 2em;
    color: #1b5e20;
    text-align: center;
    margin-bottom: 12px;
}

/* Specificity 20 — beats .container p (11) */
.dp-section .dp-section-sub {
    font-size: 1.05em;
    color: #555;
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ============================================
   FOUR PHASES
   ============================================ */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.phase-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    border-top: 4px solid #2e7d32;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.phase-num {
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.78em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Specificity 21 — beats .container h3 { text-align: left } (11) */
.phase-card h3 {
    font-size: 1.05em;
    color: #1b5e20;
    margin-bottom: 8px;
    text-align: center;
}

.phase-days {
    font-size: 0.88em;
    color: #2e7d32;
    font-weight: 600;
    margin-bottom: 10px;
}

.phase-card p {
    font-size: 0.88em;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   WHAT YOU'LL NEED
   ============================================ */
.needs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.need-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.need-icon {
    color: #2e7d32;
    font-size: 1.5em;
    flex-shrink: 0;
    margin-top: 2px;
}

.need-text h4 {
    font-size: 0.98em;
    color: #1b5e20;
    margin-bottom: 6px;
}

.need-text p {
    font-size: 0.88em;
    color: #555;
    line-height: 1.6;
}

/* ============================================
   DOWNLOAD BANNER
   ============================================ */
.download-banner {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 60px 20px;
    text-align: center;
}

.download-banner h2 {
    font-size: 2em;
    color: #fff;
    margin-bottom: 14px;
}

.download-banner p {
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.download-banner .cta-button {
    background: #fff;
    color: #2e7d32;
    font-weight: 700;
    font-size: 1.05em;
    padding: 14px 32px;
}

.download-banner .cta-button:hover {
    background: #f1f8e9;
}

.privacy-assurance {
    font-size: 0.83em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 12px;
}

/* ============================================
   ACCORDION (Week + FAQ)
   ============================================ */
.week-accordion,
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    background: #fff;
    color: #1b5e20;
    font-size: 1.02em;
    font-weight: 600;
    padding: 18px 22px;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.accordion-header::after {
    content: '+';
    font-size: 1.4em;
    color: #2e7d32;
    flex-shrink: 0;
    margin-left: 12px;
}

.accordion-header.active::after {
    content: '\2212';
}

.accordion-header:hover {
    background: #f1f8e9;
}

.accordion-header.active {
    background: #e8f5e9;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background: #fafafa;
    padding: 0 22px;
}

.accordion-content p {
    font-size: 0.95em;
    color: #444;
    line-height: 1.75;
}

.accordion-content ul {
    padding-left: 20px;
    margin: 8px 0 16px;
}

.accordion-content ul li {
    font-size: 0.95em;
    color: #444;
    line-height: 1.75;
    margin-bottom: 4px;
}

.accordion-content > *:first-child {
    margin-top: 18px;
}

.accordion-content > *:last-child {
    margin-bottom: 18px;
}

/* ============================================
   RELATED RESOURCES
   ============================================ */
.related-links {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto;
}

.related-links li {
    border-bottom: 1px solid #e8f5e9;
    padding: 14px 0;
}

.related-links li:last-child {
    border-bottom: none;
}

.related-links a {
    color: #2e7d32;
    text-decoration: none;
    font-size: 1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-links a::before {
    content: '→';
    font-weight: 700;
}

.related-links a:hover {
    text-decoration: underline;
}

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer-box {
    background: #fffde7;
    border: 1px solid #f9a825;
    border-radius: 10px;
    padding: 22px 26px;
    max-width: 860px;
    margin: 0 auto;
    font-size: 0.92em;
    color: #555;
    line-height: 1.7;
}

.disclaimer-box a {
    color: #2e7d32;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 14px;
    padding: 36px 36px 30px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 1.7em;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-content h3 {
    font-size: 1.4em;
    color: #1b5e20;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 0.93em;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-content label {
    display: block;
    font-size: 0.9em;
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
    width: 100%;
    border: 1px solid #c8e6c9;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 0.95em;
    margin-bottom: 16px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.modal-content input:focus {
    border-color: #2e7d32;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox label {
    font-size: 0.85em;
    color: #555;
    font-weight: 400;
    line-height: 1.5;
}

.privacy-note {
    font-size: 0.78em;
    color: #888;
    text-align: center;
    margin-top: 12px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detox-hero h1 {
        font-size: 1.9em;
    }

    .detox-hero .detox-hero-sub {
        font-size: 1em;
    }

    .dp-section-title {
        font-size: 1.7em;
    }

    .needs-grid {
        grid-template-columns: 1fr;
    }

    .download-banner h2 {
        font-size: 1.7em;
    }
}

@media (max-width: 600px) {
    .phases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detox-hero h1 {
        font-size: 1.7em;
    }

    .download-banner h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .phases-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 24px 20px 20px;
    }
}
