/* EnergyCheck landing page — design tokens + styles */

:root {
  --navy: #29235C;
  --ink: #080716;
  --accent: #6DC030;
  --accent-hover: #5EAA28;
  --accent-muted: rgba(109, 192, 48, 0.10);
  --accent-muted-border: rgba(109, 192, 48, 0.25);
  --lime: #8FDB43;
  --green: #3EDC81;
  --yellow: #DEDC00;
  --text-2: #4A5568;
  --text-muted: #9CA3AF;
  --on-dark: #F0EFF8;
  --on-dark-muted: #9E9BBE;
  --surface-alt: #F5F7FA;
  --border: rgba(41, 35, 92, 0.08);
  --border-strong: rgba(41, 35, 92, 0.16);
  --gradient: linear-gradient(90deg, #DEDC00, #8FDB43, #3EDC81);
  --radius-card: 12px;
  --radius-lg: 16px;
  --radius-chip: 4px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
  --max-w-narrow: 1100px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 112px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  background: #FFFFFF;
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[id] { scroll-margin-top: 92px; }

a { color: inherit; }

img { max-width: 100%; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: transform 220ms var(--ease), filter 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(109, 192, 48, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); filter: none; }

.btn-small {
  font-size: 14px;
  padding: 11px 20px;
  box-shadow: 0 4px 14px rgba(109, 192, 48, 0.28);
}

.gradient-bar {
  height: 3px;
  background: var(--gradient);
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 30px; width: auto; display: block; }
.logo--sm { height: 28px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(41, 35, 92, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 35, 92, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000, transparent 92%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  bottom: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(62, 220, 129, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) var(--gutter) clamp(56px, 8vw, 104px);
}
.hero-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
}
.eyebrow-dash {
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
  flex: none;
}
.eyebrow--light { color: rgba(255, 255, 255, 0.7); }
.eyebrow--lime { color: var(--lime); margin-bottom: 22px; }

.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--navy);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 22px;
  color: var(--accent);
}
.hero-body {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(41, 35, 92, 0.22), 0 0 0 1px rgba(41, 35, 92, 0.06);
}
.hero-media img { display: block; width: 100%; height: auto; }
.hero-media .gradient-bar { position: absolute; left: 0; right: 0; bottom: 0; }

/* ── Hook band ─────────────────────────────────────────── */
.hook-band {
  background: var(--navy);
  padding: clamp(56px, 8vw, 88px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.hook-band-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}
.hook-band p {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.hook-band .lime { color: var(--lime); }

/* ── Sections shared ───────────────────────────────────── */
section.pad { padding: var(--section-y) var(--gutter); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 48px;
  color: var(--navy);
}

/* ── Hybrid model ──────────────────────────────────────── */
.hybrid { background: #FFFFFF; }
.hybrid .section-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hybrid h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}
.hybrid-body {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--text-2);
  margin: 0 0 26px;
  max-width: 600px;
}
.hybrid-quote {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.6;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.diagram { display: flex; flex-direction: column; gap: 14px; }
.diagram-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.diagram-card--final {
  background: var(--navy);
  border: none;
  box-shadow: 0 0 32px rgba(62, 220, 129, 0.12);
}
.diagram-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.diagram-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.diagram-icon svg { width: 22px; height: 22px; }
.diagram-icon--final {
  background: rgba(62, 220, 129, 0.15);
  color: var(--green);
}
.diagram-title { font-size: 16px; font-weight: 800; color: var(--navy); }
.diagram-card--final .diagram-title { color: var(--on-dark); }
.diagram-desc { font-size: 14px; color: var(--text-2); line-height: 1.5; }
.diagram-card--final .diagram-desc { color: var(--on-dark-muted); }

/* ── The Three ─────────────────────────────────────────── */
.three { background: var(--surface-alt); }
.three-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 20px;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(41, 35, 92, 0.05);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.card:hover { border-color: rgba(62, 220, 129, 0.4); transform: translateY(-3px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: var(--accent-muted);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; font-weight: 800; color: var(--navy); margin: 0 0 12px; }
.card p { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 16px; }
.card-closer { font-size: 15px; line-height: 1.5; font-weight: 700; color: var(--navy); margin: 0; }

/* ── Who we serve ──────────────────────────────────────── */
.serve { background: #FFFFFF; }
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 24px;
}
.serve-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(28px, 3vw, 40px);
}
.serve-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.serve-icon {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--navy);
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.serve-icon svg { width: 24px; height: 24px; }
.serve-card h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; }
.serve-card p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0; }
.serve-card p + p { margin-top: 0; margin-bottom: 14px; }
.trade-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent-muted-border);
  padding: 5px 11px;
  border-radius: var(--radius-chip);
}

/* ── The Moat ──────────────────────────────────────────── */
.moat {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.moat-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 219, 67, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 219, 67, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  pointer-events: none;
}
.moat-glow {
  position: absolute;
  top: -120px;
  left: -80px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(143, 219, 67, 0.10) 0%, transparent 65%);
  pointer-events: none;
}
.moat .section-inner { position: relative; max-width: 920px; }
.moat h2 { color: var(--on-dark); margin-bottom: 26px; }
.moat h2 .lime { color: var(--lime); }
.moat p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: var(--on-dark-muted);
  margin: 0;
  max-width: 760px;
}

/* ── Trust strip ───────────────────────────────────────── */
.trust-strip {
  background: var(--surface-alt);
  border-top: 1px solid rgba(41, 35, 92, 0.06);
  border-bottom: 1px solid rgba(41, 35, 92, 0.06);
  padding: clamp(36px, 5vw, 52px) var(--gutter);
}
.trust-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.trust-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.trust-desc { font-size: 13px; line-height: 1.5; color: var(--text-2); }

/* ── Contact / form ────────────────────────────────────── */
.contact { background: #FFFFFF; position: relative; overflow: hidden; }
.contact-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(62, 220, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.contact .section-inner {
  position: relative;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 5vw, 64px);
  align-items: start;
}
.contact h2 { margin: 0 0 22px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }
.contact-body { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; color: var(--text-2); margin: 0 0 28px; max-width: 520px; }
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  background: var(--accent-muted);
  border: 1px solid var(--accent-muted-border);
  padding: 10px 16px;
  border-radius: 9px;
}
.contact-chip svg { width: 18px; height: 18px; stroke: var(--accent); }

.form-card {
  background: #FFFFFF;
  border: 1px solid rgba(41, 35, 92, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 16px 48px rgba(41, 35, 92, 0.10);
}
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-btn);
  background: #FFFFFF;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.field textarea { resize: vertical; min-height: 96px; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  cursor: pointer;
}
.consent-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.consent-row a { color: var(--accent); font-weight: 600; text-decoration: underline; }

.cf-turnstile { margin-top: -4px; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 24px;
  border-radius: 9px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(109, 192, 48, 0.28);
  transition: transform 220ms var(--ease), filter 220ms var(--ease), opacity 220ms var(--ease);
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.05); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit svg { width: 16px; height: 16px; }

.form-error {
  font-size: 14px;
  font-weight: 600;
  color: #B42318;
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.2);
  border-radius: var(--radius-btn);
  padding: 12px 14px;
  margin: 0;
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 8px;
  text-align: left;
}
.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-muted);
  border: 1px solid var(--accent-muted-border);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg { width: 28px; height: 28px; }
.success-state h3 { font-size: 24px; font-weight: 900; color: var(--navy); margin: 0; letter-spacing: -0.02em; }
.success-state p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin: 0; max-width: 420px; }
.btn-reset {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: border-color 220ms var(--ease);
}
.btn-reset:hover { border-color: var(--navy); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-dark); position: relative; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; padding: clamp(48px, 6vw, 72px) var(--gutter) 40px; }
.footer-tagline {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 760px;
  margin: 0 0 40px;
  color: var(--on-dark);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-address { font-size: 14px; line-height: 1.7; color: var(--on-dark-muted); }
.footer-address a { color: var(--on-dark-muted); text-decoration: none; transition: color 220ms var(--ease); }
.footer-address a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
  font-size: 13px;
  color: #5C557E;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--on-dark-muted); text-decoration: none; transition: color 220ms var(--ease); }
.footer-links a:hover { color: var(--lime); }

/* ── Legal pages (privacy / terms) ─────────────────────── */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.legal-header .header-inner { max-width: var(--max-w-narrow); }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 220ms var(--ease);
}
.back-home:hover { color: var(--accent); }
.back-home svg { width: 15px; height: 15px; }

.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(64px, 9vw, 112px);
}
.legal-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.legal-main h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--navy);
}
.legal-date { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.legal-underline {
  height: 3px;
  width: 96px;
  background: var(--gradient);
  border-radius: 99px;
  margin: 24px 0 40px;
}
.legal-intro { font-size: 17px; line-height: 1.75; color: var(--text-2); margin: 0 0 36px; }
.legal-main h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin: 40px 0 14px;
  letter-spacing: -0.01em;
}
.legal-main p { font-size: 16px; line-height: 1.75; color: var(--text-2); margin: 0 0 16px; }
.legal-main ul { font-size: 16px; line-height: 1.75; color: var(--text-2); margin: 0 0 16px; padding-left: 22px; }
.legal-main li { margin-bottom: 8px; }
.legal-main strong { color: var(--navy); }
.legal-callout {
  background: var(--accent-muted);
  border: 1px solid var(--accent-muted-border);
  border-radius: var(--radius-card);
  padding: 20px 24px;
  margin: 0 0 16px;
}
.legal-callout p { color: var(--navy); margin: 0; }
.legal-contact-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-top: 12px;
}
.legal-contact-card .name { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.legal-contact-card .addr { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.legal-contact-card a { color: var(--accent); font-weight: 600; text-decoration: none; }

.legal-footer { background: var(--navy); color: var(--on-dark-muted); position: relative; }
.legal-footer .footer-inner {
  max-width: var(--max-w-narrow);
  padding: 36px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
