/* =====================================================================
   De-OrganicMaster Wellness Centre — Design System (main.css)
   Aesthetic: refined botanical institutional — deep greens, gold leaf,
   warm paper, generous space. Brand fonts: Montserrat + Inter (+ Fraunces
   serif for editorial accents).
   ===================================================================== */

/* ----------------------------- Tokens ------------------------------ */
:root {
    /* Brand core (Section 0) */
    --green:        #1A5C2A;
    --gold:         #B8972A;
    --white:        #FFFFFF;
    --ink:          #1A1A1A;

    /* Extended greens for depth */
    --green-900:    #0C2E14;
    --green-800:    #113F1C;
    --green-700:    #1A5C2A;
    --green-600:    #237536;
    --green-400:    #5fa371;
    --green-200:    #b9d6c1;
    --green-50:     #eaf3ec;

    /* Gold scale */
    --gold-700:     #8a701f;
    --gold-500:     #B8972A;
    --gold-300:     #d8be72;
    --gold-100:     #f2e8c8;

    /* Neutrals / paper */
    --paper:        #FBF9F4;   /* warm off-white page background */
    --paper-2:      #F4F1E8;   /* alt section band */
    --card:         #FFFFFF;
    --line:         #e6e2d6;   /* hairline borders */
    --ink-soft:     #3a423a;
    --muted:        #6b726a;

    /* Typography */
    --font-head: 'Montserrat', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-serif:'Fraunces', Georgia, serif;

    /* Type scale (1.250 major third, 16px base) */
    --t-xs:   .75rem;
    --t-sm:   .875rem;
    --t-base: 1rem;
    --t-md:   1.125rem;
    --t-lg:   1.25rem;
    --t-xl:   1.563rem;
    --t-2xl:  1.953rem;
    --t-3xl:  2.441rem;
    --t-4xl:  3.052rem;
    --t-5xl:  3.815rem;

    /* Spacing (4px base) */
    --s-1: .25rem;  --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
    --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;   --s-8: 4rem;
    --s-9: 6rem;    --s-10: 8rem;

    /* Radius / shadow / z / motion */
    --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
    --shadow-sm: 0 1px 3px rgba(12,46,20,.08);
    --shadow-md: 0 10px 30px rgba(12,46,20,.10);
    --shadow-lg: 0 24px 60px rgba(12,46,20,.16);
    --z-header: 100; --z-float: 200; --z-bar: 250; --z-modal: 400;
    --ease: cubic-bezier(.4,0,.2,1);
    --speed: .28s;
    --container: 1180px;
}

/* ----------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: var(--t-base);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    max-width: 100vw;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--gold-700); }
h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; color: var(--green-900); }
ul { padding-left: 1.1rem; }

/* --------------------------- Layout -------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-9); }
.section--tight { padding-block: var(--s-7); }
.section--paper2 { background: var(--paper-2); }
.section--green { background: var(--green-800); color: #eaf3ec; }
.section--green h1,.section--green h2,.section--green h3 { color: #fff; }

.grid-2 { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-auto { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* --------------------------- Utilities ----------------------------- */
.eyebrow {
    font-family: var(--font-head); font-weight: 700; font-size: var(--t-sm);
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700);
    display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.section--green .eyebrow { color: var(--gold-300); }
.lead { font-size: var(--t-md); color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center .eyebrow { margin-inline: auto; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); font-optical-sizing: auto; }
.mt-2{margin-top:var(--s-2)}.mt-3{margin-top:var(--s-3)}.mt-4{margin-top:var(--s-4)}
.mt-5{margin-top:var(--s-5)}.mt-6{margin-top:var(--s-6)}.mb-4{margin-bottom:var(--s-4)}
.maxw-prose{max-width:65ch}

.section-title { font-size: var(--t-3xl); margin-top: var(--s-3); }
@media (max-width:768px){ .section-title{ font-size: var(--t-2xl);} }

/* --------------------------- Buttons ------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    font-family: var(--font-head); font-weight: 600; font-size: var(--t-base);
    padding: .85rem 1.5rem; border-radius: var(--r-pill); border: 2px solid transparent;
    cursor: pointer; transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease);
    text-align: center; line-height: 1; min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-500); color: var(--green-900); box-shadow: var(--shadow-sm); }
.btn-gold:hover { background: var(--gold-300); color: var(--green-900); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--green-700); border-color: var(--green-200); }
.btn-outline:hover { border-color: var(--green-700); color: var(--green-700); }
.section--green .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.section--green .btn-outline:hover { border-color: #fff; color: #fff; }
.page-hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.page-hero .btn-outline:hover { border-color: #fff; color: #fff; }
.btn-lg { font-size: var(--t-md); padding: 1rem 1.9rem; }
.btn-block { width: 100%; }

/* --------------------------- Cards --------------------------------- */
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
    padding: var(--s-6); box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-200); }

/* ----------------- Simple stacked forms (Affiliates, Contact, Practitioners apply) ----------------- */
.order-form { display: flex; flex-direction: column; gap: 1.1rem; }
.order-form label {
    display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink, #1a1a1a);
    margin-bottom: 0.4rem;
}
.order-form input,
.order-form select {
    display: block; width: 100%; padding: 0.7rem 0.9rem;
    border: 2px solid var(--line); border-radius: 8px;
    font-size: 0.96rem; font-family: inherit; background: #fff; color: inherit;
    transition: border-color var(--speed, .2s) var(--ease, ease);
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
    outline: none; border-color: var(--green-600, #1a5c2a);
}
.order-form .error {
    background: #fdecea; border: 1px solid #f0b0a8; border-radius: 8px;
    padding: 0.7rem 0.9rem; color: #b3261e; font-size: 0.9rem;
}
@media (min-width: 640px) {
    .order-form--2col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 1.2rem; }
    .order-form--2col > label, .order-form--2col > .order-form__full { grid-column: 1 / -1; }
}
.card__icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--green-50); color: var(--green-700); font-size: 1.6rem; margin-bottom: var(--s-4);
}
.card__title { font-size: var(--t-lg); }
.card__text { color: var(--ink-soft); font-size: var(--t-sm); margin-top: var(--s-2); }
.card__price { font-family: var(--font-head); font-weight: 800; color: var(--green-800); font-size: 1.3rem; margin-top: .5rem; }

.badge {
    display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head);
    font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: .35rem .7rem; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-700);
}
.badge--green { background: var(--green-50); color: var(--green-700); }
.badge--best { background: var(--gold-500); color: var(--green-900); }

/* Trust ribbon */
.ribbon {
    display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: center; align-items: center;
    background: var(--green-50); border: 1px solid var(--green-200); border-radius: var(--r-pill);
    padding: .8rem 1.4rem; font-family: var(--font-head); font-weight: 600; font-size: var(--t-sm); color: var(--green-700);
}
.ribbon span { display: inline-flex; align-items: center; gap: .45rem; }

/* Stat badges */
.stats { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: var(--t-2xl); color: var(--gold-300); line-height: 1; }
.stat__label { font-size: var(--t-sm); opacity: .85; margin-top: .2rem; }

/* Star strip */
.stars { color: var(--gold-500); letter-spacing: 2px; font-size: var(--t-md); }

/* ------------------------- Header / Nav ---------------------------- */
.site-header {
    position: sticky; top: 0; z-index: var(--z-header);
    background: rgba(251,249,244,.85); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-3); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 800; color: var(--green-900); font-size: var(--t-md); letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; }
.nav__links { display: flex; align-items: center; gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.nav__links a { font-family: var(--font-head); font-weight: 500; font-size: var(--t-sm); color: var(--ink-soft); }
.nav__links a:hover { color: var(--green-700); }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }
.nav__icons { display: flex; align-items: center; gap: var(--s-2); }
.nav__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--ink-soft);
    border-radius: var(--r-sm);
    transition: color var(--speed), background var(--speed);
    position: relative;
}
.nav__icon-btn:hover { color: var(--green-700); background: var(--line); }
.nav__icon-btn svg { display: block; width: 20px; height: 20px !important; flex-shrink: 0; overflow: visible; }
.nav__badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 16px; height: 16px;
    background: var(--gold-500, #B8972A);
    color: #0C2E14;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    padding: 0 3px;
}
/* Icon-only links handled by .nav__icon-btn — see above */
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: var(--speed); }

@media (max-width: 1024px) {
    .nav__links, .nav__cta .btn-outline { display: none; }
    .nav__toggle { display: block; }
    .nav__links.is-open {
        display: flex; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: flex-start; gap: var(--s-4);
        background: var(--paper); padding: var(--s-5); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    }
}

/* ----------------------------- Hero -------------------------------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(120% 80% at 80% -10%, rgba(184,151,42,.18), transparent 60%),
        linear-gradient(160deg, var(--green-900), var(--green-800) 60%, var(--green-700));
    color: #eef5ef;
}
.hero::after { /* subtle botanical line motif */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.5) 1px, transparent 0);
    background-size: 32px 32px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.hero__inner { position: relative; z-index: 1; padding-block: var(--s-10); }
.hero h1 { color: #fff !important; font-size: var(--t-5xl); max-width: 16ch; }
.hero p { color: #dbe7dd; font-size: var(--t-md); max-width: 52ch; margin-top: var(--s-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-6); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); }
@media (max-width: 768px){ .hero h1{ font-size: var(--t-3xl);} .hero__inner{ padding-block: var(--s-8);} }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--green-700), var(--green-600)); color: #fff; border-radius: var(--r-lg); padding: var(--s-8); text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; font-size: var(--t-3xl); }
.cta-band p { color: #dcebdf; opacity: .95; margin: var(--s-3) auto 0; max-width: 54ch; }

/* Triple CTA */
.triple { display: grid; gap: var(--s-4); grid-template-columns: repeat(3,minmax(0,1fr)); }
@media (max-width:768px){ .triple{ grid-template-columns: minmax(0,1fr); } }

/* Testimonial card */
.tcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.tcard__quote { font-family: var(--font-serif); font-size: var(--t-lg); line-height: 1.45; color: var(--green-900); }
.tcard__person { display: flex; align-items: center; gap: .8rem; margin-top: var(--s-5); }
.tcard__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100,#dbece0); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--green-700); }
.tcard__name { font-family: var(--font-head); font-weight: 600; font-size: var(--t-sm); }
.tcard__meta { font-size: var(--t-xs); color: var(--muted); }

/* Pricing options (product page) */
.price-opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); border: 2px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); background: var(--card); transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease); cursor: pointer; }
.price-opt:hover { border-color: var(--green-400); }
.price-opt--best { border-color: var(--gold-500); box-shadow: var(--shadow-sm); position: relative; }
.price-opt__price { font-family: var(--font-head); font-weight: 800; font-size: var(--t-2xl); color: var(--green-800); }
.price-opt__name { font-size: var(--t-sm); color: var(--ink-soft); }

/* Accordion (FAQ) */
.acc { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--card); }
.acc + .acc { margin-top: var(--s-3); }
.acc summary { cursor: pointer; list-style: none; padding: var(--s-5); font-family: var(--font-head); font-weight: 600; color: var(--green-900); display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 1.4rem; color: var(--gold-700); transition: transform var(--speed) var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc__body { padding: 0 var(--s-5) var(--s-5); color: var(--ink-soft); }

/* numbered step list */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-4); }
.steps li { display: flex; gap: var(--s-4); }
.steps__num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--green-700); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }

/* Page hero (interior) */
.page-hero { background: linear-gradient(160deg, var(--green-800), var(--green-700)); color: #eef5ef; padding-block: var(--s-9); }
.page-hero h1 { color: #fff !important; font-size: var(--t-4xl); max-width: 18ch; }
.page-hero p { color: #dbe7dd !important; margin-top: var(--s-4); max-width: 56ch; }
@media (max-width:768px){ .page-hero h1{ font-size: var(--t-2xl);} }

/* Disclaimer note */
.disclaimer { font-size: var(--t-sm); color: var(--muted); border-left: 3px solid var(--gold-300); padding: var(--s-3) var(--s-4); background: var(--paper-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* --------------------------- Footer -------------------------------- */
.site-footer { background: var(--green-900); color: #cdddd0; padding-block: var(--s-8) var(--s-6); margin-top: var(--s-9); }
.site-footer a { color: #cdddd0; font-size: var(--t-sm); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: var(--s-6); }
.footer-grid h4 { color: #fff; font-size: var(--t-sm); letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-6); padding-top: var(--s-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-3); font-size: var(--t-xs); color: #9fb3a4; }
@media (max-width:768px){ .footer-grid{ grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }

/* ------------------- Conversion chrome (global) -------------------- */
/* WhatsApp float */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: var(--z-float);
    width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform var(--speed) var(--ease);
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 768px){ .wa-float{ bottom: 84px; } }  /* clear sticky bar */

/* Sticky mobile CTA bar */
.sticky-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
    gap: var(--s-3); padding: .6rem .8rem; background: rgba(251,249,244,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.06);
}
.sticky-cta .btn { flex: 1; padding: .7rem; font-size: var(--t-sm); }
@media (max-width: 768px){ .sticky-cta{ display: flex; } body{ padding-bottom: 72px; } }

/* Cookie consent */
.cookie {
    position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: var(--z-modal);
    background: var(--green-900); color: #e7efe8; border-radius: var(--r-md); padding: var(--s-4) var(--s-5);
    display: flex; align-items: center; gap: var(--s-4); box-shadow: var(--shadow-lg); max-width: 720px; margin-inline: auto;
}
.cookie p { font-size: var(--t-sm); margin: 0; }
.cookie a { color: var(--gold-300); text-decoration: underline; }
@media (max-width:768px){ .cookie{ flex-direction: column; align-items: stretch; bottom: 80px; } }

/* Exit-intent modal */
.modal-overlay { position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(12,46,20,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: var(--s-5); }
.modal-overlay.is-open { display: flex; animation: fade .25s var(--ease); }
.modal { background: var(--paper); border-radius: var(--r-lg); max-width: 460px; width: 100%; padding: var(--s-8) var(--s-7); text-align: center; box-shadow: var(--shadow-lg); position: relative; border-top: 5px solid var(--gold-500); }
.modal h3 { font-size: var(--t-2xl); }
.modal p { color: var(--ink-soft); margin: var(--s-3) 0 var(--s-5); }
.modal__close { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.5rem; color: var(--muted); cursor: pointer; line-height: 1; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------- Reveal on scroll ------------------------ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Cascade grid items in rather than have them all pop at once */
.grid-2 .reveal:nth-child(2), .grid-3 .reveal:nth-child(2), .grid-4 .reveal:nth-child(2), .grid-auto .reveal:nth-child(2) { transition-delay: .08s; }
.grid-3 .reveal:nth-child(3), .grid-4 .reveal:nth-child(3), .grid-auto .reveal:nth-child(3) { transition-delay: .16s; }
.grid-4 .reveal:nth-child(4), .grid-auto .reveal:nth-child(4) { transition-delay: .24s; }
.grid-auto .reveal:nth-child(5) { transition-delay: .32s; }
.grid-auto .reveal:nth-child(6) { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover { transform: none; }
}

/* ----------------------- Loading skeleton -------------------------- */
.skeleton { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r-sm); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Responsive grid collapse */
@media (max-width: 1024px){ .grid-4{ grid-template-columns: repeat(2,minmax(0,1fr));} }
@media (max-width: 768px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: minmax(0,1fr); } }

/* Footer light variant (Admin → Settings → footer_style: light) — Starter theme */
.site-footer[data-footer="light"] { background: #eef4ef; color: #4a584e; border-top: 1px solid #dbe6dd; }
.site-footer[data-footer="light"] a { color: #4a584e; }
.site-footer[data-footer="light"] a:hover { color: #1A5C2A; }
.site-footer[data-footer="light"] .footer-grid h4 { color: #0C2E14; }
.site-footer[data-footer="light"] .footer-bottom { border-top-color: #dbe6dd; color: #7b8a80; }
.site-footer[data-footer="light"] .brand, .site-footer[data-footer="light"] .disclaimer { color: #4a584e; }

/* =====================================================================
   CROSS-THEME DARK MODE  (toggled via the floating button; persists in
   localStorage as `dom-mode`). Activated by html[data-mode="dark"].
   Brand greens & gold are preserved; only neutrals (bg/surface/ink/line)
   are inverted. Works for Starter, Pro and Aurora.
   ===================================================================== */
html[data-mode="dark"] { color-scheme: dark; }

/* ---- Floating toggle button (injected by app.js, shown on every theme) ---- */
.dom-mode-fab {
  position: fixed; z-index: 90; left: 18px; bottom: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(12,46,20,.12); background: #fff; color: #0C2E14;
  box-shadow: 0 6px 20px rgba(12,46,20,.18); cursor: pointer;
  display: grid; place-items: center;
  transition: transform .16s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.dom-mode-fab:hover { transform: translateY(-2px); }
.dom-mode-fab:active { transform: translateY(0) scale(.96); }
.dom-mode-fab__ic { width: 21px; height: 21px; }
@media (max-width: 879.98px) {
  .dom-mode-fab { bottom: calc(86px + env(safe-area-inset-bottom)); left: 14px; width: 42px; height: 42px; }
}
html[data-mode="dark"] .dom-mode-fab {
  background: #14241B; color: #E9F2EB; border-color: rgba(255,255,255,.16);
  box-shadow: 0 6px 22px rgba(0,0,0,.55);
}

/* ---- Dark-mode logo swap: use the white logo variant (site_logo_white)
   wherever an uploaded logo image is shown, since headers/footers that turn
   dark in dark mode leave the green wordmark with poor contrast. Markup
   renders both images; only one is visible at a time. If no white logo has
   been uploaded, .dom-logo-dark is simply absent and the regular logo stays
   shown in both modes (no broken/missing image). ---- */
.dom-logo-dark { display: none !important; }
html[data-mode="dark"] .dom-logo-light { display: none !important; }
html[data-mode="dark"] .dom-logo-dark { display: inline-block !important; }

/* ---- STARTER (no data-theme) dark tokens ---- */
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) {
  --paper:    #0A120D;
  --paper-2:  #0E1812;
  --card:     #14241B;
  --line:     #213729;
  --ink:      #E9F2EB;
  --ink-soft: #C4D4C9;
  --muted:    #8FA597;
  --white:    #E9F2EB; /* used as on-surface text in a few starter rules */
}
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) { background: var(--paper); }
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) input,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) select,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) textarea {
  background: var(--card); color: var(--ink); border-color: var(--line);
}

/* ---- PRO dark tokens ---- */
html[data-mode="dark"] body[data-theme="pro"] {
  --p-bg:      #0A120D;
  --p-card:    #14241B;
  --p-card-2:  #0E1812;
  --p-surface: #14241B;
  --p-mint-2:  #16271C;
  --p-coral-bg:#2A2410;
  --p-ink:     #E9F2EB;
  --p-ink-2:   #AEC2B4;
  --p-muted:   #8FA597;
  --p-line:    #213729;
  --p-line-2:  #2C4636;
}
html[data-mode="dark"] body[data-theme="pro"] { background: var(--p-bg); }
html[data-mode="dark"] body[data-theme="pro"] input,
html[data-mode="dark"] body[data-theme="pro"] select,
html[data-mode="dark"] body[data-theme="pro"] textarea { background: var(--p-card) !important; color: var(--p-ink); }
html[data-mode="dark"] body[data-theme="pro"] .timeline__when { background: var(--p-card); }

/* ---- AURORA dark tokens ---- */
html[data-mode="dark"] body[data-theme="aurora"] {
  --au-bg:        #0A120D;
  --au-bg-2:      #0E1812;
  --au-surface:   #14241B;
  --au-surface-2: #0F1B14;
  --au-ink:       #E9F2EB;
  --au-ink-2:     #AEC2B4;
  --au-ink-3:     #7E958A;
  --au-line:      #213729;
  --au-line-2:    #2C4636;
  /* generic tokens — shared main.css components (.card, forms, buttons) on aurora pages */
  --paper:    #0A120D;
  --paper-2:  #0E1812;
  --card:     #14241B;
  --line:     #213729;
  --ink:      #E9F2EB;
  --ink-soft: #C4D4C9;
  --muted:    #8FA597;
}
/* Aurora glass header/tabbar read better with a touch more opacity in dark */
html[data-mode="dark"] body[data-theme="aurora"] .au-header { background: color-mix(in srgb, var(--au-surface) 88%, transparent); }
html[data-mode="dark"] body[data-theme="aurora"] .au-tabbar { background: color-mix(in srgb, var(--au-surface) 92%, transparent); }

/* =====================================================================
   DARK MODE — TEXT CONTRAST FIXES
   Brand-dark colors used for TEXT (headings, links, eyebrows, pills,
   prices) are re-pointed to light/bright so they stay readable on the
   dark canvas. Brand-dark BACKGROUNDS (buttons, bands, gradients) are
   left untouched, since they already carry light text.
   Accent text colour: #6FCB87 (bright leaf green).
   ===================================================================== */

/* ---------- AURORA ---------- */
/* --au-pine is used ONLY for text (gradients use literal hex) → safe to flip */
html[data-mode="dark"] body[data-theme="aurora"] { --au-pine: #EAF3EC; }
/* emerald is also a button-gradient colour, so override emerald-as-TEXT explicitly */
html[data-mode="dark"] body[data-theme="aurora"] a,
html[data-mode="dark"] body[data-theme="aurora"] .au-eyebrow,
html[data-mode="dark"] body[data-theme="aurora"] .au-crumb a,
html[data-mode="dark"] body[data-theme="aurora"] .au-nav a.is-active,
html[data-mode="dark"] body[data-theme="aurora"] .au-tab.is-active,
html[data-mode="dark"] body[data-theme="aurora"] .au-tab--accent.is-active,
html[data-mode="dark"] body[data-theme="aurora"] .au-drawer__panel > a.is-active,
html[data-mode="dark"] body[data-theme="aurora"] .au-pill:not(.au-pill--gold):not(.au-pill--ok),
html[data-mode="dark"] body[data-theme="aurora"] .au-card__ic,
html[data-mode="dark"] body[data-theme="aurora"] .au-acc > summary::after,
html[data-mode="dark"] body[data-theme="aurora"] .quiz__count,
html[data-mode="dark"] body[data-theme="aurora"] .au-prose a,
html[data-mode="dark"] body[data-theme="aurora"] [style*="color:var(--au-emerald)"],
html[data-mode="dark"] body[data-theme="aurora"] [style*="color: var(--au-emerald)"] { color: #6FCB87; }
html[data-mode="dark"] body[data-theme="aurora"] .au-pill:not(.au-pill--gold):not(.au-pill--ok) { background: rgba(111,203,135,.13); border-color: rgba(111,203,135,.24); }
html[data-mode="dark"] body[data-theme="aurora"] .au-card__ic { background: rgba(111,203,135,.13); }
html[data-mode="dark"] body[data-theme="aurora"] a:hover { color: #8AD79E; }

/* Requested dark-mode contrast fixes */
/* Gold CTA: dark ink (#2A2208) → white so it reads on the dark canvas */
html[data-mode="dark"] body[data-theme="aurora"] .au-btn--gold,
html[data-mode="dark"] body[data-theme="aurora"] .au-btn--gold:hover { color: #ffffff; }
/* Headings (var(--au-pine)) → white so h1–h4 stay legible in dark mode */
html[data-mode="dark"] body[data-theme="aurora"] h1,
html[data-mode="dark"] body[data-theme="aurora"] h2,
html[data-mode="dark"] body[data-theme="aurora"] h3,
html[data-mode="dark"] body[data-theme="aurora"] h4 { color: #ffffff; }
/* Product price stays legible on the dark card surface */
html[data-mode="dark"] body[data-theme="aurora"] .card__price { color: #6FCB87; }

/* ---------- PRO ---------- */
/* --p-pine / --p-emerald are also backgrounds → override the TEXT users only */
html[data-mode="dark"] body[data-theme="pro"] h1,
html[data-mode="dark"] body[data-theme="pro"] h2,
html[data-mode="dark"] body[data-theme="pro"] h3,
html[data-mode="dark"] body[data-theme="pro"] h4,
html[data-mode="dark"] body[data-theme="pro"] .appbar__brand,
html[data-mode="dark"] body[data-theme="pro"] .tile__t,
html[data-mode="dark"] body[data-theme="pro"] .drawer__head span,
html[data-mode="dark"] body[data-theme="pro"] [style*="color:var(--p-pine)"],
html[data-mode="dark"] body[data-theme="pro"] [style*="color: var(--p-pine)"] { color: var(--p-ink); }
html[data-mode="dark"] body[data-theme="pro"] a:not([class]),
html[data-mode="dark"] body[data-theme="pro"] .tab.is-active,
html[data-mode="dark"] body[data-theme="pro"] .tab--accent span,
html[data-mode="dark"] body[data-theme="pro"] .psec__link,
html[data-mode="dark"] body[data-theme="pro"] .chip--accent,
html[data-mode="dark"] body[data-theme="pro"] .lrow__ic,
html[data-mode="dark"] body[data-theme="pro"] .pbtn--ghost,
html[data-mode="dark"] body[data-theme="pro"] .appbar__nav a:hover,
html[data-mode="dark"] body[data-theme="pro"] [style*="color:var(--p-emerald)"],
html[data-mode="dark"] body[data-theme="pro"] [style*="color: var(--p-emerald)"] { color: #6FCB87; }
html[data-mode="dark"] body[data-theme="pro"] .chip--accent { background: rgba(111,203,135,.13); }
html[data-mode="dark"] body[data-theme="pro"] .lrow__ic { background: rgba(111,203,135,.13); }

/* ---------- STARTER ---------- */
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) h1,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) h2,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) h3,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) h4,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .brand,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .tcard__quote,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .acc summary,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .price-opt__price,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color:var(--green-800)"],
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color:var(--green-900)"],
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color: var(--green-800)"],
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color: var(--green-900)"] { color: var(--ink); }
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) a:not([class]),
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .nav__links a:hover,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .badge--green,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .section-title,
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color:var(--green-700)"],
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) [style*="color: var(--green-700)"] { color: #6FCB87; }
html[data-mode="dark"] body:not([data-theme="pro"]):not([data-theme="aurora"]) .badge--green { background: rgba(111,203,135,.13); }
