/* ============================================
   Bot Doctor — CSS
   White, clean, premium single-page design
   ============================================ */

:root {
  --white: #ffffff;
  --off-white: #f7f7f5;
  --black: #0d0d0d;
  --dark: #1a1a1a;
  --mid: #444444;
  --light: #d4d4d4;
  --rule: #e8e8e8;
  --accent: #0d0d0d;
  --accent-hover: #333333;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --container: 1100px;
  --container-narrow: 720px;
  --container-tight: 560px;
}

/* Dark mode — semantic tokens invert, structure stays */
[data-theme="dark"] {
  --white: #0d0d0d;         /* page background */
  --off-white: #111113;     /* subtle section bg */
  --black: #f2ede0;         /* primary text (cream) */
  --dark: #e8e3d6;          /* body text */
  --mid: #c0c0c0;           /* muted text — light grey, clearly readable on black */
  --light: #555555;         /* borders/dividers — visible on black */
  --rule: #2a2a2e;          /* hairline rules */
  --accent: #f2ede0;        /* button fill */
  --accent-hover: #ffffff;
}

/* Nav theme toggle */
.nav__theme {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 99px;
  width: 36px;
  height: 36px;
  padding: 0;
  margin-right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.nav__theme:hover {
  background: var(--off-white);
  border-color: var(--mid);
}
.theme-icon {
  width: 16px;
  height: 16px;
  display: block;
}
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
[data-theme="dark"] .theme-icon--moon { display: none; }

/* Smooth theme transition */
html {
  transition: background-color 0.25s ease, color 0.25s ease;
}
body, section, .nav, .footer {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Dark-mode overrides for the few places with hardcoded whites */
[data-theme="dark"] .nav {
  background: rgba(13, 13, 13, 0.82);
  border-bottom-color: var(--rule);
}

/* Flow diagram */
[data-theme="dark"] .flow-diagram {
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .flow-col__label {
  color: rgba(255,255,255,0.35);
}
[data-theme="dark"] .flow-tool {
  background: #1c1c20;
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  box-shadow: none;
}
[data-theme="dark"] .flow-tool:hover {
  border-color: rgba(255,255,255,0.25);
  box-shadow: none;
}

/* You card — fix invisible border on dark bg */
[data-theme="dark"] .flow-agent__card--you {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Brain card badge — invert the green pill to dark */
[data-theme="dark"] .flow-agent__badge {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border-color: rgba(74,222,128,0.25);
}

/* Step watermark numbers — faint white in dark mode */
[data-theme="dark"] .step::before {
  color: rgba(255,255,255,0.03);
}

/* Product ladder featured tier — keep it distinct from dark page background */
[data-theme="dark"] .ladder-tier--featured {
  background: #141418;
  box-shadow: inset 0 0 0 1.5px rgba(242,237,224,0.2);
}

[data-theme="dark"] .contact {
  background: #111113;
}
[data-theme="dark"] .footer {
  background: #0d0d0d;
  border-top-color: rgba(255,255,255,0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Global section centering ---- */
.hero .container,
.workflow .container,
#audit .container,
.profiles .container,
.product-ladder .container,
.about .container,
.testimonials-slider .container,
.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1,
.hero .hero__sub,
.hero .hero__cta-note,
.workflow__header,
.workflow__header h2,
.workflow__header .chapter-label,
.workflow__header .workflow__sub,
.section-header,
.section-header h2,
.section-header .chapter-label,
.section-header .workflow__sub {
  text-align: center;
  width: 100%;
}

/* ---- Typography ---- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--dark);
  text-wrap: pretty;
}

strong { font-weight: 600; color: var(--black); }

a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */

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

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--tight {
  max-width: var(--container-tight);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: var(--space-xl) 0; }

.rule { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ---- Labels ---- */

.label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  font-family: var(--font-body);
}

/* Chapter markers — numbered sections. Bigger + dark so they read as structure */
.chapter-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1rem;
}

/* ---- Integration strip ---- */

.integration-strip {
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  background: var(--off-white);
  padding: 0;
  overflow: hidden;
}

.integration-strip__inner {
  display: flex;
  align-items: center;
  height: 48px;
  overflow: hidden;
}

.integration-strip__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
  padding: 0 1.5rem 0 2rem;
  border-right: 1px solid var(--rule);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--off-white);
}

.integration-strip__track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.integration-strip__logos {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: marquee 28s linear infinite;
  padding-left: 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  width: max-content;
  min-width: max-content;
}

.integration-strip__logos span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}

.integration-strip__logos span::after {
  content: '·';
  color: var(--light);
  font-size: 1rem;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--black);
}

.nav__logo span {
  font-style: italic;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}


.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black);
  padding: 0.55rem 1.2rem;
  border-radius: 100px;
  transition: background 0.2s ease;
}

.nav__cta:hover { background: var(--dark); }

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 100px;
}

.btn--primary:hover { background: var(--dark); }

.btn--outline {
  background: transparent;
  color: var(--black);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  border: 1px solid var(--light);
}

.btn--outline:hover { border-color: var(--black); }

/* ---- Hero ---- */

.hero {
  padding: calc(var(--space-xl) + 64px) 0 var(--space-xl);
  background: var(--white);
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* ---- Workflow section ---- */

.workflow {
  padding: var(--space-xl) 0 var(--space-xl);
  background: var(--white);
}

.workflow__header {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-lg);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.workflow__header h2 {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.workflow__sub {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.workflow__preface {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 55ch;
  margin: 0.5rem auto 1.25rem;
  opacity: 0.85;
}

/* ---- Flow Diagram ---- */

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 0;
  background: transparent;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 2.5rem 1.5rem;
  width: 100%;
  overflow: hidden;
  min-height: 340px;
}

/* Columns */
.flow-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flow-col--inputs { align-items: flex-end; }
.flow-col--outputs { align-items: flex-start; }

.flow-col__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 0.5rem;
}

.flow-tools {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.flow-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(0,0,0,0.7);
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.flow-tool:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flow-tool__icon {
  font-size: 0.85rem;
  line-height: 1;
}

/* Connection lines — visual spacers only, SVG paths are drawn by JS over the top */
.flow-lines {
  width: 80px;
  align-self: stretch;
  position: relative;
}

/* Agent center card */
.flow-agent {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  z-index: 2;
}

.flow-agent__glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(167,139,250,0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.flow-agent__card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 140px;
  position: relative;
  box-shadow: 0 0 40px rgba(167,139,250,0.25), 0 4px 20px rgba(0,0,0,0.4);
}

/* YOU variant — chaos state */
.flow-agent__card--you {
  padding: 1.75rem 2rem;
  min-width: 170px;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.flow-diagram[data-flow="chaos"] .flow-agent__glow { display: none; }

.flow-agent__name--big {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 0.25rem;
}

/* BRAIN variant — where we're going */
.flow-agent__card--brain {
  padding: 1.75rem 2rem 1.5rem;
  min-width: 220px;
  border: 1.5px solid #0d0d0d;
  box-shadow: 0 0 50px rgba(100, 80, 30, 0.12), 0 6px 28px rgba(0,0,0,0.32);
}

.flow-agent__card--brain .flow-brain-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 0.25rem;
}

.flow-agent__card--brain .flow-agent__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #0d0d0d;
  margin-bottom: 0.35rem;
  line-height: 1.1;
}

.flow-agent__card--brain .flow-agent__sub {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.48);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

/* Dark mode: swap the brain card border/text to cream */
[data-theme="dark"] .flow-agent__card--brain {
  border-color: #f2ede0;
  background: #17171a;
}
[data-theme="dark"] .flow-agent__card--brain .flow-brain-label,
[data-theme="dark"] .flow-agent__card--brain .flow-agent__sub {
  color: rgba(242, 237, 224, 0.58);
}
[data-theme="dark"] .flow-agent__card--brain .flow-agent__name {
  color: #f2ede0;
}
[data-theme="dark"] .flow-agent__card--you {
  background: #17171a;
}
[data-theme="dark"] .flow-agent__card--you .flow-agent__name--big,
[data-theme="dark"] .flow-agent__card--you .flow-agent__sub {
  color: #f2ede0;
}

.flow-agent__dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin: 0 auto 0.6rem;
  animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #22c55e; }
  50% { opacity: 0.5; box-shadow: none; }
}

.flow-agent__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f0f0f;
  margin-bottom: 0.2rem;
}

.flow-agent__sub {
  font-size: 0.68rem;
  color: rgba(0,0,0,0.45);
  margin-bottom: 0.6rem;
}

.flow-agent__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
}

/* Compat line */
.flow-compat {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--mid);
  text-align: center;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .flow-diagram {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto;
    padding: 1.5rem 1rem;
    gap: 0.75rem;
    min-height: unset;
  }

  .flow-col--inputs { align-items: center; }
  .flow-col--outputs { align-items: center; }

  .flow-tools {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .flow-lines {
    display: none;
  }
}

/* ---- Hero trust strip ---- */

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__trust-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.01em;
}

.hero__trust-label {
  font-size: 0.78rem;
  color: var(--mid);
  font-weight: 400;
}

.hero__trust-divider {
  width: 1px;
  height: 2rem;
  background: var(--rule);
  flex-shrink: 0;
}

/* ---- Hero eyebrow ---- */

.hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--mid);
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hero__sub {
  font-size: 1.1rem;
  max-width: 52ch;
  color: var(--mid);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cta-note {
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Section header ---- */

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-top: 0.75rem;
}

/* ---- Problem section ---- */

.problem {
  background: var(--off-white);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.problem__label {
  padding-top: 0.4rem;
}

.problem__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

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

.problem__callout {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-left: 3px solid var(--black);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Services ---- */

.services {
  background: var(--white);
}

#how-it-works {
  background: var(--off-white);
}

.about {
  background: var(--white);
}

.services__intro {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-lg);
}

.services__intro p {
  font-size: 1.05rem;
  color: var(--mid);
  margin-top: 1rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--mid);
  margin-bottom: 1rem;
  font-weight: 400;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ---- Case studies ---- */

.cases {
  background: var(--off-white);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin-top: var(--space-lg);
}

.case-card {
  background: var(--white);
  padding: 2.5rem 2rem;
}

.case-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
  display: block;
}

.case-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ---- How it works ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin-top: var(--space-lg);
  border: 1px solid var(--rule);
}

.step {
  padding: 3rem 2rem;
  border-right: 1px solid var(--rule);
  position: relative;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.step::before {
  content: attr(data-n);
  position: absolute;
  bottom: -1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 400;
  color: rgba(0,0,0,0.045);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.step:last-child { border-right: none; }

.step__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--mid);
  line-height: 1;
  margin: 0;
  font-weight: 400;
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin: 0;
}

.step p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 auto;
}

/* ---- Who it's for ---- */

.for {
  background: var(--white);
}

.for__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.for__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.for__item {
  background: var(--white);
  padding: 1.5rem 2rem;
}

.for__item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.4rem;
}

.for__item p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
}

.for__test {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--black);
  color: var(--white);
}

.for__test p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.65;
}

.for__test strong { color: var(--white); }

/* ---- About ---- */

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__inner > div:first-child h2 {
  text-align: left;
}

.about__text {
  padding-top: 0.25rem;
}

.about__text p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
  color: var(--mid);
  text-align: left;
}

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

.about__sig {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  text-align: left;
}

.about__sig strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--black);
}

.about__sig span {
  font-size: 0.85rem;
  color: var(--mid);
}

/* ---- Testimonial Slider ---- */

.testimonials-slider {
  background: var(--off-white);
  padding: 5rem 0;
}

.slider {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.slider.dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.slider__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.slider.dragging .slider__track {
  transition: none;
}

.slider__slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slider__quote {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--mid);
  font-style: italic;
  margin: 0 auto 1.25rem;
}

.slider__author {
  font-size: 0.8rem;
  color: var(--black);
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider__author strong {
  font-weight: 600;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
}

.slider__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--mid);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.slider__dot:hover {
  border-color: var(--black);
}

.slider__dot.active {
  background: var(--black);
  border-color: var(--black);
}

[data-theme="dark"] .slider__dot.active {
  background: var(--black);
  border-color: var(--black);
}

/* ---- FAQ ---- */

.faq {
  background: var(--off-white);
}

.faq__grid {
  margin-top: var(--space-lg);
  border: 1px solid var(--rule);
  width: 100%;
}

.faq__item {
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}

.faq__item:last-child { border-bottom: none; }

.faq__question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
}

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: var(--mid);
  transition: all 0.2s;
}

.faq__item.open .faq__icon {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  transform: rotate(45deg);
}

.faq__answer {
  display: none;
  padding: 0 2rem 1.5rem;
}

.faq__item.open .faq__answer { display: block; }

.faq__answer p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.75;
  max-width: 65ch;
}

/* ---- Contact ---- */

/* ---- Pricing ---- */

.pricing {
  background: var(--off-white);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.pricing-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  position: relative;
}

.pricing-card--featured {
  box-shadow: 0 0 0 2px var(--black);
  z-index: 1;
}

.pricing-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem;
}

.pricing-card--featured .pricing-card__tier,
.pricing-card--featured .pricing-card__price,
.pricing-card--featured .pricing-card__monthly {
  margin-top: 1.5rem;
}

.pricing-card__tier {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--black);
  letter-spacing: -0.02em;
}

.pricing-card__period {
  font-size: 0.82rem;
  color: var(--mid);
}

.pricing-card__monthly {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.pricing-card__monthly .pricing-card__amount {
  font-size: 1.4rem;
}

.pricing-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

.pricing-card p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.pricing-card__features li {
  font-size: 0.82rem;
  color: var(--dark);
  line-height: 1.6;
  padding: 0.35rem 0;
  padding-left: 1.1rem;
  position: relative;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: 600;
}

.pricing-card__best {
  font-size: 0.78rem;
  color: var(--mid);
  font-style: italic;
  line-height: 1.5;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ---- Contact ---- */

.contact {
  background: var(--black);
  color: var(--white);
  text-align: center;
}

.contact .label { color: rgba(255,255,255,0.4); }

.contact h2 {
  color: #ffffff;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.contact__sub {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
  text-align: left;
}

.contact__info h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.contact__info p, .contact__info a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.contact__info a:hover { color: var(--white); }

.contact__info-block { margin-bottom: 1.5rem; }

.form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 6px;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #0d0d0d;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-submit:hover { opacity: 0.85; }

.form-status {
  font-size: 0.88rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
  color: rgba(255,255,255,0.6);
}

/* ---- Footer ---- */

.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 2rem 0;
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
}

.footer__brand span { font-style: italic; }

.footer__right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__right a, .footer__right p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer__right a:hover { color: rgba(255,255,255,0.7); }

.footer__legal {
  display: flex;
  gap: 1.25rem;
}
.footer__legal a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* ---- Billing ---- */

.billing-page {
  background: var(--white);
}

.billing-hero {
  padding: calc(var(--space-xl) + 64px) 0 2.5rem;
  background: var(--white);
}

.billing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.billing-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.billing-hero h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
}

.billing-hero__sub {
  max-width: 54ch;
  font-size: 1.05rem;
  color: var(--mid);
  margin-bottom: 2rem;
}

.billing-primary {
  border: 1px solid var(--rule);
  background: var(--off-white);
  padding: 1.25rem 1.25rem 1rem;
  max-width: 640px;
}

.billing-primary__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.billing-primary__service {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--black);
  margin-top: 0.3rem;
}

.billing-overview {
  padding: 0 0 var(--space-xl);
  background: var(--white);
}

.billing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.billing-card,
.billing-sidebar section {
  border: 1px solid var(--rule);
  background: var(--white);
}

.billing-card {
  padding: 2.25rem;
}

.billing-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.75rem;
}

.billing-card__logo {
  width: 168px;
  max-width: 100%;
  height: auto;
  display: block;
}

.billing-card__date {
  text-align: right;
}

.billing-card__date-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.billing-card__date-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--black);
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.billing-summary-item {
  background: var(--off-white);
  padding: 1.1rem 1rem;
}

.billing-summary-item .label {
  display: block;
  margin-bottom: 0.45rem;
}

.billing-summary-item__value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--black);
}

.billing-note {
  background: var(--off-white);
  border-left: 3px solid var(--black);
  padding: 1.35rem 1.5rem;
}

.billing-note p {
  color: var(--dark);
}

.billing-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.billing-sidebar section {
  padding: 1.5rem;
}

.billing-sidebar h2 {
  margin-top: 0.35rem;
  margin-bottom: 0.85rem;
}

.billing-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.billing-price__amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--black);
}

.billing-price__cadence {
  font-size: 1rem;
  color: var(--mid);
}

.billing-checklist {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.billing-checklist li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--dark);
  line-height: 1.7;
}

.billing-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: #16a34a;
  font-weight: 600;
}

.billing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.billing-cta {
  width: 100%;
  justify-content: center;
}

.billing-cta[aria-disabled="true"] {
  pointer-events: none;
  background: var(--light);
  color: var(--mid);
}

.billing-fineprint,
.billing-footnote {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}

.billing-contact-link {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.18);
  text-underline-offset: 0.18em;
}

.billing-contact-link:hover {
  text-decoration-color: rgba(0, 0, 0, 0.48);
}

/* ---- Two paths ---- */

.two-paths {
  background: var(--off-white);
}

.two-paths__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4rem;
  align-items: center;
}

.two-paths__path h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: 0.5rem;
  margin-bottom: 0.85rem;
}

.two-paths__path p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  max-width: 38ch;
}

.two-paths__divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.two-paths__divider::before,
.two-paths__divider::after {
  content: '';
  width: 1px;
  height: 4rem;
  background: var(--rule);
  display: block;
}

.two-paths__divider span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.two-paths__callnote {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 0.6rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .two-paths__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .two-paths__divider { flex-direction: row; }
  .two-paths__divider::before,
  .two-paths__divider::after {
    width: 3rem;
    height: 1px;
  }
}

/* ---- Profiles ---- */

.profiles {
  background: var(--off-white);
}

.profiles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  width: 100%;
}

.profile-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}

.profile-card:last-child {
  border-right: none;
}

.profile-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 0.85rem;
  color: var(--black);
}

.profile-card p {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.72;
}

@media (max-width: 900px) {
  .profiles__grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .profile-card:last-child { border-bottom: none; }
}

/* ---- Who this is for ---- */

.fit .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  width: 100%;
  margin-top: var(--space-lg);
  border: 1px solid var(--rule);
}

.fit__col {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
}

.fit__col:last-child { border-right: none; }

.fit__col h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--black);
}

.fit__col--not h3 { color: var(--mid); }

.fit__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fit__col li {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.65;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  padding-left: 1.25rem;
}

.fit__col li:last-child { border-bottom: none; }

.fit__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--black);
}

.fit__col--not li::before { background: var(--light); }

@media (max-width: 700px) {
  .fit__grid { grid-template-columns: 1fr; }
  .fit__col { border-right: none; border-bottom: 1px solid var(--rule); }
  .fit__col:last-child { border-bottom: none; }
}

/* ---- Product Ladder ---- */

.product-ladder__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule);
  width: 100%;
}

.ladder-tier {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ladder-tier:last-child {
  border-right: none;
}

.ladder-tier--featured {
  background: #0d0d0d;
}

.ladder-tier__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.ladder-tier--featured .ladder-tier__badge {
  color: rgba(255,255,255,0.4);
}

.ladder-tier h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: var(--black);
}

.ladder-tier--featured h3 {
  color: #fff;
}

.ladder-tier__desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.ladder-tier--featured .ladder-tier__desc {
  color: rgba(255,255,255,0.5);
}

.ladder-tier__price {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  color: var(--black);
  margin-bottom: 1.4rem;
  line-height: 1;
}

.ladder-tier__price span {
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--mid);
}

.ladder-tier--featured .ladder-tier__price {
  color: #fff;
}

.ladder-tier--featured .ladder-tier__price span {
  color: rgba(255,255,255,0.45);
}

.ladder-tier__note {
  font-size: 0.75rem;
  color: var(--mid);
  margin-top: 0.75rem;
  line-height: 1.55;
  min-height: calc(2 * 0.75rem * 1.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.ladder-tier--featured .ladder-tier__note {
  color: rgba(255,255,255,0.3);
}

.btn--featured {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: #0d0d0d;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn--featured:hover { opacity: 0.88; }

/* Ladder button alignment: equal width, centered, same vertical position */
.ladder-tier .btn,
.ladder-tier .btn--featured {
  width: 16rem;
  max-width: 100%;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 100px;
}

.ladder-tier__price--spacer {
  visibility: hidden;
}

@media (max-width: 900px) {
  .product-ladder__grid {
    grid-template-columns: 1fr;
  }
  .ladder-tier {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .ladder-tier--featured {
    border-bottom-color: rgba(255,255,255,0.1);
  }
  .ladder-tier:last-child { border-bottom: none; }
}

/* ---- Reveal animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Mobile ---- */

@media (max-width: 900px) {
  .problem__inner,
  .about__inner,
  .for__inner,
  .billing-grid,
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-lg); }

  .services__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .billing-summary-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: none; }
}

@media (max-width: 600px) {
  section { padding: var(--space-lg) 0; }
  .hero { padding: calc(var(--space-xl) + 64px) 0 var(--space-xl); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
  .step:nth-child(odd) { border-right: none; }
  .step:last-child { border-bottom: none; }
  .nav__logo { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: center; }
  .nav__inner { padding: 0 1rem; }
  .nav__right { gap: 0.6rem; }
  .nav__cta { padding: 0.5rem 0.9rem; font-size: 0.76rem; }
  .billing-hero { padding: calc(var(--space-lg) + 64px) 0 1.5rem; }
  .billing-hero h1 { font-size: clamp(2.15rem, 11vw, 2.9rem); max-width: 11ch; }
  .billing-hero__sub { font-size: 0.98rem; margin-bottom: 1.35rem; }
  .billing-overview { padding: 0 0 var(--space-lg); }
  .billing-grid { gap: 0.9rem; }
  .billing-primary { padding: 1rem; }
  .billing-primary__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }
  .billing-primary__service { font-size: 1.2rem; }
  .billing-card { padding: 1.5rem; }
  .billing-card__header { flex-direction: column; }
  .billing-card__date { text-align: left; }
  .billing-card__logo { width: 132px; }
  .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
  }
  .billing-summary-item { padding: 0.9rem 0.8rem; }
  .billing-summary-grid .billing-summary-item:last-child { grid-column: 1 / -1; }
  .billing-note { padding: 1rem 1rem; }
  .billing-sidebar { gap: 0.7rem; }
  .billing-sidebar section { padding: 1rem; }
  .billing-sidebar h2 { font-size: 1.85rem; }
  .billing-price__amount { font-size: clamp(2.2rem, 12vw, 3rem); }
  .billing-price__cadence { font-size: 0.92rem; }
  .billing-fineprint, .billing-footnote { font-size: 0.86rem; }
  .billing-checklist { gap: 0.65rem; }
  .billing-checklist li {
    font-size: 0.92rem;
    line-height: 1.55;
    padding-left: 1.45rem;
  }
}


/* ---- Chapter 03 brain — multi-employee roster + owner-in-loop (added 2026-04-27) ---- */
.flow-agent__roster {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}
.flow-agent__role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  padding: 0.18rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  background: var(--white);
  color: var(--black);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.flow-agent__owner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.8rem auto 0;
  padding: 0.5rem 0.85rem;
  border: 1px dashed var(--mid);
  border-radius: 8px;
  background: var(--off-white);
  width: fit-content;
  max-width: 100%;
}
.flow-agent__owner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid);
  flex-shrink: 0;
}
.flow-agent__owner-content {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-align: left;
}
.flow-agent__owner-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--black);
  line-height: 1.2;
}
.flow-agent__owner-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--mid);
  line-height: 1.2;
}


/* ---- Tier 3a: replace emoji icons with colored marker blocks (added 2026-04-27) ---- */
.flow-tool__icon {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
  /* background set inline per-tool to match flow-line color */
  font-size: 0;  /* defensive: hide any leftover text content */
  line-height: 0;
}
[data-theme="dark"] .flow-tool__icon {
  /* keep colored block visible on dark bg — no override needed, inline style wins */
}


/* ---- Tier 3b: replace marker blocks with inline Lucide-style SVG icons (added 2026-04-27) ---- */
.flow-tool__icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border-radius: 0;
}
.flow-tool__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ---- Owner as sibling card next to Brain (Tier 3c, 2026-04-27) ---- */
.flow-agent {
  gap: 0.7rem;
}
.flow-agent__card--owner {
  /* subtler than the brain card — supporting role, not the lead */
  max-width: 180px;
  background: var(--off-white);
  border: 1px solid var(--rule);
  /* match base card padding/structure inherited from .flow-agent__card */
}
.flow-agent__card--owner .flow-brain-label {
  color: var(--mid);
}
.flow-agent__card--owner .flow-agent__name {
  /* slightly smaller than brain's name */
  font-size: 1.6rem;
}
.flow-agent__card--owner .flow-agent__sub {
  color: var(--mid);
}
/* hide any remaining .flow-agent__owner footer (defunct from previous iteration) */
.flow-agent__owner { display: none; }


/* ---- Owner card rebalance — equal stature with brain (Tier 3c iter 2, 2026-04-27) ---- */
.flow-agent {
  gap: 1rem;
}
.flow-agent__card--owner {
  padding: 1.75rem 2rem 1.5rem;
  min-width: 220px;
  max-width: none;
  background: var(--off-white);
  border: 1.5px dashed var(--black);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.flow-agent__card--owner .flow-brain-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 0.25rem;
}
.flow-agent__card--owner .flow-agent__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #0f0f0f;
  margin-bottom: 0.2rem;
}
.flow-agent__card--owner .flow-agent__sub {
  font-size: 0.7rem;
  color: rgba(0,0,0,0.48);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
[data-theme="dark"] .flow-agent__card--owner {
  border-color: rgba(242, 237, 224, 0.6);
  background: #1c1c20;
}
[data-theme="dark"] .flow-agent__card--owner .flow-brain-label,
[data-theme="dark"] .flow-agent__card--owner .flow-agent__sub {
  color: rgba(242, 237, 224, 0.58);
}
[data-theme="dark"] .flow-agent__card--owner .flow-agent__name {
  color: #f2ede0;
}
