/*
  Components for the Corral Digital site.
  Every value comes from tokens.css. See BRAND.md before adding anything.
*/

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  background: var(--color-bg);
  color: var(--color-text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Type */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-2xl); }
h2 { font-size: var(--text-2xl); }

h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-3);
}

p { margin: 0 0 var(--space-4); max-width: var(--measure); }

a {
  color: var(--color-accent);
  text-underline-offset: 3px;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover { color: var(--color-accent-hover); }

:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.lead { font-size: var(--text-lg); }

.label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.muted { color: var(--color-text-muted); font-size: var(--text-sm); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-width) solid var(--color-border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.logo {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover { color: var(--color-text); }

.nav {
  order: 3;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-6);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav a:hover { color: var(--color-text); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--color-text); font-weight: var(--weight-semibold); }

/* Menu button, menu call to action and sticky audit bar: added by site.js, phones and small tablets only */
.menu-toggle, .nav a.menu-cta, .mobile-cta { display: none; }
.menu-toggle {
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: calc(var(--space-2) * -1);
  padding: 0;
  color: var(--color-text);
  background: none;
  border: none;
  cursor: pointer;
}
.menu-bars, .menu-bars::before, .menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--duration-base) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-open .menu-bars { background: transparent; }
.menu-open .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 899px) {
  .js .header-inner { flex-wrap: nowrap; }
  .js .header-inner > .btn { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-header.is-over-hero .menu-toggle { color: var(--hero-text); }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: var(--space-2) var(--space-4) var(--space-6);
    max-height: calc(100svh - var(--header-h, 64px));
    overflow-y: auto;
    background: var(--color-bg);
    border-bottom: var(--border-width) solid var(--color-border);
    box-shadow: 0 var(--space-4) var(--space-8) color-mix(in srgb, var(--color-text) 10%, transparent);
  }
  .js .site-header.menu-open .nav { display: flex; }
  .js .site-header.menu-open { background: var(--color-bg); }
  .js .nav a:not(.menu-cta) {
    min-height: 52px;
    font-size: var(--text-lg);
    color: var(--color-text);
    border-bottom: var(--border-width) solid var(--color-border);
  }
  .js .nav a.menu-cta { display: inline-flex; margin-top: var(--space-6); color: var(--color-on-accent); }
  .js .nav a.menu-cta:hover { text-decoration: none; }
  .menu-locked { overflow: hidden; }

  .js .mobile-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    backdrop-filter: blur(8px);
    border-top: var(--border-width) solid var(--color-border);
    transform: translateY(110%);
    transition: transform var(--duration-base) var(--ease-standard);
  }
  .js .mobile-cta.is-shown { transform: none; }
  .menu-locked .mobile-cta.is-shown { transform: translateY(110%); }
  .mobile-cta .btn { width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  border: var(--border-width) solid var(--color-accent);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); color: var(--color-on-accent); }

.btn-secondary { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-secondary:hover { background: var(--color-accent-subtle); color: var(--color-text); }

.btn-small { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); white-space: nowrap; }

/* Sections */
.section { padding: var(--space-12) 0; }
.section.flush-top { padding-top: 0; }
.section + .section { border-top: var(--border-width) solid var(--color-border); }

.section-head { margin-bottom: var(--space-8); }

.align-start { align-items: start; }
.after-grid { margin: var(--space-6) 0 0; }

/* Hero */
.hero-sub {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.page-hero {
  color: var(--hero-text);
  background:
    radial-gradient(60% 120% at 10% 0%, var(--hero-bg-2), transparent 65%),
    radial-gradient(50% 120% at 95% 20%, var(--hero-bg-3), transparent 60%),
    var(--hero-bg-1);
  padding: var(--space-12) 0;
}
.page-hero .hero-sub { margin-bottom: 0; color: var(--hero-text-muted); }
.page-hero .label { color: var(--hero-text-muted); }
.js .page-hero { margin-top: calc(var(--header-h, 0px) * -1); padding-top: calc(var(--header-h, 0px) + var(--space-12)); }
.page-hero + .section.flush-top { padding-top: var(--space-12); }

/* Home hero: the one gradient, animated surface on the site (BRAND.md sections 3, 6, 7) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero-x {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--hero-text);
  background: var(--hero-bg-1);
  padding: var(--space-16) 0 var(--space-20);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-x > .container { width: 100%; }

.hero-x-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 12% 18%, var(--hero-bg-2), transparent 62%),
    radial-gradient(55% 75% at 92% 28%, var(--hero-bg-3), transparent 60%),
    radial-gradient(45% 60% at 55% 105%, color-mix(in srgb, var(--hero-accent) 30%, transparent), transparent 70%),
    var(--hero-bg-1);
  background-size: 140% 140%;
  animation: hero-drift 24s ease-in-out infinite alternate;
}

/* Soft light that follows the pointer */
.hero-x-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(28rem circle at var(--mx, 72%) var(--my, 30%), color-mix(in srgb, var(--hero-text) 12%, transparent), transparent 60%);
  transition: background var(--duration-base) var(--ease-standard);
}

/* Home hero swaps the fixed glow for a yellow cursor trail (home.js) */
#hero .hero-x-bg::after { display: none; }
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes hero-drift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 60%; }
}


.hero-x-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
.hero-x-inner > * { min-width: 0; }

.hero-x-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--hero-text-muted);
  border: var(--border-width) solid var(--hero-line);
  background: var(--hero-glass);
  border-radius: var(--radius-lg);
  padding: var(--space-1) var(--space-3);
  max-width: 100%;
  margin-bottom: var(--space-6);
}

.hero-x h1 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
}

.rotator {
  display: block;
  position: relative;
  height: 1.15em;
  overflow: hidden;
  color: var(--hero-accent);
}

.rotator-word {
  display: inline-block;
  white-space: nowrap;
  transition: transform calc(var(--duration-base) * 3) var(--ease-standard), opacity calc(var(--duration-base) * 3) var(--ease-standard);
}

.rotator-word.is-entering, .rotator-word.is-leaving { position: absolute; left: 0; top: 0; }
.rotator-word.is-entering { transform: translateY(100%); opacity: 0; }
.rotator-word.is-leaving { transform: translateY(-100%); opacity: 0; }

.rotator-rest { display: block; }

.hero-x-sub {
  font-size: var(--text-lg);
  color: var(--hero-text-muted);
  margin-bottom: var(--space-8);
}

.btn-hero { background: var(--hero-text); color: var(--hero-bg-1); border-color: var(--hero-text); }
.btn-hero:hover { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-bg-1); }
.btn-hero-ghost { background: var(--hero-glass); color: var(--hero-text); border-color: var(--hero-line); }
.btn-hero-ghost:hover { color: var(--hero-text); border-color: var(--hero-text); }

.pulse {
  position: relative;
  display: inline-block;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: 50%;
  background: var(--hero-accent);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--hero-accent);
  animation: pulse 2s var(--ease-standard) infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3); opacity: 0; }
}

/* Example activity console */
.console {
  background: var(--hero-glass);
  border: var(--border-width) solid var(--hero-line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.console-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: var(--border-width) solid var(--hero-line);
  font-size: var(--text-xs);
  color: var(--hero-text-muted);
}

.console-dots { display: flex; gap: var(--space-1); }
.console-dots i { width: var(--space-2); height: var(--space-2); border-radius: 50%; background: var(--hero-line); }
.console-title { flex: 1; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.console-live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--hero-accent);
}

/* Before-and-after story: what happens, what we do, the result */
.story { padding: var(--space-4) 0 var(--space-3); transition: opacity var(--duration-base) var(--ease-standard); }
.story.is-switching { opacity: 0; }
.story-steps { list-style: none; margin: 0; padding: 0; position: relative; }

/* The thread joining the three steps */
.story-steps::before {
  content: "";
  position: absolute;
  left: calc(var(--space-2) + var(--space-4));
  top: var(--space-6);
  bottom: var(--space-6);
  width: var(--border-width);
  background: var(--hero-line);
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-md);
  opacity: 0.25;
  translate: 0 var(--space-1);
  transition: opacity calc(var(--duration-base) * 2) var(--ease-standard), translate calc(var(--duration-base) * 2) var(--ease-standard), background calc(var(--duration-base) * 2) var(--ease-standard);
}
.story-step.is-on { opacity: 1; translate: none; }
.story-step + .story-step { margin-top: var(--space-2); }

.story-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  border-radius: 50%;
  background: var(--hero-bg-1);
  border: var(--border-width) solid var(--hero-line);
  color: var(--hero-text-muted);
}
.story-icon svg { width: var(--space-4); height: var(--space-4); }
.story-step[data-step="1"].is-on .story-icon { color: var(--hero-accent); border-color: var(--hero-accent); }

.story-kicker { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--hero-text-muted); }
.story-text { display: block; font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-snug); }

.story-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--hero-text-muted);
  border: var(--border-width) dashed var(--hero-line);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  white-space: nowrap;
}

.story-outcome.is-on { background: color-mix(in srgb, var(--hero-accent) 14%, transparent); }
.story-outcome.is-on .story-icon { background: var(--hero-accent); border-color: var(--hero-accent); color: var(--hero-bg-1); }
.story-value { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--hero-accent); white-space: nowrap; }

.story-dots { display: flex; gap: var(--space-1); margin-top: var(--space-4); padding-left: var(--space-2); }
.story-dots i { width: var(--space-4); height: var(--space-1); border-radius: var(--radius-sm); background: var(--hero-line); transition: background var(--duration-base) var(--ease-standard), width var(--duration-base) var(--ease-standard); }
.story-dots i.is-on { width: var(--space-8); background: var(--hero-accent); }

/* Running tally of what was won back */
.tally {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0 0;
  border-top: var(--border-width) solid var(--hero-line);
}
.tally-label { flex: 1; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--hero-text-muted); }
.tally-num { font-family: var(--font-mono); color: var(--hero-text-muted); }
.tally-num b { font-size: var(--text-xl); color: var(--hero-text); }
.tally-money { font-size: var(--text-2xl); font-weight: var(--weight-semibold); color: var(--hero-text); display: inline-block; }
.tally-num.is-bumped, .tally-money.is-bumped { animation: bump calc(var(--duration-base) * 3) var(--ease-standard); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.12); color: var(--hero-accent); } 100% { transform: scale(1); } }

.console-note { margin: var(--space-3) 0 0; font-size: var(--text-xs); color: var(--hero-text-muted); }

.hero-pause {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--hero-text-muted);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero-pause:hover { color: var(--hero-text); }

/* Sections fade up once as they enter the viewport. Only with JS, so content never hides. */
.js .reveal {
  opacity: 0;
  translate: 0 var(--space-4);
  transition:
    opacity calc(var(--duration-base) * 3) var(--ease-standard) var(--d, 0s),
    translate calc(var(--duration-base) * 3) var(--ease-standard) var(--d, 0s),
    transform var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
}
.js .reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-x-bg, .pulse::after { animation: none; }
  .js .reveal { opacity: 1; translate: none; }
  .story-step, .story { transition: none; }
  .tally-num.is-bumped, .tally-money.is-bumped { animation: none; }
}

/* Grids and cards */
.grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }

.card {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.card p:last-child { margin-bottom: 0; }

/* Problem list */
.problems {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.problems li {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  font-weight: var(--weight-semibold);
}

.problems li span {
  display: block;
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.plan.featured {
  order: -1;
  box-shadow: 0 0 0 var(--border-width) var(--color-border-strong);
}

.plan-badge {
  position: absolute;
  top: calc(var(--space-3) * -1);
  left: var(--space-6);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}

.plan h3, .heading-sm {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-1);
}

.plan-tagline { color: var(--color-text-muted); margin-bottom: var(--space-6); }

.plan-price {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.plan-price small {
  font-size: var(--text-sm);
  font-weight: var(--weight-regular);
  color: var(--color-text-muted);
}

.plan-setup { font-size: var(--text-sm); color: var(--color-text-muted); margin: var(--space-2) 0 var(--space-6); }

.plan-fit {
  font-size: var(--text-sm);
  background: var(--color-accent-subtle);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-6);
}

.plan .btn { margin-top: auto; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}

.checklist li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: var(--space-1);
  top: 0.4em;
  width: var(--space-3);
  height: var(--space-2);
  border-left: calc(var(--border-width) * 2) solid var(--color-accent);
  border-bottom: calc(var(--border-width) * 2) solid var(--color-accent);
  transform: rotate(-45deg);
}

.checklist li.includes { padding-left: 0; font-weight: var(--weight-semibold); }
.checklist li.includes::before { display: none; }

/* Two-column text and figure; stacks on small screens */
.split { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }

/* Measurement flywheel and example report */
.flywheel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.flywheel li {
  position: relative;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
}

.flywheel li .label { color: var(--color-accent); margin-bottom: var(--space-2); }
.flywheel li h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.flywheel li p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }

/* The last step loops back to the first */
.flywheel li:last-child { background: var(--color-accent-subtle); }

.report figcaption h3 { margin-bottom: var(--space-4); }
.report { margin: 0; }

.report-table { border: none; background: transparent; font-size: var(--text-sm); }
.report-table th, .report-table td { padding: var(--space-2) var(--space-2); }
.report-table thead th { padding-top: 0; }
.report-table tbody th { font-weight: var(--weight-semibold); text-align: left; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: var(--text-sm); color: var(--color-text); }
.report-table td { font-family: var(--font-mono); white-space: nowrap; }
.report-table tbody td, .report-table tbody th { vertical-align: bottom; }
.report-table tr:last-child th { border-bottom: none; }
.report-table td:first-child { font-weight: var(--weight-regular); }

.bar {
  display: block;
  width: var(--w);
  height: var(--space-2);
  margin-bottom: var(--space-1);
  background: var(--color-data-1);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.report-insight {
  margin: var(--space-4) 0 var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.founder { display: grid; grid-template-columns: 1fr; gap: var(--space-4) var(--space-12); border-top: var(--border-width) solid var(--color-border-strong); padding-top: var(--space-8); }
.formula { font-family: var(--font-mono); font-size: var(--text-sm); background: var(--color-accent-subtle); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.formula span { white-space: nowrap; }

/* Price table */
.table-wrap {
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; background: var(--color-surface); }

th, td {
  text-align: left;
  vertical-align: top;
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
}

th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

td:first-child { font-weight: var(--weight-semibold); }
td.num { font-family: var(--font-mono); }
tr:last-child td { border-bottom: none; }

/* Metric rows */
.metric-rows {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-width) solid var(--color-border);
}

.metric-row span:last-child { font-family: var(--font-mono); white-space: nowrap; }

.metric-row.total {
  background: var(--color-accent-subtle);
  border-bottom: none;
  font-weight: var(--weight-semibold);
}

.metric-row.total span:last-child { color: var(--color-accent); font-size: var(--text-lg); }

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: var(--border-width) solid var(--color-border);
}

.timeline > li { position: relative; padding: 0 0 var(--space-6) var(--space-6); }
.timeline > li:last-child { padding-bottom: 0; }

.timeline > li::before {
  content: "";
  position: absolute;
  left: calc(var(--space-3) / -2);
  top: var(--space-1);
  width: var(--space-3);
  height: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--color-accent);
}

/* FAQ */
.faq details { border-bottom: var(--border-width) solid var(--color-border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  padding: var(--space-4) 0;
  cursor: pointer;
  font-weight: var(--weight-semibold);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--color-text-muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 var(--space-4); }

/* CTA section */
.cta {
  background: var(--color-accent-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
}

.cta p { margin-bottom: var(--space-6); }

/* Short audit request form inside a CTA box */
.audit-form { display: grid; grid-template-columns: 1fr; gap: 0 var(--space-4); align-items: end; margin-bottom: var(--space-2); }
.audit-form .form-group input { background: var(--color-surface); border-color: var(--color-border-strong); }
.audit-form .btn { margin-bottom: var(--space-4); }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

.contact-form {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6) var(--space-4);
}

.form-row { display: grid; grid-template-columns: 1fr; gap: 0 var(--space-4); }

.form-group { margin-bottom: var(--space-4); }

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-1);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible { border-color: var(--color-accent); border-radius: var(--radius-md); }

.form-group textarea { min-height: calc(var(--space-24) + var(--space-6)); resize: vertical; }

.contact-form .btn { width: 100%; }

.steps { list-style: none; padding: 0; margin: 0 0 var(--space-8); counter-reset: step; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: var(--space-12);
  margin-bottom: var(--space-6);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--space-8);
  height: var(--space-8);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.steps li strong { display: block; }
.steps li p { margin: var(--space-1) 0 0; color: var(--color-text-muted); }

/* Website check */
.check-form label { display: block; font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }

.check-row { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-3); }

.check-row input {
  flex: 1;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
}

.check-row input:focus-visible { border-color: var(--color-accent); }
.check-row .btn:disabled, .check-row input:disabled { opacity: 0.6; cursor: progress; }

.check-status {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
}

.check-status.is-error { background: var(--color-surface); border: var(--border-width) solid var(--color-border); }

.check-result { margin-top: var(--space-12); }

.result-head { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-8); }
.result-head h2 { margin-bottom: var(--space-3); }

.score-tile {
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.score-number {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
}

.score-number small { font-size: var(--text-lg); font-weight: var(--weight-regular); color: var(--color-text-muted); }

.score-verdict { display: block; margin-top: var(--space-2); font-weight: var(--weight-semibold); }

.result-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-6); margin-bottom: var(--space-8); }

.meters { list-style: none; padding: 0; margin: 0; }
.meters li + li { margin-top: var(--space-6); }
.meters p { margin: var(--space-2) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }

.meter-top { display: flex; justify-content: space-between; gap: var(--space-4); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.meter-value { font-family: var(--font-mono); }

.meter-track { height: var(--space-2); background: var(--color-accent-subtle); border-radius: var(--radius-sm); overflow: hidden; }
.meter-fill { height: 100%; background: var(--color-data-1); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }


/* Free tools */
.tool-card {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard);
}

.tool-card:hover { background: var(--color-accent-subtle); color: var(--color-text); }
.tool-card p { flex: 1; }
.tool-link { color: var(--color-accent); font-weight: var(--weight-semibold); text-decoration: underline; text-underline-offset: 3px; }

.checks { border: none; padding: 0; margin: 0 0 var(--space-4); display: grid; grid-template-columns: 1fr; gap: var(--space-1) var(--space-4); }
.checks legend { font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); padding: 0; }
.checks label { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: var(--weight-regular); }
.checks input { width: auto; min-height: 0; accent-color: var(--color-accent); }

/* Growth plan document */
.plan-doc { padding-top: var(--space-12); }
.plan-doc > * + * { margin-top: var(--space-12); }
.plan-doc-head h2 { margin-bottom: var(--space-3); }
.money { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
.plan-doc .timeline h4 { margin-top: 0; }
.plan-doc .timeline .checklist { margin-bottom: 0; }
.plan-rec { box-shadow: 0 0 0 var(--border-width) var(--color-border-strong); }

@media print {
  .site-header, .site-footer, .no-print, .plan-form, .check-status { display: none !important; }
  body { background: var(--color-surface); }
  .section { padding: 0; }
  .plan-doc { padding-top: 0; }
  .plan-doc > * + * { margin-top: var(--space-8); }
  .card, .score-tile, .plan-doc section { break-inside: avoid; }
}

/* Footer */
.site-footer {
  border-top: var(--border-width) solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer-top { display: grid; grid-template-columns: 1fr; gap: var(--space-12); padding-bottom: var(--space-12); }
.footer-brand .logo { font-size: var(--text-lg); }
.footer-brand p { margin: var(--space-2) 0 var(--space-4); }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.footer-head {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
}
.footer-cols a { display: flex; align-items: center; min-height: 44px; color: var(--color-text); text-decoration: none; }
.footer-cols a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--border-width) solid var(--color-border);
}
.footer-bottom p { margin: 0; }

/* ---------- Home page ---------- */

.display { font-size: var(--text-3xl); letter-spacing: -0.02em; }

/* Header sits over the dark top band (any page), then turns solid once you scroll */
.js .site-header.is-over-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.js .site-header.is-over-hero .logo,
.js .site-header.is-over-hero .nav a,
.js .site-header.is-over-hero .nav a:hover { color: var(--hero-text); }
.js .site-header.is-over-hero .btn-secondary { color: var(--hero-text); border-color: var(--hero-line); background: var(--hero-glass); }
.js .site-header.is-over-hero .btn-secondary:hover { border-color: var(--hero-text); }
.site-header { transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.site-header.is-scrolled { box-shadow: 0 var(--space-1) var(--space-6) color-mix(in srgb, var(--color-text) 8%, transparent); }
.js .home .hero-x { margin-top: calc(var(--header-h, 0px) * -1); padding-top: calc(var(--header-h, 0px) + var(--space-16)); }

/* Staged hero entrance */
.js .home .enter { opacity: 0; transform: translateY(var(--space-4)); }
.js .home.is-ready .enter {
  opacity: 1;
  transform: none;
  transition: opacity calc(var(--duration-base) * 4) var(--ease-standard), transform calc(var(--duration-base) * 4) var(--ease-standard);
}
.js .home.is-ready .enter:nth-child(1) { transition-delay: 0ms; }
.js .home.is-ready h1.enter { transition-delay: calc(var(--duration-fast) * 1); }
.js .home.is-ready .hero-x-sub.enter { transition-delay: calc(var(--duration-fast) * 2); }
.js .home.is-ready .hero-actions.enter { transition-delay: calc(var(--duration-fast) * 3); }
.js .home.is-ready .console.enter { transition-delay: calc(var(--duration-fast) * 4); }

/* Services ticker */
.ticker {
  display: flex;
  overflow: hidden;
  border-bottom: var(--border-width) solid var(--color-border);
  padding: var(--space-4) 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker:hover .ticker-track, .motion-paused .ticker-track { animation-play-state: paused; }
.ticker-track {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-8);
  padding-right: var(--space-8);
  margin: 0;
  list-style: none;
  animation: ticker 40s linear infinite;
}
.ticker-track li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  white-space: nowrap;
  color: var(--color-text);
}
.ticker-track li::after { content: ""; width: var(--space-2); height: var(--space-2); border-radius: 50%; background: var(--color-accent); }
@keyframes ticker { to { transform: translateX(-100%); } }

/* Problem: pinned headline, list scrolls past */
.problem-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-12); }
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: var(--border-width) solid var(--color-border);
}
.problem-list li:last-child { border-bottom: var(--border-width) solid var(--color-border); }
.problem-num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent); padding-top: var(--space-1); }
.problem-list h3 { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--text-2xl); margin-bottom: var(--space-2); }
.problem-list p { margin: 0; color: var(--color-text-muted); }

/* Website check band */
.check-band { background: var(--color-accent-subtle); padding: var(--space-16) 0; }
.check-band-inner { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
.check-band .check-row input { background: var(--color-surface); border-color: var(--color-border-strong); }
.check-band h2 { margin-bottom: var(--space-3); }

/* Bento of working visuals */
.bento { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
}
.tile:hover { transform: translateY(calc(var(--space-1) * -1)); box-shadow: 0 var(--space-3) var(--space-8) color-mix(in srgb, var(--color-accent) 14%, transparent); }
.tile-copy .label { color: var(--color-accent); }
.tile h3 { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--text-2xl); line-height: var(--leading-tight); }
.tile p { color: var(--color-text-muted); margin: 0; }

.viz {
  background: var(--color-accent-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: var(--text-sm);
}

/* 01 search result rises to the top */
.viz-searchbar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
}
.viz-searchbar svg { width: var(--space-4); height: var(--space-4); fill: none; stroke: currentColor; stroke-width: 2; }
.viz-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.viz-results li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0 var(--space-3);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  transition: transform calc(var(--duration-base) * 4) var(--ease-standard), opacity calc(var(--duration-base) * 3) var(--ease-standard);
}
.viz-results b { font-weight: var(--weight-semibold); }
.viz-results span { grid-column: 1; color: var(--color-text-muted); font-size: var(--text-xs); }
.viz-results em { grid-column: 2; grid-row: 1 / span 2; font-style: normal; font-weight: var(--weight-semibold); color: var(--color-on-accent); background: var(--color-accent); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-3); }
.viz-you { border-color: var(--color-border-strong) !important; order: 3; }
.viz-other { opacity: 0.75; }
.in-view .viz-you { transform: translateY(calc(-200% - var(--space-4))); }
.in-view .viz-other { transform: translateY(calc(100% + var(--space-2))); opacity: 0.5; }

/* 02 stars fill in */
.viz-stars { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.viz-star-row { display: flex; gap: var(--space-1); }
.viz-star-row i {
  width: var(--space-8);
  height: var(--space-8);
  background: var(--color-border);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  transition: background var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.in-view .viz-star-row i { background: var(--color-accent); transform: scale(1.08); }
.in-view .viz-star-row i:nth-child(2) { transition-delay: calc(var(--duration-fast) * 1); }
.in-view .viz-star-row i:nth-child(3) { transition-delay: calc(var(--duration-fast) * 2); }
.in-view .viz-star-row i:nth-child(4) { transition-delay: calc(var(--duration-fast) * 3); }
.in-view .viz-star-row i:nth-child(5) { transition-delay: calc(var(--duration-fast) * 4); }
.viz-rating { font-family: var(--font-mono); font-size: var(--text-lg); color: var(--color-text); }

/* 03 the text-back conversation plays out */
.viz-chat { display: flex; flex-direction: column; gap: var(--space-2); }
.bubble {
  max-width: 85%;
  margin: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard);
}
.js [data-animate]:not(.in-view) .bubble { opacity: 0; transform: translateY(var(--space-2)) scale(0.96); }
.bubble.out { align-self: flex-start; background: var(--color-surface); border: var(--border-width) solid var(--color-border); border-bottom-left-radius: var(--radius-sm); }
.bubble.in { align-self: flex-end; background: var(--color-accent); color: var(--color-on-accent); border-bottom-right-radius: var(--radius-sm); }
.bubble.booked { font-weight: var(--weight-semibold); border-color: var(--color-border-strong); }
.bubble.booked::before { content: "\2713  "; color: var(--color-accent); }
.in-view .bubble { opacity: 1; transform: none; }
.in-view .bubble:nth-child(2) { transition-delay: calc(var(--duration-base) * 4); }
.in-view .bubble:nth-child(3) { transition-delay: calc(var(--duration-base) * 8); }

/* 04 the campaign goes out */
.viz-mail { display: grid; grid-template-columns: 1fr; gap: var(--space-3); align-items: center; }
.viz-mail-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: transform calc(var(--duration-base) * 3) var(--ease-standard);
}
.in-view .viz-mail-card { transform: rotate(-1.5deg); }
.viz-mail-to { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.viz-mail-line { height: var(--space-2); border-radius: var(--radius-sm); background: var(--color-border); width: 90%; }
.viz-mail-line.short { width: 60%; }
.viz-mail-stats { display: flex; gap: var(--space-6); margin: 0; }
.viz-mail-stats div { display: flex; flex-direction: column; }
.viz-mail-stats dt { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-text-muted); }
.viz-mail-stats dd { margin: 0; font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--color-text); }

/* Report bars grow in; flywheel highlights each step in turn */
.js [data-animate] .bar { width: 0; transition: width calc(var(--duration-base) * 5) var(--ease-standard); }
.js [data-animate].in-view .bar { width: var(--w); }
.js [data-animate].in-view tr:nth-child(2) .bar { transition-delay: calc(var(--duration-fast) * 1); }
.js [data-animate].in-view tr:nth-child(3) .bar { transition-delay: calc(var(--duration-fast) * 2); }
.js [data-animate].in-view tr:nth-child(4) .bar { transition-delay: calc(var(--duration-fast) * 3); }
.js [data-animate].in-view tr:nth-child(5) .bar { transition-delay: calc(var(--duration-fast) * 4); }

.flywheel li { transition: background var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.flywheel li::after {
  content: "";
  position: absolute;
  left: var(--space-6);
  right: var(--space-6);
  bottom: 0;
  height: var(--space-1);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
}
.flywheel.is-cycling li:last-child { background: var(--color-surface); }
.flywheel li.is-active { background: var(--color-accent-subtle); }
.flywheel li.is-active::after { transform: scaleX(1); transition: transform var(--cycle, 2600ms) linear; }

/* How it works: the line draws across */
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-8); position: relative; }
.steps-line li { position: relative; padding-left: var(--space-16); }
.step-dot {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--space-12);
  height: var(--space-12);
  border-radius: 50%;
  background: var(--color-surface);
  border: var(--border-width) solid var(--color-border-strong);
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  z-index: 1;
}
.steps-line li:last-child .step-dot { background: var(--color-accent); color: var(--color-on-accent); }
.steps-line h3 { font-family: var(--font-display); font-weight: var(--weight-regular); font-size: var(--text-2xl); }
.steps-line p { color: var(--color-text-muted); }

/* Accountability as statements */
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
.promises li { border-top: var(--border-width) solid var(--color-border-strong); padding-top: var(--space-6); }
.promise-big { display: block; font-family: var(--font-display); font-size: var(--text-4xl); line-height: var(--leading-tight); color: var(--color-accent); margin-bottom: var(--space-4); }
.promises h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.promises p { color: var(--color-text-muted); margin: 0; }

/* Plans lift on hover */
.home .plan { transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard); }
.home .plan:hover { transform: translateY(calc(var(--space-1) * -1)); }

/* Links with a sliding arrow */
.link-arrow { font-weight: var(--weight-semibold); }
.link-arrow::after { content: " \2192"; display: inline-block; transition: transform var(--duration-base) var(--ease-standard); }
.link-arrow:hover::after { transform: translateX(var(--space-1)); }

/* Closing band mirrors the hero */
.closer { position: relative; overflow: hidden; isolation: isolate; color: var(--hero-text); background: var(--hero-bg-1); padding: var(--space-20) 0; }
.closer .display { font-size: var(--text-4xl); max-width: 18ch; margin-bottom: var(--space-4); }
.closer .hero-x-sub { margin-bottom: var(--space-8); }

/* Staggered reveal: children enter one after another */
[data-stagger] > .reveal:nth-child(2) { --d: calc(var(--duration-fast) * 1); }
[data-stagger] > .reveal:nth-child(3) { --d: calc(var(--duration-fast) * 2); }
[data-stagger] > .reveal:nth-child(4) { --d: calc(var(--duration-fast) * 3); }

/* Global pause (the hero's "Pause animations" button) */
.motion-paused .hero-x-bg, .motion-paused .pulse::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .js .home .enter { opacity: 1; transform: none; }
  .js [data-animate] .bar { width: var(--w); transition: none; }
  .viz-results li, .viz-star-row i, .viz-mail-card, .tile, .home .plan { transition: none; }
}

/* Phones: 16px gutter, price table stacks into rows */
@media (max-width: 639px) {
  .container { padding: 0 var(--space-4); }
  .js .home .hero-x { padding-top: calc(var(--header-h, 0px) + var(--space-8)); }
  .hero-x-label { font-size: 0.6875rem; letter-spacing: 0.04em; }
  .hero-actions .btn { flex: 1 1 100%; }
  .problem-list h3 { font-size: var(--text-xl); }
  .promise-big { font-size: var(--text-3xl); }
  .report-table { font-size: var(--text-xs); }
  .report-table thead th { font-size: 0.625rem; }
  .hero-x h1 { font-size: calc(var(--text-2xl) * 1.45); }
  .story-tag { display: none; }
  .table-wrap thead { display: none; }
  .table-wrap tr { display: block; padding: var(--space-3) var(--space-4); border-bottom: var(--border-width) solid var(--color-border); }
  .table-wrap tr:last-child { border-bottom: none; }
  .table-wrap td { display: block; padding: 0; border: none; }
  .table-wrap td + td { margin-top: var(--space-1); }
  .report-table th, .report-table td { padding: var(--space-2) var(--space-1); }
}

/* 640px and up */
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4, .problems, .form-row { grid-template-columns: repeat(2, 1fr); }
  .contact-form { padding: var(--space-8); }
  .cta { padding: var(--space-12); }
  .check-row { flex-direction: row; }
  .audit-form { grid-template-columns: 1fr 1fr; }
  .result-head { grid-template-columns: auto 1fr; align-items: center; gap: var(--space-8); }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .flywheel { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .viz-mail { grid-template-columns: 3fr 2fr; }
  .promises { grid-template-columns: repeat(3, 1fr); }
  .display { font-size: var(--text-4xl); }
  .money { grid-template-columns: auto 1fr; gap: var(--space-8); }
  .nav { order: 0; flex-basis: auto; flex: 1; justify-content: flex-end; margin-right: var(--space-2); }
}

/* 960px and up */
@media (min-width: 960px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section { padding: var(--space-16) 0; }
  .page-hero { padding: var(--space-16) 0; }
  .js .page-hero { padding-top: calc(var(--header-h, 0px) + var(--space-16)); }
  .grid-3, .plans { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .plan.featured { order: 0; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
  .split.measured { align-items: start; }
  .contact-layout { grid-template-columns: 3fr 2fr; gap: var(--space-12); }
  .hero-x { padding: var(--space-24) 0; }
  .hero-x-inner { grid-template-columns: 1.15fr 1fr; gap: var(--space-16); }
  .hero-x h1 { font-size: calc(var(--text-4xl) * 1.4); }
  .console { padding: var(--space-6); }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .audit-form { grid-template-columns: repeat(3, 1fr) auto; }
  .founder { grid-template-columns: 2fr 3fr; }
  .footer-top { grid-template-columns: 2fr 3fr; }
  .problem-grid { grid-template-columns: 5fr 6fr; gap: var(--space-16); align-items: start; }
  .problem-head { position: sticky; top: calc(var(--header-h, 0px) + var(--space-8)); }
  .check-band { padding: var(--space-20) 0; }
  .check-band-inner { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .bento { grid-template-columns: repeat(5, 1fr); }
  .bento .tile-wide { grid-column: span 3; }
  .bento .tile:not(.tile-wide) { grid-column: span 2; }
  .bento .tile:nth-child(3) { grid-column: 1 / span 2; }
  .bento .tile:nth-child(4) { grid-column: 3 / span 3; }
  .steps-line { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .steps-line li { padding-left: 0; padding-top: var(--space-16); }
  .steps-line::before {
    content: "";
    position: absolute;
    left: var(--space-6);
    right: calc(33.33% - var(--space-6));
    top: var(--space-6);
    height: var(--border-width);
    background: var(--color-border-strong);
    transform-origin: left;
    transition: transform calc(var(--duration-base) * 7) var(--ease-standard);
  }
  .js .steps-line:not(.in-view)::before { transform: scaleX(0); }
  .closer { padding: var(--space-24) 0; }
  .closer .display { font-size: calc(var(--text-4xl) * 1.3); }
}

@media print {
  .mobile-cta, .menu-toggle { display: none !important; }
}
