/* ==================================================================
   TrackE5 — Blog / Article shared stylesheet
   Reuses the site design system (see index.html) + article-specific UI.
   ================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --cream:       #faf9f6;
    --white:       #ffffff;
    --olive:       #2d3a2d;
    --olive-light: #3d4d3d;
    --olive-muted: #5a6b5a;
    --text-dark:   #1a1a1a;
    --text-body:   #4a4a4a;
    --text-muted:  #7a7a7a;
    --lime:        #c8e64e;
    --lime-light:  #e8f5a1;
    --lime-bg:     #f4fad4;
    --teal:        #14b8a6;
    --teal-light:  #d1faf4;
    --mint:        #e8f5f0;
    --border:      #e8e6e1;
    --border-light:#f0eeea;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 40px rgba(0,0,0,0.1);
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-2xl:  32px;
    --font-serif:  'DM Serif Display', Georgia, serif;
    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width:   1240px;
    --spring:      cubic-bezier(0.16, 1, 0.3, 1);
    --read-width:  720px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--olive); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

.full-bleed {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
}

.skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--olive); color: var(--lime);
    padding: 12px 24px; border-radius: var(--radius-md);
    font-weight: 600; z-index: 1000; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 10vw, 120px) 0; }


/* ==============================================
   BUTTONS  (mirrors index.html)
   ============================================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 600;
    font-size: 0.9rem; border: none; border-radius: 100px;
    cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary { padding: 14px 28px; background: var(--olive); color: var(--white); }
.btn-primary:hover { background: var(--olive-light); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { padding: 14px 28px; background: transparent; color: var(--text-dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--olive); color: var(--olive); }
.btn-lime { padding: 14px 28px; background: var(--lime); color: var(--olive); }
.btn-lime:hover { background: #d4ee62; transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--olive); }
.btn-arrow::after { content: '→'; font-size: 1.1em; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }


/* ==============================================
   NAV  (non-hero variant — dark text on cream)
   ============================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; transition: background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(250, 249, 246, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }

/* Default: over the dark article hero — light text */
.nav-links { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.1); border-radius: 100px; padding: 4px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; padding: 8px 18px; border-radius: 100px; color: rgba(255,255,255,0.8); transition: background 0.2s, color 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--olive); background: var(--lime); }
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-serif); font-size: 1.4rem; color: #fff; position: absolute; left: 50%; transform: translateX(-50%); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions a:not(.btn):not(.nav-signup) { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.8); }
.nav-actions a:not(.btn):not(.nav-signup):hover { color: #fff; }
.nav-signup { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; font-size: 0.85rem; background: var(--white); color: var(--text-dark) !important; border: 1.5px solid var(--white); border-radius: 100px; font-family: var(--font-sans); font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color 0.2s, color 0.2s, border-color 0.2s; min-height: 40px; }
.nav-signup:hover { border-color: var(--white); color: var(--olive) !important; }
.nav-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: rgba(255,255,255,0.9); }
.nav-toggle svg { width: 20px; height: 20px; }

/* Scrolled: solid cream bar — revert to dark text */
.nav.scrolled .nav-links { background: rgba(0,0,0,0.04); }
.nav.scrolled .nav-links a { color: var(--text-body); }
.nav.scrolled .nav-links a:hover { color: var(--text-dark); background: rgba(0,0,0,0.04); }
.nav.scrolled .nav-links a.active { color: var(--olive); background: var(--lime-bg); }
.nav.scrolled .nav-logo { color: var(--text-dark); }
.nav.scrolled .nav-actions a:not(.btn):not(.nav-signup) { color: var(--text-body); }
.nav.scrolled .nav-actions a:not(.btn):not(.nav-signup):hover { color: var(--text-dark); }
.nav.scrolled .nav-signup { background: var(--white); color: var(--text-dark) !important; border-color: var(--border); }
.nav.scrolled .nav-signup:hover { border-color: var(--olive); color: var(--olive) !important; }
.nav.scrolled .nav-toggle { color: var(--text-dark); }
.nav-mobile { display: none; position: fixed; inset: 0; top: 72px; background: var(--cream); flex-direction: column; padding: 32px 24px; gap: 0; z-index: 99; }
.nav-mobile.open { display: flex; }
.nav-mobile a { display: block; width: 100%; padding: 18px 0; font-size: 1.1rem; font-weight: 500; color: var(--text-dark); border-bottom: 1px solid var(--border); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .btn { margin-top: 16px; text-align: center; display: block; width: 100%; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-actions a:not(.nav-toggle) { display: none; }
    .nav-signup { display: none !important; }
    .nav-toggle { display: flex; }
    .nav-logo { position: static; transform: none; }
}
@media (min-width: 769px) { .nav-mobile { display: none !important; } }


/* ==============================================
   SCROLL PROGRESS BAR
   ============================================== */
.read-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--olive), var(--lime));
    z-index: 200; will-change: transform;
}


/* ==============================================
   ARTICLE HERO
   ============================================== */
.article-hero {
    position: relative; background: var(--olive); color: #fff;
    padding: calc(72px + clamp(48px, 8vw, 96px)) 0 clamp(48px, 8vw, 88px);
    overflow: hidden;
}
.article-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #3d4d3d 0%, #2d3a2d 45%, #1a2a1a 100%); }
.article-hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: 0.1;
    background-image: radial-gradient(circle at 20% 20%, rgba(200,230,78,0.35) 0%, transparent 45%),
                      radial-gradient(circle at 85% 80%, rgba(20,184,166,0.25) 0%, transparent 45%);
}
/* HERO IMAGE SLOT — drop a <img class="article-hero-photo"> here later */
.article-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.article-hero-inner { position: relative; z-index: 2; max-width: var(--read-width); margin: 0 auto; padding: 0 24px; }
.article-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--olive); background: var(--lime); padding: 6px 14px; border-radius: 100px;
}
.article-title {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em;
    margin-bottom: 16px; max-width: 16ch;
}
.article-title em { font-style: italic; color: var(--lime); }
.article-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.72); line-height: 1.6; max-width: 52ch; }
.article-meta { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.article-meta-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.4); }


/* ==============================================
   ARTICLE BODY
   ============================================== */
.article-wrap { padding: clamp(48px, 7vw, 80px) 0 clamp(56px, 8vw, 100px); }
.article-body { max-width: var(--read-width); margin: 0 auto; padding: 0 24px; }
.article-body > * { max-width: 100%; }
.article-body h2 {
    font-family: var(--font-serif); font-weight: 400;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em;
    color: var(--text-dark); margin: clamp(40px, 5vw, 56px) 0 16px; scroll-margin-top: 96px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 1.08rem; line-height: 1.78; color: var(--text-body); margin-bottom: 20px; }
.article-body p:first-of-type::first-letter,
.article-body .lede::first-letter {
    font-family: var(--font-serif); float: left; font-size: 3.4rem; line-height: 0.78;
    padding: 6px 12px 0 0; color: var(--olive);
}
.article-body strong { color: var(--text-dark); font-weight: 600; }
.article-body em { font-style: italic; }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.article-body ul li, .article-body ol li {
    position: relative; padding-left: 30px; margin-bottom: 12px;
    font-size: 1.05rem; line-height: 1.7; color: var(--text-body);
}
.article-body ul li::before {
    content: ''; position: absolute; left: 4px; top: 11px;
    width: 8px; height: 8px; border-radius: 2px; background: var(--lime);
    transform: rotate(45deg); box-shadow: inset 0 0 0 1.5px var(--olive);
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
    content: counter(li); position: absolute; left: 0; top: 2px;
    width: 22px; height: 22px; border-radius: 50%; background: var(--olive); color: var(--lime);
    font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.article-body li strong { color: var(--text-dark); }

/* Pull-quote helper (optional, applied to a <blockquote>) */
.article-body blockquote {
    margin: 32px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--lime);
    font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.35; color: var(--olive); font-style: italic;
}


/* ==============================================
   TABLE OF CONTENTS + WIDE LAYOUT
   (.article-layout + .article-toc are injected by blog.js)
   ============================================== */
.article-layout { max-width: var(--read-width); margin: 0 auto; padding: 0 24px; }
.has-toc .article-body { max-width: none; margin: 0; padding: 0; }
.article-toc { display: none; }
.article-toc-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.article-toc ul { list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.article-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; font-size: 0.84rem; line-height: 1.35; color: var(--text-muted); border-left: 2px solid transparent; text-decoration: none; transition: color 0.2s, border-color 0.2s; }
.article-toc a:hover { color: var(--olive); }
.article-toc a.active { color: var(--olive); font-weight: 600; border-left-color: var(--lime); }

@media (min-width: 1100px) {
    /* Reading column grows with the screen, capped for readability.
       Hero shares the same grid so the title tracks the column at any width. */
    .article-layout, .article-hero-inner {
        max-width: 1240px; display: grid;
        grid-template-columns: 220px minmax(0, clamp(700px, 56vw, 900px));
        gap: 64px; justify-content: center; align-items: start;
    }
    .article-hero-inner > * { grid-column: 2; justify-self: start; }
    .article-toc { display: block; position: sticky; top: 100px; max-height: calc(100vh - 130px); overflow-y: auto; }
}
@media (min-width: 1500px) {
    .article-layout, .article-hero-inner { max-width: 1340px; gap: 80px; }
}


/* ==============================================
   IN-ARTICLE APP VISUAL  (scroll-revealed figure)
   ============================================== */
.article-visual { margin: clamp(36px, 5vw, 56px) 0; }
.article-visual-frame {
    display: flex; align-items: center; justify-content: center;
    padding: clamp(28px, 5vw, 56px) 24px;
    border-radius: var(--radius-xl); overflow: hidden;
    background: linear-gradient(145deg, var(--mint), var(--lime-bg));
    border: 1px solid var(--border); box-shadow: var(--shadow-md);
    position: relative;
}
/* Phone screenshots: show at natural device size on the stage, not full-bleed */
.article-visual-frame img {
    width: auto; max-width: 300px; max-height: 560px; height: auto; display: block;
    border-radius: 26px; border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 18px 44px rgba(45,58,45,0.22);
}
/* Fallback band shown only if no <img> present (future-art slot) */
.article-visual-frame:empty { min-height: 280px; }
.article-visual-frame:empty::after {
    content: 'App preview'; position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--olive-muted); font-size: 0.85rem; letter-spacing: 0.04em;
}
.article-visual figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); text-align: center; }


/* ==============================================
   MICRO-INTERACTION — TAB TOGGLE (article 01)
   ============================================== */
.toggle-card { margin: clamp(32px, 5vw, 48px) 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-sm); overflow: hidden; }
.toggle-tabs { display: flex; gap: 4px; padding: 8px; background: var(--cream); border-bottom: 1px solid var(--border); }
.toggle-tab {
    flex: 1; padding: 12px 16px; border: none; cursor: pointer;
    font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; color: var(--text-muted);
    background: transparent; border-radius: 100px;
    transition: color 0.3s var(--spring), background 0.3s var(--spring), transform 0.3s var(--spring);
}
.toggle-tab:hover { color: var(--olive); }
.toggle-tab[aria-selected="true"] { background: var(--olive); color: var(--lime); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.toggle-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.toggle-panels { padding: clamp(20px, 3vw, 32px); }
.toggle-panel { display: none; }
.toggle-panel.active { display: block; animation: panelIn 0.45s var(--spring); }
.toggle-panel h3 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; color: var(--text-dark); margin-bottom: 12px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* No-JS / reduced-motion fallback: show all panels */
.no-js .toggle-tabs { display: none; }
.no-js .toggle-panel { display: block; margin-bottom: 24px; }


/* ==============================================
   MICRO-INTERACTION — 50/30/20 SPLIT (article 04)
   ============================================== */
.split-viz { margin: clamp(32px, 5vw, 48px) 0; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--white); box-shadow: var(--shadow-sm); padding: clamp(24px, 3vw, 36px); }
.split-bar { display: flex; height: 56px; border-radius: var(--radius-md); overflow: hidden; background: var(--border-light); }
.split-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 0.85rem; width: 0; transition: width 1s var(--spring); white-space: nowrap; overflow: hidden; }
.split-viz.visible .split-seg--needs   { width: 50%; }
.split-viz.visible .split-seg--wants    { width: 30%; }
.split-viz.visible .split-seg--savings  { width: 20%; }
.split-seg--needs { background: var(--olive); }
.split-seg--wants { background: var(--teal); }
.split-seg--savings { background: #9bbf2e; color: var(--olive); }
.split-legend { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 20px; }
.split-legend-item { font-size: 0.85rem; color: var(--text-body); }
.split-legend-item b { display: block; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 400; color: var(--text-dark); line-height: 1.1; }
.split-legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }


/* ==============================================
   END-OF-ARTICLE CTA  (reuses homepage waitlist)
   ============================================== */
.article-cta { background: linear-gradient(180deg, var(--cream) 0%, var(--lime-bg) 100%); border-top: 1px solid var(--border); }
.article-cta-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.article-cta-inner h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; margin-bottom: 14px; }
.article-cta-inner p { font-size: 0.95rem; color: var(--text-body); line-height: 1.65; margin-bottom: 26px; }
.cta-form { display: flex; max-width: 440px; margin: 0 auto; background: var(--white); border: 1.5px solid var(--border); border-radius: 100px; padding: 5px; transition: border-color 0.3s, box-shadow 0.3s; }
.cta-form:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,0.1); }
.cta-input { flex: 1; background: transparent; border: none; outline: none; padding: 12px 20px; font-family: var(--font-sans); font-size: 0.9rem; color: var(--text-dark); min-width: 0; }
.cta-input::placeholder { color: var(--text-muted); }
.cta-submit { padding: 12px 24px; background: var(--olive); color: #fff; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; border: none; border-radius: 100px; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.cta-submit:hover { background: var(--olive-light); }
.cta-submit:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cta-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 12px; }
.cta-success { display: none; text-align: center; padding: 16px; }
.cta-success.visible { display: block; }
.cta-success-title { font-weight: 600; font-size: 1.1rem; color: var(--olive); }
.cta-success-desc { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }


/* ==============================================
   RELATED ARTICLES
   ============================================== */
.related { background: var(--cream); }
.related h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: clamp(24px, 4vw, 36px); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; max-width: 420px; } }


/* ==============================================
   BLOG INDEX  (also reused for related cards)
   ============================================== */
.blog-index-hero { position: relative; background: var(--olive); color: #fff; padding: calc(72px + clamp(56px, 9vw, 110px)) 0 clamp(48px, 8vw, 90px); overflow: hidden; }
.blog-index-hero .article-hero-bg { position: absolute; inset: 0; }
.blog-index-hero-inner { position: relative; z-index: 2; }
.blog-index-hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 16px; }
.blog-index-hero h1 em { font-style: italic; color: var(--lime); }
.blog-index-hero p { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.72); max-width: 50ch; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius-xl); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card-image { height: 180px; position: relative; overflow: hidden; }
.blog-card-image-ph { width: 100%; height: 100%; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-tag { position: absolute; top: 12px; left: 12px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--olive); background: rgba(250,249,246,0.92); padding: 5px 12px; border-radius: 100px; backdrop-filter: blur(4px); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-family: var(--font-serif); font-size: 1.18rem; font-weight: 400; line-height: 1.3; margin-bottom: 8px; color: var(--text-dark); }
.blog-card:hover h3 { color: var(--olive); }
.blog-card-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }
.blog-card-read { margin-top: auto; font-size: 0.75rem; font-weight: 600; color: var(--olive-muted); display: flex; align-items: center; gap: 6px; }
.blog-card-read::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--lime); display: inline-block; }

@media (max-width: 900px) { .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; } }


/* ==============================================
   FOOTER  (mirrors index.html)
   ============================================== */
.footer { background: var(--olive); color: rgba(255,255,255,0.7); padding: clamp(48px, 6vw, 72px) 0 24px; border-top: 3px solid var(--lime); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: #fff; margin-bottom: 12px; position: static; transform: none; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; max-width: 260px; opacity: 0.6; }
.footer-col p.footer-heading { font-size: 0.9rem; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 16px; font-size: 0.8rem; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: rgba(255,255,255,0.4); }
.footer-socials a:hover { color: var(--lime); }
.footer-socials svg { width: 20px; height: 20px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }


/* ==============================================
   SCROLL REVEAL  (mirrors index.html vocabulary)
   ============================================== */
[data-anim] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--spring), transform 0.8s var(--spring); }
[data-anim].visible { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
[data-anim="fade"] { transform: none; }
[data-anim="scale"] { transform: scale(0.94); }
[data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity 0.6s var(--spring), transform 0.6s var(--spring); }
[data-stagger].visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].visible > *:nth-child(2) { transition-delay: 90ms; }
[data-stagger].visible > *:nth-child(3) { transition-delay: 180ms; }
[data-stagger].visible > *:nth-child(4) { transition-delay: 270ms; }
[data-stagger].visible > *:nth-child(5) { transition-delay: 360ms; }
[data-stagger].visible > *:nth-child(6) { transition-delay: 450ms; }
[data-stagger].visible > *:nth-child(7) { transition-delay: 540ms; }
[data-stagger].visible > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    [data-anim], [data-stagger] > * { opacity: 1; transform: none; }
    .read-progress { display: none; }
    .split-viz .split-seg--needs { width: 50%; }
    .split-viz .split-seg--wants { width: 30%; }
    .split-viz .split-seg--savings { width: 20%; }
}
