/* ═══════════════════════════════════════════
   AI Baby Planner — Shared Design System
   ═══════════════════════════════════════════ */

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

:root {
    --blush: #FFF0F0;
    --soft-pink: #FFD6E0;
    --rose: #FF8FAB;
    --mauve: #C9A0DC;
    --lavender: #E8DEFF;
    --soft-blue: #D6EEFF;
    --mint: #D9F5EC;
    --warm-cream: #FFFDF7;
    --text-dark: #2D2A3E;
    --text-mid: #5C5775;
    --text-light: #8B849E;
    --white: #FFFFFF;
    --peach: #FFE5D4;
    --coral: #FF7E7E;
    --sage: #B8D4C8;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 600; line-height: 1.2; }

/* ─── Floating shapes background ─── */
.bg-shapes {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-shapes span {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: floatShape 20s ease-in-out infinite;
}
.bg-shapes span:nth-child(1) { width: 300px; height: 300px; background: var(--soft-pink); top: 5%; left: -5%; animation-delay: 0s; }
.bg-shapes span:nth-child(2) { width: 200px; height: 200px; background: var(--lavender); top: 30%; right: -3%; animation-delay: -5s; }
.bg-shapes span:nth-child(3) { width: 250px; height: 250px; background: var(--soft-blue); top: 60%; left: 10%; animation-delay: -10s; }
.bg-shapes span:nth-child(4) { width: 180px; height: 180px; background: var(--mint); top: 80%; right: 15%; animation-delay: -15s; }
.bg-shapes span:nth-child(5) { width: 150px; height: 150px; background: var(--peach); top: 15%; left: 50%; animation-delay: -7s; }

@keyframes floatShape {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(5deg); }
    66% { transform: translateY(20px) rotate(-3deg); }
}

/* ─── Nav ─── */
nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
nav.scrolled {
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0,0,0,0.06);
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 143, 171, 0.3);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    text-decoration: none;
    color: var(--text-mid);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-dark); }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    color: white;
    box-shadow: 0 6px 25px rgba(255, 143, 171, 0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(255, 143, 171, 0.45);
}
.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}
.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* ─── Section wrapper ─── */
section { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-mid);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.hero-badge span { color: var(--rose); }
.hero h1 {
    font-size: 3.8rem;
    color: var(--text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-mid);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative;
}
.hero-card-header {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 28px;
}
.hero-card-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--soft-pink), var(--rose));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.hero-card-name { font-weight: 600; font-size: 1.05rem; }
.hero-card-sub { font-size: 0.85rem; color: var(--text-light); }
.hero-card-progress {
    display: flex; flex-direction: column; gap: 18px;
}
.progress-item { display: flex; align-items: center; gap: 14px; }
.progress-check {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; color: white; flex-shrink: 0;
}
.progress-check.done { background: linear-gradient(135deg, #7DD3A8, var(--sage)); }
.progress-check.active { background: linear-gradient(135deg, var(--rose), var(--mauve)); animation: pulse 2s infinite; }
.progress-check.pending { background: #E8E5F0; color: var(--text-light); }
.progress-label { font-size: 0.95rem; font-weight: 500; }
.progress-label.text-muted { color: var(--text-light); }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,143,171,0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255,143,171,0); }
}

.floating-tag {
    position: absolute;
    padding: 10px 18px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatTag 4s ease-in-out infinite;
}
.floating-tag:nth-child(2) { top: -10px; right: -20px; animation-delay: -1s; }
.floating-tag:nth-child(3) { bottom: 40px; left: -30px; animation-delay: -2s; }
.floating-tag:nth-child(4) { bottom: -15px; right: 20px; animation-delay: -3s; }

@keyframes floatTag {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ─── Stats banner ─── */
.stats { padding: 60px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-4px); }
.stat-icon { font-size: 2rem; margin-bottom: 12px; }
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-light); margin-top: 4px; }

/* ─── How it works ─── */
.how-it-works { padding: 72px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px;
    background: var(--lavender);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--mauve);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.section-title {
    font-size: 2.8rem;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 600px;
    margin-bottom: 60px;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.step-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
}
.step-card:nth-child(1)::before { background: linear-gradient(90deg, var(--soft-pink), var(--rose)); }
.step-card:nth-child(2)::before { background: linear-gradient(90deg, var(--lavender), var(--mauve)); }
.step-card:nth-child(3)::before { background: linear-gradient(90deg, var(--mint), var(--sage)); }
.step-number {
    width: 48px; height: 48px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; font-weight: 700; color: white;
    margin-bottom: 20px;
}
.step-card:nth-child(1) .step-number { background: linear-gradient(135deg, var(--soft-pink), var(--rose)); }
.step-card:nth-child(2) .step-number { background: linear-gradient(135deg, var(--lavender), var(--mauve)); }
.step-card:nth-child(3) .step-number { background: linear-gradient(135deg, var(--mint), var(--sage)); }
.step-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.step-card p { color: var(--text-mid); font-size: 0.95rem; line-height: 1.7; }

/* ─── Example Plans ─── */
.example-plans { padding: 72px 0; }
.example-plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.example-plan-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 4px solid transparent;
}
.example-plan-card:nth-child(1) { border-top-color: var(--rose); }
.example-plan-card:nth-child(2) { border-top-color: var(--mauve); }
.example-plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.example-plan-card .badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--lavender);
    color: var(--text-mid);
    width: fit-content;
}
.example-plan-scenario {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}
.example-plan-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
    flex: 1;
}
.example-plan-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mauve);
    text-decoration: none;
    transition: color 0.2s;
}
.example-plan-link:hover { color: var(--rose); }

/* ─── Features ─── */
.features { padding: 72px 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-icon {
    width: 56px; height: 56px; flex-shrink: 0;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
}
.feature-card:nth-child(1) .feature-icon { background: var(--blush); }
.feature-card:nth-child(2) .feature-icon { background: var(--lavender); }
.feature-card:nth-child(3) .feature-icon { background: var(--soft-blue); }
.feature-card:nth-child(4) .feature-icon { background: var(--mint); }
.feature-card:nth-child(5) .feature-icon { background: var(--peach); }
.feature-card:nth-child(6) .feature-icon { background: #FFF3D6; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.7; }

/* ─── Timeline visual ─── */
.timeline-section { padding: 72px 0; }
.timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 24px;
    bottom: 24px;
    width: 3px;
    background: linear-gradient(180deg, var(--rose), var(--mauve), var(--sage));
    border-radius: 3px;
}
.timeline-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    align-items: flex-start;
}
.timeline-dot {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1;
}
.timeline-content h4 { font-size: 1.1rem; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; font-weight: 600; }
.timeline-content p { color: var(--text-mid); font-size: 0.9rem; }
.timeline-right h2 { font-size: 2.4rem; margin-bottom: 20px; }
.timeline-right p { color: var(--text-mid); font-size: 1.1rem; line-height: 1.7; margin-bottom: 32px; }

/* ─── Testimonials ─── */
.testimonials { padding: 72px 0; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.testimonial-stars { color: #FFB800; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.testimonial-card:nth-child(1) .testimonial-avatar { background: var(--blush); }
.testimonial-card:nth-child(2) .testimonial-avatar { background: var(--lavender); }
.testimonial-card:nth-child(3) .testimonial-avatar { background: var(--mint); }
.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-light); }

/* ─── Pricing ─── */
.pricing { padding: 72px 0; }
.pricing-card {
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 28px;
    padding: 52px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--rose), var(--mauve), var(--sage));
}
.pricing-free {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.pricing-note { color: var(--text-mid); margin-bottom: 32px; font-size: 1.05rem; }
.pricing-list {
    list-style: none;
    text-align: left;
    margin-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pricing-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
}
.pricing-list li::before {
    content: '\2713';
    width: 24px; height: 24px;
    background: var(--mint);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem;
    color: #4CAF7D;
    flex-shrink: 0;
    font-weight: 700;
}

/* ─── CTA ─── */
.cta { padding: 72px 0; }
.cta-box {
    background: linear-gradient(135deg, #FFF5F7, #F5EDFF, #EDF7FF);
    border-radius: 32px;
    padding: 80px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box h2 { font-size: 2.8rem; margin-bottom: 16px; }
.cta-box p {
    color: var(--text-mid);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 0.85rem; color: var(--text-light); }

/* ─── Footer ─── */
body.page-wizard footer {
    display: none;
}
footer {
    padding: 60px 0 40px;
    border-top: 1px solid #EDE9F5;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand p { color: var(--text-light); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }
.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--rose); }
.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 32px;
    border-top: 1px solid #F0ECF7;
}
.affiliate-disclosure {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ─── Animations on scroll ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-grid, .timeline-wrapper { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 40px; }
    .steps-grid, .features-grid, .example-plans-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    nav { padding: 12px 20px; }
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    .cta-box { padding: 50px 24px; }
    .cta-box h2 { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .pricing-card { padding: 36px 28px; }
    .footer-grid { grid-template-columns: 1fr; }
    .example-plans-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════
   Wizard & Plan Page Styles
   ═══════════════════════════════════════════ */

/* ─── Wizard ─── */
.wizard-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
}
.wizard-card {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}
.wizard-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rose), var(--mauve), var(--sage));
}
.wizard-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 36px;
}
.wizard-progress-dot {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: #EDE9F5;
    transition: background 0.3s;
}
.wizard-progress-dot.active {
    background: linear-gradient(90deg, var(--rose), var(--mauve));
}
.wizard-progress-dot.completed {
    background: var(--sage);
}
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.wizard-validation-error {
    color: var(--coral);
    font-size: 0.88rem;
    text-align: center;
    margin: 0 0 12px;
    animation: fadeIn 0.2s ease;
}
.wizard-step h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.wizard-step p {
    color: var(--text-mid);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.6;
}
.wizard-step label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 8px;
}

/* Wizard inputs */
.wizard-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #EDE9F5;
    border-radius: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}
.wizard-input:focus {
    border-color: var(--rose);
}
.wizard-input::placeholder {
    color: var(--text-light);
}

/* Option cards (radio-style) */
.wizard-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}
.wizard-option {
    padding: 16px 20px;
    border: 2px solid #EDE9F5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-mid);
}
.wizard-option:hover {
    border-color: var(--soft-pink);
    background: var(--blush);
}
.wizard-option.selected {
    border-color: var(--rose);
    background: var(--blush);
    color: var(--text-dark);
}
.wizard-option .option-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 6px;
}

/* Checkbox-style options (concerns) */
.wizard-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wizard-checkbox {
    padding: 12px 16px;
    border: 2px solid #EDE9F5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
}
.wizard-checkbox:hover {
    border-color: var(--soft-pink);
}
.wizard-checkbox.selected {
    border-color: var(--rose);
    background: var(--blush);
    color: var(--text-dark);
}

/* Wizard navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}
.wizard-back {
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 0;
    transition: color 0.2s;
}
.wizard-back:hover { color: var(--text-dark); }
.wizard-next {
    padding: 12px 32px;
}

/* Email step */
.email-step-input {
    margin-bottom: 20px;
}
.skip-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.skip-link:hover { color: var(--text-mid); }

/* ─── Loading Screen ─── */
.loading-screen {
    display: none;
    min-height: 60vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
}
.loading-screen.active {
    display: flex;
}
.loading-icon {
    font-size: 3rem;
    margin-bottom: 32px;
    animation: floatTag 3s ease-in-out infinite;
}
.loading-text {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 1.6em;
    transition: opacity 0.3s;
}
.loading-subtext {
    font-size: 0.95rem;
    color: var(--text-light);
}
.loading-dots {
    display: flex;
    gap: 8px;
    margin-top: 32px;
}
.loading-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--rose);
    opacity: 0.3;
    animation: loadDot 1.4s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

/* ─── Plan Results ─── */
.results-screen {
    display: none;
    padding: 40px 0 80px;
}
.results-screen.active {
    display: block;
}

/* Plan completion toast */
.plan-ready-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--text-dark);
    color: white;
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
}
.plan-ready-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Truncation warning banner */
.truncation-banner {
    text-align: center;
    padding: 28px;
    background: #FFF8E1;
    border-radius: 16px;
    border: 1px solid #FFE082;
    margin-top: 24px;
    color: var(--text-mid);
    font-size: 0.95rem;
}

.plan-header {
    padding: 40px 0 32px;
    text-align: center;
}
.plan-header h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}
.plan-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.plan-context {
    font-size: 1rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}
.plan-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Affiliate disclosure box */
.disclosure-box {
    background: var(--blush);
    border: 1px solid var(--soft-pink);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 32px;
    font-size: 0.85rem;
    color: var(--text-mid);
    line-height: 1.6;
}
.disclosure-box strong { color: var(--text-dark); }
.disclosure-box em { color: var(--rose); font-style: normal; font-weight: 600; }

/* Plan main title (H1) */
.plan-main-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark);
}

/* Plan intro italic context line */
#plan-results em {
    display: block;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 16px;
}

/* Plan divider (---) */
.plan-divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--mauve), var(--sage));
    margin: 24px 0;
    border-radius: 2px;
}

/* Plan content container */
#plan-results {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 24px;
    counter-reset: plan-section;
}

/* Plan sections */
.plan-section {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.plan-section h2.section-title {
    counter-increment: plan-section;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lavender);
}
.plan-section h2.section-title::before {
    content: counter(plan-section);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}
.plan-section p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 12px;
}
.plan-section ul {
    list-style: none;
    margin-bottom: 16px;
}
.plan-section li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-mid);
    line-height: 1.6;
}
.plan-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose);
}
.plan-subheading {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #EDE9F5;
}

/* Guide link banners inside plan sections */
.guide-link-banner {
    margin-bottom: 16px;
}
.guide-link-banner a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--lavender);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B5CA5;
    text-decoration: none;
    transition: all 0.2s;
}
.guide-link-banner a:hover {
    background: #D9CCEF;
    color: #4A3D8F;
}

/* Product cards */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-left: 3px solid var(--sage);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    min-width: 0;
}
.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.09);
    transform: translateY(-2px);
}
.product-card:active {
    transform: translateY(-1px);
}
.product-card.priority-essential { border-left-color: var(--rose); }
.product-card.priority-recommended { border-left-color: var(--mauve); }
.product-card.priority-nice-to-have { border-left-color: var(--sage); }

.product-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}
.product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}
.product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--cream);
    padding: 2px 10px;
    border-radius: 100px;
    display: inline-block;
    width: fit-content;
}

/* Product meta row (price + timing badge + priority + reviews + cta) */
.product-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

/* Buy-timing badges */
.timing-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 100px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.badge-urgent { background: #FFE4E4; color: #C0392B; }
.badge-soon   { background: #FFF3CD; color: #9A6700; }
.badge-early  { background: var(--lavender); color: var(--text-mid); }

/* Social proof: star rating + review count */
.product-reviews {
    display: inline;
    font-size: 0.72rem;
    color: var(--text-light);
}

/* Why-this-for-you copy */
.product-why {
    display: block;
    font-size: 0.8rem;
    color: var(--text-mid);
    font-style: italic;
    line-height: 1.45;
}

/* Real product image (replaces SVG icon when catalog entry has imageUrl) */
.product-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--blush);
    flex-shrink: 0;
}

/* Product CTA — subtle text link, right-aligned in meta row */
.product-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-mid);
    white-space: nowrap;
    transition: color 0.2s;
}
.product-card:hover .product-cta {
    color: var(--text-dark);
}
.product-cta svg {
    flex-shrink: 0;
    transition: transform 0.2s;
}
.product-card:hover .product-cta svg {
    transform: translateX(3px);
}

/* Product cards grid — always single column (horizontal cards are wide) */
.product-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}
.product-cards-grid--single {
    grid-template-columns: 1fr;
}
.product-cards-grid .product-card {
    margin-bottom: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Priority dot + label (shown quietly in the meta row) */
.product-priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    margin-left: 2px;
}
.product-priority-label {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 500;
}
.product-card.priority-essential   .product-priority-dot { background: var(--rose); }
.product-card.priority-recommended .product-priority-dot { background: var(--mauve); }
.product-card.priority-nice-to-have .product-priority-dot { background: var(--sage); }

/* Product icon (SVG) */
.product-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lavender);
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 0.25s;
}
.product-icon svg {
    width: 26px;
    height: 26px;
}
.product-card:hover .product-icon {
    transform: scale(1.08);
}
.product-card.priority-essential .product-icon {
    background: var(--soft-pink);
    color: #D4456A;
}
.product-card.priority-recommended .product-icon {
    background: var(--lavender);
    color: #8B6BBF;
}
.product-card.priority-nice-to-have .product-icon {
    background: var(--mint);
    color: #4A9E7E;
}

/* Plan tables (e.g. budget breakdown) */
.plan-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 14px;
    border: 1px solid #EDE9F5;
    background: var(--white);
}
.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.5;
}
.plan-table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-mid);
    background: #F8F5FD;
    border-bottom: 2px solid #EDE9F5;
    white-space: nowrap;
}
.plan-table td {
    padding: 13px 18px;
    border-bottom: 1px solid #F0ECF7;
    color: var(--text-dark);
    vertical-align: top;
}
.plan-table tbody tr:last-child td {
    border-bottom: none;
}
.plan-table tbody tr:hover {
    background: #FDFBFF;
}

/* Section navigation */
.plan-nav {
    display: none;
    position: sticky;
    top: 60px;
    z-index: 50;
    background: rgba(255, 253, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #EDE9F5;
    padding: 12px 0;
}
.plan-nav.active {
    display: block;
}
.plan-nav-items {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 720px;
    margin: 0 auto;
}
.plan-nav-items::-webkit-scrollbar { display: none; }
.plan-nav-item {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid #EDE9F5;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.plan-nav-item:hover {
    border-color: var(--rose);
    color: var(--text-dark);
}
.plan-nav-item.active {
    background: linear-gradient(135deg, var(--rose), var(--mauve));
    color: white;
    border-color: transparent;
}

/* Share nudge */
.share-nudge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--lavender);
    border-radius: 16px;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-mid);
}
.share-nudge button {
    padding: 8px 20px;
    background: var(--white);
    border: 2px solid var(--mauve);
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mauve);
    cursor: pointer;
    transition: all 0.2s;
}
.share-nudge button:hover {
    background: var(--mauve);
    color: white;
}

/* Archetype CTA */
.archetype-cta {
    padding: 80px 0;
    text-align: center;
}
.archetype-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.archetype-cta p {
    color: var(--text-mid);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* Archetype header */
.archetype-header .plan-description {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 640px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ─── Email Overlay Modal ─── */
.email-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(45, 42, 62, 0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.email-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.3s ease;
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.email-overlay-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 36px 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.18);
    text-align: center;
    position: relative;
    animation: overlayCardIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes overlayCardIn {
    from { transform: translateY(30px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.email-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.email-modal-close:hover { color: var(--text-dark); }
.email-overlay-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}
.email-overlay-card p {
    color: var(--text-mid);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.email-overlay-card .wizard-input {
    margin-bottom: 12px;
    text-align: center;
}
.email-overlay-dismiss {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    opacity: 0.7;
}
.email-overlay-dismiss:hover {
    opacity: 1;
    background: #F0ECF7;
    color: var(--text-mid);
}
.plan-url-notice {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #EDE9F5;
    text-align: left;
}
.plan-url-notice span {
    display: block;
    font-size: 0.88rem;
    color: var(--text-mid);
    margin-bottom: 10px;
}
.plan-url-row {
    display: flex;
    gap: 8px;
}
.plan-url-row .wizard-input {
    text-align: left;
    font-size: 0.85rem;
    margin-bottom: 0;
    background: var(--warm-cream);
}

/* ─── Plan page responsive ─── */
@media (max-width: 640px) {
    .wizard-card { padding: 32px 24px; }
    .wizard-options { grid-template-columns: 1fr; }
    .wizard-checkboxes { grid-template-columns: 1fr; }
    .wizard-step h2 { font-size: 1.5rem; }
    .product-card {
        padding: 12px 14px;
        gap: 10px;
    }
    .plan-header h1 { font-size: 1.8rem; }
    .plan-section { padding: 24px; }
    .share-nudge {
        flex-direction: column;
        text-align: center;
    }
    .email-overlay-card {
        padding: 32px 24px 24px;
        max-width: 100%;
        border-radius: 20px;
    }
    .plan-url-row {
        flex-direction: column;
    }
    .guide-toc {
        position: static !important;
        margin-bottom: 32px;
    }
    .guide-header h1 { font-size: 2rem; }
    .nav-dropdown-menu { right: auto; left: 0; }
}

/* ─── Nav Dropdown ─── */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border-radius: 16px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    min-width: 220px;
    z-index: 110;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-mid);
    text-decoration: none;
    transition: all 0.15s;
}
.nav-dropdown-menu a:hover {
    background: var(--blush);
    color: var(--text-dark);
}

/* ═══════════════════════════════════════════
   Guides Index
   ═══════════════════════════════════════════ */

/* Header block */
.guides-index-header {
    text-align: center;
}
.guides-index-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 64px;
}

/* Category section */
.guides-category {
    margin-bottom: 52px;
}
.guides-category > h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201, 160, 220, 0.3);
}

/* Guide cards as anchor elements — reset browser link defaults */
a.feature-card {
    color: var(--text-dark);
    text-decoration: none;
}
a.feature-card:visited {
    color: var(--text-dark);
}
a.feature-card > div > h3 {
    color: var(--text-dark);
    transition: color 0.2s;
}
a.feature-card:hover > div > h3 {
    color: var(--rose);
}

/* ═══════════════════════════════════════════
   Guide Pages
   ═══════════════════════════════════════════ */

.guide-page {
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
}
.guide-header {
    text-align: center;
    margin-bottom: 48px;
}
.guide-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
}
.guide-breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.guide-breadcrumb a:hover {
    color: var(--rose);
}
.guide-header h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}
.guide-subtitle {
    font-size: 1.15rem;
    color: var(--text-mid);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}
.guide-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.guide-toc {
    position: static;
    background: var(--white);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    width: auto;
    z-index: auto;
}
.guide-toc h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 14px;
}
.guide-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.guide-toc li a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--warm-cream);
    border: 1px solid #EDE9F5;
    border-radius: 100px;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
}
.guide-toc li a:hover {
    background: var(--blush);
    border-color: var(--rose);
    color: var(--text-dark);
}
.guide-content section {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 36px 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.guide-content section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--text-dark);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lavender);
}
.guide-content section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 10px;
}
.guide-content section p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}
.guide-content section ul {
    list-style: none;
    margin-bottom: 16px;
}
.guide-content section li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-mid);
    line-height: 1.6;
}
.guide-content section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rose);
}
.guide-content section li strong {
    color: var(--text-dark);
}

/* Guide back link */
.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-mid);
    font-size: 0.9rem;
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.2s;
}
.guide-back:hover { color: var(--rose); }

/* .guide-body — used by AI-generated guides (all sections in one wrapper) */
.guide-body {
    background: var(--white);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.guide-body h2 {
    font-size: 1.6rem;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lavender);
}
.guide-body h2:first-of-type { margin-top: 0; }
.guide-body h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 10px;
}
.guide-body p {
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 14px;
}
.guide-body ul {
    list-style: none;
    margin-bottom: 16px;
}
.guide-body li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-mid);
    line-height: 1.6;
}
.guide-body li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rose);
}
.guide-body li strong {
    color: var(--text-dark);
}
.guide-body hr {
    border: none;
    border-top: 1px solid rgba(201, 160, 220, 0.35);
    margin: 40px 0;
}
.guide-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--warm-cream);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-mid);
}
.check-icon {
    width: 22px;
    height: 22px;
    background: var(--mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #4CAF7D;
    flex-shrink: 0;
    font-weight: 700;
}
.guide-cta {
    background: linear-gradient(135deg, #FFF5F7, #F5EDFF, #EDF7FF);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    margin-top: 40px;
}
.guide-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.guide-cta p {
    color: var(--text-mid);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ─── Save-to-List feature ─── */
.save-btn {
    position: absolute;
    top: 8px; right: 8px;
    background: none; border: none;
    font-size: 1rem; cursor: pointer;
    padding: 4px; line-height: 1;
    opacity: 0.4; transition: opacity 0.2s;
    z-index: 1;
}
.save-btn:hover, .save-btn.saved { opacity: 1; }
#saved-list-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    background: var(--text-dark);
    color: white; border: none;
    border-radius: 100px;
    padding: 12px 20px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 200; align-items: center; gap: 6px;
}
#saved-modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 300;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.saved-modal-inner {
    background: var(--white);
    border-radius: 20px;
    padding: 32px;
    max-width: 480px; width: 100%;
    max-height: 80vh; overflow-y: auto;
}
.saved-modal-inner h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}
.saved-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--lavender);
    font-size: 0.9rem; line-height: 1.5;
}
.saved-item:last-of-type { border-bottom: none; }
.saved-item small { display: block; color: var(--text-light); margin-top: 2px; }
.saved-item a { display: block; margin-top: 6px; color: var(--rose); font-size: 0.82rem; font-weight: 600; }
#close-saved-modal {
    display: block;
    margin: 20px auto 0;
    padding: 10px 28px;
    background: var(--lavender);
    color: var(--text-dark);
    border: none; border-radius: 100px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer;
}
