/* =========================================================
   ClassWallet — Education Freedom Tax Credit landing page
   Implemented from Figma (node 754:328).
   Fonts: Kalice (licensed, self-hosted) for display serif;
   Geist / Geist Mono (Google Fonts) for sans / mono.
   ========================================================= */

@import url(https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700,900&display=swap);

@font-face {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}



:root {
  /* Brand */
  --teal:        #0056ce;
  --teal-dark:   #031480;
  --ink:         #081c1c;
  --ink-light:   rgb(207, 228, 242);;
  --ink-soft:    #1f3836;

  /* Text */
  --body:        #e8f1ff;
  --muted:       #adb5bd;
  --muted-2:     #ced4da;
  --eyebrow-tan: #adb5bd;

  /* Surfaces */
  --panel:       #e8f1ff;   /* light statement cards */
  --cream:       #031480;   /* facts / public-schools bands */
  --cream-line:  #adb5bd;
  --divider:     #bad3ff;

  /* Accents */
  --yellow:      #67e055;
  --lime:        #d4facb;
  --cyan:        #e0edff;
  --cyan-soft:   #e8f1ff;
  --tab-accent:  #5dce4e;

  /* Dark */
  --footer-bg:   #01285f;
  --footer-text: #e8f1ff;

  /* Type */
  --serif: "Montserrat", Arial, Open Sans, sans-serif;
  --sans:  "Roboto", Arial, Open Sans, sans-serif;
  --mono:  "Roboto", Arial, Open Sans, sans-serif;

  /* Layout */
  --container: 1080px;
  --pad: 28px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Shared atoms ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-dark);
  white-space: nowrap;
}
.eyebrow__dot {
  width: 12px;
  height: 13.8px;
  flex: none;
  background: var(--tab-accent, var(--teal-dark));
  /* pointy-top hexagon, matching the Figma polygon */
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* File-folder tab that holds the eyebrow and fuses with the card top */
.statement__tab {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  background: var(--panel);
  border-radius: 12px 0 0 0;
  padding: 9px 22px 12px;
  z-index: 1;
}
.statement__tab::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 0;
  width: 30px;
  height: 100%;
  background: var(--panel);
  /* diagonal slope: square top-right of tab down to the card's top edge */
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}

/* Dark statement variant (Why ClassWallet) */
.statement.statement--dark { background: #01285f; }
.statement--dark .statement__tab,
.statement--dark .statement__tab::after { background: #01285f; }
.statement--dark .eyebrow { color: #fff; }

/* Highlighter: a band shorter than the line so it never overlaps the line
   above when text wraps, and leaves breathing room above/below. */
.hl {
  padding: 0 .14em;
  /* transparent base so the <mark> user-agent highlight doesn't show behind the band */
  background-color: transparent;
  color: inherit;
  background-image: linear-gradient(var(--hl-color, var(--yellow)), var(--hl-color, var(--yellow)));
  background-repeat: no-repeat;
  background-size: 100% 76%;
  background-position: 0 58%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hl--yellow { --hl-color: var(--yellow); }
.hl--lime   { --hl-color: var(--lime); }
.hl--cyan   { --hl-color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  white-space: nowrap;
  border-radius: 10px;
  padding: 15px 28px;
  font-size: 15px;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn--sm { padding: 12px 24px; font-size: 13px; }
.btn--white { background: #fff; color: var(--teal-dark); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn--teal { background: var(--teal); color: #fff; border-radius: 9px; padding: 12px 22px; font-size: 13px; }
.btn--teal:hover { background: #031480; transform: translateY(-1px); color: #fff }


/* Section rhythm */
.section { padding: 64px 0; }
.section--white { background: #fff; }
/* Spacing modifiers — two-class selectors so they hold at every breakpoint
   (they must beat the single-class `.section` padding set in media queries). */
.section.section--flush-bottom { padding-bottom: clamp(8px, 2vw, 18px); } /* tighten gap below */
.section.section--tight-top { padding-top: clamp(14px, 3vw, 28px); }      /* tighten gap above */
.section.section--snug { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(32px, 4.5vw, 52px); }

/* Reusable graph-paper grid overlay (hero + cream bands) */
.has-grid { position: relative; isolation: isolate; }
.has-grid > * { position: relative; z-index: 1; }
.has-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line, rgba(150,120,70,0.13)) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line, rgba(150,120,70,0.13)) 1px, transparent 1px);
  background-size: var(--grid-size, 52px) var(--grid-size, 52px);
}

/* Subtle on-scroll reveal (only active when html.reveal-on is set by the
   head script — i.e. JS present and reduced-motion not requested) */
.reveal-on .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.21,.6,.35,1), transform .6s cubic-bezier(.21,.6,.35,1);
  will-change: opacity, transform;
}
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Statement cards (the big light rounded panels) */
.statement {
  position: relative;
  background: var(--panel);
  /* top-left squared so the folder tab provides that corner seamlessly */
  border-radius: 0 12px 12px 12px;
  padding: clamp(28px, 1.2rem + 3.6vw, 62px) clamp(20px, 1rem + 4.4vw, 75px);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #0056ce;
}
.hero__bg {
  position: absolute;
  inset: 0;
  /* hero.png already contains the grid pattern — no CSS grid here */
  background:
    linear-gradient(180deg, rgba(8,28,28,.52) 0%, rgba(8,28,28,.22) 40%, rgba(8,28,28,.08) 100%),
    url("img-sgo/hero.png") center 30% / cover no-repeat;
}
.hero__inner { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand { flex: none; }
.brand img { height: 35px; width: auto; max-width: none; flex: none; }
.nav__links { display: flex; align-items: center; gap: 18px; }
.nav__links > a:not(.btn) { font-size: 13px; color: #d7ecec; white-space: nowrap; }
.nav__links > a:not(.btn):hover { color: #fff; }

.hero__content { padding: clamp(32px, 7vw, 60px) 0 clamp(48px, 11vw, 110px); max-width: 780px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 48.8px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 20px;
}
.hero__sub {
  max-width: 660px;
  font-size: 16px;
  line-height: 1.55;
  color: #f0ffff;
  margin: 0 0 26px;
}

/* =========================================================
   OPPORTUNITY
   ========================================================= */
.opportunity { background: #fff; padding: clamp(40px, 8vw, 64px) 0 0; }
.opportunity__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 860px;
  margin: 0;
}

/* =========================================================
   STATEMENT BODY (what it is)
   ========================================================= */
.statement__body p {
  color: var(--ink);
  font-size: 16.8px;
  line-height: 1.48;
  margin: 0 0 1em;
  max-width: 830px;
}
.statement__body p:last-child { margin-bottom: 0; }

.flow {
  margin: 44px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 12px);
  flex-wrap: nowrap;
}
.flow__step { display: flex; align-items: center; gap: 12px; flex: none; position: relative; }
.flow__circle { width: clamp(60px, 7.5vw, 92px); height: auto; flex: none; display: block; }
/* colored offset ring, moved out of the SVG (SVG filters rasterize at low res
   on some high-DPI devices); CSS drop-shadow composites at device resolution */
.flow__step:nth-of-type(1) .flow__circle { filter: drop-shadow(3px 3px 0 #e58621); } /* orange */
.flow__step:nth-of-type(2) .flow__circle { filter: drop-shadow(3px 3px 0 #769228); } /* green */
.flow__step:nth-of-type(3) .flow__circle { filter: drop-shadow(3px 3px 0 #5a2273); } /* purple */
.flow__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.flow__arc { width: clamp(34px, 5vw, 72px); height: 34px; flex: none; overflow: visible; }
.flow__arc--up { transform: scaleY(-1); }
.flow__arc path { stroke: #14110f; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0.1 9; fill: none; }

/* Narrow: stay HORIZONTAL — drop each label below its circle so 3 fit across.
   Connectors become a centered horizontal dotted line aligned to the circles. */
@media (max-width: 740px) {
  .flow { align-items: flex-start; gap: clamp(2px, 1.2vw, 8px); }
  .flow__step { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
  .flow__circle { width: clamp(44px, 12vw, 66px); }
  .flow__label { white-space: normal; font-size: clamp(9px, 2.4vw, 12px); line-height: 1.18; max-width: 12ch; }
  .flow__arc {
    width: clamp(20px, 5vw, 40px);
    height: clamp(44px, 12vw, 66px);   /* match circle height → dots align with circle center */
    background-image: radial-gradient(circle, #14110f 1.3px, transparent 1.7px);
    background-size: 7px 7px;
    background-repeat: repeat-x;
    background-position: 0 center;
  }
  .flow__arc path { display: none; }   /* hide the curved stroke; use the dotted line instead */
  .flow__arc--up { transform: none; }
}

/* =========================================================
   FACTS BAR
   ========================================================= */
/* .facts { background: var(--cream); } */

.facts { 
  background: var(--cream); 
  background-image: linear-gradient(var(--hl-color, var(--teal)), var(--hl-color, var(--cream)));
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 30px;
}
.stat { padding: 4px 22px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--divider); }
.stat__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin: 0 0 6px;
}
.stat__value {
  font-family: var(--serif);
  font-size: 34.4px;
  line-height: 1.05;
  color: var(--panel);
  margin: 0 0 6px;
}
.stat__value span  { 
  color: var(--cream); 
}

.stat__chip { border-radius: 3px; padding: 2px 6px; }
.stat__caption { font-size: 12.5px; color: var(--muted); margin: 0; }

/* =========================================================
   WHERE DO YOU FIT
   ========================================================= */
.fit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fit__card { margin: 0; }
.fit__card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.fit__card figcaption { display: block; padding-top: 16px; }
.fit__title { display: block; font-weight: 500; font-size: 17.7px; color: #031480; letter-spacing: -0.02em; }
.fit__desc { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); opacity: .8; }

/* =========================================================
   SGO STEPS
   ========================================================= */
.steps__heading {
  font-weight: 500;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 27px);
  letter-spacing: -0.014em;
  color: #000;
  margin: 0 0 28px;
}
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step {
  background: var(--panel);
  border-radius: 13px;
  padding: 18px;
  filter: drop-shadow(4px 4px 0 var(--teal));
}
.step__num { font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--teal); }
.step__title { font-weight: 600; font-size: 14px; color: var(--ink); margin: 14px 0 8px; }
.step__desc { font-size: 12.5px; color: var(--ink-soft); margin: 0; }

/* =========================================================
   PUBLIC SCHOOLS
   ========================================================= */
.public { background: var(--cream); border-top: 1px solid var(--cream-line); padding: 52px 0; }
.public__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
.public__heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 31px);
  line-height: 1.1;
  color: var(--body);
  margin: 0 0 16px;
}

.public__text p { font-size: clamp(1rem, 0.9rem + 0.6vw, 19px); line-height: 1.4; color: var(--body); margin: 0; max-width: 520px; }
.public__panel { position: relative; }
.public__checks {
  list-style: none;
  margin: 0;
  padding: 24px;
  background: #fff;
  border-radius: 11px;
  /* single content-width column, centered — items stay left-aligned to each
     other (checkmarks line up) but the group is centered within the card */
  display: grid;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 1;
  box-shadow: 0 18px 40px -24px rgba(8,28,28,.35);
}
.public__checks li { max-width: 100%; }

/* Translucent "washi tape" pieces holding the card */
.tape { position: absolute; pointer-events: none; z-index: 2; }
.tape--purple-a {
  top: -11px; left: -8px;
  width: 78px; height: 26px;
  background: rgba(184,143,249,0.72);
}
.tape--purple-b {
  top: 4px; left: -14px;
  width: 46px; height: 27px;
  background: rgba(184,143,249,0.72);
}
.tape--lime {
  bottom: -12px; right: 26px;
  width: 89px; height: 33px;
  background: rgba(93,206,78,0.78);
}
.public__checks li {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 19px);
  color: var(--ink-soft);
}
.public__checks img { width: 26px; height: 26px; }

/* =========================================================
   STATE MAP
   ========================================================= */
.map__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.map__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 1.1rem + 1.3vw, 27.4px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 360px;
}
.map__count { text-align: right; flex: none; }
.map__count-num { display: block; font-family: var(--serif); font-size: 39.5px; line-height: 1; color: var(--teal); }
.map__count-label {
  display: block; margin-top: 4px;
  font-family: var(--mono); font-size: 10.4px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--ink);
}
.map__lede { font-size: 14.2px; line-height: 1.6; color: var(--body); margin: 18px 0 0; max-width: 740px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 19px; padding: 0; margin: 20px 0 0; }
.legend li { display: flex; align-items: center; gap: 8px; font-size: 11.9px; color: var(--ink); }
.legend__swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.map__figure { margin: 18px 0 0; }

/* Interactive map */
.us-map { position: relative; }
.us-map__svg { display: block; width: 100%; max-width: 920px; margin-inline: auto; height: auto; }
.us-map .state {
  stroke: #1f3836; /* Evergreen — borders between states */
  stroke-width: 1;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .12s ease, filter .12s ease;
  outline: none;
}
.us-map .state:hover,
.us-map .state.is-active,
.us-map .state:focus-visible {
  filter: brightness(1.08) drop-shadow(0 1px 2px rgba(0,0,0,.28));
  stroke: #fff;
  stroke-width: 1.4;
}
.us-map__tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -100%);
  pointer-events: none;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 6px 20px rgba(8,28,28,.18);
  display: flex;
  flex-direction: column;
  gap: 5px;
  white-space: nowrap;
}
.us-map__tip-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.us-map__tip-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  align-self: flex-start;
}
.map__hover { font-size: 12.3px; color: var(--ink-soft); margin: 12px 0 0; }
.map__source { font-size: 10.4px; color: var(--ink-soft); margin: 6px 0 0; }
.statement .btn--teal { margin-top: 16px; }

/* =========================================================
   WHY CLASSWALLET
   ========================================================= */
.why__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 32.8px);
  letter-spacing: -0.012em;
  color: #fff;
  margin: 0 0 16px;
}
.why__lede { font-size: 15px; line-height: 1.6; color: #fff; margin: 0 0 26px; max-width: 900px; }
.why__lede strong { font-weight: 700; color: #fff; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.why__card {
  background: #fff;
  border-radius: 13px;
  padding: 18px;
  /* hard teal offset shadow, matching the SGO step cards */
  box-shadow: 5px 4px 0 0 var(--teal);
  display: flex;
  flex-direction: column;
}
.why__ico { width: 50px; height: 50px; margin-bottom: 14px; }
.why__card h4 {
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.why__card p { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* =========================================================
   CTA
   ========================================================= */
.cta-band { background: var(--panel); padding: 50px 0; }
.cta {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  /* match the chalkboard image's aspect ratio at EVERY width so all four wood
     edges always show (cover == exact fit when the ratios match, no cropping) */
  background: #efe7d8 url("img-sgo/chalkboard-cw.jpg") center / cover no-repeat;
  aspect-ratio: 3124 / 2014;
  display: grid;
  place-items: center;
  text-align: center;
}
/* grid drawn over the entire chalkboard (board + frame + surround) */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.10) 1px, transparent 1px);
  /* percentage cells (square via the 1.551 aspect) keep the grid proportionally
     tight at every width, so it doesn't look coarse when the board shrinks */
  background-size: 5% 7.75%;
}
/* inner column is sized/inset to stay within the green board area at any width */
.cta__inner {
  position: relative;
  z-index: 1;
  width: min(620px, 80%);
}
.cta .btn {
  padding: clamp(8px, 1.5vw, 16px) clamp(16px, 2.6vw, 28px);
  font-size: clamp(11px, 1.4vw, 15px);
}
.cta__title {
  font-family: var(--serif);
  font-weight: 400;
  /* scales with the board so it always fits the green area */
  font-size: clamp(15px, 4.2vw, 47px);
  line-height: 1.1;
  color: #fff;
  margin: 0 0 0.45em;
}
.cta__sub { font-size: clamp(11px, 1.85vw, 20px); line-height: 1.25; color: #fff; margin: 0 0 1.2em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 26px 0 40px; border-top: 1px solid rgba(255,255,255,.06); }
.footer__disclaimer { font-size: 11.5px; line-height: 1.65; max-width: 880px; margin: 0 0 40px; }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand img { filter: drop-shadow(0 4px 2px rgba(0,0,0,.25)); }
.footer__meta { display: flex; align-items: center; gap: 28px; font-size: 11.5px; }
.footer__meta a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   Type scales fluidly via clamp(); these breakpoints handle
   layout/grid shifts. Targets: desktop, tablet, phone.
   ========================================================= */

/* Small-desktop / large-tablet — keep 4-up stats, drop why to 2-up */
@media (max-width: 1000px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (≈ iPad portrait) */
@media (max-width: 860px) {
  .section { padding: 52px 0; }
  /* hide the hero subtitle on tablet + mobile */
  .hero__sub { display: none; }
  /* Collapse the text nav links before they crowd the logo */
  .nav { gap: 12px; }
  .nav__links > a:not(.btn) { display: none; }
  .brand img { height: 30px; }
  .btn--sm { padding: 11px 18px; font-size: 12.5px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .fit   { grid-template-columns: repeat(2, 1fr); }
  .fit__card:last-child { grid-column: 1 / -1; }
  .fit__card:last-child img { height: 220px; }
  .public__grid { grid-template-columns: 1fr; gap: 28px; }
  .public__text p { max-width: none; }
}

/* Large phone / small tablet */
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .section { padding: 44px 0; }
  /* the folder tabs protrude upward and eat the top padding — give them room */
  .section.has-tab { padding-top: 68px; }

  /* Nav: collapse links, keep logo + primary CTA */
  .nav { padding: 16px 0; gap: 12px; }
  .nav__links { gap: 12px; }
  .nav__links > a:not(.btn) { display: none; }
  .brand img { height: 26px; }
  .btn--sm { padding: 10px 16px; font-size: 12px; }

  /* Single-column stacks */
  .fit, .why__grid { grid-template-columns: 1fr; }
  .fit__card:last-child img { height: 185px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Facts: stack with dividers above each row */
  .facts__grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--divider); padding-top: 18px; margin-top: 18px; }

  /* Map header stacks — hide the big "30 / states opted in", redundant with the heading */
  .map__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map__count { display: none; }

  /* Public checks card a touch tighter */
  .public { padding: 40px 0; }
  .public__checks { padding: 20px; }

  /* CTA keeps the chalkboard ratio at every width (wood edges always visible) */
  .cta__inner { width: 84%; }

  /* Footer stacks */
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer__disclaimer { margin-bottom: 28px; }
}

/* Small phones */
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
  .legend { gap: 8px 14px; }
  .footer__meta { flex-wrap: wrap; gap: 10px 20px; }
  .btn { padding: 14px 22px; }
  .brand img { height: 23px; }
}

/* Very small phones: keep the longest folder tab ("Educational freedom tax
   credit") + its diagonal slope from overflowing the viewport */
@media (max-width: 360px) {
  .eyebrow { letter-spacing: 0.5px; }
  .statement__tab { padding-left: 15px; padding-right: 15px; }
  .statement__tab::after { width: 22px; }
}
/* Salesfore chat */
.embeddedServiceSidebar.layout-docked .dockableContainer, .embeddedMessagingConversationButton {
    position: fixed;
    left: 20px !important;
    bottom: 0;
    right: auto !important;
}