/* ==========================================================================
   Liverlytics theme - matches the look of liverlytics.com
   (DM Sans, Liverlytics green, white header with uppercase navigation,
   charcoal footer, full-width hero carousel). Loaded after main.css.
   ========================================================================== */

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dmsans-latin-var.woff2") format("woff2");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #53ab3c;            /* logo / accent green used on liverlytics.com */
    --brand-dark: #3f8f2c;       /* button green */
    --primary: #2f7a24;          /* text links (>= 4.5:1) */
    --primary-hover: #25661b;
    --charcoal: #222222;
    --teal-950: #1b1b1b;         /* footer */
    --teal-900: #262b27;         /* dark panels */
    --teal-800: #323a33;
    --teal-700: #3f8f2c;
    --teal-100: #e4f1df;
    --green-50: #f0f8ec;
    --green-100: #dcefd4;
    --mint-50: #f6faf4;
    --gray-25: #fbfbfb;
    --gray-50: #f6f7f6;
    --gray-100: #eef0ee;
    --border: #e4e7e3;
    --muted: #5d6460;
    --text: #1d211e;
    --font-head: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .07);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
    --ring: 0 0 0 3px #fff, 0 0 0 5px var(--brand-dark);
    --header-h: 80px;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; }
.section-title { color: var(--brand-dark); }
.section--dark .section-title, .section--dark h2 { color: #fff; }

.eyebrow { color: var(--brand-dark); letter-spacing: .14em; font-size: .75rem; }
.eyebrow::before { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.section--dark .eyebrow { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn { border-radius: 6px; font-weight: 700; letter-spacing: .01em; }
.btn-primary { --btn-bg: var(--brand-dark); box-shadow: 0 8px 20px -8px rgba(63, 143, 44, .6); }
.btn-primary:hover { --btn-bg: var(--primary); }
.btn-ghost { border-color: #cfd6cd; }
.btn-ghost:hover { border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-light:hover { --btn-bg: var(--green-50); }

/* ---------- Header: white bar, uppercase nav, green active underline ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }
.brand__word { color: var(--text); font-weight: 700; }
.brand--light .brand__word { color: #fff; }
.nav__link {
    position: relative; border-radius: 0; padding: 10px 12px;
    font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #5b605c;
}
.nav__link:hover, .nav__item.is-open > .nav__link { background: transparent; color: var(--brand-dark); }
.nav__link.is-active { color: var(--brand-dark); }
.nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--brand); transform: scaleX(0); transition: transform .2s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__toggle::after { right: 30px; }
.nav__menu { border-radius: 10px; }
.nav__menu strong { text-transform: none; letter-spacing: 0; }
.site-header__cta { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.menu-btn { border-radius: 6px; }

/* ---------- Hero carousel ---------- */
.hero-slider { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--border); }
.hero-slider__track { display: grid; }
.hero-slide {
    grid-area: 1 / 1; position: relative; isolation: isolate;
    padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 9vw, 120px);
    opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s var(--ease), visibility 0s; }
/* Without JS only the first slide shows */
.hero-slider:not(.is-ready) .hero-slide:first-child { opacity: 1; visibility: visible; }
.hero-slider:not(.is-ready) .hero-slide:not(:first-child) { display: none; }

/* Per-slide backgrounds with the thin diagonal green lines used on liverlytics.com */
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(115deg,
        transparent 0 55%, rgba(83, 171, 60, .45) 55%, rgba(83, 171, 60, .45) calc(55% + 1px),
        transparent calc(55% + 1px) 63%, rgba(83, 171, 60, .22) 63%, rgba(83, 171, 60, .22) calc(63% + 1px),
        transparent calc(63% + 1px));
}
.hero-slide--1 { background: radial-gradient(800px 420px at 78% 45%, #eef7ea, transparent 70%), #fff; }
.hero-slide--2 { background: radial-gradient(700px 420px at 85% 30%, rgba(83, 171, 60, .16), transparent 65%), linear-gradient(180deg, #f6faf4, #fff); }
.hero-slide--3 { background: radial-gradient(700px 420px at 90% 60%, rgba(83, 171, 60, .12), transparent 65%), #f7f8f7; }

.hero-slide__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-slide__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-slide__sub {
    margin: 0 0 16px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-dark);
}
.hero-slide__title {
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.08; letter-spacing: -.03em; color: var(--text); margin-bottom: .35em;
}
.hero-slide__title em { font-style: normal; color: var(--brand); }
.hero-slide__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 560px; margin: 0; }
.hero-slide .btn-row { margin-top: 28px; }
.hero-slide .hero__trust { margin-top: 28px; }

/* Content entrance animation on the active slide */
.hero-slide__content > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slider.is-ready .hero-slide:not(.is-active) .hero-slide__content > * { opacity: 0; transform: translateY(16px); }
.hero-slide.is-active .hero-slide__content > :nth-child(2) { transition-delay: .1s; }
.hero-slide.is-active .hero-slide__content > :nth-child(3) { transition-delay: .2s; }
.hero-slide.is-active .hero-slide__content > :nth-child(n+4) { transition-delay: .3s; }

.hero-slide__media { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-slide__media--liver { flex-direction: column; }
.hero-slide__media--liver img { width: 100%; max-width: 640px; height: auto; mix-blend-mode: multiply; }
.hero-slide__labels { display: flex; justify-content: space-around; width: 100%; max-width: 640px; margin-top: 4px; }
.hero-slide__labels span {
    padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow);
    font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark);
}
.hero-slide__labels span:last-child { color: #a0461f; }
.hero-slide__media--phones { gap: 20px; align-items: flex-start; }
.hero-slide__media--phones .phone { width: min(220px, 40vw); }
.hero-slide__media--phones .phone:nth-child(2) { margin-top: 48px; }
.float-card--score { left: 0; bottom: 6%; width: 200px; animation: float 6s ease-in-out infinite; }
.hero-slide__media--photo img {
    width: 100%; max-width: 580px; height: auto; border-radius: 14px; border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
@media (max-width: 999px) {
    .hero-slide__media--phones .phone { width: min(170px, 40vw); }
}
@media (max-width: 520px) {
    .float-card--score { width: 150px; bottom: 0; }
    .hero-slide__labels span { font-size: .66rem; padding: 4px 10px; }
}

/* Controls */
.hero-slider__controls {
    position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3;
    display: flex; align-items: center; gap: 12px;
}
.hero-slider:not(.is-ready) .hero-slider__controls { display: none; }
.hero-slider__arrow, .hero-slider__pause {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid #d5dbd3; background: #fff; color: #2c312d; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.hero-slider__arrow:hover, .hero-slider__pause:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.hero-slider__arrow .icon { width: 18px; height: 18px; }
.hero-slider__dots { display: flex; gap: 2px; align-items: center; }
.hero-slider__dot { width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero-slider__dot::before {
    content: ""; width: 10px; height: 10px; border-radius: 999px; background: #c3cbc1;
    transition: width .3s var(--ease), background-color .3s;
}
.hero-slider__dot[aria-current="true"]::before { width: 30px; background: var(--brand); }
.hero-slider__pause-icon { width: 12px; height: 12px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero-slider.is-paused .hero-slider__pause-icon {
    width: 0; height: 0; border-right: 0; border-left: 11px solid currentColor;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px;
}

/* ---------- Cards & sections ---------- */
.card--link:hover { border-color: rgba(83, 171, 60, .6); }
.section--dark { background: var(--charcoal); color: #cfd4d0; }
.section--dark .feature-item p { color: #aeb5b0; }
.section--dark .feature-item .card-icon { color: var(--brand); }
.understand-intro, .calc__result, .answer-box, .side-card--dark, .compare-card--after, .card--teal { background: var(--charcoal); border-color: var(--charcoal); }
.calc__panel { border-top: 3px solid var(--brand); }
.gauge__value { stroke: var(--brand); }
.accordion__item[open] { border-color: rgba(83, 171, 60, .5); }
.chip.is-current, .chip[aria-current], .pagination__num.is-current, .screens__tab[aria-selected="true"] { background: var(--brand-dark); border-color: var(--brand-dark); }
.trend-chart .line, .trend-chart .dot { stroke: var(--brand-dark); }

/* Inner page hero */
.page-hero { background: radial-gradient(800px 320px at 92% -10%, rgba(83, 171, 60, .14), transparent 60%), var(--gray-50); }
.page-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg,
        transparent 0 74%, rgba(83, 171, 60, .35) 74%, rgba(83, 171, 60, .35) calc(74% + 1px),
        transparent calc(74% + 1px) 82%, rgba(83, 171, 60, .18) 82%, rgba(83, 171, 60, .18) calc(82% + 1px),
        transparent calc(82% + 1px));
}

.cta-band__inner { background: radial-gradient(600px 300px at 100% 0%, rgba(83, 171, 60, .25), transparent 60%), var(--charcoal); }

/* ---------- Footer (charcoal) ---------- */
.site-footer { background: var(--teal-950); color: #b5b9b6; }
.site-footer__title { color: #fff; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
.contact-list .icon, .site-footer__disclaimer .icon, .toast .icon { color: var(--brand); }
.social a:hover { background: var(--brand-dark); }
