/* ============================================================
   CSS CUSTOM PROPERTIES
============================================================ */
:root {
  /* Colors */
  --color-bg:           #0a0a0a;
  --color-bg-alt:       #111111;
  --color-bg-subtle:    #161616;
  --color-teal-deep:    #0e3d3d;
  --color-teal-mid:     #1a5c5c;
  --color-cyan:         #5ee7df;
  --color-cyan-hover:   #3dd6cc;
  --color-warm:         #c9b99a;
  --color-text:         #f0f0f0;
  --color-headline:     #ffffff;
  --color-muted:        #808080;
  --color-border:       #1e1e1e;
  --color-error:        #e05c5c;

  /* Typography */
  --font-family:        'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base:     1.125rem;
  --line-height-base:   1.75;

  /* Spacing */
  --space-1:  0.5rem;
  --space-2:  1rem;
  --space-3:  1.5rem;
  --space-4:  2rem;
  --space-6:  3rem;
  --space-8:  4rem;
  --space-10: 5rem;
  --space-15: 7.5rem;
  --space-section-mobile: 5rem;
  --space-section:        7.5rem;

  /* Layout */
  --container-text:  780px;
  --container-wide:  1100px;
  --container-narrow: 620px;
  --radius-btn:      6px;
  --radius-card:     10px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-med:  250ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 64px; /* Offset for fixed nav */
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ============================================================
   BASE TYPOGRAPHY
============================================================ */
h1, h2, h3, h4 {
  color: var(--color-headline);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p + p {
  margin-top: var(--space-3);
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-text);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ============================================================
   SECTION BASE
============================================================ */
.section {
  padding-block: var(--space-section-mobile);
}

/* Alternating backgrounds */
.section--hero,
.section--how,
.section--why,
.section--founder,
.section--faq {
  background-color: var(--color-bg);
}

.section--problem,
.section--pricing,
.section--proof {
  background-color: var(--color-bg-alt);
}

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

/* CTA: deep teal gradient for visual distinction */
.section--cta {
  background: linear-gradient(135deg, #0e3d3d 0%, #071e1e 100%);
}

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

.section__subhead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-headline);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.section__body p {
  color: var(--color-text);
}

.section__body--accented {
  border-left: 2px solid var(--color-teal-deep);
  padding-left: var(--space-4);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-btn);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--color-cyan);
  color: var(--color-bg);
  border: 2px solid var(--color-cyan);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-cyan-hover);
  border-color: var(--color-cyan-hover);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-text);
}

/* Sizes */
.btn--sm  { padding: 0.5rem 1rem;   font-size: 0.8125rem; }
.btn--lg  { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn--xl  { padding: 1.125rem 2.5rem; font-size: 1rem;    }
.btn--full { width: 100%; }

/* Focus styles */
.btn:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   PULL QUOTE
============================================================ */
.pull-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-headline);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: center;
  margin-block: var(--space-8);
  padding-inline: var(--space-4);
  border: none;
  font-style: normal;
}

.pull-quote--founder {
  text-align: left;
  padding-inline: 0;
  margin-bottom: 0;
}

/* ============================================================
   NAVIGATION
============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(10, 10, 10, 0.0);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-med), border-color var(--transition-med);
  padding-block: var(--space-2);
}

/* JS adds this class on scroll */
.nav--scrolled {
  background-color: rgba(10, 10, 10, 0.92);
  border-bottom-color: var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo-img {
  height: 32px;
  width: auto;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.nav__logo:hover {
  opacity: 0.8;
}

/* ============================================================
   HERO
============================================================ */
.section--hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient background decoration */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(14, 61, 61, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(14, 61, 61, 0.18) 0%, transparent 70%);
  z-index: 0;
}

.section--hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

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

.hero__subhead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--color-text);
  max-width: 60ch;
  margin-bottom: var(--space-3);
}

.hero__support {
  font-size: 1rem;
  color: var(--color-warm);
  font-weight: 500;
  margin-bottom: var(--space-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero__trust-cue {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted);
  z-index: 1;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================================
   PROBLEM
============================================================ */
.section--problem .section__headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 22ch;
}

.section--problem .section__body {
  max-width: 70ch;
}

/* Problem: three disconnected icons */
.problem-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.problem-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.problem-icon__symbol {
  width: 56px;
  height: 56px;
  border: 1px dashed rgba(128, 128, 128, 0.4);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  background-color: var(--color-bg-subtle);
}

.problem-icon__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}

.problem-icon__gap {
  color: var(--color-border);
  display: flex;
  align-items: center;
  padding-top: 0; /* vertically center with icon */
  margin-bottom: 1.25rem; /* offset for label below icon */
}

/* ============================================================
   SOLUTION
============================================================ */
.section--solution .section__headline {
  max-width: 26ch;
}

/* Revenue Engine loop diagram */
/* ============================================================
   ENGINE WHEEL — circular loop diagram
============================================================ */
.engine-wheel {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.engine-wheel__wrap {
  width: 100%;
  max-width: 420px;
}

.engine-wheel__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Animated track ring — dashes flow clockwise */
.ew-track {
  animation: ew-flow 18s linear infinite;
}

@keyframes ew-flow {
  to { stroke-dashoffset: -741; } /* -2π × 118 ≈ one full orbit */
}

/* Center glow pulse */
.ew-glow {
  animation: ew-pulse 5s ease-in-out infinite;
}

@keyframes ew-pulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1;   }
}

/* Connector lines */
.ew-connector {
  stroke: #0e3d3d;
  stroke-width: 1;
}

/* Directional chevrons on track ring */
.ew-arrow path {
  fill: none;
  stroke: #1a5c5c;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Node pills */
.ew-node rect {
  fill: rgba(14, 61, 61, 0.45);
  stroke: #1a5c5c;
  stroke-width: 1;
}

.ew-node text {
  fill: #c4cece;
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  font-family: inherit;
  letter-spacing: 0.02em;
}

/* Accent pill (Optimize) */
.ew-node--accent rect {
  fill: rgba(94, 231, 223, 0.1);
  stroke: var(--color-cyan);
}

.ew-node--accent text {
  fill: var(--color-cyan);
}

/* Center labels */
.ew-center-icon {
  fill: #2a6060;
  font-size: 20px;
  text-anchor: middle;
}

.ew-center-label {
  fill: #2a6060;
  font-size: 9px;
  font-weight: 500;
  text-anchor: middle;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .ew-track,
  .ew-glow {
    animation: none;
  }
}

/* ============================================================
   HOW IT WORKS — TIMELINE
============================================================ */
.timeline {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Marker: number + icon side by side */
.timeline__marker {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.timeline__number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-teal-mid);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.timeline__icon {
  color: var(--color-cyan);
  flex-shrink: 0;
  opacity: 0.7;
}

.timeline__phase {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-headline);
  margin-bottom: var(--space-2);
}

.timeline__content p {
  color: var(--color-text);
  max-width: 65ch;
}

/* ============================================================
   WHAT'S INCLUDED — PRICING
============================================================ */
.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.pricing-card {
  background-color: var(--color-bg-subtle);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-card--build {
  border-color: var(--color-teal-deep);
}

/* Engine card: cyan accent to signal progression */
.pricing-card--engine {
  border-color: var(--color-cyan-hover);
}

.pricing-card__header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-4);
}

.pricing-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
  margin-top: 0;
}

.pricing-card__price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-headline);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: var(--space-1);
}

/* Engine price in cyan to match card accent */
.pricing-card--engine .pricing-card__price {
  color: var(--color-cyan);
}

.pricing-card__price-unit {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Cyan checkmarks for both cards */
.pricing-card__list li {
  padding-left: var(--space-4);
  position: relative;
  color: var(--color-text);
  font-size: 0.9375rem;
}

.pricing-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-cyan);
  font-weight: 700;
}

.pricing-note {
  margin-top: var(--space-4);
  font-size: 0.9375rem;
  color: var(--color-muted);
  text-align: center;
}

/* ============================================================
   WHY IT WORKS
============================================================ */

/* Connected icons: same trio as Problem, now unified */
.connected-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  row-gap: var(--space-3);
}

.connected-icons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.connected-icons__symbol {
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-teal-mid);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  background-color: rgba(14, 61, 61, 0.2);
}

.connected-icons__label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-mid);
}

.connected-icons__connector {
  height: 1px;
  width: 48px;
  background-color: var(--color-teal-mid);
  margin-bottom: 1.25rem; /* offset to align with icon center */
  flex-shrink: 0;
}

/* Three-column layout on desktop */
.why-columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.why-col__heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-warm);
  margin-bottom: var(--space-2);
  letter-spacing: 0;
}

.why-col__body {
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ============================================================
   SOCIAL PROOF — CASE STUDIES
============================================================ */
.case-studies {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.case-study {
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.case-study__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}

.case-study__client {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-headline);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.case-study__industry-tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
}

.case-study__narrative {
  font-size: 0.9375rem;
  color: var(--color-text);
  margin: 0;
}

/* Hero stat: oversized, impossible to miss */
.case-study__hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-block: var(--space-3);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.case-study__hero-number {
  font-size: clamp(2.75rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--color-cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-study__hero-label {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Compact bullet list beneath hero stat */
.case-study__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.case-study__bullets li {
  font-size: 0.875rem;
  color: var(--color-muted);
  padding-left: var(--space-3);
  position: relative;
  line-height: 1.5;
}

.case-study__bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-teal-mid);
}

/* ============================================================
   FOUNDER STORY
============================================================ */
.founder-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.founder-layout__copy p {
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.founder-layout__copy p:last-of-type {
  margin-bottom: 0;
}

/* Brand logo row: grayscale text placeholders */
.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-block: var(--space-4);
}

.brand-logo {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(128, 128, 128, 0.5);
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: var(--radius-btn);
  padding: 0.35rem 0.75rem;
  white-space: nowrap;
}

.founder-photo {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-card);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

/* Mobile-only photo: shows between headline and copy on small screens */
.founder-photo--mobile {
  display: block;
  max-width: 100%;
  margin-bottom: var(--space-6);
}

/* Desktop photo column: hidden on mobile */
.founder-layout__photo {
  display: none;
}

@media (min-width: 768px) {
  .founder-photo--mobile {
    display: none;
  }
  .founder-layout__photo {
    display: block;
  }
}

/* ============================================================
   CTA SECTION
============================================================ */
.section--cta {
  text-align: center;
}

.cta-section__headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-3);
}

.cta-section__body {
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================================
   FAQ — ACCORDION
============================================================ */
.faq {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  padding: 0;
}

.faq__toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-4);
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-headline);
  gap: var(--space-4);
  transition: color var(--transition-fast);
}

.faq__toggle:hover {
  color: var(--color-cyan);
}

.faq__toggle:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--color-cyan);
  font-weight: 400;
  transition: transform var(--transition-fast);
  line-height: 1;
}

.faq__toggle[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  padding-bottom: var(--space-4);
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: var(--line-height-base);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__answer:not([hidden]) {
  max-height: 500px;
}

/* Override browser default hidden behaviour to allow transition */
.faq__answer[hidden] {
  display: block;
  visibility: hidden;
  max-height: 0;
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-6);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer__logo:hover .footer__logo-img {
  opacity: 1;
}

.footer__email {
  font-size: 0.9375rem;
  color: var(--color-muted);
  transition: color var(--transition-fast);
}

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

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ============================================================
   STICKY MOBILE CTA BAR
============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--color-border);

  /* Hidden by default — JS reveals it */
  transform: translateY(100%);
  transition: transform var(--transition-med);
}

.sticky-cta--visible {
  transform: translateY(0);
}

/* ============================================================
   CONTACT FORM MODAL
============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.modal__card {
  position: relative;
  background-color: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 1.5rem;
  color: var(--color-muted);
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.modal__close:hover {
  color: var(--color-headline);
}

.modal__title {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.modal__subtitle {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

/* ============================================================
   CONTACT FORM
============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-field__optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-field__input {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--color-teal-mid);
}

.form-field__input--invalid {
  border-color: var(--color-error);
}

.form-field__input--textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field__input::placeholder {
  color: var(--color-muted);
}

.form-field__error {
  font-size: 0.8125rem;
  color: var(--color-error);
  min-height: 1.2em;
}

.form-status {
  text-align: center;
  font-size: 0.9375rem;
  padding: var(--space-2);
  border-radius: var(--radius-btn);
  min-height: 2.5rem;
}

.form-status--success {
  color: var(--color-cyan);
  background-color: rgba(94, 231, 223, 0.08);
  border: 1px solid rgba(94, 231, 223, 0.2);
}

.form-status--error {
  color: var(--color-error);
  background-color: rgba(224, 92, 92, 0.08);
  border: 1px solid rgba(224, 92, 92, 0.2);
}

/* ============================================================
   MODAL SUCCESS STATE
============================================================ */
.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) 0 var(--space-2);
  gap: var(--space-4);
}

.modal-success[hidden] {
  display: none;
}

.modal-success__headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.modal-success__body {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE — TABLET AND DESKTOP
   Base styles are mobile-first. These override for wider screens.
============================================================ */
@media (min-width: 768px) {
  .section {
    padding-block: var(--space-section);
  }

  /* Hero */
  .section--hero .container {
    max-width: var(--container-wide);
  }

  /* Timeline: two-column layout (number+icon on left, content on right) */
  .timeline__item {
    flex-direction: row;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .timeline__marker {
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
    flex-shrink: 0;
  }

  .timeline__number {
    font-size: 4rem;
    text-align: right;
  }

  .timeline__icon {
    align-self: flex-end;
  }

  /* Pricing: side-by-side */
  .pricing-cards {
    flex-direction: row;
    align-items: stretch;
  }

  .pricing-card {
    flex: 1;
  }

  /* Why It Works: three columns */
  .why-columns {
    flex-direction: row;
    gap: var(--space-8);
    align-items: flex-start;
  }

  .why-col {
    flex: 1;
  }

  /* Case studies: side-by-side */
  .case-studies {
    flex-direction: row;
    align-items: stretch;
  }

  .case-study {
    flex: 1;
  }

  /* Founder layout: two columns */
  .founder-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-8);
  }

  .founder-layout__copy {
    flex: 1;
  }

  .founder-layout__photo {
    flex-shrink: 0;
    width: 280px;
  }

  .founder-photo-placeholder {
    max-width: 100%;
  }

  /* CTA: buttons side by side */
  .cta-section__actions {
    flex-direction: row;
    justify-content: center;
  }

  /* FAQ: two-column grid on desktop */
  .faq {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-8);
    align-items: start;
  }

  /* Second item gets top border to match first column */
  .faq__item:nth-child(2) {
    border-top: 1px solid var(--color-border);
  }

  /* Footer: single row */
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Hide sticky CTA on desktop */
  .sticky-cta {
    display: none;
  }

  /* Nav logo slightly larger */
  .nav__logo-img {
    height: 36px;
  }
}

@media (min-width: 1024px) {
  .timeline__marker {
    min-width: 100px;
  }

  .timeline__number {
    font-size: 5rem;
  }
}
