/* ==========================================================================
   Federal Energy Strategy - shared stylesheet
   Design system foundations and reusable primitives.
   Page-specific section styles are added during page build.
   Build rules honored here: sentence-case in any UI text, no em-dashes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Self-hosted Inter (variable woff2, latin, weights 100 to 900)
   No external font fetch. File lives in assets/.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/inter-variable.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand navy */
  --navy: #1a3a6b;
  --navy-accent: #2c4a7c;

  /* Descending navy shades (also the chart bar ramp) */
  --navy-1: #1a3a6b;
  --navy-2: #2c4a7c;
  --navy-3: #3a5a8f;
  --navy-4: #5a76a3;
  --navy-5: #8397b8;
  --navy-6: #b8c4d8;

  /* Text */
  --text: #141414;
  --text-2: #555;
  --muted: #777;
  --muted-2: #999;

  /* Surfaces and borders */
  --white: #ffffff;
  --panel: #f7f9fc;
  --panel-alt: #eef2f8;
  --panel-border: #e2e8f2;
  --hair: #eaeaea;
  --hair-2: #eee;

  /* Radii */
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Layout */
  --maxw: 1120px;
  --maxw-narrow: 760px;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
  --shadow-md: 0 6px 24px rgba(26, 58, 107, 0.08);
  --focus-ring: 0 0 0 3px rgba(26, 58, 107, 0.45);
  --focus-ring-light: 0 0 0 3px rgba(255, 255, 255, 0.85);
  --transition: 160ms ease;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to in-page anchors */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
}

strong {
  color: var(--text);
  font-weight: 700;
}

/* Eyebrow label above section headers */
.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-accent);
  margin: 0 0 var(--s-3);
}

.lead {
  font-size: 1.13rem;
  color: var(--text-2);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.italic {
  font-style: italic;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--s-5);
}

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

.section {
  padding-block: var(--s-9);
}

.section-sm {
  padding-block: var(--s-8);
}

/* Section band variants */
.band-panel {
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.band-navy {
  background: var(--navy);
  color: var(--white);
}
.band-navy h1,
.band-navy h2,
.band-navy h3 {
  color: var(--white);
}
.band-navy p {
  color: rgba(255, 255, 255, 0.85);
}

/* Centered header cluster for a section */
.section-head {
  text-align: center;
  max-width: var(--maxw-narrow);
  margin-inline: auto;
  margin-bottom: var(--s-7);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}

/* Navy filled */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-accent);
  border-color: var(--navy-accent);
  color: var(--white);
}

/* White bordered (on light backgrounds) */
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--panel-border);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* White filled (on navy backgrounds) */
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   7. Accessibility helpers and focus states
   -------------------------------------------------------------------------- */

/* Visible keyboard focus for every interactive element.
   :focus-visible keeps the ring for keyboard users without showing it on
   mouse click. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

/* Light focus ring for interactive elements on navy backgrounds, where the
   navy ring would vanish. Applies inside .band-navy and the navy footer. */
.band-navy a:focus-visible,
.band-navy button:focus-visible,
.band-navy .btn:focus-visible,
.band-navy [tabindex]:focus-visible,
.site-footer a:focus-visible,
.site-footer button:focus-visible {
  box-shadow: var(--focus-ring-light);
}

/* Visually hidden but available to assistive tech */
.visually-hidden {
  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 for keyboard users */
.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -60px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top var(--transition);
}
.skip-link:focus {
  top: var(--s-3);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   8. Header and navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--hair);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 72px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo img {
  /* Cropped, tight-bounded wordmark (padding removed from the source square).
     At 40px the "FES" caps read at roughly 25px. */
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:hover {
  color: var(--navy);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

/* Mobile menu toggle (wired in main.js) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-block: var(--s-8);
}
.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Footer wordmark, plain white text for now.
   The source logo is an opaque square, so a brightness/invert knockout
   flattens to a white box. Using white "FES" text keeps the footer clean.
   TODO(assets): when a real white/knockout PNG (fes-logo-white.png) is
   supplied, swap this text span back to an <img>. */
.footer-wordmark {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--white);
  line-height: 1;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin: 0;
}
.footer-email a {
  color: var(--white);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   10. Form controls (used by the modal forms)
   -------------------------------------------------------------------------- */
.field {
  margin-bottom: var(--s-4);
}
.field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--s-2);
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.field textarea {
  min-height: 96px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: var(--focus-ring);
}

/* Honeypot: hidden from humans, present for bots. Kept out of the tab order
   and off-screen rather than display:none so more bots still fill it. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. Modal dialog (forms + waitlist)
   Accessibility floor is enforced in main.js: focus trap, escape to close,
   return focus to the trigger on close. Styles below cover the visible layer.
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--s-6) var(--s-4);
  background: rgba(20, 20, 20, 0.55);
  overflow-y: auto;
}
.modal-overlay[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-top: var(--s-7);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-7);
}
.modal h2 {
  font-size: 1.5rem;
  margin-bottom: var(--s-2);
}
.modal .modal-sub {
  color: var(--text-2);
  margin-bottom: var(--s-5);
}

.modal-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
}
.modal-close:hover {
  color: var(--text);
  background: var(--panel);
}

/* Success state shown after a stubbed submit */
.form-success {
  text-align: center;
  padding: var(--s-5) 0;
}
.form-success .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--s-4);
  border-radius: 50%;
  background: var(--panel);
  color: var(--navy);
  font-size: 1.6rem;
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .section {
    padding-block: var(--s-8);
  }

  /* Collapsed mobile nav. Expanded state (.is-open) is toggled in main.js. */
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hair);
    padding: var(--s-3) var(--s-5) var(--s-5);
  }
  .nav-links a {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--hair-2);
  }
  .site-header.is-open .nav-links {
    display: flex;
  }

  .modal {
    padding: var(--s-6) var(--s-5);
    margin-top: var(--s-4);
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   13. Page sections (Home)
   ========================================================================== */

/* Hero (3.1) */
.hero {
  text-align: center;
  padding-block: var(--s-9) var(--s-8);
}
.hero h1 {
  max-width: 14ch;
  margin-inline: auto;
}
.hero .hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  max-width: 42ch;
  margin: 0 auto var(--s-4);
}
.hero .hero-qual {
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto var(--s-6);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
}

/* Proof bar (3.2) */
.proof-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  text-align: center;
}
.proof-item .proof-num {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.proof-item .proof-label {
  color: var(--text-2);
  font-size: 0.98rem;
  margin-top: var(--s-2);
}

/* Services (3.3) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.service-card.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-md);
}
.service-badge {
  position: absolute;
  top: -11px;
  left: var(--s-6);
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
}
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--navy);
  margin-bottom: var(--s-4);
}
.service-icon svg {
  width: 100%;
  height: 100%;
}
.service-card h3 {
  margin-bottom: var(--s-3);
}
.service-card p {
  font-size: 0.97rem;
  flex: 1;
}
.service-label {
  margin-top: var(--s-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* NAICS finder (3.4, shared with Data) */
.finder {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.finder-form {
  display: flex;
  gap: var(--s-3);
}
.finder-input {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 15px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
}
.finder-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: var(--focus-ring);
}
.finder-results {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.finder-preview-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-accent);
  background: var(--panel);
  border: 1px dashed var(--panel-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}
.finder-result {
  border: 1px solid var(--panel-border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  background: var(--white);
}
.finder-result-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.finder-code {
  font-weight: 700;
  color: var(--navy);
}
.finder-title {
  color: var(--text);
  font-weight: 600;
}
.finder-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
}
.finder-tag.primary {
  background: var(--navy);
  color: var(--white);
}
.finder-tag.also {
  background: var(--panel);
  color: var(--text-2);
  border: 1px solid var(--panel-border);
}
.finder-market {
  margin: var(--s-3) 0 0;
  font-size: 0.95rem;
  color: var(--text-2);
}
.finder-caveat {
  margin-top: var(--s-4);
}

/* How it works steps (3.4) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-8);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin-bottom: var(--s-4);
}
.step h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
}
.step p {
  font-size: 0.97rem;
}

/* Chart (3.5, shared with Data) */
.chart-wrap {
  max-width: 860px;
  margin-inline: auto;
}
.chart-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--s-5);
}
.chart-canvas-box {
  position: relative;
  height: 380px;
}
.chart-footnote {
  margin-top: var(--s-4);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Takeaway box (3.5) */
.takeaway {
  max-width: var(--maxw-narrow);
  margin: var(--s-7) auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.takeaway p {
  margin: 0;
  color: var(--text-2);
}

/* Stat tiles (3.5) */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
  text-align: center;
}
.stat-tile {
  border: 1px solid var(--panel-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.stat-tile .stat-num {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat-tile .stat-label {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-top: var(--s-1);
}

/* Sample Snapshot (3.6) */
.sample-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: start;
}
.sample-doc {
  position: relative;
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
  overflow: hidden;
}
.sample-badge {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  background: var(--navy);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 2;
}
.naics-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: var(--s-5);
}
.sample-section {
  margin-bottom: var(--s-5);
}
.sample-q {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--s-3);
}
/* Blurred, decorative placeholder data */
.blur-data {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.blur-line {
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--navy-5), var(--navy-6));
  margin-bottom: 9px;
  opacity: 0.7;
}
.blur-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-top: 6px;
}
.blur-bars span {
  flex: 1;
  background: var(--navy-4);
  border-radius: 3px 3px 0 0;
  opacity: 0.6;
}
.questions .q-sub {
  color: var(--text-2);
  margin-bottom: var(--s-5);
}
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.check-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  color: var(--text);
}
.check-list li svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--navy);
  margin-top: 1px;
}
.sample-cta-sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: var(--s-3);
}

/* Final CTA block (3.7) */
.final-cta {
  text-align: center;
}
.final-cta .container {
  max-width: var(--maxw-narrow);
}
.final-cta h2 {
  color: var(--white);
}

/* Home responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card.featured .service-badge {
    left: var(--s-5);
  }
}

/* ==========================================================================
   14. Page sections (Data)
   ========================================================================== */

/* How we read the market (2x2 grid + full-width fifth card) */
.read-market {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.read-card h3 {
  margin-bottom: var(--s-3);
}
.read-card p {
  margin: 0;
  font-size: 0.97rem;
}
.read-card.full {
  grid-column: 1 / -1;
  background: var(--panel-alt);
  border-color: var(--panel-border);
}

/* Synthesis callout (left navy border) */
.synthesis {
  max-width: var(--maxw-narrow);
  margin: var(--s-8) auto 0;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--navy);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
.synthesis p {
  margin: 0;
  color: var(--text-2);
}

@media (max-width: 760px) {
  .read-market {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   15. Page sections (About)
   ========================================================================== */

.story {
  max-width: var(--maxw-narrow);
  margin-inline: auto;
}
.story p {
  font-size: 1.08rem;
  color: var(--text-2);
  margin-bottom: var(--s-5);
}

/* Pull-quote (paragraph 4), left navy border, larger */
.pull-quote {
  border-left: 4px solid var(--navy);
  padding-left: var(--s-5);
  margin: var(--s-6) 0;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Founder block at the bottom. Lean, firm-forward, divider above. */
.founder {
  max-width: var(--maxw-narrow);
  margin: var(--s-8) auto 0;
  padding-top: var(--s-7);
  border-top: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.founder img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.founder-name {
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
}
.founder-role {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .founder {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 760px) {
  .proof-bar,
  .steps,
  .stat-tiles {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .sample-layout {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .finder-form {
    flex-direction: column;
  }
  .chart-canvas-box {
    height: 320px;
  }
}

