/* ==========================================================================
   StoveApp landing page — aligned with the app's consolidated design tokens
   Ink #20252B · Copper #A8500B (CTAs/text-carrying) · Flame #DB680F (accent
   only) · greys #4C5157/#63676D/#8A8D92 · Warm Paper #F7F6F3 · Soft Mist
   #E8E7E3 · Pure White. Headings Sora, body Instrument Sans.
   Radii: 12px controls · 16px cards · 20px large cards. Pills for CTAs/chips.
   ========================================================================== */

/* ---- Fonts (self-hosted variable fonts in /fonts) ---- */
@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --ink: #20252B;
  --copper: #A8500B;
  --copper-deep: #8A4109;
  --copper-tint: #FBEDE3;
  --flame: #DB680F;          /* accent only: focus rings, icons, indicators */
  --grey-strong: #4C5157;
  --grey: #63676D;
  --grey-decorative: #8A8D92; /* never for copy */
  --paper: #F7F6F3;
  --mist: #E8E7E3;
  --white: #FFFFFF;
  --r-control: 12px;
  --r-card: 16px;
  --r-large: 20px;
  --shadow-card: 0 1px 2px rgba(32, 37, 43, 0.04);
  --font-head: "Sora", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--copper); color: var(--white); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.55em;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.012em;
}
h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.3; }
/* A short copper accent anchors each section heading */
.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: var(--copper);
  margin-top: 16px;
}
p { margin: 0 0 1em; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 2px;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--r-control);
}
.skip-link:focus { left: 12px; top: 12px; z-index: 40; }

/* ---- Eyebrows ---- */
.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 14px;
}

/* ---- Buttons (pill CTAs, matching the app) ---- */
.btn {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--copper);
  color: var(--white);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 32px;
}
.btn-primary:hover { background: var(--copper-deep); }
.btn-small { font-size: 16px; padding: 10px 22px; }
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 30px 0 10px;
}
.cta-secondary {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--flame);
  padding-bottom: 2px;
}
.cta-secondary:hover { color: var(--copper); }

/* Hero primary CTA — desktop/tablet only (hidden on mobile). */
.hero-cta-primary { display: none; }

/* Header CTA — shown at every size, but the label shortens on mobile. The full
   "Become a founding installer" wrapped to three lines there and inflated the
   sticky header, so mobile shows a short label instead. Only one variant is
   ever rendered, so screen readers read a single label. */
.header-cta-full { display: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 246, 243, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 34px; width: auto; display: block; }

.site-nav { display: none; }
.site-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey-strong);
  text-decoration: none;
  padding: 4px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}
.site-nav a:hover { color: var(--copper); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---- Hero ---- */
.hero { padding: clamp(24px, 3vw, 44px) 0 clamp(12px, 1.5vw, 24px); }
/* Tighter top on the first section so the hero flows into it (the extra slack
   from the tall hero phone already leaves plenty of breathing room). */
#the-problem { padding-top: clamp(20px, 2.5vw, 36px); }
.hero-grid { display: grid; gap: 26px; }
/* On mobile the tagline is dropped to give the headline + app room; it returns
   on desktop where there's space. */
/* On mobile the tagline sits as a subtitle beneath the title to bridge into
   the app screen; on desktop it returns to a kicker above the title. */
.hero-eyebrow {
  display: block;
  order: 2;
  margin-top: -14px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--grey-strong);
}
.hero-title { order: 1; margin: 0; }
.hero-visual { order: 3; }
.hero-body { order: 4; }
.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  color: var(--grey-strong);
  max-width: 34em;
}
.microcopy { color: var(--grey); font-size: 0.85rem; }
.trust-line { font-weight: 600; margin-top: 2em; }
.phone-caption { text-align: center; margin-top: 14px; }

/* Hero entrance: copy rises in with a gentle stagger, phone eases in after.
   Pure CSS (no JS), and disabled for reduced-motion. */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.hero-eyebrow, .hero-title, .hero-body > * { animation: heroRise 0.65s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
.hero-eyebrow { animation-delay: 0.04s; }
.hero-title { animation-delay: 0.10s; }
.hero-body > *:nth-child(1) { animation-delay: 0.20s; }
.hero-body > *:nth-child(2) { animation-delay: 0.26s; }
.hero-body > *:nth-child(3) { animation-delay: 0.32s; }
.hero-body > *:nth-child(4) { animation-delay: 0.38s; }
.hero-visual { animation: heroRise 0.8s cubic-bezier(0.2, 0.6, 0.2, 1) 0.16s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-title, .hero-body > *, .hero-visual { animation: none; }
}

/* Visually hidden but announced to screen readers — used to disambiguate
   repeated CTA text (e.g. three "Become a founding installer" buttons). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Sections ---- */
.section { padding: clamp(48px, 6.5vw, 88px) 0; }
.section-alt {
  background: var(--white);
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.section-ink {
  background: var(--ink);
  color: var(--paper);
}
.section-ink .eyebrow { color: var(--mist); }
.section-ink .microcopy { color: var(--mist); }
.section-ink a { color: var(--paper); }
.section-close { font-style: italic; margin-top: 36px; margin-bottom: 0; }
.section-intro { max-width: 40em; }

/* ---- Cards ---- */
.card-grid { display: grid; gap: 18px; margin-top: 40px; }
.card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.16s ease;
}
.card:hover { border-color: var(--grey-decorative); transform: translateY(-3px); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--copper-tint);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.section-alt .card { background: var(--paper); }
.card p { margin-bottom: 0; color: var(--grey-strong); }

/* --- "The problem" cards: numbered watermark + more presence (polish pass) --- */
#the-problem .card {
  position: relative;
  overflow: hidden;
  padding: 32px 30px;
  box-shadow: 0 3px 14px -6px rgba(32, 37, 43, 0.10);
}
#the-problem .card:hover {
  transform: translateY(-4px);
  border-color: var(--mist);
  box-shadow: 0 14px 30px -14px rgba(32, 37, 43, 0.20);
}
#the-problem .card-icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px; }
#the-problem .card-icon svg { width: 28px; height: 28px; }
#the-problem .card h3 { font-size: 1.3rem; }
/* Keep real content above the watermark */
#the-problem .card-icon,
#the-problem .card h3,
#the-problem .card p { position: relative; z-index: 1; }
#the-problem .card-num {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

/* --- "Built for the trade" cards: matching presence + a live example chip
   that shows the app's intelligence working (input → result). --- */
#built-for-the-trade .card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  box-shadow: 0 3px 14px -6px rgba(32, 37, 43, 0.10);
}
#built-for-the-trade .card:hover {
  transform: translateY(-4px);
  border-color: var(--mist);
  box-shadow: 0 14px 30px -14px rgba(32, 37, 43, 0.20);
}
#built-for-the-trade .card-icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px; }
#built-for-the-trade .card-icon svg { width: 28px; height: 28px; }
#built-for-the-trade .card h3 { font-size: 1.3rem; }
#built-for-the-trade .card p { margin-bottom: 20px; }
.trade-chip {
  margin-top: auto;
  align-self: flex-start;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--copper);
  background: var(--copper-tint);
  border: 1px solid rgba(168, 80, 11, 0.14);
  border-radius: 999px;
  padding: 7px 14px;
}
.trade-chip .arrow { color: var(--grey-decorative); font-weight: 700; }

/* --- "Who it's for" role cards: icons, presence, and an access-scope chip --- */
#who-its-for .card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  box-shadow: 0 3px 14px -6px rgba(32, 37, 43, 0.10);
}
#who-its-for .card:hover {
  transform: translateY(-4px);
  border-color: var(--mist);
  box-shadow: 0 14px 30px -14px rgba(32, 37, 43, 0.20);
}
#who-its-for .card-icon { width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px; }
#who-its-for .card-icon svg { width: 26px; height: 26px; }
#who-its-for .card p { margin-bottom: 18px; }
.role-chip {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey-strong);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 6px 12px;
}
.role-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

/* --- Xero & QuickBooks card: a little more presence --- */
.integration-card { transition: border-color 0.2s ease, transform 0.16s ease, box-shadow 0.2s ease; }
.integration-card:hover {
  transform: translateY(-3px);
  border-color: var(--mist);
  box-shadow: 0 14px 30px -14px rgba(32, 37, 43, 0.18);
}

/* ==========================================================================
   Feature rows — alternating text + a small live-app demo panel. Replaces a
   card grid so the page reads as a sequence of distinct blocks rather than
   box-after-box, especially on mobile.
   ========================================================================== */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 60px);
  margin-top: clamp(32px, 4vw, 48px);
}
.feature-row { display: grid; gap: 22px; align-items: center; }
.feature-text .card-icon { margin-bottom: 14px; }
.feature-text h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  margin: 0 0 8px;
}
.feature-text p { color: var(--grey-strong); margin: 0; max-width: 44ch; }
.feature-visual { display: flex; }
.demo-panel {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.demo-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-label { color: var(--grey-strong); font-size: 0.92rem; }
.demo-value { font-family: var(--font-head); font-weight: 700; }
.demo-badge {
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
}
.demo-badge.green { color: #167834; background: rgba(22, 120, 52, 0.12); }
.demo-flow {
  color: var(--grey);
  font-size: 0.8rem;
  margin: 10px 0 8px;
  padding-left: 2px;
}
.demo-flow::before { content: "↳ "; }
.demo-added {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--copper);
  background: var(--copper-tint);
  border-radius: 10px;
  padding: 9px 12px;
}
.demo-calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  font-size: 0.94rem;
  color: var(--grey-strong);
}
.demo-calc-row strong { color: var(--ink); font-family: var(--font-head); font-weight: 700; }
.demo-divider { height: 1px; background: var(--mist); margin: 5px 0; }
.demo-result strong { color: var(--copper); font-size: 1.2rem; }
.demo-alert {
  margin-top: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #92400E;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 9px 12px;
}
.card h3, .card h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.22rem;
  line-height: 1.3;
  margin: 0 0 0.5em;
}
.card-rule {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: var(--flame);
  margin-bottom: 18px;
}

/* ---- Accounting-integration feature card ("Coming soon") ---- */
.integration-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-large);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.integration-card .card-icon { margin-bottom: 0; }
.integration-card-body { flex: 1; min-width: 0; }
.integration-card-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.integration-card-head h3 { margin: 0; }
.integration-card-body p { color: var(--grey-strong); margin-bottom: 0; }
.pill-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--copper);
  background: var(--copper-tint);
  border-radius: 999px;
  padding: 4px 12px;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-large);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.pricing-card-highlight {
  border: 2px solid var(--copper);
  padding-top: 44px;
}
.pricing-badge {
  position: absolute;
  top: 0;
  left: 26px;
  transform: translateY(-50%);
  background: var(--copper);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin: 0 0 10px; }
.pricing-price { margin: 0 0 2px; line-height: 1; }
.price-amount { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ink); }
.price-period { font-size: 1rem; font-weight: 600; color: var(--grey); margin-left: 4px; }
.pricing-users {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--copper);
  background: var(--copper-tint);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 10px 0 18px;
}
.pricing-blurb { color: var(--grey-strong); flex: 1; margin-bottom: 22px; }
.pricing-cta { text-align: center; width: 100%; }
/* "Coming soon" — a non-interactive placeholder, sized like the button */
.pricing-soon {
  display: block;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 15px 32px;
  font-size: 17px;
  font-weight: 600;
  color: var(--grey);
  background: var(--paper);
  border: 1px solid var(--mist);
  cursor: default;
}
/* name + price grouped; a copper-tint plaque marks the recommended plan */
.pricing-head { margin-bottom: 4px; }
.pricing-card-highlight .pricing-head {
  background: var(--copper-tint);
  border-radius: var(--r-card);
  padding: 16px 18px;
  margin: 0 0 16px;
}
.pricing-card-highlight .pricing-name { margin-bottom: 8px; }
/* subtle hover lift, consistent with the rest of the page */
.pricing-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -30px rgba(32, 37, 43, 0.5); }
.pricing-notes { margin-top: 40px; max-width: 46em; }
.pricing-notes p { margin-bottom: 0.6em; color: var(--grey-strong); }
.pricing-emphasis { font-weight: 700; color: var(--ink); }

/* ---- Testimonials ---- */
.testimonial-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}
.testimonial-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--mist);
  border-top: 3px solid var(--copper);
  border-radius: var(--r-large);
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-card);
  margin: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px -28px rgba(32, 37, 43, 0.55);
}
/* large copper quote mark — the card's visual anchor */
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  right: 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 6rem;
  line-height: 1;
  color: var(--copper);
  opacity: 0.16;
  pointer-events: none;
}
.testimonial-card p {
  position: relative;
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 22px;
}
.testimonial-attrib {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-top: 1px solid var(--mist);
}
.testimonial-avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}
.testimonial-meta { display: flex; flex-direction: column; }
.testimonial-card cite { font-style: normal; font-weight: 700; font-size: 1.02rem; }
.testimonial-role { color: var(--grey); font-size: 0.9rem; }

/* ---- Customer-experience feature card (replaces a phone screenshot) ---- */
.cx-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--r-large);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
/* portal "chrome" — reads as the customer's own screen */
.cx-chrome {
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--mist);
}
.cx-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--grey);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-lock { flex: none; width: 13px; height: 13px; color: var(--copper); }
.cx-url-dim { color: var(--grey-decorative); }
.cx-portal-head { padding: 18px 26px 4px; }
.cx-portal-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.cx-portal-sub { color: var(--grey-strong); font-size: 0.9rem; margin-top: 2px; }
.cx-portal-sub strong { color: var(--ink); font-weight: 700; }
.cx-rows { padding: 8px 26px 22px; }
.cx-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--mist); }
.cx-row:first-child { padding-top: 2px; }
.cx-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.cx-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}
.cx-row-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.cx-row-text { color: var(--grey-strong); font-size: 0.92rem; margin-top: 2px; }

/* ---- How it works steps ---- */
.step {
  display: grid;
  gap: 36px;
  margin-top: clamp(36px, 4.5vw, 56px);
  align-items: center;
}
.step-kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 12px;
}
.step h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 700;
}
.step-copy p { color: var(--grey-strong); }
.step-copy p:last-child { margin-bottom: 0; }

.steps-extra {
  margin-top: clamp(56px, 7vw, 84px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--mist);
}
.steps-extra > h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

/* ---- Phone frames ---- */
.phone-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--ink);
  padding: 12px;
  border-radius: 40px;
  box-shadow: 0 20px 40px -30px rgba(32, 37, 43, 0.4);
}
.phone-frame img { border-radius: 28px; }
.phone-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

/* ---- Video finale: a click-to-play product demo inside a phone bezel ---- */
.video-finale {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(44px, 7vw, 84px);
}
/* Matches .appscreen's aspect ratio exactly so this bezel and its screen are
   the same size as the app-demo phones. The advert is 9:16 — very slightly
   wider than this frame — so `cover` fills the screen edge to edge like every
   other phone here, trimming ~7% from each side. The advert's content is
   centred, so nothing important sits in that margin. */
.video-embed {
  position: relative;
  aspect-ratio: 390 / 800;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
}
.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.video-finale-copy h3 {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 700;
  margin: 8px 0 0.5em;
}
.video-finale-copy p { color: var(--grey-strong); }
.video-finale-cue { color: var(--copper); font-weight: 700; font-size: 0.95rem; margin-top: 2px; }

/* ---- Animated app screens (guided-tour mockups) --------------------------
   The base HTML/CSS state is the FINISHED, populated screen — so with no JS,
   reduced-motion, or any failure, the user still sees a complete screen.
   js/tour.js opts into the animation by adding .tour (which hides the
   animated bits) then .in (which plays them) when the screen scrolls in. */
.appscreen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  aspect-ratio: 390 / 800;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.35;
  padding: 11px 14px 13px;
}
.appscreen .as-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
.appscreen .as-batt {
  width: 16px;
  height: 9px;
  border: 1.4px solid var(--ink);
  border-radius: 2px;
  position: relative;
}
.appscreen .as-batt::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  right: 4px;
  background: var(--ink);
  border-radius: 1px;
}
.appscreen .as-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}
.appscreen .as-back { font-size: 20px; line-height: 1; }
.appscreen .as-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
}
.appscreen .as-sub { font-size: 10px; color: var(--grey); }
.appscreen .as-progress {
  height: 5px;
  border-radius: 3px;
  background: var(--mist);
  overflow: hidden;
  margin-bottom: 10px;
}
.appscreen .as-fill {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--flame);
  border-radius: 3px;
}
.appscreen .as-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 9px 13px;
  margin-bottom: 7px;
}
.appscreen .as-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-bottom: 6px;
}
.appscreen .as-dims { display: flex; gap: 8px; }
.appscreen .as-dim {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 8px 0;
  text-align: center;
}
.appscreen .as-dim-val { display: block; font-size: 15px; font-weight: 700; }
.appscreen .as-dim-cap { display: block; font-size: 10px; color: var(--grey); margin-top: 2px; }
.appscreen .as-result { border-left: 4px solid var(--copper); padding-left: 14px; }
.appscreen .as-kw {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.appscreen .as-rec { font-size: 12px; font-weight: 700; color: var(--copper); margin-top: 4px; }
.appscreen .as-co { display: flex; align-items: center; gap: 10px; font-size: 11px; }
.appscreen .as-check {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-size: 12px;
}
.appscreen .as-btn {
  margin-top: auto;
  background: var(--copper);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-radius: 999px;
}
.appscreen .as-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
}
.appscreen .as-chev { color: var(--grey); font-size: 12px; }

/* "Behind the scenes" live readout — a real feature of the app's survey */
.appscreen .as-bts {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 14px;
  padding: 9px 13px;
  margin-bottom: 7px;
}
.appscreen .as-bts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.appscreen .as-bts-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}
.appscreen .as-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  color: #167834;
  background: rgba(22, 120, 52, 0.1);
  border-radius: 999px;
  padding: 2px 7px;
}
.appscreen .as-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #167834;
}
.appscreen .as-bts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 7px;
}
.appscreen .as-bts-row:first-of-type { margin-top: 0; }
.appscreen .as-bts-val { font-weight: 700; color: var(--copper); }
.appscreen .as-bts-val.muted { color: var(--grey); font-weight: 600; }
.appscreen .as-delta {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--copper);
  background: var(--copper-tint);
  border-radius: 8px;
  padding: 6px 8px;
}

/* Shared building blocks reused across the app-screen mockups (steps 2–7) */
.appscreen .as-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.appscreen .as-tab {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--mist);
  color: var(--grey);
}
.appscreen .as-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.appscreen .as-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 8px;
}
.appscreen .as-opt.selected { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.appscreen .as-opt-thumb {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--mist);
  background: var(--paper);
  object-fit: contain;
}
.appscreen .as-opt-body { flex: 1; min-width: 0; }
.appscreen .as-opt-name { font-size: 13px; font-weight: 700; }
.appscreen .as-opt-sub { font-size: 10.5px; color: var(--grey); margin-top: 1px; }
.appscreen .as-opt-price { font-size: 13px; font-weight: 700; white-space: nowrap; }
.appscreen .as-tick {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.appscreen .as-badge { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.appscreen .as-badge.defra, .appscreen .as-badge.green { color: #167834; background: rgba(22, 120, 52, 0.12); }
.appscreen .as-badge.red { color: #A33A00; background: rgba(163, 58, 0, 0.1); }
.appscreen .as-badge.amber { color: #92400E; background: #FEF3C7; border: 1px solid #FDE68A; }

.appscreen .as-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.appscreen .as-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--mist);
}
.appscreen .as-chip.selected { background: var(--copper-tint); border-color: var(--copper); color: var(--copper); font-weight: 700; }

.appscreen .as-note { font-size: 10.5px; color: var(--grey); margin-top: 8px; }

.appscreen .as-pill { font-size: 9.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--copper-tint); color: var(--copper); }

.appscreen .as-switchrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appscreen .as-switch { flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--mist); position: relative; }
.appscreen .as-switch.on { background: var(--copper); }
.appscreen .as-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}
.appscreen .as-switch.on::after { left: 16px; }

.appscreen .as-line { display: flex; align-items: center; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.appscreen .as-line .v { font-weight: 700; }
.appscreen .as-rule { height: 1px; background: var(--mist); margin: 3px 0; }
.appscreen .as-line.as-total .v { color: var(--copper); font-size: 15px; }

.appscreen .as-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 0 5px;
  border-top: 1px solid var(--mist);
}
.appscreen .as-stage.active { color: var(--copper); }
.appscreen .as-stage-count { font-size: 10px; background: var(--mist); color: var(--ink); border-radius: 999px; padding: 1px 7px; }
.appscreen .as-stage.active .as-stage-count { background: var(--copper); color: #fff; }
.appscreen .as-jobcard { background: var(--white); border: 1px solid var(--mist); border-radius: 12px; padding: 9px 11px; margin: 2px 0 6px; }
.appscreen .as-jobcard.hi { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.appscreen .as-job-name { font-size: 13px; font-weight: 700; }
.appscreen .as-job-sub { font-size: 10.5px; color: var(--grey); margin-top: 2px; }
.appscreen .as-job-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.appscreen .as-job-btn { background: var(--copper-tint); color: var(--copper); font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.appscreen .as-btn-row { display: flex; gap: 8px; margin-top: auto; }
.appscreen .as-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--mist); }
.appscreen .as-btn.green { background: #16a34a; }
.appscreen .as-btn.half { flex: 1; margin-top: 0; }

.appscreen .as-portal-co { font-size: 14px; font-weight: 800; font-family: var(--font-head); }
.appscreen .as-portal-for { font-size: 11px; color: var(--grey); margin-bottom: 6px; }
.appscreen .as-h2 { font-size: 13px; font-weight: 800; font-family: var(--font-head); margin: 2px 0 5px; }
.appscreen .as-mini { display: flex; gap: 8px; margin-bottom: 6px; }
.appscreen .as-optcard { flex: 1; background: var(--white); border: 1px solid var(--mist); border-radius: 12px; padding: 7px 6px; text-align: center; position: relative; }
.appscreen .as-optcard.selected { border-color: var(--copper); box-shadow: inset 0 0 0 1px var(--copper); }
.appscreen .as-optcard-img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--paper);
  margin-bottom: 5px;
}
.appscreen .as-optcard .as-tick { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; }
.appscreen .as-optcard-name { font-size: 12px; font-weight: 700; }
.appscreen .as-optcard-sub { font-size: 10px; color: var(--grey); margin: 2px 0 4px; }
.appscreen .as-optcard-price { font-size: 12px; font-weight: 700; }

/* Animation states — applied only once JS marks the screen a .tour */
.appscreen.tour .anim { opacity: 0; }
.appscreen.tour.in .anim { animation: asReveal 0.45s ease both; }
.appscreen.tour .as-fill { width: 0; }
.appscreen.tour.in .as-fill { animation: asFill 1.3s ease 0.2s forwards; }
.appscreen.tour.in .d1 { animation-delay: 0.25s; }
.appscreen.tour.in .d2 { animation-delay: 0.45s; }
.appscreen.tour.in .d3 { animation-delay: 0.65s; }
.appscreen.tour.in .d4 { animation-delay: 0.95s; }
.appscreen.tour.in .d5 { animation-delay: 1.6s; }
.appscreen.tour.in .d6 { animation-delay: 1.95s; }
.appscreen.tour.in .d7 { animation-delay: 2.25s; }
@keyframes asReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes asFill {
  from { width: 0; }
  to { width: 40%; }
}
@keyframes asDrop {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
/* A card that visibly "arrives" (e.g. the pipeline customer landing in a column) */
.appscreen.tour .as-arrive { opacity: 0; }
.appscreen.tour.in .as-arrive { animation: asDrop 0.55s cubic-bezier(0.2, 0.7, 0.3, 1.25) 0.95s both; }

/* Step 7 (Stock) scripted sequence: stove lands → Parts Orders opened → parts list expands.
   sc2 / sc3 are added by js/tour.js on a timer (data-seq). Base state = scene 1. */
.appscreen-stock .panel-parts { display: none; }
.appscreen-stock.sc2 .panel-stoves { display: none; }
.appscreen-stock.sc2 .panel-parts { display: block; animation: asReveal 0.4s ease both; }
.appscreen-stock.sc2 .as-tab.t-stoves { background: var(--paper); color: var(--grey); border-color: var(--mist); }
.appscreen-stock.sc2 .as-tab.t-parts { background: var(--ink); color: #fff; border-color: var(--ink); }
.appscreen-stock .parts-list { display: none; margin-top: 8px; }
.appscreen-stock.sc3 .parts-list { display: block; animation: asReveal 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  .appscreen.tour .anim, .appscreen.tour .as-arrive { opacity: 1; }
  .appscreen.tour .as-fill { width: 40%; }
  .appscreen.tour.in .anim,
  .appscreen.tour.in .as-fill,
  .appscreen.tour.in .as-arrive { animation: none; }
}

/* ---- Founder ---- */
.founder-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-large);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 30px;
}
.founder-photo-wrap {
  border-radius: var(--r-card);
  overflow: hidden;
  width: 100%;
  /* 4:5 matches founder.jpg (a portrait crop of the on-site photo), tall
     enough to sit balanced beside the bio in the two-column desktop layout.
     The full landscape original is kept as founder-landscape.jpg. */
  aspect-ratio: 4 / 5;
}
.founder-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Pull-quote: gives the bio a moment of emphasis and breaks up the paragraphs */
.founder-quote {
  margin: 22px 0;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--copper);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink);
}
/* Attribution block: surfaces the founder's trade credentials */
.founder-attrib {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--mist);
}
.founder-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin: 0; }
.founder-role { color: var(--grey-strong); font-size: 0.95rem; margin: 2px 0 0; }
.founder-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.founder-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--grey-strong);
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 999px;
  padding: 6px 12px;
}
.founder-chip::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

/* ---- Founding-installer section: locked-pricing reinforcement line ---- */
.lock-note {
  display: inline-block;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-control);
  padding: 10px 18px;
  margin: 0.6em 0 0;
}

/* ---- Waitlist form ---- */
.waitlist-form { margin-top: 36px; }
.waitlist-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.waitlist-row { display: grid; gap: 12px; }
.waitlist-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 14px 18px;
  border: 1px solid var(--mist);
  border-radius: var(--r-control);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.hp { position: absolute; left: -9999px; height: 0; width: 0; border: 0; padding: 0; }
.form-status { font-weight: 600; min-height: 1.5em; margin: 0; }
.form-status.error { color: #92400E; }
.section-ink .form-status.error { color: #FFC29E; }

/* ---- FAQ ---- */
details {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  margin-top: 12px;
}
summary {
  position: relative;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  padding: 18px 52px 18px 22px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--flame);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--grey-strong); }

/* ---- Footer (ink) ---- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 6vw, 72px) 0;
}
.site-footer a { color: var(--paper); }
.site-footer .microcopy { color: var(--mist); margin-bottom: 0.3em; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.footer-tagline { margin: -2px 0 14px; max-width: 26em; }
.footer-links { font-weight: 600; margin-bottom: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---- Scroll reveal (added by js/reveal.js; page is fully visible without JS) ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- "How it works" journey rail: numbered nodes on a centre line.
   Phones are intentionally left untouched here. ---- */
.steps-rail { counter-reset: step; position: relative; }
.steps-rail .step { counter-increment: step; position: relative; }

/* ==========================================================================
   Desktop (mobile-first: everything above targets 360px and up)
   ========================================================================== */
@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
      ".       visual"
      "eyebrow visual"
      "title   visual"
      "body    visual"
      ".       visual";
    column-gap: 52px;
    row-gap: 0;
  }
  .hero-eyebrow {
    grid-area: eyebrow;
    order: 0;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--grey);
  }
  .hero-title { grid-area: title; order: 0; margin-bottom: 22px; }
  .hero-body { grid-area: body; }
  .hero-visual { grid-area: visual; align-self: center; }
  .hero-phone { transform: rotate(-2.5deg); }
  .hero-cta-primary { display: inline-block; }
  .header-cta-short { display: none; }
  .header-cta-full { display: inline; }

  .brand img { height: 42px; }
  .site-nav { display: flex; flex: 1; justify-content: center; gap: 30px; }

  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card-highlight { transform: translateY(-10px); }
  .pricing-card-highlight:hover { transform: translateY(-14px); }

  /* Feature rows: two columns, alternating which side the demo panel sits on */
  .feature-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-row:nth-child(even) .feature-text { order: 2; }
  .feature-row:nth-child(even) .feature-visual { order: 1; justify-content: flex-end; }

  .step { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .step:nth-of-type(even) .step-copy { order: 2; }

  /* Video finale: phone left, copy right (DOM is copy-first for mobile).
     It sits inside .steps-rail so the centre line carries on down through it,
     so it uses the same balanced columns + wide gap as the steps. */
  .video-finale { grid-template-columns: 1fr 1fr; gap: 110px; }
  .video-finale-phone { order: 1; }
  .video-finale-copy { order: 2; }

  /* Founder: a narrow left aside (photo + credentials) beside the bio. The
     photo keeps its natural 4:5 crop and sits top-aligned, so it no longer
     stretches to the full height of the text. */
  .founder-card {
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: 48px;
  }

  .waitlist-row { grid-template-columns: 1fr auto; }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-inner div:last-child { text-align: right; }
}

/* Journey rail (desktop/tablet): a centre line with numbered nodes that light
   copper as each step scrolls in. The phones themselves are unchanged. */
@media (min-width: 760px) {
  .steps-rail::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 50%;
    width: 14px;
    margin-left: -7px;
    background-image:
      radial-gradient(circle, var(--copper) 4.5px, transparent 5px),
      radial-gradient(circle, var(--copper) 4.5px, transparent 5px),
      linear-gradient(var(--mist), var(--mist));
    background-size: 14px 14px, 14px 14px, 2px calc(100% - 14px);
    background-position: center top, center bottom, center 7px;
    background-repeat: no-repeat;
  }
  /* Balanced columns + wide gap so the centre line sits in clear space. */
  .steps-rail .step { grid-template-columns: 1fr 1fr; gap: 110px; }
  /* Node sits at the vertical centre of its step, level with the copy. */
  .steps-rail .step::before {
    content: counter(step);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--mist);
    color: var(--grey);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  }
  /* Copper fill: each activated step lights its stretch of the line. */
  .steps-rail .step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 0;
    background: var(--copper);
    z-index: 1;
    transition: height 0.9s ease 0.15s;
  }
  .steps-rail .step.in::before {
    background: var(--copper);
    border-color: var(--copper);
    color: #fff;
  }
  .steps-rail .step.in::after { height: calc(100% + clamp(36px, 4.5vw, 56px)); }

  /* The video finale carries the line the rest of the way. It isn't a .step,
     so it needs its own fill. It starts one gap ABOVE itself so the stretch
     between the last step and the video is covered too (overlapping the last
     step's fill is invisible — same colour), and stops 10px short of the
     bottom to land on the end dot (.steps-rail::before is inset by 10px). */
  .steps-rail .video-finale::after {
    content: "";
    position: absolute;
    top: calc(-1 * clamp(44px, 7vw, 84px));
    left: 50%;
    margin-left: -1px;
    width: 2px;
    height: 0;
    background: var(--copper);
    z-index: 1;
    transition: height 0.9s ease 0.15s;
  }
  .steps-rail .video-finale.in::after {
    height: calc(100% + clamp(44px, 7vw, 84px) - 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-rail .step::before,
  .steps-rail .step::after { transition: none; }
}
