/* =========================================================
   GRIT Tax & Advisory: styles.css
   Mobile-first. Desktop widening via media queries near the end.
   ========================================================= */

:root {
  /* brand colors */
  --forest: #2E4030;
  --forest-dark: #22301F;
  --forest-light: #3A5340;
  --copper: #B0642F;
  --copper-dark: #904F25;
  --copper-darker: #7E4821;
  --copper-light: #C97A44;
  --sage: #C9D3C1;
  --sage-light: #E4EADF;

  /* ink / neutrals */
  --ink: #1C2A20;
  --ink-mid: #4C5B50;
  --ink-soft: #8A968D;
  --border: #DFE5DB;
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 14px 34px rgba(28, 42, 32, 0.10);
  --shadow-soft: 0 6px 18px rgba(28, 42, 32, 0.06);

  --container: 1120px;
  --container-narrow: 640px;

  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-label: 'Lora', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: 38px 0; position: relative; }
.section--white { background: var(--white); }
.section--sage { background: var(--sage-light); }
.section--forest { background: var(--forest); color: var(--white); }

.section__eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-dark);
  margin-bottom: 12px;
}
.section__title {
  font-size: 27px;
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.section__title strong { font-weight: 900; }
.section__title--light { color: var(--white); }
.section__sub {
  text-align: center;
  color: var(--ink-mid);
  font-size: 15.5px;
  max-width: 46ch;
  margin: 0 auto 36px;
}
.section__title--light + .section__sub { color: rgba(255,255,255,0.78); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-label);
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
}
.btn--copper {
  background: var(--copper-dark);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(176, 100, 47, 0.30);
}
.btn--copper:hover { background: var(--copper-darker); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(176, 100, 47, 0.38); }
.btn--copper:active { transform: translateY(0); }
.btn--white {
  background: var(--white);
  color: var(--forest);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}
.btn--white:hover { background: #f4f1ec; transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--forest);
}
.btn--outline:hover { background: var(--forest); color: var(--white); }
.btn--block { width: 100%; }

/* =========================================================
   LOGO (inline SVG mark + wordmark, works on any bg)
   ========================================================= */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 5px 0; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__word { font-family: var(--font-body); font-weight: 900; font-size: 18px; letter-spacing: -0.01em; color: var(--white); }
.logo__sub { font-family: var(--font-label); font-weight: 500; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 1px; }
.logo--dark .logo__word { color: var(--ink); }
.logo--dark .logo__sub { color: var(--ink-mid); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__inner {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 0;
  gap: 16px;
}
.nav__links { display: none; }
.nav__link {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  transition: color .15s ease;
}
.nav__link:hover { color: var(--white); }
/* mobile: logo only, centred (see .nav__inner above). The pill CTA and
   menu links duplicate the hero CTA and just offer exits, so both are
   hidden below the desktop breakpoint. */
.nav__cta { padding: 11px 22px; font-size: 12.5px; flex: none; display: none; }

/* =========================================================
   HERO
   One continuous full-bleed photo behind the entire section (`cover`,
   no separate solid-colour panel) with a single, lighter gradient
   overlay on top: transparent near the top where the faces are,
   progressively darkening toward the bottom where the text sits.
   assets/hero-team-mobile.jpg is pre-cropped (170px trimmed off the top
   of the source) to cut the excess empty wall space above the heads,
   rather than relying on background-position, which has no effect here:
   this crop is always "height-dominant" under `cover` at mobile
   proportions (the image is wider, relative to the container, than the
   container is tall), so the full image height is always shown and
   there's no vertical room for a position value to pan within, only the
   width gets cropped. min-height (480px) is a deliberate middle ground,
   not a perfect fit: taller keeps text further below the faces but
   crops more off the photo's sides (cover fills by height in this
   regime, so a taller box scales the image up more, showing a smaller
   percentage of its width); shorter shows more of both faces but leaves
   less room before text starts. At 480px both faces are clear, though
   the outer edges (hair/hijab, not the faces themselves) are still
   lightly cropped, an unavoidable trade-off given how far apart the two
   people sit in a photo this wide, not fully solvable by CSS alone at a
   390px viewport. Desktop's aspect ratio is close enough to the photo's
   that this barely bites (see the 768px block below).
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  background-image:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) 15%,
      rgba(0, 0, 0, 0.48) 32%,
      rgba(0, 0, 0, 0.56) 55%,
      rgba(0, 0, 0, 0.61) 100%),
    url('assets/hero-team-mobile.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 30px 0 50px;
  overflow: hidden;
}
.hero__content { max-width: 560px; }
.hero__headline {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--white);
}
.hero__headline strong { font-weight: 900; }
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  margin: 20px 0 0;
}
.hero__actions { margin-top: 30px; }
/* mobile: full-width CTA (soft shadow already comes from .btn--copper) */
.hero__actions .btn--copper { width: 100%; }

/* =========================================================
   VALUE CARDS (overlap the hero bottom edge)
   ========================================================= */
.value-cards {
  position: relative;
  z-index: 5;
  margin-top: -20px;
  padding-bottom: 8px;
}
/* mobile: one checklist card (four full cards was too heavy this early).
   Desktop restores the four-card grid and the original overlap (see the
   768px block below); .value-cards__grid is display:none until then. */
.value-cards__mobile { display: block; }
.value-check-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px 22px;
  border: 1px solid var(--border);
}
.value-check-list { display: flex; flex-direction: column; gap: 14px; }
.value-check-list li { display: flex; align-items: flex-start; gap: 10px; }
.value-check-list li span:last-child { font-size: 14px; line-height: 1.5; color: var(--ink-mid); }
.value-check-list li strong { color: var(--ink); font-weight: 900; }
.value-check-list__tick {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  color: var(--copper-dark);
}
.value-check-list__tick svg { width: 20px; height: 20px; }

.value-cards__grid {
  display: none;
  grid-template-columns: 1fr;
  gap: 16px;
}
.value-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 22px;
  border: 1px solid var(--border);
}
.value-card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--sage-light);
  color: var(--copper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-card__icon svg { width: 22px; height: 22px; }
.value-card p { font-size: 15px; line-height: 1.55; color: var(--ink-mid); }

/* =========================================================
   WHO WE HELP
   ========================================================= */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* compact on mobile: tighter padding, smaller icon/title so three cards
   don't read as heavy before "how it works". Desktop restores full size.
   White card + solid forest-green icon chip (white icon on it) reads far
   better than the old dark-card/light-text/orange-icon combo: dark ink on
   white for the body text, and a strong two-tone icon chip that actually
   stands out instead of blending into the card. Green stays as the
   accent, just moved onto the icon chip instead of the whole card. */
.who-card {
  background: var(--sage-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--ink);
}
.who-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--forest);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.who-card__icon svg { width: 18px; height: 18px; }
.who-card__title { font-size: 16px; font-weight: 900; margin-bottom: 6px; color: var(--ink); }
.who-card__text { font-size: 13.5px; line-height: 1.5; color: var(--ink-mid); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
/* lighter, less boxy: less padding, no border, a much softer shadow (the
   card already reads against the section's sage-light background without
   needing border + shadow both), smaller number circle. */
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 2px 10px rgba(28, 42, 32, 0.05);
  text-align: center;
}
.step-card__num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--forest); color: var(--white);
  font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-card__title { font-size: 17px; font-weight: 900; margin-bottom: 6px; color: var(--ink); }
.step-card__text { font-size: 14px; color: var(--ink-mid); line-height: 1.5; }

/* =========================================================
   TESTIMONIALS (placeholders; GRIT has no quotes on file yet)
   Section stays fully built but hidden until real quotes exist; the
   placeholder cards below must never render in production.
   ========================================================= */
#results { display: none; }

.testi-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-mid);
  margin: -20px auto 32px;
  max-width: 46ch;
}
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.testi-card {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: relative;
}
.testi-card__badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-dark);
  background: var(--sage-light);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.testi-card__quote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mid);
  font-style: italic;
  margin-bottom: 20px;
}
.testi-card__who { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--border); }
.testi-card__name { font-size: 13.5px; font-weight: 700; color: var(--ink-mid); }
.testi-card__role { font-size: 12.5px; color: var(--ink-mid); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { text-align: center; }
.cta-band__sub { color: rgba(255,255,255,0.78); font-size: 15.5px; max-width: 40ch; margin: 0 auto 26px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 19px 20px; font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--ink); text-align: left;
}
.faq__icon { font-size: 22px; font-weight: 400; color: var(--copper-dark); flex: none; transition: transform .2s ease; line-height: 1; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a p { padding: 0 20px 20px; color: var(--ink-mid); font-size: 15px; line-height: 1.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--sage); padding: 52px 0 26px; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(28,42,32,0.14);
}
.footer__brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer__desc { font-size: 13.5px; color: var(--ink-mid); max-width: 30ch; }
.footer__heading {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mid); margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(28,42,32,0.35); }
.footer__links a:hover { text-decoration-color: var(--ink); }
.footer__bottom {
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; text-align: center;
  padding-top: 22px;
  font-size: 13px; color: var(--ink-mid);
}
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-links { display: flex; gap: 16px; }

/* =========================================================
   Legal pages (privacy.html / terms.html)
   ========================================================= */
.legal-header { background: var(--forest); padding: 16px 0; }
.legal-main { background: var(--white); padding: 44px 0 60px; }
.legal { max-width: 720px; margin: 0 auto; }
.legal__title { font-size: 30px; font-weight: 900; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.legal__updated { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 28px; }
.legal h2 { font-size: 19px; font-weight: 900; color: var(--ink); margin: 30px 0 10px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--ink-mid); margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding: 0; list-style: none; }
.legal li { font-size: 15px; line-height: 1.7; color: var(--ink-mid); position: relative; padding-left: 20px; margin-bottom: 8px; }
.legal li::before { content: "\2022"; position: absolute; left: 4px; color: var(--copper); }
.legal a { color: var(--copper-dark); }
.legal__home { display: inline-block; margin-top: 26px; font-weight: 700; color: var(--copper-dark); text-decoration: none; }
.legal__home:hover { text-decoration: underline; }
.legal__placeholders {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--sage-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.legal__placeholders h2 { margin-top: 0; }
.legal__placeholders code { background: rgba(28,42,32,0.08); padding: 2px 6px; border-radius: 4px; font-size: 13.5px; }

/* =========================================================
   BOOKING MODAL + THANKS-PAGE STEPPER
   (shared classes: .modal, .lead-slide, .lead-choice, etc.)
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  background: rgba(20, 28, 22, 0.62);
  backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal__panel {
  position: relative;
  background: var(--white); border-radius: var(--radius);
  width: min(92vw, 480px);
  margin: auto;
  box-sizing: border-box;
  max-height: 90dvh; overflow-y: auto;
  padding: 30px 26px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(20,28,22,0.28);
  animation: pop .22s ease;
}
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__title { font-size: 21px; font-weight: 900; text-align: center; color: var(--ink); margin: 0 0 6px; }
.modal__step {
  text-align: center; color: var(--copper-dark);
  font-family: var(--font-label);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 16px;
}

/* embedded GHL booking widget (step 3); fills the modal panel width */
.booking-embed { width: 100%; }
.booking-embed iframe { width: 100%; min-height: 460px; display: block; border: 0; }

@media (max-width: 480px) {
  .modal { padding: 10px; }
  .modal__panel { padding: 22px 16px; }
}

/* ---- multi-step tap-to-answer flow (shared between modal + /thanks) ---- */
.lead-slide { display: none; }
.lead-slide.is-active { display: block; animation: leadSlideIn .18s ease; position: relative; z-index: 1; }
@keyframes leadSlideIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* step 4 (booking iframe) stays laid out even while inactive so the embedded
   GHL widget loads + paints in the background during steps 1-3 (instant
   reveal on step 4). Inset to the panel width, clipped, invisible and
   non-interactive (inert) until active; never display:none. */
.lead-slides { position: relative; }
.lead-slide[data-slide="4"] {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.lead-slide[data-slide="4"].is-active {
  position: static;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.lead-slide__q { font-size: 19px; font-weight: 900; text-align: center; color: var(--ink); margin: 0 0 18px; }
.lead-slide[data-slide="4"] .lead-slide__q { font-size: 14px; font-weight: 700; color: var(--ink-mid); margin: 4px 0 16px; }

.lead-choices { display: flex; flex-direction: column; gap: 10px; }
.lead-choice {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 15px;
  background: var(--white); color: var(--ink); text-align: left;
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 8px rgba(28,42,32,0.05);
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  text-transform: none; letter-spacing: normal;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lead-choice__icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-light); color: var(--copper);
}
.lead-choice__icon svg { width: 19px; height: 19px; }
.lead-choice__label { flex: 1 1 auto; font-weight: 600; font-size: 14.5px; }
.lead-choice .lead-arrow { color: var(--copper); }
.lead-choice:hover { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper), 0 4px 14px rgba(176,100,47,0.14); }
.lead-choice:focus { outline: none; }
.lead-choice:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.lead-arrow { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.lead-choice:hover .lead-arrow { transform: translateX(3px); }

/* ---- contact details form (step 3) ---- */
.lead-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; font-weight: 700; color: var(--ink-mid); }
.field__input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field__input:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 3px rgba(176,100,47,0.15); }
.field__error {
  display: none;
  font-size: 12.5px;
  color: #B3261E;
}
/* only show the error once the field has been interacted with and is
   still invalid (native :user-invalid isn't universal yet; .was-validated
   is toggled by script.js on submit attempts) */
.lead-form.was-validated .field__input:invalid { border-color: #B3261E; }
.lead-form.was-validated .field__input:invalid ~ .field__error { display: block; }
.lead-form__submit { width: 100%; margin-top: 4px; }

.lead-back {
  display: flex; align-items: center; width: fit-content;
  margin: 18px auto 0; padding: 6px 8px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-mid); font-family: var(--font-body); font-size: 13.5px; font-weight: 700;
}
.lead-back:hover { color: var(--copper-dark); }
.lead-back[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .lead-slide.is-active { animation: none; }
  .lead-arrow { transition: none; }
  .lead-choice:hover .lead-arrow { transform: none; }
}

/* =========================================================
   /thanks page
   ========================================================= */
.thanks {
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--sage-light) 0%, var(--white) 60%);
  padding: 44px 0 60px;
}
.thanks__inner { max-width: var(--container-narrow); margin: 0 auto; }
.thanks__badge {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--forest); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.thanks__badge svg { width: 24px; height: 24px; }
.thanks__head { text-align: center; color: var(--ink); font-size: 26px; font-weight: 900; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
.thanks__sub { text-align: center; color: var(--ink-mid); font-size: 15px; line-height: 1.55; max-width: 34rem; margin: 0 auto 28px; }

.thanks__progress { max-width: 480px; margin: 0 auto 22px; }
.thanks__progress-label {
  font-family: var(--font-label);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--copper-dark); margin: 0 0 8px;
}
.thanks__progress-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.thanks__progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: var(--copper);
  transition: width .5s cubic-bezier(.2,.7,.3,1);
}

.thanks__card { width: 100%; max-width: 480px; margin: 0 auto; }

.thanks__done { text-align: center; padding: 6px 0; }
.thanks__done-title { color: var(--ink); font-size: 19px; font-weight: 900; margin: 4px 0 0; }
.thanks__done-sub { color: var(--ink-mid); font-size: 14.5px; margin-top: 10px; }

@media (min-width: 768px) {
  .thanks__head { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .thanks__progress-fill { transition: none; }
}

/* =========================================================
   STICKY MOBILE CTA BAR
   Mobile only (hidden again at the 768px breakpoint below). Slides up
   once .is-visible is set (past the hero, modal closed); safe-area-inset
   padding keeps it clear of the home indicator on notched phones.
   ========================================================= */
.stickycta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(28,42,32,0.12);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .25s ease;
}
.stickycta.is-visible { transform: translateY(0); }
.stickycta.is-hidden { display: none !important; }
.stickycta__text { min-width: 0; }
.stickycta__title { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.stickycta__sub { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.stickycta .btn { flex: none; padding: 15px 20px; font-size: 13px; }
body.has-stickycta { padding-bottom: 76px; }
@media (prefers-reduced-motion: reduce) {
  .stickycta { transition: none; }
}

/* =========================================================
   SECTION ORDER
   Mobile: hero, who we help, how it works, FAQ, final CTA band (results
   is hidden regardless; the FAQ/CTA order is deliberately swapped from
   desktop so the page ends on the call-to-action). Desktop restores the
   original source order via the override at the bottom of the 768px
   block below. main is flexed purely so `order` can differ per
   breakpoint without moving markup around.
   ========================================================= */
.page-main { display: flex; flex-direction: column; }
.hero { order: 1; }
.value-cards { order: 2; }
#who-we-help { order: 3; }
#how-it-works { order: 4; }
#results { order: 5; }
#faq { order: 6; }
.cta-band { order: 7; }

/* =========================================================
   DESKTOP / RESPONSIVE WIDENING (min-width: 768px)
   ========================================================= */
@media (min-width: 768px) {
  .section { padding: 84px 0; }

  .stickycta { display: none; }
  body.has-stickycta { padding-bottom: 0; }

  /* restore source order: how it works, results, cta band, faq */
  .cta-band { order: 6; }
  #faq { order: 7; }
  .section__title { font-size: 36px; }
  .section__sub { font-size: 17px; margin-bottom: 44px; }

  .nav__inner { justify-content: space-between; }
  .nav__links { display: flex; align-items: center; gap: 30px; margin-right: auto; padding-left: 40px; }
  .nav__cta { display: inline-flex; }

  /* swap to the larger, sharper photo for wide viewports. Taller than the
     760px first pass: measured contrast showed the badge/first headline
     line landing in the still-transparent zone (as low as 2.5:1 against
     white) because the text block's fixed height ate too much of a
     shorter hero, starting well before the gradient had darkened. Extra
     height pushes the (flex-end-anchored) text block down into the
     already-dark zone; the gradient also ramps earlier as a second margin
     of safety. Verified by re-sampling pixel luminance behind the text. */
  .hero {
    padding: 30px 0 132px;
    min-height: 900px;
    background-image:
      linear-gradient(to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 26%,
        rgba(0, 0, 0, 0.35) 46%,
        rgba(0, 0, 0, 0.48) 100%),
      url('assets/hero-team.jpg');
  }
  .hero__headline { font-size: 52px; line-height: 1.16; margin-top: 0; }
  .hero__sub { font-size: 17.5px; }
  .hero__actions { display: flex; align-items: center; gap: 18px; }
  .hero__actions .btn--copper { width: auto; }

  .value-cards { margin-top: -92px; }
  .value-cards__mobile { display: none; }
  .value-cards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .value-card { padding: 30px 24px; }

  .who-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .who-card { padding: 30px 26px; }
  .who-card__icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px; }
  .who-card__icon svg { width: 24px; height: 24px; }
  .who-card__title { font-size: 19px; margin-bottom: 8px; }
  .who-card__text { font-size: 14.5px; line-height: 1.55; }

  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .testi-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .footer__top { grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  .legal__title { font-size: 36px; }
}

@media (min-width: 1100px) {
  .hero__headline { font-size: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
