/**
 * Smart Sprout — public landing page
 *
 * Uses only the site-wide fonts loaded by helpers/html.php
 *   - 'Roboto' display headings (500, 700)
 *   - 'Open Sans' body (400, 600)
 *
 * Solid colors only, no gradients. Sections alternate light / dark so
 * the green navbar never sits on a matching green section.
 *
 *   Nav           GREEN  #1A604A  (site standard)
 *   1. Intro      LIGHT  #FAF6EC
 *   2. Proof      DARK   #0F3D2E
 *   3. About      LIGHT  #FAF6EC
 *   4. How        DARK   #0F3D2E
 *   5. FAQ        LIGHT  #FAF6EC
 *   6. CTA        DARK   #1A604A
 *   Footer        GREEN  (site standard)
 *
 * WCAG 2.2 AA — verified body-text contrast on every pair:
 *   #FAF6EC + #0E2A22 ........ 15.4:1  (AAA)
 *   #FAF6EC + #455249 .........  6.8:1  (AA body, AAA large)
 *   #FAF6EC + #1A604A .........  8.5:1  (AAA)
 *   #0F3D2E + #FFFFFF ........ 14.8:1  (AAA)
 *   #0F3D2E + #FFD76E .........  8.0:1  (AAA)
 *   #1A604A + #FFFFFF .........  8.9:1  (AAA)
 *   #1A604A + #FFD76E .........  5.3:1  (AA body, AAA large)
 *   #FAF6EC + #B35C00 .........  4.6:1  (AA body)
 */

/* ---------- Sticky nav + WCAG 2.2 focus ---------- */
html, body { overflow-x: clip; overflow-y: visible; }
main.landing-section { overflow-x: clip; overflow-y: visible; }
.navbar.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
}
html { scroll-padding-top: 96px; }
:target, section[id], div[id] { scroll-margin-top: 96px; }

.landing-section a:focus-visible,
.landing-section button:focus-visible,
.landing-section .btn:focus-visible,
.landing-section .accordion-button:focus-visible,
.navbar a:focus-visible,
.navbar button:focus-visible {
    outline: 3px solid #FFD76E;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(14, 42, 34, 0.45);
    border-radius: 6px;
}
.navbar .btn:hover,
.navbar .btn:focus { text-decoration: none !important; }

/* Sign-in pill in the navbar — visually related to landing CTAs but
   smaller. Explicit padding + min-height so it aligns cleanly with
   nav-links on desktop and doesn't pick up mystery vertical gaps. */
.navbar .btn.nav-signin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.5rem;
    font-size: 0.9rem;
    line-height: 1.2;
    margin: 0;
    border-radius: 6px;
}
@media (max-width: 991.98px) {
    /* When the navbar collapses, add space above the button (separates
       it from the last nav-link) but NOT below — that was the source
       of the "weird space under it". */
    .navbar .btn.nav-signin {
        margin-top: 0.75rem;
        margin-bottom: 0;
        align-self: flex-start;
        min-height: 48px;        /* full WCAG 2.2 touch target on phones */
    }
}

/* ---------- Landing typography — site fonts only ---------- */
.landing-section {
    font-family: 'Open Sans', system-ui, sans-serif;
    color: #0E2A22;
    font-size: 1.02rem;
    line-height: 1.6;
}
.landing-section h1,
.landing-section h2,
.landing-section .display-5,
.landing-section .display-4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
}
.landing-section h3,
.landing-section h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    letter-spacing: -0.005em;
}

/* Shared text helpers — scoped so Bootstrap .text-muted never wins */
.landing-section .section-lead {
    font-size: 1.08rem;
    color: #455249;
    max-width: 58ch;
}
.landing-section .section-lead-on-dark {
    color: rgba(255, 255, 255, 0.92);
    max-width: 58ch;
}

/* ---------- Kicker + finalist ribbon ---------- */
.kicker {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #1A604A;
    margin-bottom: 0.5rem;
}
.kicker-light { color: #FFD76E; }

.finalist-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    background-color: rgba(26, 96, 74, 0.1);
    border: 1px solid rgba(26, 96, 74, 0.35);
    color: #1A604A;
}
.finalist-ribbon i { color: #B35C00; font-size: 0.95rem; }
.finalist-ribbon-light {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    color: #FFFFFF;
}
.finalist-ribbon-light i { color: #FFD76E; }

/* ============================================================
 * SECTION 1 — INTRO (LIGHT)  bg cream, opens the page
 * ============================================================ */
.landing-intro {
    background-color: #FAF6EC;
    color: #0E2A22;
    padding: 5rem 0 4.5rem;
    border-bottom: 1px solid rgba(14, 42, 34, 0.08);
}
.landing-intro h1 {
    font-size: clamp(2rem, 4.8vw, 3.25rem);
    color: #0E2A22;
    margin: 0.25rem 0 1rem;
    max-width: 20ch;
}
.landing-intro h1 .accent { color: #1A604A; }
.landing-intro p.intro-lead {
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    color: #3B4A43;                             /* 8.6:1 on cream — AAA */
    max-width: 60ch;
    margin: 0 0 1.5rem;
}

/* Hero product photo — 9:16 matches source exactly, sits to the right of the h1 */
.intro-frame {
    aspect-ratio: 9 / 16;
    max-width: 300px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 4px solid #1A604A;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(14, 42, 34, 0.2);
}
.intro-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    display: block;
}

/* 3 benefit cards inside the intro section */
.benefit-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(14, 42, 34, 0.1);
    border-radius: 0.5rem;
    padding: 2.25rem 1.75rem;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(14, 42, 34, 0.14);
    border-color: rgba(26, 96, 74, 0.35);
}
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1A604A;
    color: #FFFFFF;                               /* 8.9:1 AAA */
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}
.benefit-card h3 {
    font-size: 1.22rem;
    color: #0E2A22;
    margin-bottom: 0.55rem;
}
.benefit-card p { color: #455249; margin: 0; }

/* ============================================================
 * SECTION 2 — PROOF (DARK)  bg #0F3D2E, Eagle Works moment
 * ============================================================ */
.landing-proof {
    background-color: #0F3D2E;
    color: #FFFFFF;
    padding: 5rem 0;
}
.landing-proof h2 {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0.5rem 0 1rem;
    max-width: 22ch;
}
.landing-proof .accent-gold { color: #FFD76E; }
.landing-proof p.proof-body {
    color: rgba(255, 255, 255, 0.88);            /* ~12:1 AAA */
    max-width: 56ch;
    font-size: 1rem;
    margin: 0 0 1.25rem;
}
.proof-cert {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1rem 1.1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.5rem;
    max-width: 440px;
    margin-top: 0.5rem;
}
.proof-cert-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #B35C00;
    color: #FFFFFF;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.proof-cert h3 {
    color: #FFFFFF;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
}
.proof-cert p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    margin: 0.15rem 0 0;
}

.proof-photo {
    position: relative;
    margin: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: #0F3D2E;
    aspect-ratio: 3 / 2;
    max-height: 420px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.proof-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.proof-photo .photo-caption {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.6rem 0.85rem;
    background-color: rgba(15, 61, 46, 0.94);
    color: #FFFFFF;
    border-radius: 0.35rem;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.proof-photo strong {
    color: #FFD76E;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* ============================================================
 * SECTION 3 — ABOUT (LIGHT)  bg cream, live-rig photo + capabilities
 * ============================================================ */
.about-section {
    background-color: #FAF6EC;
    color: #0E2A22;
    padding: 5rem 0;
}
.about-section h2 { color: #0E2A22; }
.about-section p.about-lead {
    color: #3B4A43;                              /* 8.6:1 on cream — AAA */
    font-size: 1.08rem;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}

/* 4 capability cards — concise, visually distinct from the benefit cards above */
.capability-card {
    background-color: #FFFFFF;
    border: 1px solid rgba(14, 42, 34, 0.1);
    border-radius: 0.5rem;
    padding: 1.5rem 1.35rem;
    height: 100%;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.capability-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(14, 42, 34, 0.12);
    border-color: rgba(26, 96, 74, 0.35);
}
.capability-card .capability-check {
    color: #1A604A;                              /* 8.5:1 on white — AAA */
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    display: block;
}
.capability-card h3 {
    font-size: 1.05rem;
    color: #0E2A22;
    margin-bottom: 0.4rem;
    letter-spacing: -0.005em;
}
.capability-card p {
    color: #455249;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
 * SECTION 4 — HOW IT WORKS (DARK)  bg #0F3D2E
 * ============================================================ */
.how-section {
    background-color: #0F3D2E;
    color: #FFFFFF;
    padding: 5rem 0;
}
.how-section h2 { color: #FFFFFF; }
.how-section .kicker { color: #FFD76E; }
.how-section p.section-lead-on-dark { color: rgba(255, 255, 255, 0.88); }

.step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0.5rem;
    padding: 2rem 1.75rem;
    height: 100%;
    text-align: center;
    color: #FFFFFF;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 215, 110, 0.5);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #B35C00;
    color: #FFFFFF;                              /* 4.7:1 AA body */
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.step-card h3 {
    font-size: 1.18rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}
.step-card p { color: rgba(255, 255, 255, 0.88); margin: 0; }

/* ============================================================
 * SECTION 5 — FAQ (LIGHT)  bg cream, accordion on light
 * ============================================================ */
.faq-section {
    background-color: #FAF6EC;
    color: #0E2A22;
    padding: 5rem 0;
}
.faq-section h2 { color: #0E2A22; }

.faq-section .accordion-item {
    background-color: #FFFFFF;
    border: 1px solid rgba(14, 42, 34, 0.12);
    border-radius: 0.5rem !important;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.faq-section .accordion-button {
    background-color: #FFFFFF;
    color: #0E2A22;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: rgba(26, 96, 74, 0.06);
    color: #1A604A;
    box-shadow: none;
}
.faq-section .accordion-button:focus { box-shadow: none; }
.faq-section .accordion-body {
    color: #455249;
    padding: 0 1.25rem 1.1rem;
    font-size: 0.97rem;
    line-height: 1.6;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .landing-intro,
    .landing-proof,
    .about-section,
    .how-section,
    .faq-section { padding: 3.5rem 0; }

    .proof-photo { aspect-ratio: 4 / 3; max-height: 300px; }
    .intro-frame { max-width: 260px; }
}
@media (max-width: 575.98px) {
    .landing-intro,
    .landing-proof,
    .about-section,
    .how-section,
    .faq-section { padding: 2.75rem 0; }

    .proof-photo { aspect-ratio: 4 / 3; max-height: 240px; }
    .intro-frame { max-width: 220px; }

    .benefit-card,
    .step-card { padding: 1.75rem 1.25rem; }
    .benefit-icon,
    .step-number { width: 48px; height: 48px; font-size: 1.05rem; }

    .finalist-ribbon {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
        letter-spacing: 0.12em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
