/* =====================================================================
   Pet AI — Brand Refresh
   Drop-in override for styles.css. Load AFTER styles.css.

   Changes:
   - Indigo (#6366F1) → Forest green (#1F4D3D) brand palette
   - Kills the purple gradient on hero heading
   - Restyles .feature-icon and .visual-card containers for SVG icons
   - Adds Fraunces display font for h1/h2
   - Restyles testimonial avatars (now monogram circles)
   - Tightens pricing trial badge
   - FIX: forces light text palette even when OS is in dark mode
     (root styles.css has a prefers-color-scheme: dark block that
     flipped --text to near-white, making everything invisible on
     the new cream background)
   ===================================================================== */

/* ---------- Brand color tokens ---------- */
:root {
    --brand-primary: #1F4D3D; /* deep forest */
    --brand-primary-hover: #163B2E;
    --brand-primary-soft: #E8F0EB; /* pale tint for icon backgrounds */
    --brand-primary-softer: #F2F6F3;
    --brand-accent: #C97B5F; /* warm clay (use sparingly) */
    --brand-surface: #EFF2EE; /* barely-there sage */
    --brand-surface-alt: #E4EAE3; /* slightly deeper sage for banded sections */
    --brand-text: #1A1F1C;
    --brand-text-muted: #5C6B62;
    --brand-border: #E5E1D6;
    --brand-success: #2D7A5F;
    --brand-warning: #B8762A;
    --brand-info: #2B5F7A;
}

    /* ---------------------------------------------------------------------
   CRITICAL FIX: force light-mode text palette regardless of OS setting
   styles.css has a @media (prefers-color-scheme: dark) block that
   redefined --text to #F9FAFB (near-white). On the new cream
   background that makes the hero h1, section headers, feature card
   titles/descriptions, and most body copy invisible. We pin the
   tokens back to dark values so the site renders the same way for
   every visitor regardless of their OS dark-mode preference.
   --------------------------------------------------------------------- */
    :root,
    :root[data-theme],
    html {
        --bg: var(--brand-surface) !important;
        --surface: #F7F9F6 !important;
        --border: var(--brand-border) !important;
        --text: var(--brand-text) !important;
        --text-secondary: var(--brand-text-muted) !important;
        --text-muted: #8A9690 !important;
    }

@media (prefers-color-scheme: dark) {
    :root {
        --bg: var(--brand-surface) !important;
        --surface: #F7F9F6 !important;
        --border: var(--brand-border) !important;
        --text: var(--brand-text) !important;
        --text-secondary: var(--brand-text-muted) !important;
        --text-muted: #8A9690 !important;
    }
}

/* Hard-set color on the body and all the elements that were going
   white. Belt-and-suspenders so even if a stale cached stylesheet
   gets loaded, the visible text isn't blank. */
body,
.hero-title,
.section-header h2,
.section-header p,
.feature-card h3,
.feature-card p,
.use-case-card h3,
.use-case-card p,
.differentiator-card h3,
.differentiator-card p,
.pricing-card,
.faq-item summary,
.faq-item p,
.prose,
.prose p,
.prose li,
.contact-card h2,
.contact-card p {
    color: var(--brand-text) !important;
}

.hero-subtitle,
.page-hero-subtitle,
.section-header p,
.feature-card p,
.use-case-card p,
.differentiator-card p,
.pricing-desc {
    color: var(--brand-text-muted) !important;
}

/* Stat banner — was white-on-purple, now needs dark text on cream */
.stat-banner,
.stat-banner h2,
.stat-text strong {
    color: var(--brand-text) !important;
}

.stat-text span {
    color: var(--brand-text-muted) !important;
}

/* ---------- Override existing indigo references ---------- */
/* Primary buttons */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #fff !important;
}

    .btn-primary:hover,
    a.btn-primary:hover,
    button.btn-primary:hover {
        background-color: var(--brand-primary-hover) !important;
        border-color: var(--brand-primary-hover) !important;
    }

/* Secondary buttons — outline in brand color */
.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

    .btn-secondary:hover {
        background-color: var(--brand-primary-soft) !important;
    }

/* Links inside prose */
.prose a,
.page-hero a:not(.btn) {
    color: var(--brand-primary);
}

/* Nav active link */
.nav-menu a.active {
    color: var(--brand-primary) !important;
}

/* Hero badge dot */
.badge-dot {
    background-color: var(--brand-primary) !important;
}

.hero-badge {
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    border-color: transparent !important;
}

/* Eyebrow labels */
.eyebrow {
    color: var(--brand-primary) !important;
}

/* ---------- KILL THE GRADIENT TEXT ---------- */
.gradient-text {
    background: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: var(--brand-primary) !important;
    color: var(--brand-primary) !important;
}

/* Soften any hero background blob/gradient */
.hero-bg {
    background: radial-gradient(ellipse at 80% 20%, rgba(31, 77, 61, 0.06) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(201, 123, 95, 0.04) 0%, transparent 50%) !important;
}

/* ---------- Display typography ---------- */
/* Fraunces for headings — warm, modern serif with optical sizing */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&display=swap');

h1, h2,
.hero-title,
.page-hero h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif !important;
    font-optical-sizing: auto;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.hero-title {
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Body and UI text stay in your existing font stack — no change */

/* ---------- Feature icons (was emoji, now SVG containers) ---------- */
/* Unify all feature-icon variants into one clean container */
.feature-icon,
.feature-icon-primary,
.feature-icon-secondary,
.feature-icon-success,
.feature-icon-warning,
.feature-icon-accent {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.25rem !important;
    font-size: 0 !important; /* kill any residual emoji */
}

    .feature-icon svg {
        width: 26px;
        height: 26px;
        stroke: var(--brand-primary);
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Larger visual cards on features.html — keep distinctive but consistent */
.visual-card,
.visual-card-primary,
.visual-card-secondary,
.visual-card-success,
.visual-card-warning,
.visual-card-accent {
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    border-radius: 24px !important;
    aspect-ratio: 1 / 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    position: relative;
    overflow: hidden;
}

    .visual-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 30%, rgba(31, 77, 61, 0.08), transparent 60%);
        pointer-events: none;
    }

    .visual-card svg {
        width: 96px;
        height: 96px;
        stroke: var(--brand-primary);
        stroke-width: 1.5;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        position: relative;
        z-index: 1;
    }

/* ---------- About page differentiator icons ---------- */
.differentiator-card .di-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background-color: var(--brand-primary-soft) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    font-size: 0 !important;
}

    .differentiator-card .di-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--brand-primary);
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ---------- Use case icons (homepage) ---------- */
.use-case-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    background-color: var(--brand-primary-soft) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    font-size: 0 !important;
}

    .use-case-icon svg {
        width: 22px;
        height: 22px;
        stroke: var(--brand-primary);
        stroke-width: 2;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.use-case-link {
    color: var(--brand-primary) !important;
}

/* ---------- Step numbers ---------- */
.step-number {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

/* ---------- Stat banner ---------- */
.stat-number {
    color: var(--brand-primary) !important;
}

.stat-banner {
    background: var(--brand-surface-alt) !important; /* override gradient shorthand */
    color: var(--brand-text) !important;
}

.stat-text span {
    color: var(--brand-text-muted) !important; /* was rgba(white,0.85) for old purple bg */
}

/* ---------- Testimonial avatars (was pet emoji, now monogram) ---------- */
.testimonial-avatar {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    font-family: 'Fraunces', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    letter-spacing: 0;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
}

.testimonial-stars {
    color: var(--brand-accent) !important;
}

/* ---------- Pricing card featured ---------- */
.pricing-featured {
    border-color: var(--brand-primary) !important;
}

.pricing-badge {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
}

.pricing-price {
    color: var(--brand-primary) !important;
}

/* Trial badge — was '🎉 Try Free for 7 days...' — make subtle */
.trial-badge {
    display: inline-block;
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    margin-top: 1.25rem;
}

/* ---------- FAQ ---------- */
.faq-item summary {
    font-weight: 600;
}

.faq-item[open] summary {
    color: var(--brand-primary);
}

/* ---------- Footer ---------- */
.footer {
    background-color: var(--brand-surface-alt) !important;
}

    .footer a:hover {
        color: var(--brand-primary) !important;
    }

.social-icon:hover {
    background-color: var(--brand-primary-soft) !important;
    color: var(--brand-primary) !important;
}

/* ---------- Final CTA card ---------- */
.cta-card {
    background-color: var(--brand-primary) !important;
    color: #fff !important;
    border-radius: 24px !important;
}

    .cta-card h2 {
        color: #fff !important;
    }

    .cta-card p {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .cta-card .share-cta p {
        color: rgba(255, 255, 255, 0.75) !important;
    }

    .cta-card .share-btn {
        background-color: rgba(255, 255, 255, 0.12) !important;
        color: #fff !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }

        .cta-card .share-btn:hover {
            background-color: rgba(255, 255, 255, 0.18) !important;
        }

    /* App Store button stays dark even on dark CTA */
    .cta-card .btn-app-store {
        background-color: #fff !important;
        color: #000 !important;
    }

        .cta-card .btn-app-store:hover {
            background-color: #f4f4f4 !important;
        }

/* ---------- Comparison table (features.html) ---------- */
.comparison .check-yes {
    color: var(--brand-primary) !important;
}

.comparison .check-no {
    color: #C4BFB3 !important;
}

.comparison-header {
    background-color: var(--brand-surface-alt) !important;
}

/* ---------- About / privacy section accents ---------- */
.privacy-section,
.about-mission {
    background-color: var(--brand-surface-alt);
    border-radius: 24px;
    padding: clamp(2rem, 5vw, 4rem);
}

/* ---------- Free trial link in hero — removed, but if it remains: ---------- */
.hero-free-trial {
    display: none;
}

/* ---------- General refinements ---------- */
body {
    background-color: var(--brand-surface) !important;
    background-image: none !important; /* kill the purple gradient-mesh */
    color: var(--brand-text);
}

.navbar {
    background-color: rgba(239, 242, 238, 0.92) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--brand-border) !important;
}

.feature-card {
    border-color: var(--brand-border) !important;
    background-color: #F7F9F6 !important;
}

.testimonial-card,
.use-case-card,
.differentiator-card,
.pricing-card,
.blog-card,
.contact-card {
    border-color: var(--brand-border) !important;
    background-color: #F7F9F6 !important;
}
