/* Diet Revenue - main stylesheet (light green + lime scheme) */

:root {
    /* Brand palette */
    --green:     #123e32;
    --lime:      #b9e277;
    --pale:      #eef5ec;
    --cream:     #faf9f3;
    --text:      #182b25;
    --muted:     #60716a;

    /* Derived tokens */
    --green-2:   #1d5a47;
    --lime-dk:   #a3d05a;
    --white:     #fff;
    --card:      #fff;
    --line:      #d6e2d3;
    --bg:        var(--cream);
    --bg-band:   var(--pale);
    --bg-bar:    var(--green);
    --shadow:    0 10px 30px rgba(18,62,50,.08);
    --radius:    10px;
    --font-hd:   'Oswald', 'Arial Narrow', sans-serif;
    --font-bd:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--font-bd); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: underline; text-decoration-color: var(--lime-dk); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); text-decoration-color: var(--green-2); }
h1, h2, h3 { font-family: var(--font-hd); color: var(--green); line-height: 1.2; font-weight: 500; letter-spacing: .3px; }
p + p { margin-top: .8rem; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--lime); color: var(--green); padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }

/* Buttons - the solid lime button is the page's one loud element */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-hd); font-weight: 600; font-size: 1.05rem; letter-spacing: .6px; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 8px; padding: 13px 28px; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; }
.btn-primary { background: var(--lime); color: var(--green); box-shadow: 0 4px 15px rgba(18,62,50,.15); }
.btn-primary:hover { background: var(--lime-dk); color: var(--green); transform: translateY(-2px); box-shadow: 0 6px 22px rgba(18,62,50,.2); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--bg-bar); color: var(--pale); font-size: 14px; padding: 10px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tagline { color: rgba(238,245,236,.8); }
.top-nav { display: flex; gap: 26px; }
.top-nav a { color: var(--pale); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.top-nav a:hover { color: var(--lime); }
.top-nav i { color: var(--lime); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; }
.logo { text-decoration: none; flex: none; }
.logo img { width: 365px; }
/* Text wordmark, shown until files/main_logo.png is uploaded */
.logo-word { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-hd); text-transform: uppercase; letter-spacing: .5px; line-height: 1; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--green); display: grid; place-items: center; font-size: 1.25rem; transform: rotate(-6deg); }
.logo-text { font-size: 1.9rem; font-weight: 500; color: var(--green); }
.logo-text b { font-weight: 700; }
.logo-word-footer { margin-bottom: 18px; }
.logo-word-footer .logo-text { color: var(--white); font-size: 1.6rem; }
.logo-word-footer .logo-mark { width: 38px; height: 38px; font-size: 1.05rem; }
.main-nav a { white-space: nowrap; }
.top-nav a { white-space: nowrap; }
.main-nav ul { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text); text-decoration: none; font-family: var(--font-hd); font-size: 1.15rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.main-nav a:hover { color: var(--green-2); }
.main-nav a.nav-join { color: var(--green); background: var(--lime); padding: 6px 16px; border-radius: 8px; }
.main-nav a.nav-join:hover { background: var(--lime-dk); color: var(--green); }
.nav-toggle { display: none; background: none; border: 0; color: var(--green); font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero { padding: 80px 0 90px; background: linear-gradient(135deg, var(--pale) 0%, var(--cream) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; max-width: 22ch; }
.hero-soon { font-family: var(--font-hd); font-weight: 700; font-size: clamp(2.4rem, 6.5vw, 5rem); line-height: .95; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin: 10px 0 24px; }
.hero-lede { font-size: 1.15rem; max-width: 60ch; }
.hero-points { margin-top: 26px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 12px; align-items: baseline; }
.hero-points i { color: var(--green-2); }

.signup-card { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--lime); border-radius: 16px; padding: 32px; box-shadow: 0 20px 40px rgba(18,62,50,.10); }
.signup-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.signup-intro { color: var(--muted); margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field .req { font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; font-size: .95rem; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; width: 100%; }
.field input::placeholder { color: #8a9a93; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(185,226,119,.55); }
.signup-note { font-size: .82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; background: #fdecea; border: 1px solid #f5c2bd; color: #b42318; border-radius: 8px; padding: 11px 14px; margin-bottom: 16px; font-size: .92rem; }
.form-alert i { margin-top: 4px; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-done { text-align: center; padding: 20px 0; }
.signup-done > i { font-size: 3rem; color: var(--green-2); margin-bottom: 14px; }
.signup-done h2 { margin-bottom: 10px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-band { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* Benefits: two-column list rather than a card grid */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; }
.benefit { display: flex; gap: 18px; }
.benefit > i { flex: 0 0 48px; height: 48px; display: grid; place-items: center; font-size: 1.2rem; color: var(--green); background: var(--pale); border: 1px solid var(--line); border-radius: 10px; }
.benefit h3 { font-size: 1.3rem; margin-bottom: 6px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--font-hd); font-size: 1.3rem; font-weight: 600; color: var(--green); background: var(--lime); border-radius: 50%; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 58px; right: -16px; height: 2px; background: var(--line); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Audience */
.audience { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.audience > div { border-top: 3px solid var(--lime); padding-top: 18px; }
.audience h3 { font-size: 1.15rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.audience h3 i { color: var(--green-2); }
.audience p { font-size: .95rem; color: var(--muted); }

/* Products (guides) */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }   /* 4 per row on desktop */
.product { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(18,62,50,.12); }
.product-media { height: 160px; background: var(--pale); display: grid; place-items: center; border-bottom: 3px solid var(--lime); }
.product-media img { max-height: 140px; width: auto; }
.product-media > i { font-size: 2.8rem; color: var(--green-2); opacity: .55; }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.25rem; }
.product-audience { color: var(--green-2); font-size: .8rem; font-weight: 600; margin: 4px 0 10px; }
.product-body > p:not(.product-audience) { font-size: .86rem; line-height: 1.55; }
.product-link { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .products { grid-template-columns: repeat(2, 1fr); } }

/* News */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.news-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.news-item h3 { font-size: 1.6rem; margin-bottom: 6px; }
.news-item h3 a { color: var(--green); text-decoration: none; }
.news-item h3 a:hover { color: var(--green-2); text-decoration: underline; text-decoration-color: var(--lime-dk); }
.news-subtitle { color: var(--text); font-weight: 600; }
.news-meta { font-size: .88rem; color: var(--muted); margin: 6px 0 14px; }
.news-link { display: inline-block; margin-top: 16px; font-weight: 600; }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq details[open] { border-color: var(--lime-dk); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--green); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--green-2); transition: transform .2s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text); }

/* Final CTA */
.final-cta { padding: 80px 0; text-align: center; background: var(--green); color: var(--pale); }
.final-cta h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; color: var(--white); }
.final-cta p { max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-bar); color: var(--pale); padding: 56px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(238,245,236,.15); }
.footer-brand img { width: 220px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; color: rgba(238,245,236,.75); max-width: 48ch; }
.footer-social { margin-top: 20px; }
.footer-social p { font-size: .9rem; color: rgba(238,245,236,.75); margin-bottom: 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--green); font-size: 1.05rem; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.social-links a:hover { color: var(--green); background: var(--lime); border-color: var(--lime); }
.site-footer .social-links a { border-color: rgba(238,245,236,.3); color: var(--pale); }
.site-footer .social-links a:hover { color: var(--green); background: var(--lime); border-color: var(--lime); }
.social-links-center { justify-content: center; margin-top: 10px; }
.footer-col h2 { font-size: 1rem; letter-spacing: 1px; color: var(--white); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a, .footer-bottom a { color: rgba(238,245,236,.75); text-decoration: none; font-size: .92rem; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 20px; font-size: .85rem; color: rgba(238,245,236,.6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

.back-to-top { position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--green); text-decoration: none; box-shadow: 0 6px 18px rgba(18,62,50,.2); opacity: 0; visibility: hidden; transition: opacity .3s, transform .2s; z-index: 200; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { color: var(--green); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .logo img { width: 300px; }
    .main-nav ul { gap: 22px; }
}
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .steps, .audience { grid-template-columns: 1fr 1fr; }
    .steps li::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
    .nav-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 18px; }
    .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .main-nav li:last-child a { border-bottom: 0; }
    .main-nav a.nav-join { margin-top: 10px; text-align: center; padding: 12px 16px; }
    .site-header { position: sticky; }
    .header-inner { position: relative; }
}
@media (max-width: 760px) {
    .topbar .tagline { display: none; }
    .topbar-inner { justify-content: center; }
    .top-nav { gap: 16px; font-size: 13px; }
    .logo img { width: 240px; }
    .hero { padding: 52px 0 60px; }
    .section { padding: 60px 0; }
    .benefits, .news { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .signup-card { padding: 24px 20px; }
    .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
    .top-nav { gap: 14px; font-size: 12.5px; }
    .top-nav i { display: none; }
    .logo-text { font-size: 1.5rem; }
    .logo-mark { width: 38px; height: 38px; font-size: 1.05rem; }
    .steps, .audience, .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom ul { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Live program conversion (homepage hero) */
.live-ratio { margin-top: 24px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 10px; padding: 12px 16px; }
.live-ratio strong { font-family: var(--font-hd); font-size: 1.6rem; color: var(--green); line-height: 1; }
.live-note { flex-basis: 100%; font-size: .82rem; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3fa34d; align-self: center; box-shadow: 0 0 0 0 rgba(63,163,77,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(63,163,77,.6); } 70% { box-shadow: 0 0 0 8px rgba(63,163,77,0); } 100% { box-shadow: 0 0 0 0 rgba(63,163,77,0); } }

/* Live per-website conversion (homepage product cards) */
.site-ratio { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: .82rem; margin: -2px 0 10px; }
.site-ratio[hidden] { display: none; }
.site-ratio strong { font-family: var(--font-hd); font-size: 1.05rem; color: var(--green); }
.site-ratio-note { font-size: .78rem; color: var(--muted); }
.products-soon { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 24px 0; }
.signup-check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 16px; }
.signup-check input { margin-top: 4px; accent-color: var(--green); }
.signup-check a { color: var(--green); }

/* ---------- Legal / help pages ---------- */
.legal { padding: 50px 0 80px; }
.legal-wrap { max-width: 860px; }
.legal-wrap.legal-wide { max-width: 1200px; }   /* news, articles and FAQ: same width as the homepage */
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.5rem; margin: 38px 0 12px; scroll-margin-top: 100px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text); }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol.legal-list { list-style: disc; padding-left: 1.4em; margin: 0 0 14px; display: grid; gap: 6px; }
.legal ol.legal-list { list-style: decimal; }
.legal a { color: var(--green); }
.legal-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.legal-crumbs a { color: var(--muted); }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 24px 0 8px; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 8px; letter-spacing: .5px; }
.legal-toc ol { list-style: decimal; padding-left: 1.3em; columns: 2; column-gap: 32px; font-size: .92rem; }
.legal-toc li { margin-bottom: 4px; break-inside: avoid; }
.legal-summary { background: var(--pale); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.legal-table-wrap { overflow-x: auto; margin: 10px 0 18px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { color: var(--green); font-weight: 600; background: var(--pale); }
.legal-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.legal-faq summary { cursor: pointer; padding: 15px 20px; font-weight: 600; color: var(--green); list-style: none; }
.legal-faq summary::-webkit-details-marker { display: none; }
.legal-faq summary::after { content: '+'; float: right; color: var(--green-2); font-size: 1.2rem; line-height: 1; }
.legal-faq details[open] summary::after { content: '\2212'; }
.legal-faq details > div { padding: 0 20px 16px; }
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; margin-top: 20px; }
.sitemap-cols h2 { font-size: 1.2rem; margin: 0 0 10px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- Contact form ---------- */
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin-top: 18px; box-shadow: var(--shadow); }
.contact-form .field textarea, .contact-form .field select { font: inherit; font-size: .95rem; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; width: 100%; }
.contact-form .field textarea { resize: vertical; }
.contact-form .field textarea:focus, .contact-form .field select:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(185,226,119,.55); }
.contact-readonly { opacity: .8; cursor: not-allowed; max-width: 200px; background: var(--pale) !important; }
.contact-hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.contact-ok { color: #1d6b3a; }
.contact-bad { color: #b42318; }
.contact-code-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.contact-code-row svg { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.contact-refresh { background: var(--white); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 7px 12px; cursor: pointer; font: inherit; font-size: .85rem; }
.contact-refresh:hover { border-color: var(--green-2); color: var(--green); }
.contact-code input { max-width: 200px; font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 3px; font-size: 1.1rem; }
.contact-form .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.contact-done { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 36px; text-align: center; margin-top: 18px; }
.contact-done > i { font-size: 3rem; color: var(--green-2); margin-bottom: 12px; }

/* ---------- News pages ---------- */
.news-intro { color: var(--muted); margin-bottom: 26px; }
.news-list { display: grid; gap: 22px; }
.news-card { display: grid; grid-template-columns: 220px 1fr; gap: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.news-card-noimg { grid-template-columns: 1fr; }
.news-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.news-card h2 { font-size: 1.45rem; margin: 0 0 4px; }
.news-card h2 a { color: var(--green); text-decoration: none; }
.news-card h2 a:hover { color: var(--green-2); text-decoration: underline; text-decoration-color: var(--lime-dk); }
.news-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; color: var(--muted); }
.news-lede { font-size: 1.2rem; color: var(--text); margin-bottom: 6px; }
.news-hero { width: 100%; height: auto; border-radius: 12px; margin: 18px 0 8px; }
.news-body { margin-top: 18px; }
.news-body h2 { font-size: 1.5rem; }
.news-share { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; border-top: 1px solid var(--line); padding-top: 18px; margin: 36px 0 20px; color: var(--muted); font-size: .92rem; }
.news-all { margin-top: 26px; text-align: center; }
@media (max-width: 640px) { .news-card { grid-template-columns: 1fr; } }
.btn-secondary-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-secondary-outline:hover { background: var(--green); color: var(--white); }
.news-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.news-tags a { font-size: .88rem; text-decoration: none; color: var(--green); background: var(--pale); border: 1px solid var(--line); border-radius: 20px; padding: 3px 12px; }
.news-tags a:hover { background: var(--lime); border-color: var(--lime); color: var(--green); }

/* ---------- Referral program card (homepage, below the guides) ---------- */
.ref-card { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; margin-top: 36px; padding: 32px; border-radius: 16px;
            background: var(--green); color: var(--pale); border: 1px solid var(--green); }
.ref-card-figure { text-align: center; border-right: 1px solid rgba(238,245,236,.2); padding-right: 24px; }
.ref-card-rate { display: block; font-family: var(--font-hd); font-weight: 700; font-size: clamp(3.4rem, 7vw, 4.6rem); line-height: 1; color: var(--lime); }
.ref-card-sub { display: block; margin-top: 8px; color: var(--pale); font-size: .95rem; line-height: 1.4; }
.ref-card-kicker { font-size: .85rem; color: var(--lime); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.ref-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; color: var(--white); }
.ref-card-body p { margin-bottom: 18px; }
.ref-card-body strong { color: var(--white); }
.ref-card-link { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-card-link input { flex: 1; min-width: 240px; font: inherit; font-size: .9rem; color: var(--text); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
@media (max-width: 760px) {
  .ref-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .ref-card-figure { border-right: 0; border-bottom: 1px solid rgba(238,245,236,.2); padding: 0 0 18px; }
}
@media (max-width: 560px) { .products { grid-template-columns: 1fr; } }

/* Long addresses (e.g. example referral links) wrap instead of widening the page on phones */
.legal code, .legal pre { overflow-wrap: anywhere; word-break: break-word; white-space: pre-wrap; }
