/* QF-Mem public funnel styles */

/* ── tokens ── */
:root {
  --bg:           #FAF8F4;
  --bg-alt:       #F1EDE5;
  --bg-warm:      #EDE8DF;
  --surface:      #FFFFFF;
  --ink:          #1A1A2E;
  --ink-soft:     #4A4A62;
  --ink-muted:    #8888A0;
  --brand-blue:   #2B7CB8;
  --brand-orange: #E06D22;
  --accent:       #E06D22;
  --accent-hover: #C85D18;
  --accent-glow:  rgba(224, 109, 34, 0.12);
  --green:        #2D9D5A;
  --red:          #C44040;
  --border:       #DDD8CE;
  --border-light: #EAE6DD;
  --code-bg:      #1A1A2E;
  --code-ink:     #E0DDD6;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow-sm:    0 1px 3px rgba(26,26,46,0.06);
  --shadow-md:    0 4px 20px rgba(26,26,46,0.08);
  --shadow-lg:    0 12px 40px rgba(26,26,46,0.10);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* subtle grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── layout ── */
.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.container--narrow {
  width: min(780px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ── topbar ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
}

.topbar__inner,
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  margin-right: 1rem;
}

.topbar__nav a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a[aria-current="page"] {
  color: var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__mark,
.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand__name,
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand__tag,
.brand-tag {
  font-size: 0.72rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn--primary,
.btn-primary {
  background: var(--accent);
  color: #FFF;
  box-shadow: 0 2px 12px rgba(224, 109, 34, 0.25);
}

.btn--primary:hover,
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(224, 109, 34, 0.35);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink-muted);
  background: rgba(26, 26, 46, 0.03);
}

/* ── eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
}

/* decorative gradient orb */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 109, 34, 0.06) 0%, rgba(43, 124, 184, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__grid,
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.35;
}

.hero__sub,
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

/* ── email capture row ── */
.capture-row,
.email-row {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin-bottom: 0.6rem;
}

.progressive-field {
  max-width: 460px;
  margin: 0 0 0.6rem;
}

.js-enhanced form[data-progressive-name] .progressive-field {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-0.35rem);
  transition: max-height 0.24s ease, opacity 0.2s ease, transform 0.24s ease, margin-bottom 0.24s ease;
}

.js-enhanced form[data-progressive-name].form--details-open .progressive-field {
  max-height: 4.5rem;
  margin-bottom: 0.6rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder { color: var(--ink-muted); }

.input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(43, 124, 184, 0.1);
}

.trust-line {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0.35rem 0 0;
}

.hero-helper {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  max-width: 50ch;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
}

.proof-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 0 0 0.85rem;
}

.proof-metric {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.3;
}

.system-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
  align-items: stretch;
}

.system-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}

.system-card::after {
  content: "→";
  position: absolute;
  right: -0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--page);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 0 0 1px var(--border-light);
}

.system-card:last-child::after {
  display: none;
}

.system-card--accent {
  border-color: rgba(43, 124, 184, 0.2);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(43, 124, 184, 0.05);
}

.system-card__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 0.7rem;
}

.system-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.system-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.system-note {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  margin-top: 1.1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.6;
}

.system-note strong {
  color: var(--ink);
  white-space: nowrap;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 1.4rem;
  margin-top: 2rem;
  align-items: stretch;
}

.integration-panel {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}

.integration-panel h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.integration-list {
  margin: 0;
  padding-left: 1.1rem;
}

.integration-list li {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.65rem;
}

.integration-list strong {
  color: var(--ink);
}

.integration-panel--code {
  background: var(--code-bg);
  color: var(--code-ink);
  border-color: rgba(255, 255, 255, 0.08);
}

.integration-panel__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

.integration-code {
  margin: 0 0 0.9rem;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--code-ink);
}

.integration-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.6;
}

.integration-note code {
  font-family: var(--font-mono);
  color: #fff;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.88rem;
  color: var(--green);
  margin-top: 0.3rem;
}

.branch-link {
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.branch-link a {
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.branch-link a:hover { color: var(--ink); }

/* ── hero visual: terminal card ── */
.hero-visual,
.terminal {
  background: var(--code-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(26, 26, 46, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
  transition: transform 0.4s ease;
}

.hero-visual:hover,
.terminal:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #EF5F5F; }
.terminal-dot:nth-child(2) { background: #F0C24A; }
.terminal-dot:nth-child(3) { background: #5FC26E; }

.terminal-title {
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
}

.terminal-body {
  padding: 1.1rem 1.2rem;
  white-space: pre;
  overflow-x: auto;
  color: var(--code-ink);
}

.t-prompt { color: #5FC26E; }
.t-cmd    { color: #E0DDD6; }
.t-key    { color: #7DBCE8; }
.t-str    { color: #F0C24A; }
.t-dim    { color: rgba(224, 221, 214, 0.4); }
.t-brace  { color: rgba(224, 221, 214, 0.55); }

/* ══════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════ */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--warm {
  background: var(--bg-warm);
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.section__sub,
.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 56ch;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.thank-you-panel {
  padding: 2rem;
}

.thank-you-panel .section__sub {
  margin-bottom: 1.5rem;
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.thank-you-grid {
  margin-top: 2rem;
}

.thank-you-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.thank-you-list li {
  position: relative;
  padding-left: 1.15rem;
}

.thank-you-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(224, 109, 34, 0.12);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

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

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3,
.faq-grid .faq-item h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}

.card p,
.faq-grid .faq-item p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  background: rgba(43, 124, 184, 0.08);
  color: var(--brand-blue);
}

.card-icon-teal {
  background: rgba(43, 124, 184, 0.08);
  color: var(--brand-blue);
}

/* ── problem cards ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
}

.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0.6;
  border-radius: 0 2px 2px 0;
}

.problem-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  background: var(--accent-glow);
  color: var(--accent);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.problem-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── before / after comparison ── */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.compare__col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare__label {
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare__col--bad .compare__label {
  background: rgba(196, 64, 64, 0.08);
  color: var(--red);
  border-bottom: 1px solid rgba(196, 64, 64, 0.1);
}

.compare__col--good .compare__label {
  background: rgba(45, 157, 90, 0.07);
  color: var(--green);
  border-bottom: 1px solid rgba(45, 157, 90, 0.1);
}

.compare__body {
  background: var(--code-bg);
  padding: 1.2rem 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(224, 221, 214, 0.7);
  min-height: 220px;
}

.compare__body .line-bad  { color: #EF7070; }
.compare__body .line-good { color: #5FC26E; }
.compare__body .line-dim  { color: rgba(224, 221, 214, 0.3); }
.compare__body .line-hl   { color: #E0DDD6; }

.compare-takeaway {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── feature cards (benefits) ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  background: rgba(43, 124, 184, 0.08);
  color: var(--brand-blue);
}

.feature-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── ROI section (dramatic number) ── */
.roi-section {
  text-align: center;
}

.roi-section .section__title {
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.roi-hero {
  margin: 2rem auto 1.5rem;
  max-width: 560px;
}

.roi-hero__label {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}

.roi-hero__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.15rem 0;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.roi-hero__sublabel {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.roi-controls {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.roi-slider-group {
  flex: 1;
}

.roi-slider-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.roi-slider-group label strong {
  color: var(--ink);
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(224, 109, 34, 0.35);
  transition: box-shadow 0.2s;
}

.slider::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 16px rgba(224, 109, 34, 0.5);
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(224, 109, 34, 0.35);
}

.roi-footnote {
  font-size: 0.82rem;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 auto;
}

/* ── steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(224, 109, 34, 0.2);
}

.step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── why-buy callout ── */
.callout {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.callout p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.callout ul {
  margin: 1rem 0;
  padding-left: 0;
  list-style: none;
}

.callout li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.55rem;
}

.callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-blue);
  opacity: 0.4;
}

.callout li strong {
  color: var(--ink);
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.why-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.why-card ul {
  margin: 1rem 0 0;
  padding-left: 0;
  list-style: none;
}

.why-card li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 0.55rem;
}

.why-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand-blue);
  opacity: 0.4;
}

.why-card li strong {
  color: var(--ink);
}

.roi-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(241, 237, 229, 0.9));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.roi-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.roi-card > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.roi-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ── stats row ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand-blue);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.35rem;
}

/* ── credibility block ── */
.cred {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cred__highlight {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.cred p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ── pills ── */
.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ── FAQ accordion ── */
.faq-list {
  max-width: 720px;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  line-height: 1.4;
  gap: 1rem;
}

.faq-q:hover { color: var(--accent); }

.faq-q__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: grid;
  place-items: center;
  font-size: 1rem;
  color: var(--ink-muted);
  transition: transform 0.25s ease, background 0.25s;
  line-height: 1;
}

.faq-item.open .faq-q__icon {
  transform: rotate(45deg);
  background: var(--accent-glow);
  color: var(--accent);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-a p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.faq-grid .faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-grid .faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

/* ── final CTA band ── */
.cta-band {
  background: var(--ink);
  color: #FFF;
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* decorative gradient */
.cta-band::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(224, 109, 34, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
  position: relative;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  margin: 0 auto 1.75rem;
  font-size: 1rem;
}

.cta-band .capture-row,
.cta-band .email-row {
  margin: 0 auto 0.6rem;
  justify-content: center;
}

.cta-band [data-turnstile-container] {
  display: flex;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.cta-band .input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFF;
}

.cta-band .input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta-band .input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224, 109, 34, 0.2);
}

.cta-band .trust-line {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.cta-band .form-status {
  color: #5FC26E;
}

.cta-band .branch-link a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.cta-band .branch-link a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ── footer ── */
.footer {
  padding: 2rem 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  border-top: 1px solid var(--border-light);
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer a:hover { color: var(--ink); }

/* ══════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════ */
.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.js-enhanced [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 240ms; }

[data-reveal-stagger].revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero__grid,
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual,
  .terminal {
    transform: none;
    max-width: 520px;
  }

  .problem-grid,
  .steps,
  .stats,
  .grid-2,
  .grid-3,
  .faq-grid,
  .system-flow,
  .integration-grid {
    grid-template-columns: 1fr;
  }

  .compare,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .brand__tag,
  .brand-tag {
    display: none;
  }

  .topbar__inner,
  .topbar__inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .system-card::after {
    display: none;
  }

  .system-note {
    flex-direction: column;
  }

  .topbar__nav {
    order: 3;
    width: 100%;
    margin: 0;
    justify-content: center;
    padding-top: 0.2rem;
  }

  .section { padding: 3.5rem 0; }

  .roi-controls { flex-direction: column; gap: 1rem; }
}

@media (max-width: 520px) {
  .container,
  .container--narrow {
    width: calc(100% - 1.5rem);
  }

  .thank-you-actions {
    flex-direction: column;
  }

  .thank-you-actions .btn {
    width: 100%;
  }

  .capture-row,
  .email-row {
    flex-direction: column;
  }

  .capture-row .btn,
  .email-row .btn {
    width: 100%;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .roi-hero__value {
    font-size: 3rem;
  }

  .callout,
  .why-card,
  .roi-card {
    padding: 1.5rem;
  }
}
