/*
Theme Name: SolarCoin
Theme URI: https://solarcoin.org
Author: SolarCoin Foundation
Description: Official SolarCoin website theme — bold solar energy aesthetic with amber/gold and dark navy.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: solarcoin
*/

/* ===== CSS CUSTOM PROPERTIES — Figma-accurate palette ===== */
:root {
  /* Primary — Golden Yellow (Figma JSON: #FFD501 ×72) */
  --color-primary: #FFD501;
  --color-primary-light: #FFD52E;
  --color-primary-dark: #FFC201;
  --color-primary-50: #FFFCED;
  --color-primary-100: #FFE082;
  --color-primary-200: #FFD52E;
  --color-primary-300: #FED22E;

  /* Accent — Amber & Orange (Figma JSON: #F8A70D ×68, #FF7B00 ×62) */
  --color-amber: #F8A70D;
  --color-amber-light: #FBC687;
  --color-orange-deep: #FF7B00;
  --color-gold: #FFE082;
  --color-gold-tint: #FDC95A;
  --color-gold-secondary: #FFC201;

  /* Navy (Figma JSON: #162742 ×529 fills + ×229 strokes) */
  --color-navy: #162742;
  --color-navy-light: #1D2D46;
  --color-dark: #0D0F1A;
  --color-dark-grey: #484B63;
  --color-slate: #69848F;

  /* Cream — DOMINANT background (Figma JSON: #F9F3D9 ×79, #FAF4DE ×30) */
  --color-cream: #F9F3D9;
  --color-cream-light: #FFFCED;
  --color-cream-alt: #FAF4DE;
  --color-off-white: #FAF4DE;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-pink: #FFBAE1;
  --color-pink-light: #FFEFF8;
  --color-brown: #A65612;

  /* Neutrals */
  --color-gray-100: #F5F5F5;
  --color-gray-200: #C4C4C4;
  --color-gray-300: #C8CACC;
  --color-gray-400: #A8A8A8;
  --color-gray-500: #909090;
  --color-gray-600: #69848F;
  --color-gray-800: #484B63;

  /* Text (Figma JSON: primary text is navy #162742) */
  --color-text: #162742;
  --color-text-light: #69848F;
  --color-text-muted: #69848F;
  --color-text-inverse: #FFFFFF;
  --color-text-on-primary: #162742;
  --color-text-link: #FF7B00;

  /* Shadows — warm amber-tinted, not cold gray */
  --shadow-sm: 0 1px 4px rgba(248,167,13,0.10), 0 2px 6px rgba(26,31,54,0.05);
  --shadow-md: 0 4px 14px rgba(248,167,13,0.13), 0 2px 8px rgba(26,31,54,0.06);
  --shadow-lg: 0 8px 28px rgba(248,167,13,0.16), 0 4px 14px rgba(26,31,54,0.07);
  --shadow-xl: 0 16px 48px rgba(248,167,13,0.20), 0 8px 24px rgba(26,31,54,0.09);
  --shadow-card: 0 4px 16px rgba(248,167,13,0.12), 0 1px 4px rgba(26,31,54,0.05);
  --shadow-card-hover: 0 10px 32px rgba(248,167,13,0.22), 0 4px 12px rgba(26,31,54,0.08);

  /* ===================================================================
     SOLARCOIN TYPOGRAPHY SYSTEM — 100 CSS Custom Properties
     Font choice: Plus Jakarta Sans (geometric humanist sans-serif)
     Warm, friendly, technically credible — ideal for a solar crypto brand.
     Fallback stack mirrors system-ui geometric sans for zero-FOUT resilience.
     =================================================================== */

  /* ------------------------------------------------------------------
     1. FONT FAMILIES (5)
     ------------------------------------------------------------------ */

  /* Primary heading face — bold geometric proportions, high x-height */
  --font-heading:    'Plus Jakarta Sans', 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Body copy — optimised for paragraph legibility at 16-18 px */
  --font-body:       'Plus Jakarta Sans', 'DM Sans', 'Inter', system-ui, sans-serif;

  /* Accent / pull-quotes / highlight labels — same family, tracked wide */
  --font-accent:     'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;

  /* Monospace — wallet addresses, code snippets */
  --font-mono:       'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;

  /* Display / hero — same family but relies on heavy weight + clamp sizing */
  --font-display:    'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;

  /* ------------------------------------------------------------------
     2. FONT SIZES — 20 properties, all responsive via clamp()
        Clamp formula: clamp(min, preferred-vw, max)
        Base: 16 px root, fluid from 375 px → 1440 px viewport.
     ------------------------------------------------------------------ */

  /* Utility micro sizes */
  --text-xs:          clamp(0.6875rem, 0.65rem + 0.19vw, 0.75rem);    /* 11–12 px  */
  --text-sm:          clamp(0.8125rem, 0.77rem + 0.22vw, 0.875rem);   /* 13–14 px  */
  --text-base:        clamp(0.9375rem, 0.88rem + 0.29vw, 1rem);       /* 15–16 px  */
  --text-md:          clamp(1rem,      0.93rem + 0.37vw, 1.125rem);   /* 16–18 px  */
  --text-lg:          clamp(1.125rem,  1.04rem + 0.43vw, 1.25rem);    /* 18–20 px  */
  --text-xl:          clamp(1.25rem,   1.14rem + 0.54vw, 1.5rem);     /* 20–24 px  */
  --text-2xl:         clamp(1.5rem,    1.36rem + 0.72vw, 1.875rem);   /* 24–30 px  */
  --text-3xl:         clamp(1.875rem,  1.68rem + 0.97vw, 2.25rem);    /* 30–36 px  */
  --text-4xl:         clamp(2.25rem,   1.96rem + 1.44vw, 3rem);       /* 36–48 px  */
  --text-5xl:         clamp(3rem,      2.5rem  + 2.5vw,  4rem);       /* 48–64 px  */
  --text-6xl:         clamp(3.5rem,    2.8rem  + 3.5vw,  5rem);       /* 56–80 px  */

  /* Semantic UI sizes */
  --text-hero:        clamp(3rem,      2.2rem  + 4vw,    5.5rem);     /* 48–88 px  — hero h1            */
  --text-stat-value:  clamp(2.5rem,    2rem    + 2.5vw,  4rem);       /* 40–64 px  — impact counter      */
  --text-badge:       clamp(0.6875rem, 0.64rem + 0.24vw, 0.8125rem); /* 11–13 px  — pill badges         */
  --text-nav:         clamp(0.875rem,  0.84rem + 0.19vw, 0.9375rem); /* 14–15 px  — nav links           */
  --text-button:      clamp(0.9375rem, 0.89rem + 0.24vw, 1rem);      /* 15–16 px  — CTA buttons         */
  --text-eyebrow:     clamp(0.6875rem, 0.65rem + 0.19vw, 0.8125rem); /* 11–13 px  — section labels      */
  --text-card-title:  clamp(1.125rem,  1.04rem + 0.43vw, 1.375rem);  /* 18–22 px  — feature card h      */
  --text-card-body:   clamp(0.9375rem, 0.9rem  + 0.19vw, 1rem);      /* 15–16 px  — feature card p      */
  --text-footer:      clamp(0.875rem,  0.84rem + 0.19vw, 0.9375rem); /* 14–15 px  — footer body         */
  --text-copyright:   clamp(0.75rem,   0.72rem + 0.15vw, 0.8125rem); /* 12–13 px  — copyright line      */

  /* ------------------------------------------------------------------
     3. FONT WEIGHTS (8)
     ------------------------------------------------------------------ */

  --weight-light:     300;
  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --weight-black:     900;
  /* Semantic alias — drives all heading elements (Figma: Black = 900) */
  --weight-heading:   900;

  /* ------------------------------------------------------------------
     4. LINE HEIGHTS (10)
     ------------------------------------------------------------------ */

  --leading-none:     1;      /* display / hero lockup, no extra air     */
  --leading-tight:    1.1;    /* large headings h1–h2                    */
  --leading-snug:     1.25;   /* h3–h4, card titles                      */
  --leading-normal:   1.5;    /* default for body copy                   */
  --leading-relaxed:  1.65;   /* long-form description paragraphs        */
  --leading-loose:    1.8;    /* FAQ answers, footnotes                  */
  /* Semantic aliases */
  --leading-heading:  1.15;   /* applied to all h1–h6 via base rule      */
  --leading-body:     1.6;    /* applied to body / p                     */
  --leading-card:     1.45;   /* feature card body text                  */
  --leading-stat:     1;      /* stat numbers — no extra space above/below */

  /* ------------------------------------------------------------------
     5. LETTER SPACING (8)
     ------------------------------------------------------------------ */

  --tracking-tighter:  -0.04em;  /* very large display at 64 px+        */
  --tracking-tight:    -0.02em;  /* h1–h3 headings                      */
  --tracking-normal:    0em;     /* body copy default                   */
  --tracking-wide:      0.03em;  /* sub-headings, card titles           */
  --tracking-wider:     0.06em;  /* buttons                             */
  --tracking-widest:    0.12em;  /* eyebrow / badge labels (uppercase)  */
  /* Semantic aliases */
  --tracking-heading:  -0.025em; /* consolidated heading tracking       */
  --tracking-eyebrow:   0.1em;   /* section eyebrow labels (uppercase)  */

  /* ------------------------------------------------------------------
     6. TEXT TRANSFORMS
     (applied as utility classes; documented here for design reference)

     .text-uppercase  — eyebrow labels, badge text, nav items (optional)
                        text-transform: uppercase; + --tracking-eyebrow
     .text-capitalize — CTA button labels
                        text-transform: capitalize;
     .text-italic     — hero h1 <em> word ("Solar-Powered")
                        font-style: italic; font-weight: --weight-extrabold
     .text-normal-case — reset for child elements inside uppercase parents
                        text-transform: none;
     ------------------------------------------------------------------ */

  /* ------------------------------------------------------------------
     7. PARAGRAPH / TEXT SPACING (15)
     ------------------------------------------------------------------ */

  --text-indent:             0;            /* no first-line indent (web standard) */
  --paragraph-spacing:       1rem;         /* margin-bottom on <p>                */
  --list-spacing:            0.5rem;       /* gap between <li> items              */

  /* Heading margin-bottom — proportional to size */
  --heading-margin-bottom-h1: 1.5rem;      /* hero / page title                  */
  --heading-margin-bottom-h2: 1.25rem;     /* section titles                     */
  --heading-margin-bottom-h3: 1rem;        /* sub-section / card heading         */
  --heading-margin-bottom-h4: 0.75rem;     /* feature group label                */
  --heading-margin-bottom-h5: 0.5rem;      /* minor grouping                     */
  --heading-margin-bottom-h6: 0.375rem;    /* smallest structural label          */

  /* Section-level rhythm */
  --section-eyebrow-gap:     0.75rem;      /* space below eyebrow before title   */
  --section-title-gap:       1.25rem;      /* space below section h2 before desc */
  --section-desc-gap:        2rem;         /* space below description before CTA */

  /* List & inline spacing */
  --list-item-indent:        1.25rem;      /* padding-left on semantic lists     */
  --inline-code-padding:     0.2em 0.45em; /* padding inside <code> spans        */

  /* ------------------------------------------------------------------
     8. RESPONSIVE BREAKPOINT SIZES (10)
        Discrete overrides for key elements at named breakpoints.
        Used inside @media queries; these variables are re-declared
        inside breakpoint blocks to override the base clamp() values
        where precise control is needed.
     ------------------------------------------------------------------ */

  /* Mobile (≤ 480 px) discrete fallbacks */
  --text-hero--mobile:          2.75rem;   /* 44 px — prevents overflow on 375 */
  --text-stat-value--mobile:    2rem;      /* 32 px                            */

  /* Tablet (481–768 px) */
  --text-hero--tablet:          3.5rem;    /* 56 px                            */
  --text-stat-value--tablet:    2.75rem;   /* 44 px                            */
  --text-section-title--tablet: 2.25rem;   /* 36 px                            */

  /* Desktop (769–1024 px) */
  --text-hero--desktop:         4.5rem;    /* 72 px                            */
  --text-section-title--desktop:3rem;      /* 48 px                            */

  /* Wide (≥ 1200 px) */
  --text-hero--wide:            5.5rem;    /* 88 px                            */
  --text-stat-value--wide:      4rem;      /* 64 px                            */
  --text-section-title--wide:   3.5rem;    /* 56 px                            */

  /* ------------------------------------------------------------------
     9. SPECIAL TYPOGRAPHY — SECTION-SPECIFIC (20)
        Named semantic tokens that map to exact UI contexts.
        These consume the primitive tokens above and add intent.
     ------------------------------------------------------------------ */

  --hero-title-size:       var(--text-hero);          /* hero h1 "Incentivizing a..."     */
  --hero-subtitle-size:    clamp(1.1rem, 1rem + 0.54vw, 1.375rem); /* hero p lead       */
  --hero-badge-size:       var(--text-badge);          /* "Blockchain for Solar Energy"    */
  --hero-stat-number-size: var(--text-stat-value);     /* 98.34B / 1 SLR / 40 Year        */
  --hero-stat-label-size:  var(--text-sm);             /* "Total SLR Supply" label         */

  --section-title-size:    clamp(2rem, 1.7rem + 1.5vw, 3rem);      /* every section h2  */
  --section-eyebrow-size:  var(--text-eyebrow);        /* "About SolarCoin" pill labels    */
  --section-desc-size:     var(--text-md);             /* section lead paragraph           */

  --stat-number-size:      var(--text-stat-value);     /* impact stats grid numbers        */
  --stat-label-size:       var(--text-sm);             /* impact stats grid labels         */

  --feature-card-title-size: var(--text-card-title);  /* how-it-works / feature cards     */
  --feature-card-body-size:  var(--text-card-body);   /* card description body            */
  --feature-step-num-size: clamp(3rem, 2.5rem + 2.5vw, 5rem);      /* step "01" large    */

  --nav-link-size:         var(--text-nav);            /* main nav <a> links               */
  --nav-brand-size:        clamp(1.125rem, 1rem + 0.6vw, 1.375rem); /* "SolarCoin" logo   */

  --cta-headline-size:     clamp(2rem, 1.6rem + 2vw, 3.5rem);       /* CTA section h2    */
  --cta-body-size:         var(--text-lg);             /* CTA supporting paragraph         */

  --faq-question-size:     clamp(1rem, 0.93rem + 0.36vw, 1.125rem); /* FAQ accordion q   */
  --faq-answer-size:       var(--text-base);           /* FAQ answer body text             */

  --footer-heading-size:   var(--text-sm);             /* footer column headings           */
  --footer-link-size:      var(--text-footer);         /* footer nav links                 */
  --footer-copyright-size: var(--text-copyright);      /* © 2024 SolarCoin Foundation      */

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.625rem; /* 10px — Figma auto-layout dominant gap */
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1236px; /* Figma inner content width */
  --container-wide: 1400px;
  --border-radius: 20px;
  --border-radius-xs: 2px;
  --border-radius-sm: 10px;
  --border-radius-lg: 20px;
  --border-radius-xl: 20px;
  --border-radius-pill: 100px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Gradients — Figma warm treatments */
  --gradient-hero: linear-gradient(135deg, var(--color-cream) 0%, var(--color-cream-alt) 40%, #FFF8E1 100%);
  --gradient-sun-glow: radial-gradient(circle at 70% 40%, rgba(240,192,0,0.18) 0%, rgba(248,167,13,0.08) 40%, transparent 70%);
  --gradient-card-warm: linear-gradient(180deg, var(--color-white) 0%, var(--color-off-white) 100%);
  --gradient-amber: linear-gradient(135deg, var(--color-primary) 0%, var(--color-orange-deep) 100%);
  --gradient-navy-accent: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 2;
  color: var(--color-text);
  background-color: var(--color-cream);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0em; /* Figma: no letter-spacing on headings */
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.125rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: var(--container-wide);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.25rem; /* Figma: 10px 20px auto-layout */
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-navy);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn--secondary:hover {
  background: rgba(22,39,66,0.08);
  color: var(--color-navy);
  border-color: var(--color-navy);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--dark:hover {
  background: var(--color-navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 0.9375rem;
}

/* ===== HEADER / NAVIGATION ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background: rgba(249, 243, 217, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(240,192,0,0.10);
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo__icon {
  width: 25px; /* Figma: ~25px */
  height: 25px;
  color: var(--color-primary);
}

.site-logo__text {
  font-size: 1.5625rem;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color var(--transition-base);
}

.site-header.scrolled .site-logo__text {
  color: var(--color-navy);
}

.site-logo__text span {
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav__link {
  font-size: 0.9375rem;
  font-weight: 400; /* Figma: Regular */
  color: var(--color-navy);
  letter-spacing: 0.07em; /* Figma: 7% */
  transition: color var(--transition-base);
  position: relative;
}

.main-nav__link:hover,
.main-nav__link.active {
  color: var(--color-navy);
}

.site-header.scrolled .main-nav__link {
  color: var(--color-navy);
}

.site-header.scrolled .main-nav__link:hover,
.site-header.scrolled .main-nav__link.active {
  color: var(--color-navy);
}

.main-nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.main-nav__link:hover::after,
.main-nav__link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-md);
}

/* Menu toggle — always visible (overlay nav, not mobile-only) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1002;
  position: relative;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  transition: all var(--transition-base);
  transform-origin: center;
}

.site-header.scrolled .menu-toggle span {
  background: var(--color-navy);
}

/* Hamburger → X animation */
.main-nav.open .menu-toggle span {
  background: var(--color-cream);
}

.main-nav.open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.main-nav.open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.main-nav.open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== NAV OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: var(--color-navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.main-nav.open .nav-overlay {
  opacity: 1;
  visibility: visible;
}

.nav-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px var(--space-xl) var(--space-3xl);
  position: relative;
}

.nav-overlay__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl) var(--space-4xl);
  max-width: 900px;
  width: 100%;
}

.nav-overlay__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.nav-overlay__link {
  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--color-cream);
  letter-spacing: 0.07em;
  text-transform: lowercase;
  text-decoration: none;
  transition: color var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.main-nav.open .nav-overlay__link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-base);
}

.nav-overlay__link:hover {
  color: var(--color-orange-deep);
}

.nav-overlay__link--cta {
  font-weight: 900;
  color: var(--color-orange-deep);
}

.nav-overlay__link--cta:hover {
  color: var(--color-primary);
}

/* Stagger animation — interleave left/right columns */
.nav-overlay__col:first-child .nav-overlay__link:nth-child(1) { transition-delay: 0.06s; }
.nav-overlay__col:nth-child(2) .nav-overlay__link:nth-child(1) { transition-delay: 0.12s; }
.nav-overlay__col:first-child .nav-overlay__link:nth-child(2) { transition-delay: 0.18s; }
.nav-overlay__col:nth-child(2) .nav-overlay__link:nth-child(2) { transition-delay: 0.24s; }
.nav-overlay__col:first-child .nav-overlay__link:nth-child(3) { transition-delay: 0.30s; }
.nav-overlay__col:nth-child(2) .nav-overlay__link:nth-child(3) { transition-delay: 0.36s; }
.nav-overlay__col:first-child .nav-overlay__link:nth-child(4) { transition-delay: 0.42s; }
.nav-overlay__col:nth-child(2) .nav-overlay__link:nth-child(4) { transition-delay: 0.48s; }

/* Decorative orange rectangles (top-right) */
.nav-overlay__decor {
  position: absolute;
  top: 60px;
  right: 40px;
  display: flex;
  gap: 8px;
}

.nav-overlay__decor span {
  display: block;
  width: 40px;
  height: 12px;
  background: var(--color-orange-deep);
  border-radius: 2px;
  transform: rotate(-12deg);
}

.nav-overlay__decor span:nth-child(2) {
  transform: rotate(-12deg) translateY(6px);
  opacity: 0.7;
}

.nav-overlay__decor span:nth-child(3) {
  transform: rotate(-12deg) translateY(12px);
  opacity: 0.4;
}

/* Footer: social icons + copyright */
.nav-overlay__footer {
  margin-top: var(--space-4xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.nav-overlay__social {
  display: flex;
  gap: var(--space-md);
}

.nav-overlay__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  background: var(--color-orange-deep);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 0.8rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-overlay__social-link:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.nav-overlay__social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nav-overlay__copyright {
  font-size: 0.9375rem;
  font-weight: 200;
  color: var(--color-white);
  letter-spacing: 0.33em;
}

/* Header state when overlay is open */
.site-header.nav-open {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
}

.site-header.nav-open .site-logo__text {
  color: var(--color-cream);
}

.site-header.nav-open .site-logo__icon {
  color: var(--color-cream);
}

/* Hide CTA button when overlay is open */
.main-nav.open .nav-cta {
  opacity: 0;
  pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--color-cream);
  overflow-y: hidden;
  overflow-x: clip;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,213,1,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 35% 75%, rgba(248,167,13,0.08) 0%, transparent 45%);
}

.hero__sun {
  position: absolute;
  right: -15%;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  opacity: 0.22;
  color: var(--color-amber);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: var(--space-4xl) 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: rgba(255, 213, 1, 0.18);
  border: 1px solid rgba(255, 213, 1, 0.35);
  border-radius: var(--border-radius-pill);
  color: var(--color-navy);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.75rem, 5vw, 4.375rem);
  color: var(--color-navy);
  margin-bottom: var(--space-xl);
  letter-spacing: 0em;
  line-height: 1.14;
  font-weight: 900;
}

.hero__title em {
  font-style: normal;
  color: var(--color-navy);
}

.hero__subtitle {
  font-size: clamp(1.125rem, 1.5vw, 1.5625rem);
  color: var(--color-navy);
  line-height: 1.4;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 1.5625rem; /* 25px — Figma auto-layout */
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(22, 39, 66, 0.12);
}

.hero__stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-gold-secondary);
  display: block;
}

.hero__stat-label {
  font-size: 0.875rem;
  color: rgba(22, 39, 66, 0.5);
  margin-top: var(--space-xs);
  display: block;
}

/* ===== SUN MOTIF (SVG Starburst) ===== */
.sun-motif {
  display: inline-block;
}

.sun-motif svg {
  fill: var(--color-primary);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--space-5xl) 0;
}

.section--cream {
  background: var(--color-cream);
}

.section--amber {
  background: var(--color-primary);
  color: var(--color-navy);
}

.section--navy {
  background: var(--color-navy);
  color: #F9F3D9;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy p,
.section--navy .section__title,
.section--navy .section__description,
.section--navy .step-card__number,
.section--navy .step-card__title,
.section--navy .step-card__text {
  color: #F9F3D9 !important;
}

.section--navy .section__eyebrow {
  color: var(--color-primary);
}

.section--amber {
  background: var(--color-primary);
  color: var(--color-navy);
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.6875rem; /* 11px — Figma: Urbane Light 11px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em; /* Figma: 15% */
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.section__title {
  margin-bottom: var(--space-md);
  line-height: 0.98; /* Figma: 49px / 50px = 0.98 */
}

.section__description {
  font-size: 1.0625rem;
  color: var(--color-navy);
  line-height: 1.7;
}

.section--navy .section__description,
.section--dark .section__description {
  color: #F9F3D9 !important;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  counter-reset: step;
}

.step-card {
  background: transparent;
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  position: relative;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  counter-increment: step;
}

.step-card:hover {
  transform: translateY(-4px);
}

.step-card__number {
  font-size: 3.125rem;
  font-weight: 900;
  color: var(--color-cream);
  margin-bottom: var(--space-lg);
  line-height: 1;
}

.step-card__title {
  font-size: 1.5625rem; /* 25px — Figma step card titles */
  font-weight: 600; /* Figma: Semibold */
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
  line-height: 1.48; /* Figma: 37/25 */
}

.step-card__text {
  font-size: 1.0625rem;
  color: var(--color-cream);
  line-height: 2;
}

/* Step card buttons — Figma: cream outline, ~13px Regular on navy bg */
.step-card .btn {
  background: transparent;
  color: #F9F3D9;
  border-color: #F9F3D9;
  font-size: 0.9375rem;
}

.step-card .btn:hover {
  background: rgba(249, 243, 217, 0.12);
  color: #F9F3D9;
  border-color: #F9F3D9;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-off-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid rgba(255,213,1,0.10);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 213, 1, 0.12);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
}

.feature-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* ===== REWARDS SECTION ===== */
.rewards-content {
  max-width: 700px;
}

.rewards-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ===== IMPACT / STATS SECTION ===== */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.impact-card {
  text-align: center;
  padding: var(--space-2xl);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(22, 39, 66, 0.08);
  border-radius: var(--border-radius-lg);
}

.impact-card__value {
  font-size: clamp(2.5rem, 5vw, 4.375rem);
  font-weight: 900;
  color: var(--color-gold-secondary);
  display: block;
  margin-bottom: var(--space-sm);
  line-height: 1.14;
}

/* Mission stat values — Figma: white ghost text on cream (decorative) */
.mission-stat .impact-card__value {
  color: #FFFFFF;
}

/* Mission stat descriptions — Figma: Polymath Display Light 20px, lh 34px, ls 5% */
.mission-stat .section__description {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-top: var(--space-sm);
}

/* ===== MISSION GRID ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

#mission .section__title,
#mission .section__description {
  max-width: 700px;
}

.impact-card__label {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-navy);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1.7; /* Figma: 34/20 */
  letter-spacing: 0.05em;
}

.impact-card__desc {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-navy);
  letter-spacing: 0.05em;
  line-height: 1.7;
}

/* ===== CTA EMAIL SIGNUP ===== */
.cta-signup {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-signup__icon {
  color: var(--color-primary);
  margin-bottom: var(--space-xl);
}

.cta-signup__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 450px;
  margin: 0 auto;
}

.cta-signup__input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--color-navy);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: transparent;
  color: var(--color-navy);
}

.cta-signup__input::placeholder {
  color: rgba(22, 39, 66, 0.5);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  position: relative;
  background: var(--color-primary);
  border-radius: var(--border-radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  overflow: hidden;
}

.cta-banner__sun {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  opacity: 0.2;
}

.cta-banner__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 2;
}

.cta-banner__text {
  font-size: 1.125rem;
  color: rgba(26, 31, 54, 0.7);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.cta-banner__actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

/* ===== ABOUT / SPLIT SECTIONS ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}

.split--reverse > * {
  direction: ltr;
}

.split__content {
  max-width: 520px;
}

.split__media {
  position: relative;
}

.split__media img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
}

.split__media::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: var(--color-primary);
  border-radius: var(--border-radius);
  z-index: -1;
  opacity: 0.3;
}

/* ===== PARTNERS SECTION ===== */
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.partners-row:hover {
  opacity: 0.8;
}

.partner-logo {
  height: 40px;
  filter: grayscale(100%);
  transition: filter var(--transition-base);
}

.partner-logo:hover {
  filter: grayscale(0%);
}

/* ===== FAQ SECTION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(22,39,66,0.12);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-xl) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.5625rem;
  font-weight: 600;
  color: var(--color-navy);
  text-align: left;
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

.faq-item__answer p {
  padding-bottom: var(--space-xl);
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-simple {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .site-logo {
  margin-bottom: var(--space-md);
}

.site-footer .site-logo__text {
  color: var(--color-cream);
}

.footer-copyright a {
  color: inherit;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.875rem; /* 14px — Figma */
  font-weight: 300;
  color: var(--color-white);
  letter-spacing: 0.19em; /* Figma: 19% */
  line-height: 1.5;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-nav__link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-nav__link:hover {
  color: var(--color-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
}

.footer-social__link:hover {
  background: var(--color-primary);
  color: var(--color-navy);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(240, 192, 0, 0.15);
  font-size: 0.875rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ===== PAGE TEMPLATE ===== */
.page-title {
  text-align: center;
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

/* ===== PAGE HERO — Internal pages (shorter than homepage hero) ===== */
.hero--page {
  min-height: auto;
  padding: 120px 0 var(--space-4xl);
}

.hero--page .hero__content {
  padding: var(--space-3xl) 0 var(--space-xl);
}

.hero--page .hero__sun {
  width: 500px;
  height: 500px;
  right: -10%;
  top: 50%;
  opacity: 0.18;
}

.hero--page .hero__title {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  margin-bottom: var(--space-lg);
}

.hero--page .hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .hero--page {
    padding: 80px 0 var(--space-2xl);
  }
  .hero--page .hero__sun {
    width: 300px;
    height: 300px;
    right: -20%;
  }
}

/* ===== CODE BLOCK — API examples ===== */
.sc-code-block {
  background: var(--color-dark);
  color: #e0e0e0;
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  box-shadow: var(--shadow-lg);
}

.sc-code-block code {
  color: #e0e0e0;
  background: none;
  padding: 0;
}

.sc-code-block .code-keyword { color: #FF7B00; }
.sc-code-block .code-string { color: #FFC201; }
.sc-code-block .code-comment { color: #69848F; }

/* ===== CTA BANNER VARIANTS ===== */
.cta-banner--navy {
  background: var(--color-navy);
}

.cta-banner--navy .cta-banner__title {
  color: var(--color-cream);
}

.cta-banner--navy .cta-banner__text {
  color: rgba(249, 243, 217, 0.7);
}

.cta-banner--gold {
  background: var(--color-primary);
}

/* ===== CARD GRID — Generic responsive card layouts ===== */
.sc-card-grid {
  display: grid;
  gap: var(--space-xl);
}

.sc-card-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.sc-card-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.sc-card-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .sc-card-grid--cols-3,
  .sc-card-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sc-card-grid--cols-2,
  .sc-card-grid--cols-3,
  .sc-card-grid--cols-4 { grid-template-columns: 1fr; }
}

.sc-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.sc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.sc-card--cream {
  background: var(--color-cream-alt);
  box-shadow: none;
  border: 1px solid rgba(22, 39, 66, 0.08);
}

.sc-card--navy {
  background: var(--color-navy);
  color: var(--color-cream);
}

.sc-card--navy h3, .sc-card--navy h4, .sc-card--navy p {
  color: var(--color-cream);
}

.sc-card__eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-orange-deep);
  margin-bottom: var(--space-sm);
}

.sc-card__title {
  font-size: var(--text-card-title);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.sc-card__text {
  font-size: var(--text-card-body);
  color: var(--color-dark-grey);
  line-height: var(--leading-card);
}

.sc-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-orange-deep);
  transition: gap var(--transition-fast);
}

.sc-card__link:hover {
  gap: var(--space-sm);
}

/* ===== STAT CARDS ===== */
.sc-stat {
  text-align: center;
  padding: var(--space-xl);
}

.sc-stat__value {
  font-size: var(--text-stat-value);
  font-weight: var(--weight-black);
  color: var(--color-navy);
  line-height: var(--leading-stat);
  margin-bottom: var(--space-sm);
}

.sc-stat__label {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-orange-deep);
  margin-bottom: var(--space-xs);
}

.sc-stat__desc {
  font-size: var(--text-card-body);
  color: var(--color-dark-grey);
  line-height: var(--leading-card);
}

/* ===== STEPS — Numbered sequences ===== */
.sc-steps {
  max-width: 800px;
  margin: 0 auto;
  counter-reset: step-counter;
}

.sc-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

.sc-step + .sc-step {
  border-top: 1px solid rgba(22, 39, 66, 0.1);
}

.sc-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-navy);
  flex-shrink: 0;
}

.sc-step__content {
  flex: 1;
}

.sc-step__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-xs);
}

.sc-step__text {
  font-size: var(--text-base);
  color: var(--color-dark-grey);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .sc-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ===== HOW IT WORKS PAGE ===== */
.hiw-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--color-dark-grey);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.hiw-steps {
  max-width: 1000px;
  margin: 0 auto var(--space-4xl);
  background: var(--color-cream-alt);
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--border-radius-lg);
}

.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.hiw-step + .hiw-step {
  margin-top: var(--space-3xl);
}

.hiw-step__number {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-navy);
  flex-shrink: 0;
}

.hiw-step__content {
  flex: 1;
  min-width: 250px;
}

.hiw-step__title {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.hiw-step__text {
  font-size: 1.0625rem;
  color: var(--color-dark-grey);
  line-height: 2;
}

.hiw-calculator {
  max-width: 1000px;
  margin: 0 auto var(--space-4xl);
}

.hiw-calculator__title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hiw-calculator__card {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.hiw-calculator__example {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: var(--space-xl);
}

.hiw-calculator__math {
  background: var(--color-primary-50);
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-md);
}

.hiw-calculator__math p {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.hiw-calculator__backlog {
  font-size: 1.5rem;
  color: var(--color-orange-deep);
  font-weight: 900;
  margin-top: var(--space-lg);
}

.hiw-calculator__note {
  font-size: 0.875rem;
  color: var(--color-slate);
}

.hiw-calculator__source {
  font-size: 0.8125rem;
  color: var(--color-gray-400);
  margin-top: var(--space-sm);
}

.hiw-calculator__source a {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.hiw-faq {
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
}

.hiw-faq__title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hiw-faq__item {
  background: var(--color-white);
  border-left: 5px solid var(--color-primary);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-sm);
}

.hiw-faq__question {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.hiw-faq__answer {
  color: var(--color-dark-grey);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 0;
}

.hiw-faq__answer a {
  color: var(--color-primary-dark);
  font-weight: 600;
}

.hiw-cta {
  background: var(--gradient-amber);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  margin: 0 auto;
}

.hiw-cta__title {
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.hiw-cta__subtitle {
  font-size: 1.25rem;
  color: rgba(22, 39, 66, 0.8);
  margin-bottom: var(--space-xl);
}

/* Page title centering for content pages */
.page-content {
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .hiw-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hiw-step__number {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .hiw-calculator__math p {
    font-size: 1rem;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .split--reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .site-header .container {
    height: 64px;
  }

  .hero {
    padding-top: 64px;
  }

  .main-nav__list {
    display: none;
  }

  .main-nav.open .main-nav__list {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-cream);
    padding: var(--space-2xl);
    gap: var(--space-xl);
    z-index: 999;
  }

  .main-nav.open .main-nav__link {
    font-size: 1.25rem;
    color: var(--color-navy);
  }

  /* Nav overlay — single column on mobile */
  .nav-overlay__links {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .nav-overlay__link {
    font-size: 1.375rem;
  }

  .nav-overlay__inner {
    padding: 100px var(--space-lg) var(--space-2xl);
  }

  .nav-overlay__decor {
    top: 30px;
    right: 20px;
  }

  .nav-overlay__decor span {
    width: 28px;
    height: 8px;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cta-banner {
    padding: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .section {
    padding: var(--space-3xl) 0;
  }
}

/* ============================================================
   RESPONSIVE & MOBILE UX FIXES (2026-04-19)
   Adds 480px breakpoint, tap targets, safe-areas, fluid type,
   reduced-motion guard, iOS input-zoom prevention.
   ============================================================ */

/* Prevent any future widget from causing horizontal scroll */
html {
  overflow-x: clip;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: rgba(22, 39, 66, 0.15);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Tap target minimums (WCAG 2.5.5 / Apple HIG) */
.btn {
  min-height: 44px;
}

.menu-toggle {
  width: 48px;
  height: 48px;
}

.nav-overlay__social-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* iOS input-zoom prevention: anything < 16px triggers viewport zoom on focus */
input,
textarea,
select {
  font-size: max(16px, 1rem);
}

/* Reduced-motion guard for vestibular safety */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus-visible: make keyboard focus visible on cream backgrounds */
.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-orange-deep, #FF7B00);
  outline-offset: 2px;
}

/* Float-widget safe-area: respect iOS home-indicator */
#scFbBtn,
#launcher,
.trx_addons_scroll_to_top {
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
}

/* ===== Tablet & smaller: 1024 ===== */
@media (max-width: 1024px) {
  /* Impact grid was missing from existing 1024 block */
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Mobile: 768 ===== */
@media (max-width: 768px) {
  /* Container hugs edges on small viewports — restore breathing room */
  .container {
    padding-inline: clamp(16px, 4vw, 24px);
  }

  /* Impact grid had no 1-col rule → cards overflowed viewport */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Hero title: was 44px fixed and broke "solar-powered" mid-word */
  .hero__title {
    font-size: clamp(1.875rem, 7.5vw, 2.75rem);
    line-height: 1.1;
    word-break: keep-all;
    hyphens: none;
    max-inline-size: 18ch;
  }

  /* Hero decorative sun was 700px wide on 375px viewport */
  .hero__sun {
    width: min(80vw, 400px);
    height: min(80vw, 400px);
    right: -10%;
  }

  /* Stack & cap hero CTAs */
  .hero__actions {
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Rewards-section action row (home page): the new Economic Research
     button was overlapped by the floating Help widget on mobile.
     Wrap, center, cap width. */
  .rewards-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-bottom: 80px; /* breathing room above floating widgets */
  }

  .rewards-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Footer leaves space below for floating widgets on iOS */
  .site-footer {
    padding-bottom: max(var(--space-2xl), env(safe-area-inset-bottom));
  }
}

/* ===== Small mobile: 480 — iPhone SE / mini, small Android ===== */
@media (max-width: 480px) {
  /* Header CTA button was being clipped (Create a Free Ac...).
     Hide it; CTA still lives inside the nav overlay. */
  .nav-cta {
    display: none;
  }

  /* Tighten header so logo + hamburger fit comfortably */
  .site-header .container {
    padding-inline: 16px;
  }

  /* Reduce hero & section padding to claw back vertical space */
  .hero {
    padding-top: 80px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  /* Eyebrow/badge: long copy was wrapping awkwardly */
  .hero__badge {
    font-size: 0.8125rem;
  }
}

/* ===== Landscape phones — keep hero CTA above fold ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 56px;
    padding-bottom: var(--space-lg);
  }

  .hero__title {
    font-size: 1.5rem;
  }
}
