/* =========================================================================
 *  HaloGrow advertorial — clean, comfortable, responsive layout
 *  Mobile-first. Desktop enhancements at the bottom via media queries.
 * ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --ink:        #22282e;
    --ink-soft:   #4a545e;
    --muted:      #7c8792;
    --line:       #e7eaef;
    --bg:         #ffffff;
    --bg-tint:    #f6f8fa;
    --brand:      #2f9e6f;   /* fresh green */
    --brand-dk:   #217a55;
    --accent:     #e8543f;   /* warm highlight */
    --gold:       #f5b301;
    --radius:     14px;
    --shadow:     0 6px 24px rgba(20,30,40,.08);
    --maxw:       960px;
    --font:       'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dk); }

/* ---------------------------- HEADER ---------------------------- */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}
.advertorial-tag {
    font-family: var(--font);
    font-size: 11px; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted);
    border: 1px solid var(--line); border-radius: 20px;
    padding: 4px 12px;
}
.brand {
    font-family: var(--font);
    font-weight: 800; font-size: 20px; letter-spacing: -.01em;
    color: var(--brand-dk);
}

/* ---------------------------- ARTICLE ---------------------------- */
.article { padding: 28px 0 60px; }

.headline {
    font-family: var(--font);
    font-size: 30px; line-height: 1.22; font-weight: 800;
    letter-spacing: -.02em; margin: 8px 0 14px; color: var(--ink);
}
.headline .hl { color: var(--brand-dk); }

.byline {
    font-family: var(--font);
    font-size: 13px; color: var(--muted); margin: 0 0 18px;
    display: flex; gap: 8px; flex-wrap: wrap;
}

.subhead {
    font-size: 20px; line-height: 1.5; color: var(--ink-soft);
    font-weight: 600; margin: 0 0 26px;
    padding-left: 16px; border-left: 4px solid var(--brand);
}

.article p { margin: 0 0 20px; }
.article em { font-style: italic; }
.article strong { font-weight: 700; color: var(--ink); }

.lead-line {
    font-size: 22px; font-weight: 700; line-height: 1.4;
    color: var(--brand-dk); margin: 6px 0 22px;
}
.dialogue {
    font-size: 21px; font-weight: 700; font-style: italic;
    color: var(--ink); text-align: center; margin: 10px 0 20px;
}

/* Section titles */
.section-title {
    font-family: var(--font);
    font-size: 23px; font-weight: 800; letter-spacing: -.01em;
    line-height: 1.25; color: var(--ink);
    margin: 44px 0 18px; padding-top: 26px;
    border-top: 1px solid var(--line);
}

/* Media / figures */
.media { margin: 26px 0 28px; }
.media img, .media video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.media figcaption, .cap-note {
    font-family: var(--font);
    font-size: 13px; line-height: 1.5; color: var(--muted);
    margin-top: 10px; text-align: center; font-style: normal;
}
.cap-note { margin: -8px 0 22px; }

/* Callout (the DHT strangling block) */
.callout {
    background: var(--bg-tint);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 22px; margin: 24px 0 28px;
}
.callout p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.callout p:last-child { margin: 0; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li {
    position: relative; padding: 12px 12px 12px 44px; margin-bottom: 10px;
    background: var(--bg-tint); border-radius: 10px; line-height: 1.55;
}
.checklist li::before {
    content: '✓'; position: absolute; left: 14px; top: 12px;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--brand); color: #fff;
    font-family: var(--font); font-weight: 800; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
}

/* Ingredients */
.ingredients { display: grid; gap: 12px; margin: 22px 0 28px; }
.ingredient {
    background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 18px; line-height: 1.55;
    box-shadow: 0 2px 10px rgba(20,30,40,.04);
}

/* Research stats */
.research {
    background: var(--bg-tint); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 20px; margin: 28px 0;
}
.research-title {
    font-family: var(--font); font-size: 18px; font-weight: 800;
    text-align: center; margin: 0 0 6px;
}
.research-sub {
    font-family: var(--font); font-size: 13px; color: var(--muted);
    text-align: center; margin: 0 0 20px !important;
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat {
    background: #fff; border-radius: 12px; padding: 18px 12px;
    text-align: center; box-shadow: 0 2px 10px rgba(20,30,40,.05);
}
.stat b {
    display: block; font-family: var(--font);
    font-size: 30px; font-weight: 800; color: var(--brand-dk); line-height: 1;
}
.stat span {
    display: block; margin-top: 8px; font-family: var(--font);
    font-size: 12.5px; line-height: 1.4; color: var(--ink-soft);
}
.sources {
    font-family: var(--font); font-size: 11px; line-height: 1.5;
    color: var(--muted); margin: 18px 0 0 !important;
}

/* Timeline */
/* Timeline (weeks) — one banner per row, uniformly aligned */
.timeline { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 24px 0 28px; }
.tl-item {
    display: flex; flex-direction: column;
    background: var(--bg-tint); border-radius: var(--radius);
    border: 1px solid var(--line); padding: 16px; overflow: hidden;
}
.tl-item figure {
    margin: 0 0 14px; border-radius: 10px; overflow: hidden;
    background: #fff;
}
.tl-item figure img {
    width: 100%; display: block; border-radius: 10px;
}
.tl-item p { margin: 0; line-height: 1.6; font-size: 16px; }
.tl-item strong {
    display: inline-block; color: var(--brand-dk);
    font-weight: 700; margin-right: 4px;
}

/* Reader results grid — equal-height cards, uniformly cropped images */
.results-grid, .gallery-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 24px 0 30px; }
.result, .ba-card {
    display: flex; flex-direction: column; height: 100%;
    margin: 0; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
/* uniform crop so every before/after image lines up */
.result > img, .ba-img {
    width: 100%; display: block;
    aspect-ratio: 3 / 2; object-fit: cover;
}
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result figcaption, .ba-card figcaption {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px 0;
}
.star { color: var(--gold); letter-spacing: 1px; font-size: 14px; }
.rr-note { font-size: 11px; color: var(--muted); }
.result .rr-text, .ba-text {
    padding: 10px 16px 0; margin: 0; flex: 1 0 auto;
    font-size: 15.5px; line-height: 1.6;
}
.result .rr-name, .ba-name {
    padding: 8px 16px 16px; margin: 0;
    font-size: 13px; font-weight: 700; color: var(--muted);
}

/* ---------------------------- QUIZ ---------------------------- */
.hg-quiz {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 26px 0 30px;
    font-family: var(--font);
}
.hg-quiz-header {
    background: linear-gradient(180deg, #f0f9f4, #ffffff);
    border-bottom: 1px solid var(--line);
    padding: 24px 22px 20px;
    text-align: center;
}
.hg-quiz-title {
    font-size: 20px; font-weight: 800; line-height: 1.3;
    color: var(--ink); margin: 0 0 6px;
}
.hg-quiz-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.hg-progress-wrap {
    height: 8px; background: #e3e9ee; border-radius: 20px; overflow: hidden;
}
.hg-progress-bar {
    height: 100%; width: 0; background: var(--brand);
    border-radius: 20px; transition: width .4s ease;
}
.hg-progress-text {
    font-size: 12.5px; font-weight: 600; color: var(--brand-dk);
    margin: 10px 0 0;
}

.hg-quiz-body { padding: 24px 22px; }
.hg-question { display: none; }
.hg-question.active { display: block; animation: hgFade .35s ease; }
@keyframes hgFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hg-q-text {
    font-size: 19px; font-weight: 700; line-height: 1.4;
    color: var(--ink); margin: 0 0 18px; text-align: center;
}
.hg-answer {
    display: block; width: 100%; margin: 0 0 12px;
    font-family: var(--font); font-size: 16px; font-weight: 600;
    text-align: center; color: var(--ink);
    background: var(--bg-tint); border: 2px solid transparent;
    border-radius: 12px; padding: 15px 18px; cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.hg-answer:hover { border-color: var(--brand); background: #eafaf1; }
.hg-answer:active { transform: scale(.99); }
.hg-state-select {
    display: block; width: 100%; margin: 0 0 14px;
    font-family: var(--font); font-size: 16px; color: var(--ink);
    background: var(--bg-tint); border: 2px solid var(--line);
    border-radius: 12px; padding: 15px 16px; cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237c8792' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
}
.hg-state-btn { text-align: center; color: #fff; background: var(--brand); }
.hg-state-btn:hover { background: var(--brand-dk); border-color: transparent; color: #fff; }

/* Analyzing */
.hg-analyzing { display: none; padding: 40px 22px; text-align: center; }
.hg-analyzing.show { display: block; }
.hg-spinner {
    width: 48px; height: 48px; margin: 0 auto 18px;
    border: 5px solid #dce9e2; border-top-color: var(--brand);
    border-radius: 50%; animation: hgSpin .8s linear infinite;
}
@keyframes hgSpin { to { transform: rotate(360deg); } }
.hg-analyzing-text { font-size: 17px; font-weight: 700; color: var(--brand-dk); margin: 0 0 6px; }
.hg-analyzing-sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.hg-analyzing-bar {
    height: 10px; max-width: 320px; margin: 0 auto;
    background: #e3e9ee; border-radius: 6px; overflow: hidden;
}
.hg-analyzing-bar > div { height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }

/* Result */
.hg-result { display: none; padding: 30px 22px; text-align: center; }
.hg-result.show { display: block; animation: hgFade .4s ease; }
.hg-result-badge {
    display: inline-block; font-size: 14px; font-weight: 800;
    letter-spacing: .06em; color: #fff; background: var(--brand);
    padding: 8px 20px; border-radius: 24px; margin-bottom: 16px;
}
.hg-result-text { font-size: 18px; line-height: 1.55; margin: 0 0 14px; }
.hg-ship {
    font-size: 14px; font-weight: 600; color: var(--brand-dk);
    background: #eafaf1; border-radius: 10px; padding: 10px 14px; margin: 0 0 20px;
}
.hg-ship #hgShipRegion { text-decoration: underline; }
.hg-secure { font-size: 12.5px; color: var(--muted); margin: 14px 0 4px; }
.hg-offerend { font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0; }

/* Offer block */
.offer {
    background: linear-gradient(180deg, #f0f9f4, #ffffff);
    border: 1px solid #cdeadb; border-radius: 18px;
    padding: 28px 22px; margin: 30px 0; text-align: center;
}
/* Offer now lives inside the quiz result; drop its outer frame so it
   reads as part of the result card rather than a box-in-a-box */
.hg-result .offer {
    background: none; border: 0; box-shadow: none;
    padding: 6px 0 0; margin: 4px 0 0;
}
.offer-prod { width: 220px; max-width: 70%; margin: 0 auto 18px; }
.offer-lead { font-size: 18px; margin: 0 0 20px !important; }
.price-row {
    display: flex; align-items: baseline; justify-content: center;
    gap: 12px; flex-wrap: wrap; margin-bottom: 20px;
}
.price-old {
    font-family: var(--font); font-size: 22px;
    color: var(--muted); text-decoration: line-through;
}
.price-new {
    font-family: var(--font); font-size: 42px; font-weight: 800;
    color: var(--brand-dk); line-height: 1;
}
.price-tag {
    font-family: var(--font); font-size: 12px; font-weight: 700;
    background: var(--accent); color: #fff; padding: 5px 12px;
    border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}

/* CTA buttons */
.cta {
    display: block; width: 100%; max-width: 460px; margin: 0 auto;
    font-family: var(--font); font-size: 17px; font-weight: 700;
    text-align: center; text-decoration: none; color: #fff;
    background: var(--brand); border-radius: 12px;
    padding: 17px 22px; line-height: 1.3;
    box-shadow: 0 6px 18px rgba(47,158,111,.35);
    transition: transform .12s ease, background .2s ease;
    animation: pulse 2.2s infinite;
}
.cta:hover { background: var(--brand-dk); transform: translateY(-1px); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 6px 18px rgba(47,158,111,.35); }
    50%      { box-shadow: 0 6px 26px rgba(47,158,111,.55); }
}

/* Trust badges */
.badges {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-top: 24px;
}
.badges figure { margin: 0; text-align: center; }
.badges img { width: 58px; height: auto; margin: 0 auto 8px; }
.badges figcaption {
    font-family: var(--font); font-size: 11.5px;
    line-height: 1.4; color: var(--ink-soft); font-weight: 600;
}

/* Comments */
.comments { margin: 22px 0 30px; }
.comment {
    display: flex; gap: 14px; padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.c-avatar {
    width: 46px; height: 46px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.c-body { flex: 1; }
.c-head { margin: 0 0 4px !important; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.c-name { font-family: var(--font); font-weight: 700; font-size: 15px; color: var(--ink); }
.c-time { font-family: var(--font); font-size: 12px; color: var(--muted); }
.c-text { margin: 0 0 6px !important; font-size: 16px; line-height: 1.55; }
.c-meta {
    margin: 0 !important; font-family: var(--font);
    font-size: 12.5px; color: var(--muted);
}
.c-like { color: var(--accent); }

/* Final CTA */
.final-cta {
    background: var(--bg-tint); border-radius: 18px;
    padding: 30px 22px; margin: 34px 0 0; text-align: center;
}
.fc-title {
    font-family: var(--font); font-size: 22px; font-weight: 800;
    margin: 0 0 8px !important; color: var(--ink);
}
.final-cta p:not(.fc-title) { margin: 0 0 20px !important; }

/* ---------------------------- FOOTER ---------------------------- */
.site-footer {
    background: #1c2227; color: #aeb8c2;
    margin-top: 60px; padding: 40px 0 90px;
    font-family: var(--font);
}
.disclaimers p {
    font-size: 12px; line-height: 1.6; color: #8b96a1;
    margin: 0 0 12px;
}
.footer-links {
    list-style: none; padding: 20px 0 0; margin: 20px 0 0;
    border-top: 1px solid #2c343b;
    display: flex; gap: 22px; flex-wrap: wrap;
}
.footer-links a { color: #cdd5dd; text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.copy { font-size: 13px; color: #6c7680; margin: 18px 0 0; }

/* ---------------------------- STICKY CTA (mobile) ---------------------------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: block; text-align: center; text-decoration: none;
    font-family: var(--font); font-size: 16px; font-weight: 700;
    color: #fff; background: var(--brand);
    padding: 15px 16px; line-height: 1.25;
    box-shadow: 0 -4px 18px rgba(20,30,40,.18);
}
.sticky-cta:hover { background: var(--brand-dk); }
.sticky-cta { transition: transform .3s ease; }

/* Scroll-reveal (progressive enhancement via JS) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
 *  RESPONSIVE — tablet & desktop enhancements
 * ========================================================================= */
@media (min-width: 700px) {
    body { font-size: 18px; }
    .article { padding: 40px 0 70px; }
    .headline { font-size: 40px; }
    .subhead { font-size: 21px; }
    .section-title { font-size: 27px; margin-top: 54px; }

    /* All content shares the same full container width for consistency */
    .article > * { max-width: 100%; }

    /* Timeline: image left, text right — stays aligned across rows */
    .tl-item {
        flex-direction: row; align-items: center; gap: 22px;
        padding: 18px 22px;
    }
    .tl-item figure { margin: 0; flex: 0 0 46%; max-width: 46%; }
    .tl-item p { flex: 1; }
    .tl-item:last-child { padding: 22px; }          /* text-only item */

    .results-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .stats { grid-template-columns: repeat(4, 1fr); }
    .ingredients { grid-template-columns: 1fr 1fr; }

    /* No sticky bar on wide screens — inline CTAs are visible */
    .sticky-cta { display: none; }
    .site-footer { padding-bottom: 40px; }
    .offer-prod { width: 260px; }
}

@media (min-width: 960px) {
    .headline { font-size: 44px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .cta { animation: none; }
    html { scroll-behavior: auto; }
}
