/* ============================================
   LAYOUT COMPONENTS
   ============================================ */

/* ---- Top bar (thin meta strip above header) ---- */
.topbar {
  background: var(--paper-100);
  color: var(--slate-600);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--paper-200);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
}
.topbar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gain-500);
  box-shadow: 0 0 0 0 rgba(22,163,74,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.topbar a { color: var(--slate-600); }
.topbar a:hover { color: var(--signal-600); }
.topbar__links { display: flex; align-items: center; gap: var(--space-6); flex-wrap: nowrap; justify-content: center; }
.topbar__contact { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.topbar__icon { display: none; flex-shrink: 0; }
.topbar__social { display: flex; align-items: center; flex-wrap: nowrap; gap: var(--space-4); padding-left: var(--space-4); border-left: 1px solid rgba(0,0,0,0.12); flex-shrink: 0; }
.topbar__social a { display: inline-flex; flex-shrink: 0; color: var(--slate-600); }
.topbar__social a:hover { color: var(--signal-600); }

@media (max-width: 700px) {
  .topbar__status { display: none; }
  .topbar .container { justify-content: center; }
  .topbar__links { gap: var(--space-4); }
  .topbar__icon { display: inline-flex; }
  .topbar__label { display: none; }
  .topbar__social { gap: var(--space-3); padding-left: var(--space-3); }
}
@media (max-width: 360px) {
  .topbar__links { gap: var(--space-3); }
  .topbar__social { gap: var(--space-2); padding-left: var(--space-2); }
}

/* ---- Header / Nav ---- */
.site-header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-200);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__logo img {
  display: block;
  height: 40px;
  width: auto;
  flex-shrink: 0;
}
.nav__logo-text span {
  color: #00AB41;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .nav__logo { font-size: var(--text-base); gap: var(--space-1); }
  .nav__logo img { height: 28px; }
  .nav__cta { gap: var(--space-1); }
  .nav__cta .btn { padding: 0.6rem 0.9rem; font-size: var(--text-xs); }
}
@media (max-width: 400px) {
  .nav__logo { font-size: 0.95rem; gap: 6px; }
  .nav__logo img { height: 24px; }
  .nav__cta { gap: 4px; }
  .nav__cta .btn { padding: 0.5rem 0.7rem; font-size: 0.7rem; }
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav__list > li {
  position: relative;
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-text);
  transition: color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: #00AB41; }
.nav__link.is-active { color: #00AB41; }

.nav__phone {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--slate-600);
  display: none;
}
@media (min-width: 1024px) {
  .nav__phone { display: inline-flex; }
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink-text);
}

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 880px;
  background: #FFFFFF;
  color: #1a1a1a;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  padding-top: calc(var(--space-8) + 14px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-mid) var(--ease), transform var(--dur-mid) var(--ease);
  box-shadow: var(--shadow-float-lg);
  border: 1px solid var(--paper-200);
}
@media (min-width: 1024px) {
  .nav__list > li:hover .mega,
  .mega:hover,
  .mega:focus-within {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
}
.mega__bucket {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mega__bucket-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #00AB41;
  border-bottom: 1px solid var(--paper-200);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-1);
}
.mega__link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #4a4a4a;
  padding: var(--space-1) 0;
  transition: color var(--dur-fast) var(--ease);
}
.mega__link:hover { color: #00AB41; }
.mega__bucket-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1a1a1a;
  margin-top: var(--space-2);
}
.mega__bucket-link:hover { color: #00AB41; }

@media (max-width: 1023px) {
  .nav__list { display: none; }
  .nav__toggle { display: block; }
  .nav__phone { display: none; }

  .nav__list.is-open-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-50);
    border-bottom: 1px solid var(--paper-200);
    box-shadow: var(--shadow-float-md);
    padding: var(--space-2) 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav__list.is-open-mobile > li {
    width: 100%;
    border-bottom: 1px solid var(--paper-200);
  }
  .nav__list.is-open-mobile > li:last-child { border-bottom: none; }
  .nav__list.is-open-mobile .nav__link {
    display: flex;
    width: 100%;
    padding: var(--space-4) var(--space-6);
  }
  /* On touch devices the mega menu can't rely on :hover, so it's shown
     inline and flattened instead of floating. */
  .nav__list.is-open-mobile .mega {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: auto;
    display: none;
    grid-template-columns: 1fr;
    background: var(--paper-100);
    border-top: 1px solid var(--paper-200);
    border-radius: 0;
    padding: var(--space-4) var(--space-6);
    box-shadow: none;
    margin: 0;
  }
  .nav__list.is-open-mobile > li.is-expanded .mega {
    display: flex;
    flex-direction: column;
    transform: none;
  }
  .nav__list.is-open-mobile .mega__bucket-link {
    margin-top: var(--space-1);
    margin-bottom: var(--space-3);
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: #00AB41;
  color: #ffffff;
  box-shadow: 0 12px 24px -10px rgba(0,171,65,0.55);
}
.btn-primary:hover {
  background: #009438;
  transform: scale(1.03);
}
.btn-dark {
  background: var(--ink-950);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--ink-800);
  transform: scale(1.03);
}
.btn-outline {
  background: transparent;
  border-color: var(--ink-950);
  color: var(--ink-950);
}
.btn-outline:hover {
  background: var(--ink-950);
  color: var(--white);
  transform: scale(1.03);
}
.btn-outline-light {
  background: transparent;
  border-color: var(--hairline-dark);
  color: var(--white);
}
.btn-outline-light:hover {
  border-color: var(--white);
  transform: scale(1.03);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.65rem 1.2rem; font-size: var(--text-xs); }

/* Icon sub-circle used inside primary CTA (right-arrow in a small circle) */
.btn-primary .btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  font-size: 0.7rem;
}

/* ---- Eyebrow / badge ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00792B;
  background: #E3F7E9;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}
.eyebrow-light {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}
.eyebrow-plain {
  background: none;
  padding: 0;
  color: #00792B;
}

/* ---- Ledger table (kept as content pattern — restyled) ---- */
.ledger {
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-float-md);
}
.ledger--light { background: var(--white); }
.ledger--dark {
  background: var(--ink-900);
  border-color: var(--hairline-dark);
}
.ledger__head {
  display: grid;
  grid-template-columns: 2fr 1fr 0.4fr;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--paper-200);
  margin-bottom: var(--space-2);
}
.ledger--dark .ledger__head {
  color: var(--fog-300);
  border-color: var(--hairline-dark);
}
.ledger__row {
  display: grid;
  grid-template-columns: 2fr 1fr 0.4fr;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--paper-100);
  font-size: var(--text-sm);
  align-items: center;
}
.ledger--dark .ledger__row { border-color: var(--hairline-dark); }
.ledger__row:last-child { border-bottom: none; }
.ledger__label { color: var(--ink-text); font-weight: 500; }
.ledger--dark .ledger__label { color: var(--white); }
.ledger__value { color: var(--signal-600); font-weight: 600; text-align: right; }

@media (max-width: 560px) {
  .ledger__head span:last-child,
  .ledger__row span:last-child { display: none; }
  .ledger__head { grid-template-columns: 2fr 1fr; }
  .ledger__row { grid-template-columns: 2fr 1fr; }
}

/* ---- Track / results table (case studies) ---- */
.track-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float-sm);
}
.track-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  background: var(--paper-100);
  padding: var(--space-4) var(--space-6);
}
.track-table td {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--paper-100);
  font-size: var(--text-sm);
}
.track-table tr:hover td { background: var(--paper-100); }

@media (max-width: 700px) {
  .track-table thead { display: none; }
  .track-table, .track-table tbody, .track-table tr, .track-table td { display: block; width: 100%; }
  .track-table tr { border-bottom: 1px solid var(--paper-200); padding: var(--space-4) 0; }
  .track-table td { border: none; padding: var(--space-1) var(--space-6); }
  .track-table td:first-child {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--slate-400);
    margin-top: var(--space-2);
  }
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-float-sm);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float-md);
}
.card--dark {
  background: var(--ink-900);
  color: var(--white);
  border-color: var(--hairline-dark);
}
/* Pastel tint variants — rotate across a row of cards for the "soft card" look */
.card--tint-pink  { background: var(--tint-pink);  border-color: transparent; }
.card--tint-blue  { background: var(--tint-blue);  border-color: transparent; }
.card--tint-peach { background: var(--tint-peach); border-color: transparent; }
.card--tint-mint  { background: var(--tint-mint);  border-color: transparent; }

/* ---- Section spacing ---- */
.section {
  padding: var(--space-24) 0;
}
.section--tight { padding: var(--space-16) 0; }
.section--dark {
  background: var(--ink-950);
  color: var(--white);
}
.section--alt {
  background: var(--paper-100);
}

.section__head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}
.section__head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ============================================
   SIGNATURE HOMEPAGE COMPONENTS
   (hero panel, mockup, floating feature showcase)
   ============================================ */

/* ---- Hero panel: soft-tinted contained split, replaces old full-bleed dark hero ---- */
.hero-panel {
  position: relative;
  background: var(--paper-100);
  background-image: var(--gradient-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--space-16) var(--space-12);
}
@media (max-width: 900px) {
  .hero-panel { padding: var(--space-12) var(--space-6); border-radius: var(--radius-md); }
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.avatar-stack__group {
  display: flex;
}
.avatar-stack__group span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}
.avatar-stack__group span:first-child { margin-left: 0; }
.avatar-stack__label { font-size: var(--text-sm); color: var(--slate-600); font-weight: 500; }
.avatar-stack__label strong { color: var(--ink-text); }

/* ---- Hero mockup card (built in CSS/SVG — no stock imagery required) ---- */
.hero-mockup {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float-lg);
  padding: var(--space-6);
  transform: rotate(-2deg);
  transition: transform var(--dur-mid) var(--ease);
}
.hero-mockup:hover { transform: rotate(0deg) translateY(-4px); }
.hero-mockup__bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-4);
}
.hero-mockup__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper-200);
}
.hero-mockup__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--paper-100);
}
.hero-mockup__row:last-child { border-bottom: none; }
.hero-mockup__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.hero-mockup__bar-chart { flex: 1; height: 8px; border-radius: var(--radius-pill); background: var(--paper-100); overflow: hidden; }
.hero-mockup__bar-chart span { display: block; height: 100%; border-radius: var(--radius-pill); }
.hero-mockup__figure { font-family: var(--font-body); font-weight: 700; font-size: var(--text-sm); color: var(--ink-text); width: 56px; text-align: right; }

/* ---- Floating feature showcase (asymmetric layout) ---- */
.feature-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}
.feature-showcase__center {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}
.feature-showcase__badge {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--ink-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-4);
  animation: spin-slow 18s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .feature-showcase__badge { animation: none; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.feature-showcase__card {
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-float-sm);
  transition: transform var(--dur-mid) var(--ease), box-shadow var(--dur-mid) var(--ease);
}
.feature-showcase__card:hover {
  transform: rotate(0deg) translateY(-6px) !important;
  box-shadow: var(--shadow-float-md);
}
.feature-showcase__card:nth-child(2) { transform: rotate(-3deg); }
.feature-showcase__card:nth-child(3) { transform: rotate(2deg); }
.feature-showcase__card:nth-child(4) { transform: rotate(3deg); }
.feature-showcase__card:nth-child(5) { transform: rotate(-2deg); }
.feature-showcase__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  background: var(--white);
}
@media (max-width: 700px) {
  .feature-showcase { grid-template-columns: 1fr; }
  .feature-showcase__card { transform: none !important; }
}

/* ---- Trust chip (industry / trust strip, replaces plain text row) ---- */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.trust-chip {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--paper-200);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
}

/* ---- Footer ---- */
.site-footer {
  background: #FFFFFF;
  color: #4a4a4a;
  padding: var(--space-16) 0 var(--space-8);
  border-top: 1px solid var(--paper-200);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--paper-200);
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: #1a1a1a;
  margin-bottom: var(--space-3);
}
.footer__brand span { color: #00AB41; }
.footer__tagline {
  font-size: var(--text-sm);
  max-width: 240px;
  margin-bottom: var(--space-4);
}
.footer__title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: var(--space-4);
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer__list a { font-size: var(--text-sm); transition: color var(--dur-fast) var(--ease); }
.footer__list a:hover { color: #00AB41; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer__social { display: flex; gap: var(--space-4); }
.footer__social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--paper-200);
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.footer__social a:hover { background: #00AB41; color: #ffffff; }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---- Floating WhatsApp button ---- */
.float-whatsapp {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float-md);
  z-index: 300;
  transition: transform var(--dur-fast) var(--ease);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 28px; height: 28px; }

/* ---- Floating lead form trigger (sticky tab) ---- */
.float-lead-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: var(--signal-500);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-2);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  cursor: pointer;
  z-index: 300;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  box-shadow: var(--shadow-float-sm);
  transition: background var(--dur-fast) var(--ease);
}
.float-lead-tab:hover { background: var(--signal-600); }
@media (max-width: 700px) {
  .float-lead-tab { display: none; }
}

/* ---- Modal (lead form + exit intent share this) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(3px);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--paper-50);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: var(--space-8);
  box-shadow: var(--shadow-float-lg);
}
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--paper-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--text-lg);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease);
}
.modal__close:hover { background: var(--paper-200); }

/* ---- Lead form ---- */
.lead-form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 100%; min-width: 0; box-sizing: border-box; }
.lead-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); min-width: 0; }
@media (max-width: 480px) {
  .lead-form__row { grid-template-columns: 1fr; }
  /* Overrides the inline padding:var(--space-8) set in HTML on hub-page
     forms — 32px of padding on each side ate too much of a narrow
     screen's width. */
  .lead-form { padding: var(--space-5, 1.25rem) var(--space-4) !important; }
}
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.8rem 1rem;
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-text);
  transition: border-color var(--dur-fast) var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--signal-500);
}
.field--radio-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.field--radio-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  text-transform: none;
  font-weight: 500;
  color: var(--ink-text);
}
.field--radio-group input { width: auto; }
.form-note {
  font-size: var(--text-xs);
  color: var(--slate-400);
  text-align: center;
}
.form-status {
  font-size: var(--text-sm);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  display: none;
}
.form-status.is-success {
  display: block;
  background: var(--gain-100);
  color: #14603A;
}
.form-status.is-error {
  display: block;
  background: #FBE3DC;
  color: #B3411D;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--slate-400);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-6);
}
.breadcrumb a:hover { color: var(--slate-600); }

/* ---- Grid utilities ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); }
.grid-2 > * { min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Blueprint list (tactic name + description) ---- */
.blueprint-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-4); }
.blueprint-list li { display: flex; gap: var(--space-3); }
.blueprint-list .tag-arrow { color: var(--signal-500); font-weight: 700; flex-shrink: 0; padding-top: 2px; }
.blueprint-list strong { color: var(--ink-text); display: block; margin-bottom: 2px; }
.blueprint-list--light strong { color: var(--white); }
.blueprint-list p { color: var(--slate-600); font-size: var(--text-sm); margin: 0; }
.blueprint-list--light p { color: var(--fog-300); }

/* ---- Brand tag chips ---- */
.brand-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.brand-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--paper-100);
  color: var(--slate-600);
  border: 1px solid var(--paper-200);
}
.brand-tags--light .brand-tag {
  background: var(--ink-900);
  color: var(--fog-300);
  border-color: var(--hairline-dark);
}

/* ---- Outcome callout ---- */
.outcome-callout {
  background: var(--tint-blue);
  border-left: 3px solid var(--signal-500);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-6);
}
.outcome-callout p { margin: 0; color: var(--ink-text); font-size: var(--text-base); }

/* ---- FAQ accordion ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-4); }
.faq-item {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  padding: 0 var(--space-6);
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--signal-500); }
.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display, inherit);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink-text);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--signal-500);
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] .faq-item__q::after { content: "\2212"; }
.faq-item__a { margin: 0 0 var(--space-6); color: var(--slate-600); font-size: var(--text-base); line-height: 1.6; }

/* ---- FAQ: category accordion cards ----
   Matches the "Growth Ledger" component design: each category is its own
   bordered, rounded card with a solid-color icon circle, a mono ledger
   number + tagline, and individually-collapsible questions underneath
   (mono "Q1" markers, chevron rotates on open). JS-driven height animation
   (see initFaqAccordion in main.js) replaces native <details> here so both
   the category and each question can animate open/closed. */
.faq2 { display: flex; flex-direction: column; gap: var(--space-6); }

.faq-card {
  background: var(--white);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: background 0.2s ease;
}
.faq-card__head:hover { background: var(--paper-100); }
.faq-card__head:focus-visible { outline: 2px solid var(--signal-500); outline-offset: -2px; }

.faq-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-card__meta { flex: 1; min-width: 0; }
.faq-card__eyebrow {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.faq-card__eyebrow .faq-card__num { opacity: 0.6; }
.faq-card__title {
  display: block;
  margin-top: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--ink-text);
}

.faq-card__count {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.65;
  white-space: nowrap;
}
@media (max-width: 640px) { .faq-card__count { display: none; } }

.faq-card__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--slate-400);
  transition: transform 0.3s ease;
}
.faq-card[data-open="true"] .faq-card__chevron { transform: rotate(180deg); }

.faq-card__panel { height: 0; overflow: hidden; transition: height 0.3s ease; }
.faq-card__panel-inner { padding: 0 var(--space-4) var(--space-3); }

/* ---- Individual question rows inside a category card ---- */
.faq-q + .faq-q { border-top: 1px solid var(--paper-200); }

.faq-q__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.faq-q__head:hover { background: var(--paper-100); }
.faq-q__head:focus-visible { outline: 2px solid var(--signal-500); outline-offset: -2px; }

.faq-q__num {
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
}
.faq-q__text {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink-text);
  line-height: 1.4;
}
.faq-q__chevron {
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  color: var(--slate-400);
  transition: transform 0.3s ease;
}
.faq-q[data-open="true"] .faq-q__chevron { transform: rotate(180deg); }

.faq-q__panel { height: 0; overflow: hidden; transition: height 0.3s ease; }
.faq-q__answer {
  margin: 0;
  padding: 0 var(--space-3) var(--space-4) calc(var(--space-3) + 1.6rem);
  max-width: 640px;
  color: var(--slate-600);
  font-size: var(--text-sm);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .faq-card__panel, .faq-q__panel, .faq-card__chevron, .faq-q__chevron { transition: none; }
}
