/* ============================================================================
   gRO — applygro.com shared stylesheet (site.css)
   Single source of truth for the site's base, chrome, and content system.
   Extracted + normalized from the canonical article template
   (real-cost-of-growth/index.html). Brand tokens are locked:
   bg #080808 · accent #c8f135 (ONLY accent) · Syne 700/800 · DM Sans 400/500/700.
   Cached immutably via vercel.json (*.css). Loaded by every content page;
   bespoke pages (homepage etc.) add a small page-scoped <style> on top.
   ============================================================================ */

/* --- SELF-HOSTED FONTS (variable, latin) ---------------------------------- */
@font-face {
  font-family: 'Syne';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/syne-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/dmsans-latin-var.woff2') format('woff2');
}

/* --- TOKENS --------------------------------------------------------------- */
:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --surface2: #161616;
  --surface3: #1e1e1e;
  --accent: #c8f135;
  --accent-dim: rgba(200,241,53,0.10);
  --accent-mid: rgba(200,241,53,0.28);
  --white: #ffffff;
  --gray1: #e8e8e8;
  --gray2: #b8b8b8;
  --gray3: #888888;
  --border: #222222;
  --border2: #2a2a2a;
  --border-hover: #3a3a3a;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 4px;         /* buttons, chips — keeps the sharp brand accent */
  --radius-md: 10px;     /* callouts, sources, data blocks, video */
  --radius-lg: 14px;     /* primary cards (play / fundamental) */
  /* subtle elevation for a modern, premium feel on dark */
  --grad-card: linear-gradient(180deg, #131313 0%, #0e0e0e 100%);
  --grad-card-hover: linear-gradient(180deg, #171717 0%, #101010 100%);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 12px 32px -18px rgba(0,0,0,0.9);
  --shadow-hover: 0 1px 0 rgba(200,241,53,0.06) inset, 0 20px 44px -20px rgba(0,0,0,0.95);
  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h: 64px;
}

/* --- BASE / RESET --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); font-size: 16px; }
body { background: var(--bg); color: var(--white); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; top: 16px; left: 16px; background: var(--accent); color: #080808; font-family: var(--font-head); font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: var(--radius); text-decoration: none; z-index: 10000; transform: translateY(-116px); transition: transform 0.2s var(--ease-out); }
.skip-link:focus { transform: translateY(0); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* --- NAV ------------------------------------------------------------------ */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: var(--nav-h); background: rgba(8,8,8,0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -0.5px; cursor: pointer; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--gray2); text-decoration: none; font-size: 14px; font-weight: 400; transition: color 0.2s; cursor: pointer; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { background: var(--accent); color: var(--bg); border: none; padding: 10px 24px; font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; border-radius: var(--radius); transition: opacity 0.2s; text-transform: uppercase; text-decoration: none; }
.nav-cta:hover { opacity: 0.85; }
footer nav { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: none; padding: 0; height: auto; z-index: auto; }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.2s; }
.nav-mobile { display: none; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px 20px; gap: 4px; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--gray1); border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* --- LAYOUT --------------------------------------------------------------- */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 0 48px; }
.wide-wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* --- ARTICLE HERO --------------------------------------------------------- */
.article-hero { padding: 152px 0 56px; }
.label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.article-hero h1 { font-family: var(--font-head); font-size: clamp(36px, 4.5vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -2px; color: var(--white); margin-bottom: 24px; max-width: 760px; }
.hero-rule { width: 48px; height: 2px; background: var(--accent); margin: 32px 0; }
.hero-sub { font-size: 19px; font-weight: 300; color: var(--gray2); line-height: 1.7; max-width: 660px; }
.article-meta { margin-top: 32px; display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--gray3); }

/* --- VIDEO EMBED ---------------------------------------------------------- */
.video-section { padding: 24px 0 56px; border-bottom: 1px solid var(--border); }
.video-wrap { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.video-frame { position: relative; width: 100%; padding-bottom: 56.25%; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--gray3); }
.video-caption .yt-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 600; }
.video-caption .yt-pill:hover { opacity: 0.85; }

/* --- STAT STRIP ----------------------------------------------------------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 56px 0; border-bottom: 1px solid var(--border); }
.stat-card { padding: 26px 24px; background: var(--grad-card); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: var(--radius-md); transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out); }
.stat-card:hover { border-color: var(--border-hover); border-left-color: var(--accent); transform: translateY(-2px); }
.stat-value { font-family: var(--font-head); font-size: clamp(32px, 3vw, 44px); font-weight: 800; color: var(--white); letter-spacing: -1px; line-height: 1; }
.stat-value-accent { color: var(--accent); }
.stat-label { font-size: 13px; color: var(--gray3); margin-top: 10px; line-height: 1.45; }
@media (max-width: 768px) { .stat-strip { grid-template-columns: 1fr 1fr; gap: 12px; padding: 36px 0; } .stat-card { padding: 18px 16px; } }

/* --- ARTICLE BODY --------------------------------------------------------- */
.article-body { padding: 80px 0; }
.article-body h2 { font-family: var(--font-head); font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.15; letter-spacing: -1px; color: var(--white); margin: 64px 0 24px; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); margin: 48px 0 12px; }
.article-body p { font-size: 17px; font-weight: 300; color: var(--gray2); line-height: 1.75; margin-bottom: 20px; max-width: 68ch; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--white); font-weight: 500; }
.article-body ul, .article-body ol { margin: 16px 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.article-body li { font-size: 16px; font-weight: 300; color: var(--gray2); line-height: 1.65; max-width: 68ch; }
.article-body li strong { color: var(--white); font-weight: 500; }

.callout { background: var(--grad-card); border: 1px solid var(--border2); border-left: 3px solid var(--accent); border-radius: var(--radius-md); padding: 32px 36px; margin: 40px 0; box-shadow: var(--shadow-card); }
.callout h4 { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 16px; }
.callout p { font-size: 15px; margin-bottom: 12px; max-width: none; }
.callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 12px 0 0 20px; }
.callout li { font-size: 15px; }

/* --- PLAY / FUNDAMENTAL CARD (.fundamental is an alias used by SEO pillars) - */
.play, .fundamental { background: var(--grad-card); border: 1px solid var(--border2); border-radius: var(--radius-lg); padding: 48px 40px; margin: 48px 0; box-shadow: var(--shadow-card); transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.play:hover, .fundamental:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.play-num, .fundamental-num { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.play h3, .fundamental h3 { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: var(--white); margin: 0 0 20px; letter-spacing: -0.5px; }
.play p, .fundamental p { font-size: 16px; font-weight: 300; color: var(--gray2); line-height: 1.75; margin-bottom: 16px; max-width: none; }
.play p:last-child, .fundamental p:last-child { margin-bottom: 0; }
.play strong, .fundamental strong { color: var(--white); font-weight: 500; }
.play ul { margin: 12px 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.play li { font-size: 15px; font-weight: 300; color: var(--gray2); line-height: 1.6; }
.play li strong { color: var(--white); font-weight: 500; }

.data-block { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 28px; margin: 20px 0; }
.data-block p { font-size: 15px; margin-bottom: 10px; }
.data-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray3); margin-bottom: 10px; }

/* --- STAT ROW (hairline-divided cells — used by SEO pillar pages) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: 48px 0; border-radius: var(--radius-md); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 32px 28px; }
.stat-cell .v { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -1px; display: block; margin-bottom: 8px; }
.stat-cell .l { font-size: 13px; color: var(--gray3); line-height: 1.4; white-space: pre-line; }

.article-body blockquote { border-left: 2px solid var(--accent); padding: 8px 0 8px 28px; margin: 40px 0; }
.article-body blockquote p { font-size: 18px; font-weight: 400; color: var(--gray1); font-style: italic; line-height: 1.7; }

/* --- SOURCES -------------------------------------------------------------- */
.sources { background: var(--grad-card); border: 1px solid var(--border2); border-radius: var(--radius-md); padding: 36px 40px; margin: 48px 0; box-shadow: var(--shadow-card); }
.sources h3 { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 20px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sources li { font-size: 14px; font-weight: 300; color: var(--gray2); line-height: 1.6; padding-left: 16px; position: relative; }
.sources li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

/* --- CTA ------------------------------------------------------------------ */
.cta-section { background: var(--surface); border-top: 1px solid var(--border2); padding: 100px 0; }
.cta-section h2 { font-family: var(--font-head); font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--white); margin-bottom: 24px; }
.cta-offer { font-size: 18px; font-weight: 300; color: var(--gray2); line-height: 1.75; max-width: 580px; margin-bottom: 36px; }
.cta-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.cta-detail { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--gray2); font-weight: 300; }
.cta-detail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.cta-btn { display: inline-block; background: var(--accent); color: #080808; font-family: var(--font-head); font-size: 15px; font-weight: 700; padding: 16px 36px; border-radius: var(--radius); text-decoration: none; letter-spacing: 0.3px; cursor: pointer; transition: box-shadow 0.2s var(--ease-out), transform 0.15s var(--ease-out), filter 0.2s var(--ease-out); }
.cta-btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 10px 28px -10px rgba(200,241,53,0.5); }
.cta-btn:active { transform: translateY(0); box-shadow: none; }
.cta-reversal { margin-top: 20px; font-size: 13px; color: var(--gray3); font-weight: 300; max-width: none; }

/* --- FOOTER --------------------------------------------------------------- */
footer { padding: 48px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: var(--white); text-decoration: none; cursor: pointer; transition: opacity 0.2s var(--ease-out); }
.footer-logo:hover { opacity: 0.7; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 13px; color: var(--gray3); font-weight: 300; }
.footer-copy a { color: var(--gray3); text-decoration: none; transition: color 0.2s var(--ease-out); }
.footer-copy a:hover { color: var(--gray2); }

/* --- COMPARISON TABLES + TEST BLOCK (shared by city/comparison/SEO pages) -- */
.compare-table, .comparison-table { width: 100%; border-collapse: collapse; margin: 40px 0; border-radius: var(--radius-md); overflow: hidden; }
.compare-table th, .comparison-table th { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; color: var(--accent); text-align: left; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border2); text-transform: uppercase; }
.compare-table th:first-child { color: var(--gray3); }
.compare-table td, .comparison-table td { font-size: 15px; font-weight: 300; color: var(--gray2); line-height: 1.6; padding: 14px 20px; border: 1px solid var(--border); background: var(--bg); }
.compare-table td:first-child { font-weight: 500; color: var(--gray1); }
.compare-table tr:hover td, .comparison-table tbody tr:hover td { background: var(--surface); }
.comparison-table td strong { color: var(--white); font-weight: 500; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 40px 0; }
.table-scroll .compare-table, .table-scroll .comparison-table { margin: 0; }
.test-block { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px 28px; margin: 20px 0; }
.test-block p { font-size: 15px; margin-bottom: 10px; }
.test-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray3); margin-bottom: 10px; }
@media (max-width: 768px) {
  .compare-table, .comparison-table { font-size: 13px; }
  .compare-table th, .compare-table td, .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .test-block { padding: 20px; }
}

/* --- CHART FIGURE + RELATED LINKS (shared content components) -------------- */
.chart-fig { margin: 48px 0; border: 1px solid var(--border2); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.chart-fig img { display: block; width: 100%; height: auto; }
.chart-fig figcaption { font-size: 13px; color: var(--gray3); padding: 14px 20px; border-top: 1px solid var(--border); }
.related-links { margin: 64px 0 0; padding: 32px 0 0; border-top: 1px solid var(--border); }
.related-links h3 { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.related-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.related-links li { font-size: 15px; font-weight: 300; }
.related-links a { color: var(--gray1); text-decoration: none; border-bottom: 1px solid var(--border2); padding-bottom: 2px; transition: color 0.15s, border-color 0.15s; }
.related-links a:hover { color: var(--accent); border-color: var(--accent); }

/* --- REVEAL / MOTION ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-wrap, .wide-wrap, .video-wrap { padding: 0 20px; }
  .article-hero { padding: 112px 0 32px; }
  .video-section { padding: 12px 0 36px; }
  .article-body { padding: 56px 0; }
  .cta-section { padding: 72px 0; }
  footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; }
  .article-body p, .article-body li { max-width: none; }
  .callout, .sources { padding: 24px 20px; }
  .play { padding: 32px 24px; }
  .data-block { padding: 20px; }
  h1 { letter-spacing: -1.5px; }
  .nav-cta { font-size: 12px; padding: 8px 14px; }
}

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