/* ═══════════════════════════════════════════════════════════════
   Furcast Visual Enhancement Layer v2
   Additive overrides — loaded after styles.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. EXTENDED DESIGN TOKENS ──────────────────────────────── */
:root {
    /* Stage palettes */
    --stage-baby-hue: 174;
    --stage-baby: hsl(174, 52%, 52%);
    --stage-baby-bg: hsl(174, 62%, 95%);
    --stage-baby-border: hsl(174, 42%, 82%);
    --stage-baby-glow: hsla(174, 55%, 52%, 0.18);

    --stage-youth-hue: 38;
    --stage-youth: hsl(38, 82%, 58%);
    --stage-youth-bg: hsl(38, 80%, 95%);
    --stage-youth-border: hsl(38, 50%, 82%);
    --stage-youth-glow: hsla(38, 85%, 55%, 0.18);

    --stage-mature-hue: 196;
    --stage-mature: hsl(196, 52%, 45%);
    --stage-mature-bg: hsl(196, 50%, 95%);
    --stage-mature-border: hsl(196, 35%, 82%);
    --stage-mature-glow: hsla(196, 50%, 45%, 0.18);

    --stage-senior-hue: 280;
    --stage-senior: hsl(280, 42%, 55%);
    --stage-senior-bg: hsl(280, 40%, 96%);
    --stage-senior-border: hsl(280, 30%, 84%);
    --stage-senior-glow: hsla(280, 40%, 55%, 0.18);

    /* Contrast anchors */
    --navy: #1a1f36;
    --navy-soft: #262b45;
    --charcoal: #2b2b3d;

    /* Vibrant accents */
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-glow: rgba(22, 163, 74, 0.25);
    --coral: #f97316;
    --coral-soft: rgba(249, 115, 22, 0.12);

    /* Glass effect */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-blur: 16px;
    --glass-shadow: 0 8px 32px rgba(31, 38, 50, 0.08);

    /* Enhanced shadows */
    --shadow-sm: 0 2px 8px rgba(31, 38, 50, 0.06);
    --shadow-md: 0 8px 24px rgba(31, 38, 50, 0.08);
    --shadow-lg: 0 16px 48px rgba(31, 38, 50, 0.1);
    --shadow-glow: 0 0 24px rgba(22, 163, 74, 0.15);

    /* Typography */
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-display: 'Baloo 2', 'Trebuchet MS', sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.35rem;
    --fs-2xl: 1.8rem;
    --fs-3xl: 2.4rem;
    --fs-hero: clamp(2.4rem, 5vw, 3.8rem);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 180ms;
    --dur-normal: 280ms;
    --dur-slow: 480ms;

    /* Dark mode palette (applied via .dark) */
    --dm-bg: #0f1117;
    --dm-surface: #181b24;
    --dm-surface-2: #252a3a;
    --dm-border: rgba(255, 255, 255, 0.08);
    --dm-text: #e4e5ea;
    --dm-text-muted: #9b9daa;
    --dm-glass-bg: rgba(26, 29, 40, 0.82);
}


/* ─── 2. TYPOGRAPHY UPGRADE ──────────────────────────────────── */

html,
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

h2 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--fs-xl);
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    color: var(--accent);
    text-transform: uppercase;
}


/* ─── 3. HERO SECTION REDESIGN ───────────────────────────────── */

.entry {
    position: relative;
    margin-top: 0;
    padding: 64px 0 48px;
}

/* Floating paw decorations */
.entry::before,
.entry::after {
    content: '🐾';
    position: absolute;
    font-size: 2.8rem;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    animation: float-paw 8s ease-in-out infinite alternate;
}

.entry::before {
    top: 30px;
    right: 5%;
    animation-delay: 0s;
}

.entry::after {
    bottom: 60px;
    left: 2%;
    font-size: 2rem;
    animation-delay: -3s;
    animation-duration: 10s;
}

@keyframes float-paw {
    0% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-18px) rotate(4deg);
    }

    100% {
        transform: translateY(-6px) rotate(-3deg);
    }
}

.hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center,
            rgba(22, 163, 74, 0.10) 0%,
            rgba(249, 115, 22, 0.06) 40%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: hero-pulse 6s ease-in-out infinite alternate;
}

@keyframes hero-pulse {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

.entry h1 {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.08;
    color: var(--navy);
    max-width: 780px;
    position: relative;
    z-index: 1;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(18px);
    animation: word-rise 0.6s var(--ease-out) forwards;
}

@keyframes word-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: var(--fs-lg);
    color: #5a5e6e;
    max-width: 680px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent), #4ade80);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-lg);
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    transition: transform var(--dur-normal) var(--ease-spring),
        box-shadow var(--dur-normal) var(--ease-out);
    position: relative;
    z-index: 1;
    overflow: hidden;
    animation: cta-idle-pulse 3s ease-in-out infinite;
}

@keyframes cta-idle-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(22, 163, 74, 0.3);
    }

    50% {
        box-shadow: 0 6px 28px rgba(22, 163, 74, 0.45);
    }
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 30px rgba(22, 163, 74, 0.4);
}

.hero-cta .arrow {
    transition: transform var(--dur-fast) var(--ease-out);
}

.hero-cta:hover .arrow {
    transform: translateX(3px);
}


/* ─── 4. TOPBAR UPGRADE ──────────────────────────────────────── */

.topbar {
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark mode toggle button */
.dark-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2d8cf;
    background: #fff8f2;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #5f463c;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
}

.dark-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.dark-toggle .icon {
    font-size: 1rem;
}


/* ─── 5. CHIP & FILTER UPGRADE ───────────────────────────────── */

.chip {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid #e2d5ca;
    background: #fffcf8;
    color: #5a4e44;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

.chip.is-active {
    background: linear-gradient(135deg, var(--accent), #4ade80);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}


/* ─── 6. PET CARD GLASSMORPHISM ──────────────────────────────── */

.pet-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 999px;
    transition: all var(--dur-normal) var(--ease-spring);
}

.pet-card:hover,
.pet-card:focus-visible {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(22, 163, 74, 0.3);
}

.pet-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.pet-card img {
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--dur-normal) var(--ease-spring);
}

.pet-card:hover img {
    transform: scale(1.08);
}

.pet-meta strong {
    font-size: var(--fs-base);
    font-weight: 700;
    color: var(--navy);
}


/* ─── 7. SECTION DIVIDERS ────────────────────────────────────── */

.section-divider {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.section-divider svg path {
    opacity: 2.5;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.15), rgba(249, 115, 22, 0.1), transparent);
}

.section-divider-wave {
    fill: none;
}


/* ─── 8. SPECIES CLUSTER UPGRADE ─────────────────────────────── */

.species-cluster {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-normal) var(--ease-out);
}

.species-cluster:hover {
    box-shadow: var(--shadow-md);
}

.species-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
}


/* ─── 9. BREED INTRO & STAGE-SPECIFIC CARDS ──────────────────── */

.breed-intro {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.intro-summary {
    font-size: var(--fs-base);
    line-height: 1.65;
    color: #4a4e5c;
}


/* ─── 10. STAGE CARD VISUAL ENHANCEMENTS ─────────────────────── */

.stage-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1.5px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-spring),
        box-shadow var(--dur-normal) var(--ease-out),
        border-color var(--dur-normal) var(--ease-out);
}

.stage-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--stage-baby), var(--stage-youth), var(--stage-mature), var(--stage-senior));
    opacity: 0.5;
    transition: opacity var(--dur-normal) var(--ease-out);
}

/* Stage-specific top accent bars */
.stage-card[data-stage="baby"]::before {
    background: var(--stage-baby);
    opacity: 0.8;
}

.stage-card[data-stage="youth"]::before {
    background: var(--stage-youth);
    opacity: 0.8;
}

.stage-card[data-stage="mature"]::before {
    background: var(--stage-mature);
    opacity: 0.8;
}

.stage-card[data-stage="senior"]::before {
    background: var(--stage-senior);
    opacity: 0.8;
}

/* Stage-specific subtle backgrounds */
.stage-card[data-stage="baby"] {
    border-color: var(--stage-baby-border);
    background: linear-gradient(180deg, var(--stage-baby-bg), var(--glass-bg) 30%);
}

.stage-card[data-stage="youth"] {
    border-color: var(--stage-youth-border);
    background: linear-gradient(180deg, var(--stage-youth-bg), var(--glass-bg) 30%);
}

.stage-card[data-stage="mature"] {
    border-color: var(--stage-mature-border);
    background: linear-gradient(180deg, var(--stage-mature-bg), var(--glass-bg) 30%);
}

.stage-card[data-stage="senior"] {
    border-color: var(--stage-senior-border);
    background: linear-gradient(180deg, var(--stage-senior-bg), var(--glass-bg) 30%);
}

/* Stage header h2-scale text */
.stage-header h2,
.stage-header h3 {
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--navy);
}

.stage-tag {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-xs);
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 999px;
}

.stage-card[data-stage="baby"] .stage-tag {
    background: var(--stage-baby-bg);
    border-color: var(--stage-baby-border);
    color: hsl(174, 52%, 32%);
}

.stage-card[data-stage="youth"] .stage-tag {
    background: var(--stage-youth-bg);
    border-color: var(--stage-youth-border);
    color: hsl(38, 60%, 30%);
}

.stage-card[data-stage="mature"] .stage-tag {
    background: var(--stage-mature-bg);
    border-color: var(--stage-mature-border);
    color: hsl(196, 52%, 28%);
}

.stage-card[data-stage="senior"] .stage-tag {
    background: var(--stage-senior-bg);
    border-color: var(--stage-senior-border);
    color: hsl(280, 42%, 32%);
}


/* ─── 11. RISK ITEM SEVERITY INDICATORS ──────────────────────── */

.risk-item {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left-width: 5px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

.risk-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.risk-item.severity-1 {
    border-left-color: #22c55e;
}

.risk-item.severity-2 {
    border-left-color: #84cc16;
}

.risk-item.severity-3 {
    border-left-color: #eab308;
}

.risk-item.severity-4 {
    border-left-color: #f97316;
}

.risk-item.severity-5 {
    border-left-color: #ef4444;
}

.risk-kind {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 10px;
}


/* ─── 12. STAGE PHOTO EFFECTS ────────────────────────────────── */

.stage-media {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
    position: relative;
}

.stage-media img {
    transition: transform 8s linear;
}

.stage-media:hover img {
    transform: scale(1.06);
}

.stage-media figcaption {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
    font-weight: 600;
    padding: 12px 14px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: var(--fs-sm);
}


/* ─── 13. SNAPSHOT STRIP ENHANCEMENT ─────────────────────────── */

.snapshot-item {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 10px 12px;
    transition: transform var(--dur-fast) var(--ease-out);
}

.snapshot-item:hover {
    transform: translateY(-2px);
}

.snapshot-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.snapshot-meter span {
    background: linear-gradient(90deg, var(--accent), #4ade80, #f97316);
    border-radius: 999px;
    transition: width 0.8s var(--ease-out);
}


/* ─── 14. BUTTONS UPGRADE ────────────────────────────────────── */

.primary-btn {
    background: linear-gradient(135deg, var(--accent), #4ade80);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
    transition: all var(--dur-normal) var(--ease-spring);
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.35);
}

.ghost-btn {
    font-family: var(--font-body);
    font-weight: 600;
    border: 1.5px solid #d8cfc6;
    background: #fffcf8;
    color: #4a4556;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all var(--dur-fast) var(--ease-out);
}

.ghost-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(22, 163, 74, 0.04);
}


/* ─── 15. INSURANCE LAB SECTION ──────────────────────────────── */

.insurance {
    margin-top: 80px;
}

.insurance-form,
.insurance-result {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.insurance-result {
    position: relative;
}

.insurance-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #34d399, #f97316);
    border-radius: 24px 24px 0 0;
}

.result-narrative {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 700;
    font-size: var(--fs-base);
    line-height: 1.5;
}

.result-kpi-item {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 12px 14px;
}

.result-kpi-item strong {
    font-size: 1.2rem;
    color: var(--navy);
}

.recommendation {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 700;
    color: #9a3412;
}


/* ─── 16. COST RAIL UPGRADE ──────────────────────────────────── */

.cost-rail {
    background: linear-gradient(180deg, #fffdf9, #faf5ef);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.rail-kpis>div {
    background: var(--glass-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 10px 14px;
    transition: transform var(--dur-fast) var(--ease-out);
}

.rail-kpis>div:hover {
    transform: translateY(-2px);
}

.rail-kpis strong {
    font-size: 1.15rem;
    color: var(--navy);
}


/* ─── 17. LAYOUT SPACING ─────────────────────────────────────── */

.journey {
    margin-top: 80px;
}

.journey-header {
    margin-top: 48px;
    margin-bottom: 8px;
}

.journey-header h2 {
    font-size: var(--fs-2xl);
    color: var(--navy);
}

.timeline {
    margin-top: 24px;
    gap: 28px;
}

.selected-pet-banner {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

#selectedPetText {
    color: var(--navy);
}


/* ─── 18. BUDGET CIRCLE UPGRADE ──────────────────────────────── */

.budget-circle {
    box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.03);
    transition: box-shadow var(--dur-normal) var(--ease-out);
}

.budget-circle-card:hover .budget-circle {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.1);
}


/* ─── 19. SCROLL ANIMATIONS ──────────────────────────────────── */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.scroll-reveal-stagger>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out),
        transform 0.5s var(--ease-out);
}

.scroll-reveal-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0ms;
}

.scroll-reveal-stagger.is-visible>*:nth-child(2) {
    transition-delay: 60ms;
}

.scroll-reveal-stagger.is-visible>*:nth-child(3) {
    transition-delay: 120ms;
}

.scroll-reveal-stagger.is-visible>*:nth-child(4) {
    transition-delay: 180ms;
}

.scroll-reveal-stagger.is-visible>*:nth-child(5) {
    transition-delay: 240ms;
}

.scroll-reveal-stagger.is-visible>*:nth-child(6) {
    transition-delay: 300ms;
}

.scroll-reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}


/* ─── 20. ANIMATED NUMBER COUNTERS ───────────────────────────── */

[data-count-to] {
    font-variant-numeric: tabular-nums;
}


/* ─── 21. SCROLL PROGRESS INDICATOR ──────────────────────────── */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #34d399, #f97316);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 100ms linear;
    pointer-events: none;
}

/* Stage progress dots */
.stage-progress {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-out);
}

.stage-progress.is-visible {
    opacity: 1;
}

.stage-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-out);
    position: relative;
}

/* Larger click target */
.stage-dot::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
}

.stage-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    transform: scale(1.3);
}

.stage-dot::after {
    content: attr(data-label);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--navy);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-out);
}

.stage-dot:hover::after,
.stage-dot.is-active::after {
    opacity: 1;
}


/* ─── 22. INTRO STAGE STRIP UPGRADE ──────────────────────────── */

.intro-stage-thumb {
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: transform var(--dur-normal) var(--ease-spring);
    box-shadow: var(--shadow-sm);
}

.intro-stage-thumb:hover {
    transform: scale(1.03);
}

.intro-stage-thumb img {
    transition: transform 6s linear;
}

.intro-stage-thumb:hover img {
    transform: scale(1.08);
}


/* ─── BREED SEARCH BAR ───────────────────────────────────────── */

.breed-search-wrap {
    position: relative;
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 280px;
}

.breed-search-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #f4ceb8;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    background: #fff5ed;
    color: #794e3d;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.breed-search-input::placeholder {
    color: #b08d7a;
    font-weight: 600;
}

.breed-search-input:focus {
    border-color: #2d7f66;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(45, 127, 102, 0.12);
}

.breed-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    padding: 6px;
}

.breed-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.breed-search-item:hover,
.breed-search-item:focus-visible {
    background: rgba(45, 127, 102, 0.08);
}

.breed-search-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.breed-search-item .search-species-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8b6556;
    margin-left: auto;
}

/* Dark mode search */
.dark .breed-search-input {
    background: var(--dm-surface-2);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e4e4e7;
}

.dark .breed-search-input::placeholder {
    color: #9ca3af;
}

.dark .breed-search-input:focus {
    border-color: #34d399;
    background: var(--dm-surface);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.dark .breed-search-results {
    background: rgba(30, 33, 44, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .breed-search-item {
    color: #e4e4e7;
}

.dark .breed-search-item:hover {
    background: rgba(52, 211, 153, 0.1);
}

.dark .breed-search-item .search-species-tag {
    color: #9ca3af;
}


/* ─── BREED OVERVIEW REDESIGN ────────────────────────────────── */

/* Desktop: text above, full-width photo row below */
@media (min-width: 981px) {
    .breed-intro-text {
        margin-bottom: 20px;
    }

    /* Snapshot strip + intro-grid stay full width below */
    .snapshot-strip,
    .intro-grid {
        grid-column: 1 / -1;
    }
}

/* ─── LIFE STAGE PHOTO ROW (horizontal cards) ────────────────── */

.quadrant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.quadrant-grid .intro-stage-thumb {
    border: none;
    border-radius: 24px;
    margin: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quadrant-grid .intro-stage-thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.quadrant-grid .intro-stage-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: 50% 35%;
    display: block;
    transition: transform 0.5s ease;
}

.quadrant-grid .intro-stage-thumb:hover img {
    transform: scale(1.05);
}

.quadrant-grid .intro-stage-thumb figcaption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.quadrant-grid .intro-stage-thumb .intro-stage-empty {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    font-size: 0.8rem;
    color: #a08676;
    background: linear-gradient(135deg, #fff5eb, #ffe9db);
}

/* Dark mode cards */
.dark .quadrant-grid .intro-stage-thumb {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.dark .quadrant-grid .intro-stage-thumb:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.dark .quadrant-grid .intro-stage-thumb figcaption {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .quadrant-grid .intro-stage-thumb .intro-stage-empty {
    background: linear-gradient(135deg, #252a3a, #1e2130);
    color: #9ca3af;
}


/* ─── RESPONSIVE: Breed photos ───────────────────────────────── */

@media (max-width: 980px) {
    .breed-intro {
        display: block;
    }

    .breed-intro-text {
        margin-bottom: 16px;
    }

    .breed-intro-photos {
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .quadrant-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 4px;
    }

    .quadrant-grid .intro-stage-thumb {
        flex: 0 0 42vw;
        border-radius: 18px;
        scroll-snap-align: start;
    }

    .quadrant-grid .intro-stage-thumb img {
        aspect-ratio: 3 / 4;
    }

    .quadrant-grid .intro-stage-thumb figcaption {
        bottom: 8px;
        left: 8px;
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .quadrant-grid .intro-stage-thumb .intro-stage-empty {
        aspect-ratio: 3 / 4;
        min-height: 120px;
    }

    /* Search bar full-width on mobile */
    .breed-search-wrap {
        max-width: 100%;
    }
}


/* ─── 23. FORM ELEMENTS ──────────────────────────────────────── */

input[type="text"],
input[type="url"],
input[type="number"],
select {
    font-family: var(--font-body);
    border: 1.5px solid #d8cfc6;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: var(--fs-base);
    background: #fffefb;
    transition: border-color var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out);
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

label {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-sm);
    color: #3d3a47;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #4ade80);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform var(--dur-fast) var(--ease-spring);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}


/* ─── 24. DARK MODE ──────────────────────────────────────────── */

.dark {
    --cream: var(--dm-bg);
    --card: var(--dm-surface);
    --line: var(--dm-border);
    --ink: var(--dm-text);
    --glass-bg: var(--dm-glass-bg);
    --glass-border: rgba(255, 255, 255, 0.06);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.dark,
.dark body {
    background: var(--dm-bg);
    color: var(--dm-text);
}

.dark .bg-shape {
    opacity: 0.12;
}

.dark .topbar {
    border-bottom-color: var(--dm-border);
}

.dark .brand {
    background: linear-gradient(135deg, #34d399, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark .entry h1 {
    color: #f1f5f9;
}

.dark .subtitle {
    color: var(--dm-text-muted);
}

.dark .eyebrow {
    color: #4ade80;
}

.dark .chip {
    border-color: var(--dm-border);
    background: var(--dm-surface);
    color: var(--dm-text-muted);
}

.dark .chip.is-active {
    background: linear-gradient(135deg, var(--accent), #22c55e);
    color: #fff;
    border-color: transparent;
}

.dark .pet-card {
    background: var(--dm-glass-bg);
    border-color: var(--dm-border);
}

.dark .pet-card:hover {
    border-color: rgba(22, 163, 74, 0.3);
}

.dark .pet-meta strong {
    color: #f1f5f9;
}

.dark .species-cluster {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .species-label {
    color: #f1f5f9;
}

.dark .species-icon {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .breed-intro {
    background: var(--dm-glass-bg);
    border-color: var(--dm-border);
}

.dark .intro-summary {
    color: var(--dm-text-muted);
}

.dark .intro-concern-lead {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .intro-item {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .intro-item h4 {
    color: var(--dm-text);
}

.dark .intro-item p {
    color: var(--dm-text-muted);
}

.dark .snapshot-item {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .snapshot-head span {
    color: var(--dm-text-muted);
}

.dark .snapshot-head strong {
    color: var(--dm-text);
}

.dark .snapshot-meter {
    background: rgba(255, 255, 255, 0.06);
}

.dark .stage-card {
    background: var(--dm-glass-bg);
    border-color: var(--dm-border);
}

.dark .stage-card[data-stage="baby"] {
    background: linear-gradient(180deg, hsla(174, 52%, 52%, 0.08), var(--dm-glass-bg) 30%);
    border-color: hsla(174, 52%, 52%, 0.2);
}

.dark .stage-card[data-stage="youth"] {
    background: linear-gradient(180deg, hsla(38, 82%, 58%, 0.08), var(--dm-glass-bg) 30%);
    border-color: hsla(38, 82%, 58%, 0.2);
}

.dark .stage-card[data-stage="mature"] {
    background: linear-gradient(180deg, hsla(196, 52%, 45%, 0.08), var(--dm-glass-bg) 30%);
    border-color: hsla(196, 52%, 45%, 0.2);
}

.dark .stage-card[data-stage="senior"] {
    background: linear-gradient(180deg, hsla(280, 42%, 55%, 0.08), var(--dm-glass-bg) 30%);
    border-color: hsla(280, 42%, 55%, 0.2);
}

.dark .stage-header h2,
.dark .stage-header h3 {
    color: #f1f5f9;
}

.dark .stage-copy,
.dark .stage-age {
    color: var(--dm-text-muted);
}

.dark .risk-item {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .risk-narrative {
    color: var(--dm-text-muted);
}

.dark .risk-meta-pill {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .risk-meta-pill span {
    color: var(--dm-text-muted);
}

.dark .risk-meta-pill strong {
    color: var(--dm-text);
}

.dark .stage-summary-card {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .stage-summary-kicker {
    color: var(--dm-text-muted);
}

.dark .stage-summary-intro {
    color: var(--dm-text);
}

.dark .stage-summary-block {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .stage-summary-block h4 {
    color: var(--dm-text-muted);
}

.dark .stage-summary-block p {
    color: var(--dm-text-muted);
}

.dark .cost-rail {
    background: linear-gradient(180deg, var(--dm-surface), var(--dm-surface-2));
    border-color: var(--dm-border);
}

.dark .budget-panel {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .budget-panel h4 {
    color: var(--dm-text);
}

.dark .rail-kpis>div {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .rail-kpis p,
.dark .budget-panel-note {
    color: var(--dm-text-muted);
}

.dark .rail-kpis strong {
    color: #f1f5f9;
}

.dark .insurance-form,
.dark .insurance-result {
    background: var(--dm-glass-bg);
    border-color: var(--dm-border);
}

.dark label {
    color: var(--dm-text);
}

.dark input[type="text"],
.dark input[type="url"],
.dark input[type="number"],
.dark select {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

.dark .ghost-btn {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .ghost-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(22, 163, 74, 0.06);
}

.dark .dark-toggle {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .field-hint {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .result-narrative {
    background: linear-gradient(135deg, hsla(160, 60%, 30%, 0.15), hsla(140, 50%, 30%, 0.1));
    border-color: hsla(160, 60%, 40%, 0.25);
    color: #86efac;
}

.dark .result-kpi-item {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .result-kpi-item span {
    color: var(--dm-text-muted);
}

.dark .result-kpi-item strong {
    color: #f1f5f9;
}

.dark .recommendation {
    background: linear-gradient(135deg, hsla(25, 80%, 40%, 0.12), hsla(25, 70%, 35%, 0.08));
    border-color: hsla(25, 80%, 50%, 0.3);
    color: #fdba74;
}

.dark .budget-compare {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .budget-compare h4 {
    color: var(--dm-text);
}

.dark .budget-compare-lead {
    color: var(--dm-text-muted);
}

.dark .budget-circle-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .budget-circle-card h5 {
    color: var(--dm-text);
}

.dark .budget-circle {
    background-image: conic-gradient(rgba(255, 255, 255, 0.06) 0deg 360deg);
}

.dark .budget-circle::after {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .budget-circle span {
    color: var(--dm-text);
}

.dark .budget-legend li {
    color: var(--dm-text-muted);
}

.dark .budget-legend strong {
    color: var(--dm-text);
}

.dark .result-visual {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .result-visual-label {
    color: var(--dm-text-muted);
}

.dark .result-visual-track {
    background: rgba(255, 255, 255, 0.06);
}

.dark .result-visual-row strong {
    color: var(--dm-text);
}

.dark .result-explain-card {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .result-explain-card h5 {
    color: var(--dm-text-muted);
}

.dark .result-explain h4 {
    color: var(--dm-text);
}

.dark .result-support {
    color: var(--dm-text-muted);
}

.dark .selected-pet-banner {
    background: linear-gradient(135deg, hsla(152, 60%, 30%, 0.15), hsla(152, 50%, 30%, 0.1));
    border-color: hsla(152, 60%, 40%, 0.25);
}

.dark #selectedPetText {
    color: #f1f5f9;
}

.dark .journey-header h2 {
    color: #f1f5f9;
}

.dark .journey-header p,
.dark .insurance-header p {
    color: var(--dm-text-muted);
}

.dark .fine-print {
    color: var(--dm-text-muted);
}

.dark .journey-disclaimer-callout {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .journey-disclaimer-title {
    color: #fdba74;
}

.dark .journey-disclaimer-detail {
    color: var(--dm-text-muted);
}

.dark .stage-budget {
    background: hsla(160, 40%, 30%, 0.08);
    border-color: hsla(160, 40%, 40%, 0.15);
    color: #86efac;
}

.dark .stage-media figcaption {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.dark .species-collapse-btn,
.dark .species-mix-btn {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text-muted);
}

.dark .insurance-header h2,
.dark h3#resultSectionTitle {
    color: #f1f5f9;
}

.dark .scenario-compare {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .scenario-compare h4 {
    color: var(--dm-text);
}

.dark .scenario-compare-lead {
    color: var(--dm-text-muted);
}

.dark .micro-quiz {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .micro-quiz h4 {
    color: var(--dm-text);
}

.dark .micro-quiz-lead {
    color: var(--dm-text-muted);
}

.dark .coverage-availability {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .coverage-availability h4 {
    color: var(--dm-text);
}

.dark .medical-load {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .medical-load h4 {
    color: var(--dm-text);
}

.dark .plan-design {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .plan-design h4 {
    color: var(--dm-text);
}

.dark .age-pricing-guide {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .age-pricing-guide h4 {
    color: var(--dm-text);
}

.dark .age-pricing-card {
    background: var(--dm-surface);
    border-color: var(--dm-border);
}

.dark .age-pricing-card h5 {
    color: var(--dm-text);
}

.dark .age-pricing-card p {
    color: var(--dm-text-muted);
}

.dark .intro-stage-thumb {
    border-color: var(--dm-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark .intro-stage-thumb figcaption {
    background: var(--dm-surface-2);
    color: var(--dm-text-muted);
}

.dark .intro-stage-empty {
    background: var(--dm-surface-2);
    color: var(--dm-text-muted);
}

.dark .hero-glow {
    background: radial-gradient(ellipse at center,
            rgba(74, 222, 128, 0.14) 0%,
            rgba(52, 211, 153, 0.06) 40%,
            transparent 70%);
}

.dark .pet-card img {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Dark mode page edge vignette */
.dark body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

.dark .scroll-progress {
    background: linear-gradient(90deg, var(--accent), #34d399, #f97316);
}

.dark .stage-dot {
    background: rgba(255, 255, 255, 0.12);
}

.dark .stage-dot.is-active {
    background: var(--accent);
}

.dark .stage-dot::after {
    color: var(--dm-text);
}

.dark .exotic-funding-controls {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .exotic-funding-controls h4 {
    color: var(--dm-text);
}

.dark .exotic-funding-lead {
    color: var(--dm-text-muted);
}

.dark .analytics-config {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}

.dark .insurance-preset {
    background: var(--dm-surface-2);
    border-color: var(--dm-border);
}


/* ─── 25. RESPONSIVE ADJUSTMENTS ─────────────────────────────── */

@media (max-width: 980px) {
    .stage-progress {
        display: none;
    }

    .hero-glow {
        width: 100%;
    }

    .section-divider {
        height: 50px;
    }

    /* Reduce spacing on tablet */
    .journey,
    .insurance {
        margin-top: 56px;
    }

    /* Adjust stage thumb aspect ratio for 2-col */
    .intro-stage-thumb img {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 640px) {
    .entry {
        padding: 32px 0 24px;
    }

    .entry h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .hero-cta {
        width: 100%;
        justify-content: center;
    }

    .stage-card {
        padding: 16px;
    }
}


/* ─── 26. REDUCED MOTION OVERRIDES ───────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .hero-glow {
        animation: none;
        opacity: 0.6;
    }

    .hero-word {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-cta::before {
        animation: none;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-reveal-stagger>* {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .stage-media img {
        transition: none;
    }

    .intro-stage-thumb img {
        transition: none;
    }

    .snapshot-meter span {
        transition: none;
    }

    .pet-card,
    .pet-card img {
        transition: none;
    }
}

.reduce-motion .hero-glow {
    animation: none;
    opacity: 0.6;
}

.reduce-motion .hero-word {
    animation: none;
    opacity: 1;
    transform: none;
}

.reduce-motion .hero-cta::before {
    animation: none;
}

.reduce-motion .scroll-reveal {
    opacity: 1;
    transform: none;
}

.reduce-motion .scroll-reveal-stagger>* {
    opacity: 1;
    transform: none;
}


/* ═══════════════════════════════════════════════════════════════
   V3 ADDITIONS — Additional Visual Enhancements
   ═══════════════════════════════════════════════════════════════ */


/* ─── 27. EMPTY STATE STYLING ────────────────────────────────── */

.intro-stage-empty {
    position: relative;
    overflow: hidden;
}

.intro-stage-empty::before {
    content: '🐾';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    opacity: 0.12;
    pointer-events: none;
    animation: empty-pulse 2.5s ease-in-out infinite;
}

@keyframes empty-pulse {

    0%,
    100% {
        opacity: 0.08;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.18;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.snapshot-head strong {
    transition: color 0.3s ease;
}


/* ─── 28. FINANCIAL NUMBER FORMATTING ────────────────────────── */
/* Removed: tabular-nums caused rendering artifacts with Nunito font. */

/* ─── 29. SECTION SPACING INCREASE ───────────────────────────── */

.journey {
    margin-top: 80px;
}

.insurance {
    margin-top: 80px;
}

.journey-header {
    margin-top: 36px;
}


/* ─── 30. BREED-INTRO & COST-RAIL HOVER ──────────────────────── */

.breed-intro {
    transition: transform var(--dur-normal) var(--ease-spring),
        box-shadow var(--dur-normal) var(--ease-out);
}

.breed-intro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(22, 163, 74, 0.06);
}

.cost-rail {
    transition: transform var(--dur-normal) var(--ease-spring),
        box-shadow var(--dur-normal) var(--ease-out);
}

.cost-rail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}


/* ─── 31. FOOTER ─────────────────────────────────────────────── */

.site-footer {
    width: 100%;
    margin-top: 80px;
    padding: 48px 0 32px;
    background: linear-gradient(180deg, #fff5ec, #ffeedd);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.12), rgba(249, 115, 22, 0.08), transparent);
}

.footer-inner {
    width: min(1180px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 8px;
}

.footer-brand-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: var(--fs-sm);
    color: #6f5b52;
    max-width: 380px;
    line-height: 1.5;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.15);
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.footer-links a {
    color: #7d6558;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    width: min(1180px, 92vw);
    margin: 24px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.footer-disclaimer {
    font-size: var(--fs-xs);
    color: #8f786c;
    line-height: 1.4;
    max-width: 600px;
}

.footer-copyright {
    font-size: var(--fs-xs);
    color: #8f786c;
}

/* Footer dark mode */
.dark .site-footer {
    background: linear-gradient(180deg, var(--dm-surface), var(--dm-bg));
    border-top-color: var(--dm-border);
}

.dark .site-footer::before {
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.12), rgba(52, 211, 153, 0.06), transparent);
}

.dark .footer-brand-name {
    background: linear-gradient(135deg, #34d399, #4ade80);
    -webkit-background-clip: text;
    background-clip: text;
}

.dark .footer-tagline {
    color: var(--dm-text-muted);
}

.dark .footer-badge {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.dark .footer-links a {
    color: var(--dm-text-muted);
}

.dark .footer-links a:hover {
    color: #4ade80;
}

.dark .footer-bottom {
    border-top-color: var(--dm-border);
}

.dark .footer-disclaimer,
.dark .footer-copyright {
    color: var(--dm-text-muted);
}


/* ─── 32. DARK MODE TRANSITION FOR BORDERS ───────────────────── */

.breed-intro,
.stage-card,
.cost-rail,
.insurance-form,
.insurance-result,
.species-cluster,
.pet-card,
.risk-item,
.snapshot-item,
.budget-panel {
    transition-property: transform, box-shadow, border-color, background-color, background;
    transition-duration: var(--dur-normal), var(--dur-normal), 0.3s, 0.3s, 0.3s;
    transition-timing-function: var(--ease-spring), var(--ease-out), ease, ease, ease;
}


/* ─── 33. CONTENT LINE-HEIGHT FOR DENSE SECTIONS ─────────────── */

.insurance-form label,
.insurance-form .field-hint,
.result-support,
.plan-design-lead,
.medical-load-lead,
.exotic-funding-lead,
.coverage-availability-summary {
    line-height: 1.65;
}


/* ─── 34. MOBILE TOUCH REFINEMENTS ───────────────────────────── */

@media (max-width: 640px) {
    input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
    }

    /* Reduce section spacing on mobile */
    .journey,
    .insurance {
        margin-top: 40px;
    }

    .journey-header {
        margin-top: 20px;
    }

    /* Tighter card padding on mobile */
    .breed-intro {
        padding: 14px;
    }

    .stage-card {
        padding: 14px;
    }

    /* Snapshot strip: 2 columns on small screens */
    .snapshot-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Stage thumbnail images: less tall in single-column */
    .intro-stage-thumb img {
        aspect-ratio: 4 / 5;
    }

    /* Topbar: smaller buttons for mobile */
    .topbar-actions {
        gap: 6px;
    }

    .topbar-btn,
    .dark-toggle {
        font-size: 0.74rem;
        padding: 6px 10px;
    }

    /* Filter chips: smaller for mobile */
    .chip {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    /* Smaller section headers */
    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.15rem;
    }

    /* Footer mobile stacking */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .site-footer {
        margin-top: 40px;
        padding: 32px 0 24px;
    }

    /* Reduce floating paw visibility on mobile */
    .entry::before,
    .entry::after {
        font-size: 1.6rem;
        opacity: 0.04;
    }

    /* Breed-intro spacing */
    .intro-grid {
        grid-template-columns: 1fr;
    }

    /* Insurance form tighter */
    .plan-design,
    .analytics-config {
        padding: 8px;
    }

    /* Budget circles smaller on mobile */
    .budget-compare-grid {
        grid-template-columns: 1fr;
    }

    /* Hero CTA: ensure readable on small screens */
    .hero-cta {
        font-size: 0.95rem;
        padding: 14px 24px;
    }

    /* Species cluster tighter */
    .species-cluster {
        padding: 10px;
    }

    /* Scroll progress bar slightly thinner on mobile */
    .scroll-progress {
        height: 3px;
    }
}


/* ─── 35. REDUCED MOTION OVERRIDES FOR NEW ANIMATIONS ────────── */

@media (prefers-reduced-motion: reduce) {

    .entry::before,
    .entry::after {
        animation: none;
    }

    .hero-cta {
        animation: none;
    }

    .intro-stage-empty::before {
        animation: none;
    }

    .stage-card {
        transition: none;
    }

    .breed-intro,
    .cost-rail {
        transition: none;
    }
}

.reduce-motion .entry::before,
.reduce-motion .entry::after {
    animation: none;
}

.reduce-motion .hero-cta {
    animation: none;
}

.reduce-motion .intro-stage-empty::before {
    animation: none;
}