/* ============================================================
   PIPPIN DESIGN SYSTEM — pippin.css
   Single source of truth for colors, typography, layout, components.
   Edit once → all pages update.
   ============================================================ */

/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

/* ── FOCUS ────────────────────────────────────────────────── */
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --navy:       #0d1b2a;
  --navy-soft:  #1a2d42;
  --navy-brand: #002855;
  --white:      #ffffff;
  --off-white:  #f7f8f9;
  --border:     #e8eaec;
  --ink:        #0d1b2a;
  --ink-mid:    #3a4a5c;
  --ink-soft:   #6b7a8d;
  --teal:       #00c9a7;
  --teal-dim:   rgba(0, 201, 167, 0.15);
  --teal-dk:    #00a88c;

  /* Typography */
  --sys: -apple-system, "system-ui", "Segoe UI", system-ui, sans-serif;
  --lato: 'Lato', var(--sys);

  /* Spacing */
  --section-px: 64px;
  --section-py: 56px;
  --section-px-tablet: 32px;
  --section-px-mobile: 20px;

  /* Radius */
  --r: 10px;
  --r-lg: 16px;

  /* Surface tokens — used for element backgrounds so dark mode can remap them */
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-alt: #f7f8f9;
}

/* ── DARK MODE ────────────────────────────────────────────── */

/* Activate via OS preference (when no manual override is set) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:          #0f1923;
    --surface:     #16212e;
    --surface-alt: #192538;
    --ink:         #dce6f0;
    --ink-mid:     #8fa3ba;
    --ink-soft:    #5d7a94;
    --border:      rgba(255, 255, 255, 0.09);
    --off-white:   #192538;
    --teal-dim:    rgba(0, 201, 167, 0.12);
  }
}

/* Activate via manual toggle (JS sets data-theme="dark" on <html>) */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg:          #0f1923;
  --surface:     #16212e;
  --surface-alt: #192538;
  --ink:         #dce6f0;
  --ink-mid:     #8fa3ba;
  --ink-soft:    #5d7a94;
  --border:      rgba(255, 255, 255, 0.09);
  --off-white:   #192538;
  --teal-dim:    rgba(0, 201, 167, 0.12);
}

/* Force-restore light mode when manually overridden */
@media (prefers-color-scheme: dark) {
  html[data-theme="light"] {
    color-scheme: light;
    --bg:          #ffffff;
    --surface:     #ffffff;
    --surface-alt: #f7f8f9;
    --ink:         #0d1b2a;
    --ink-mid:     #3a4a5c;
    --ink-soft:    #6b7a8d;
    --border:      #e8eaec;
    --off-white:   #f7f8f9;
    --teal-dim:    rgba(0, 201, 167, 0.15);
  }
}

/* ── BASE TYPOGRAPHY ──────────────────────────────────────── */
body {
  font-family: var(--sys);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── LEGACY TOPBAR STYLES (deprecated - see header.css) ──── */
/* Old topbar styles have been replaced by the new Axon-style
   header in css/header.css. These are kept for reference only. */

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 64px max(var(--section-px), calc((100% - 1100px) / 2)) 72px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── HERO SPLIT (two-column hero with image) ──────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-split--flipped { direction: rtl; }
.hero-split--flipped > * { direction: ltr; }

.hero-split-content { min-width: 0; }
.hero-split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero .hero-split-visual .device-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  line-height: 0;
  font-size: 0;
}
.hero .hero-split-visual .device-frame--placeholder {
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero .hero-split-visual .device-frame img {
  width: 100%;
  height: auto;
  display: block;
}
/* Placeholder state when no real screenshot exists yet */
.hero .hero-split-visual .device-frame--placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 20px;
  letter-spacing: 0.03em;
}

/* Generic device-frame placeholder (works outside hero on light backgrounds) */
.device-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
  font-size: 0;
}
.device-frame--placeholder {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.device-frame--placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 20px;
  letter-spacing: 0.03em;
}
.device-frame:not(.device-frame--placeholder) {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.device-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── HERO ENTRANCE ANIMATIONS ─────────────────────────────── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroSlideFromLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes heroSlideFromRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-split-content {
  animation: heroSlideFromLeft 0.7s ease both;
}
.hero-split--flipped .hero-split-content {
  animation-name: heroSlideFromRight;
}
.hero-split-visual {
  animation: heroFadeIn 0.8s ease 0.2s both;
}

/* Text-only heroes (no split) get a simple fade-up */
.hero:not(:has(.hero-split)) .hero-eyebrow,
.hero:not(:has(.hero-split)) h1,
.hero:not(:has(.hero-split)) .hero-sub,
.hero:not(:has(.hero-split)) .hero-actions {
  animation: heroFadeUp 0.6s ease both;
}
.hero:not(:has(.hero-split)) h1 { animation-delay: 0.1s; }
.hero:not(:has(.hero-split)) .hero-sub { animation-delay: 0.2s; }
.hero:not(:has(.hero-split)) .hero-actions { animation-delay: 0.3s; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero-eyebrow {
  font-family: var(--lato);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--sys);
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
  max-width: 640px;
}
.hero h1 em {
  font-style: normal;
  color: rgba(255,255,255,0.75);
  font-weight: 700;
}
.hero h1 .teal { color: var(--teal); font-style: normal; }
.hero p.hero-sub {
  font-family: var(--lato);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sys);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy);
}
.btn-secondary {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--navy);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
}

/* ── STATS ROW ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  max-width: 1164px;  /* 1100 + 2×64px padding */
  margin-left: auto;
  margin-right: auto;
}
/* Extend the bottom border to full viewport width */
.stats-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: var(--border);
}
.stat-item {
  padding: 28px 36px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item .val {
  font-family: var(--sys);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-item .val em {
  font-style: normal;
  color: var(--teal);
}

/* Pricing inline: amount + unit */
.price-inline { display: inline-flex; align-items: baseline; gap: 8px; }
.price-main { font-family: var(--sys); font-size: 28px; font-weight: 900; color: var(--ink); line-height: 1; }
.price-small { font-size: 20px; font-weight: 800; }
.price-meta { font-size: 13px; color: var(--teal); font-weight:700; margin-left: 4px; }
.price-plus { font-size: 14px; color: var(--ink-mid); margin: 0 6px; }

.stat-item .desc {
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mid);
  margin-top: 8px;
  line-height: 1.5;
}
a.stat-item--linked {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
a.stat-item--linked:hover {
  background: var(--teal-tint, rgba(0, 183, 170, 0.06));
}
a.stat-item--linked .feature-link {
  display: block;
  margin-top: 10px;
  font-family: var(--lato);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.section {
  padding: var(--section-py) max(var(--section-px), calc((100% - 1100px) / 2));
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.section.bg { background: var(--surface-alt); }
.section.dark {
  background: var(--navy);
  border-bottom-color: rgba(255,255,255,0.07);
}

.section-label {
  font-family: var(--lato);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dk);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--sys);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}
.section h2 em { font-style: normal; color: var(--teal); font-weight: 700; }
.section.dark h2 { color: var(--white); }
.section.dark h2 em { color: var(--teal); }
.section .lead {
  font-family: var(--lato);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 32px;
}
.section .lead-wide { max-width: 100%; }
.section.dark .lead { color: rgba(255,255,255,0.75); }

/* ── GRID LAYOUTS ─────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-wide-narrow { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
}
.section.bg .card { background: var(--surface); }
.card .card-icon { font-size: 22px; margin-bottom: 14px; }
.card h4 {
  font-family: var(--sys);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p {
  font-family: var(--lato);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* Audience / persona cards (in bordered grid) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.card-grid .card {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
}
.card-grid .card:last-child { border-right: none; }

/* ── FEATURE LIST ─────────────────────────────────────────── */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feat-list li {
  display: flex;
  gap: 12px;
  font-family: var(--lato);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  align-items: flex-start;
}
.feat-list li::before {
  content: '\2192';
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.section.dark .feat-list li { color: rgba(255,255,255,0.7); }
.section.dark .feat-list li::before { color: var(--teal); }

/* Checkmark lists */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 24px;
  font-family: var(--lato); font-size: 14px; color: var(--ink-mid); line-height: 1.55;
}
.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--teal); font-weight: 700;
}
.check-list li a {
  color: var(--ink-mid);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.check-list li a:hover {
  color: var(--teal-dk);
  text-decoration-color: var(--teal-dk);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.faq-item {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--sys);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
  letter-spacing: -0.1px;
  user-select: none;
}
.faq-open .faq-q { margin-bottom: 8px; }
.faq-a {
  font-family: var(--lato);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── TABLES ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--lato);
  font-size: 13.5px;
}
.data-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.data-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .group-header td {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 20px;
}

/* ── SOCIAL PROOF STRIP ───────────────────────────────────── */
.social-proof-strip {
  text-align: center;
  padding: 40px calc((100% - 720px) / 2);
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-proof-strip blockquote {
  font-family: var(--lato);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin: 0 auto 14px;
  max-width: 640px;
}
.social-proof-strip .attribution {
  font-family: var(--lato);
  font-size: 14px;
  color: var(--ink-mid);
}
.social-proof-strip .attribution strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── BEFORE / AFTER COMPARISON ─────────────────────────────── */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.comparison-col h4 { margin-bottom: 16px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.comparison-col--before h4 { color: var(--ink-soft); }
.comparison-col--after h4  { color: var(--teal-dk); }
.comparison-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.comparison-list li { padding: 12px 16px; border-radius: 8px; font-size: 15px; line-height: 1.45; }
.comparison-col--before .comparison-list li { background: rgba(0,0,0,0.04); color: var(--ink-mid); }
.comparison-col--after  .comparison-list li { background: var(--teal); color: #fff; }

/* ── TESTIMONIAL ──────────────────────────────────────────── */
.testimonial {
  border-left: 3px solid var(--teal);
  padding: 20px 28px;
  margin: 32px 0;
}
.testimonial blockquote {
  font-family: var(--lato);
  font-size: 16px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}
.testimonial .attribution {
  font-family: var(--lato);
  font-size: 13px;
  color: var(--ink-soft);
}
.testimonial .attribution strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── PRICING GRID & TOGGLE ─────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.pricing-toggle {
  display: flex;
  margin-top: 0;
  gap: 8px;
  max-width: 560px;
}
.pricing-toggle-btn {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mid);
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.pricing-toggle-btn:hover {
  border-color: var(--teal);
  color: var(--ink);
}
.pricing-toggle-btn.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  display: none;
  flex-direction: column;
}
.pricing-card.is-visible { display: flex; }
.pricing-card--muted {
  background: var(--surface-alt);
  border-color: var(--border);
}
/* Plan-aware sections (calculator, worth-it) */
.plan-section { display: none; }
.plan-section.is-visible { display: block; }
.pricing-card .badge {
  display: inline-block;
  font-family: var(--lato);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--teal);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.pricing-card h3 {
  font-family: var(--sys);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.pricing-card .price {
  font-family: var(--sys);
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1px;
}
.pricing-card .price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
}
.pricing-card .price-note {
  font-family: var(--lato);
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  margin-bottom: 24px;
}
.pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
}
.pricing-category {
  font-family: var(--lato);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 20px;
  margin-bottom: 10px;
}

/* ── CALCULATOR ───────────────────────────────────────────── */
.calc-wrap {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 36px;
  color: var(--white);
}
.calc-wrap h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}
.calc-wrap label {
  display: block;
  font-family: var(--lato);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.calc-wrap input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  font-family: var(--sys);
  font-size: 16px;
  font-weight: 700;
  outline: none;
  margin-bottom: 16px;
  -moz-appearance: textfield;
}
.calc-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.15);
}
.calc-result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.calc-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: var(--lato);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.calc-line .calc-val { font-weight: 600; color: rgba(255,255,255,0.9); }
.calc-line.total {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.calc-line.total .calc-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
}
.calc-line.annual {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 6px;
  padding-top: 8px;
}
.calc-line.annual .calc-val {
  font-weight: 800;
  font-size: 18px;
  color: var(--teal);
}
.calc-note {
  font-family: var(--lato);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
}

/* ── FORMS ────────────────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field, .form-group { margin-bottom: 16px; }
.form-field label, .form-group > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-field input, .form-group > input,
.form-field select, .form-group > select,
.form-field textarea, .form-group > textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}
.form-field select, .form-group > select {
  padding-right: 36px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
}
.form-field input:focus, .form-group > input:focus,
.form-field select:focus, .form-group > select:focus,
.form-field textarea:focus, .form-group > textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.12);
}
.form-field textarea { resize: vertical; min-height: 88px; }
.req { color: var(--teal-dk); font-weight: 700; }

/* Radio tile group — label wraps input (no sibling selector) */
.radio-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: var(--lato);
  font-size: 13.5px;
  color: var(--ink);
}
.radio-tile:hover { border-color: var(--ink-soft); }
.radio-tile.selected {
  border-color: var(--teal);
  background: rgba(0,201,167,0.06);
}
.radio-tile input[type="radio"] {
  accent-color: var(--teal);
  margin: 0;
  flex-shrink: 0;
}
.radio-tile span { pointer-events: none; }

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  margin-top: 8px;
}
.form-submit:hover { opacity: 0.9; }

/* ── BEFORE/AFTER ─────────────────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 0; }
.ba-col { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 7; gap: 0; }
.ba-col.before .ba-item { border-right: 1px solid var(--border); }
.ba-heading {
  font-family: var(--sys);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
}
.ba-col.before .ba-heading { background: #fef7f0; color: #b56b1a; }
.ba-col.after .ba-heading { background: rgba(0,201,167,0.14); color: #008770; }
.ba-item {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--lato);
  font-size: 13.5px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ba-item:last-child { border-bottom: none; }
.ba-col.before .ba-item { color: var(--ink-mid); }
.ba-col.after .ba-item { color: #fff; background: var(--teal); border-left: none; }

/* ── TEAM ─────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.team-card .initials {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.team-card .tc-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.team-card .tc-title {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 12px;
}
.team-card .tc-bio {
  font-family: var(--lato);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
}

/* ── VALUES ───────────────────────────────────────────────── */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.value-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.value-card p {
  font-family: var(--lato);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 56px max(var(--section-px), calc((100% - 1100px) / 2)) 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-brand-col .footer-logo img { height: 28px; }
.footer-brand-col .footer-logo span {
  font-family: 'Inter Tight', var(--sys);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.footer-brand-col .footer-tagline {
  font-family: var(--lato);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  max-width: 260px;
}
.footer-col h5 {
  font-family: var(--sys);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-family: var(--lato);
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--lato);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-legal a {
  font-family: var(--lato);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-left: 24px;
}
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ── CTA BANNER ───────────────────────────────────────────── */
.cta-banner {
  background: var(--navy);
  padding: 56px max(var(--section-px), calc((100% - 1100px) / 2));
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--sys);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.cta-banner h2 em {
  font-style: normal;
  color: rgba(255,255,255,0.7);
}
.cta-banner p {
  font-family: var(--lato);
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.cta-banner .cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-fine {
  font-family: var(--lato);
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
}
.cta-demo-link {
  margin-top: 16px;
  margin-bottom: 0;
  font-family: var(--lato);
  font-size: 14px;
}
.cta-demo-link a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.cta-demo-link a:hover {
  text-decoration: underline;
}

/* ── LEGAL / LONG-FORM ────────────────────────────────────── */
.legal-page {
  padding: var(--section-py) var(--section-px);
  background: var(--surface);
  min-height: calc(100vh - 200px);
}
.legal-header {
  max-width: 720px;
  margin: 0 auto 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-header h1 {
  font-family: var(--sys);
  font-size: 36px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.legal-updated {
  font-family: var(--lato);
  font-size: 14px;
  color: var(--ink-soft);
}
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.35;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 12px;
}
.legal-content p, .legal-content li {
  font-family: var(--lato);
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--teal-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.legal-content a:hover {
  color: var(--teal);
}

/* ── CAPABILITY TABLE ─────────────────────────────────────── */
.cap-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.cap-table th, .cap-table td {
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.cap-table th {
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 13px;
}
.cap-table .status-live {
  color: var(--teal);
  font-weight: 700;
}
.cap-table .status-building {
  color: var(--ink-soft);
  font-style: italic;
}

/* ── VIDEO EMBED ──────────────────────────────────────────── */
.video-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.video-section-text { }
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.1);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── STAKEHOLDER LOOP DIAGRAM (Triangle SVG) ─────────────── */
.loop-diagram-wrap {
  max-width: 620px;
  margin: 40px auto 0;
}
.loop-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.loop-card-g rect { transition: stroke 0.2s; }
.loop-card-g:hover rect { stroke: var(--teal); }

/* ── Mobile fallback cards (hidden on desktop) ─── */
.loop-mobile-cards { display: none; }

.loop-m-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--navy);
  border-radius: 40px;
  width: fit-content;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(13,27,42,0.25);
}
.loop-m-hub span {
  font-family: var(--sys);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.85);
}

.loop-m-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(13,27,42,0.06);
}
.loop-m-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loop-m-badge {
  display: block;
  font-family: var(--lato);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.loop-m-card h4 {
  font-family: var(--sys);
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
}
.loop-m-card p {
  font-family: var(--lato);
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
}
.loop-m-arrow {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--lato);
  color: var(--ink-light);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.loop-m-arrow::before {
  content: '';
  display: block;
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--border), var(--ink-light));
  border-radius: 1px;
}

.loop-m-return {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
}
.loop-m-return span {
  font-family: var(--lato);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

/* ── TRUST GRID ──────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.trust-grid .trust-card:nth-child(4),
.trust-grid .trust-card:nth-child(5) {
  /* Last two cards span wider */
}
.trust-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.trust-icon {
  font-size: 22px;
  margin-bottom: 12px;
}
.trust-card h4 {
  font-family: var(--sys);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.trust-card p {
  font-family: var(--lato);
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ── PRODUCT SCREENSHOTS ─────────────────────────────────── */
.product-shot {
  max-width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(13,27,42,0.12), 0 2px 8px rgba(13,27,42,0.06);
  display: block;
  margin: 0 auto;
}

/* Screenshot placeholder (swap for real screenshots later) */
.screenshot-placeholder {
  background: var(--surface-alt);
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: var(--ink-soft);
  font-size: 14px;
  font-family: var(--lato);
  text-align: center;
  padding: 24px;
}
.screenshot-placeholder.dark {
  background: var(--navy-soft);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
}

/* "Who benefits" persona callouts */
.benefit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.benefit-card {
  padding: 24px;
  border-radius: var(--r);
  border: 1px solid var(--border);
}
.benefit-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}
.benefit-card h4 span { color: var(--teal-dk); }
.benefit-card p {
  font-family: var(--lato);
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* Full-width showcase with navy background */
.product-showcase {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 32px 32px 0;
  overflow: hidden;
  margin: 32px 0;
}
.product-showcase .product-shot {
  border: none;
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.product-showcase-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.product-showcase-title {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.product-showcase-desc {
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 560px;
}

/* Side-by-side: text + screenshot */
.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 32px 0;
}
.product-split.reverse { direction: rtl; }
.product-split.reverse > * { direction: ltr; }
.product-split-text h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.product-split-text p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* Two-up screenshot grid */
.product-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
.product-grid-2 .product-shot { width: 100%; height: 280px; object-fit: cover; object-position: top left; }
.product-grid-2 h4 { margin-top: 14px; }
.product-grid-2 img + h4 { margin-top: 14px; }

/* Caption under screenshot */
.product-caption {
  text-align: center;
  font-size: 13px;
  color: var(--ink-mid);
  margin-top: 12px;
  font-style: italic;
}

/* Pricing inline styles (stats row) */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.price-primary {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-main {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.price-meta {
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}
.price-secondary {
  font-size: 13px;
  color: var(--ink-mid);
}

/* ── AUTOMATION FEATURE CARDS ────────────────────────────── */
.auto-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.auto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.auto-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.auto-card h4 {
  font-family: var(--sys);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.auto-card p {
  font-family: var(--lato);
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.65;
}
.auto-card .feature-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--lato);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-dk);
  transition: color 0.15s;
}
.auto-card .feature-link:hover { color: var(--teal); }
.auto-card--linked {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--border);
}

.auto-card--linked:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.1);
  transform: translateY(-2px);
}

.auto-card--linked p { flex: 1; }

.auto-card--disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  position: relative;
  overflow: hidden;
}

/* ── BADGE: COMING SOON ───────────────────────────────────── */
.badge-coming-soon {
  position: absolute;
  top: 10px;
  right: -28px;
  display: block;
  width: 120px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--sys);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--teal, #00c9a7);
  color: #fff;
  padding: 4px 0;
  transform: rotate(35deg);
  transform-origin: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  z-index: 1;
  pointer-events: none;
}

/* Pill variant for compact list contexts */
.check-list .badge-coming-soon,
.mobile-nav-link--disabled .badge-coming-soon {
  position: static;
  display: inline-block;
  width: auto;
  transform: none;
  box-shadow: none;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── UTILITY ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.max-w-480 { max-width: 480px; }
.max-w-600 { max-width: 600px; }
.max-w-720 { max-width: 720px; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* ── Tablet: 641–960px ── */
@media (max-width: 960px) {
  /* Spacing */
  .topbar { padding: 0 var(--section-px-tablet); }
  .hero { padding: 48px var(--section-px-tablet) 56px; }
  .hero h1 { font-size: 38px; letter-spacing: -0.8px; }
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-split--flipped { direction: ltr; }
  .hero-split-visual { display: none; }
  .section { padding: 44px var(--section-px-tablet); }
  .cta-banner { padding: 48px var(--section-px-tablet); }
  .site-footer { padding: 44px var(--section-px-tablet) 32px; }

  /* Grids → collapse */
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border); }
  .two-col, .col-wide-narrow { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid .card { border-right: none; border-bottom: 1px solid var(--border); }
  .card-grid .card:last-child { border-bottom: none; }

  /* Card-grid cards — icon beside title */
  .card-grid .card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 0 14px;
  }
  .card-grid .card .card-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    align-self: start;
    line-height: 1;
  }
  .card-grid .card h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-bottom: 0;
  }
  .card-grid .card p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ba-grid { grid-template-columns: 1fr; }
  .ba-col.before .ba-item { border-right: none; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  /* Automation cards */
  .auto-cards { grid-template-columns: 1fr 1fr; }
  .benefit-cards { grid-template-columns: 1fr 1fr; }

  /* Auto-card — icon beside title */
  .auto-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 16px;
  }
  .auto-card .auto-card-icon {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    align-self: start;
  }
  .auto-card h4 {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-bottom: 0;
    padding-top: 10px;
  }
  .auto-card p {
    grid-column: 2;
    grid-row: 2;
    margin-top: 6px;
  }
  .auto-card .feature-link {
    grid-column: 2;
    grid-row: 3;
  }

  /* Product shots */
  .product-split { grid-template-columns: 1fr; gap: 24px; }
  .product-split.reverse { direction: ltr; }
  .product-grid-2 { grid-template-columns: 1fr; }
  .product-showcase { padding: 24px 24px 0; }

  /* Video section */
  .video-section { grid-template-columns: 1fr; gap: 24px; }

  /* Trust grid */
  .trust-grid { grid-template-columns: 1fr 1fr; }

  /* Legal pages — tablet: full width, left-aligned */
  .legal-page { padding: 44px var(--section-px-tablet); }
  .legal-header { max-width: none; margin: 0 0 40px; }
  .legal-header h1 { font-size: 30px; }
  .legal-content { max-width: none; margin: 0; }

  /* Tables → horizontal scroll */
  .data-table, .cap-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Inline grid overrides — pages use style="" grids that won't collapse */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Hide desktop nav, show toggle */
  .topbar-nav, .topbar-cta { display: none; }
  .topbar-toggle { display: block; }

  /* Mobile nav panel */
  .topbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 24px 20px;
    gap: 0;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-nav.open > a,
  .topbar-nav.open > .nav-dropdown > a {
    padding: 14px 12px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .topbar-nav.open .nav-dropdown-trigger::after { margin-left: 6px; }
  .topbar-nav.open .nav-dropdown-menu {
    position: static;
    transform: none;
    display: block;
    background: rgba(255,255,255,0.04);
    border: none;
    box-shadow: none;
    margin: 0 0 4px 0;
    padding: 4px 0 4px 12px;
    min-width: 0;
  }
  .topbar-nav.open .nav-dropdown-menu a {
    color: rgba(255,255,255,0.7);
    padding: 12px;
  }
  .topbar-nav.open .nav-dropdown-menu a .dd-label { color: rgba(255,255,255,0.85); font-size: 15px; }
  .topbar-nav.open .nav-dropdown-menu a .dd-desc { color: rgba(255,255,255,0.45); font-size: 13px; }
  .topbar-cta.mobile-show {
    display: inline-flex;
    margin: 12px 12px 4px;
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 15px;
  }

  /* Hamburger → X animation */
  .topbar-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .topbar-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .topbar-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ── Mobile: <= 640px ── */
@media (max-width: 640px) {
  /* Spacing — tighter */
  .topbar { padding: 0 var(--section-px-mobile); height: 56px; }
  .hero { padding: 32px var(--section-px-mobile) 40px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.5px; max-width: 100%; }
  .hero p.hero-sub { font-size: 15px; max-width: 100%; }
  .hero-split { grid-template-columns: 1fr; gap: 24px; }
  .hero-split--flipped { direction: ltr; }
  .section { padding: 32px var(--section-px-mobile); }
  .section h2 { font-size: 24px; letter-spacing: -0.4px; }
  .section .lead { font-size: 14px; max-width: 100%; }
  .cta-banner { padding: 36px var(--section-px-mobile); }
  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 14px; }
  .site-footer { padding: 32px var(--section-px-mobile) 24px; }

  /* Topbar adjustments */
  .topbar-nav.open { top: 56px; max-height: calc(100vh - 56px); padding: 8px 20px 16px; }

  /* Grid collapses */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .footer-legal a { margin-left: 12px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .radio-tiles { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Stats — full width on tiny screens */
  .stat-item { padding: 20px; }
  .stat-item .val { font-size: 24px; }
  .stat-item .desc { font-size: 13px; }

  /* Automation cards — single column */
  .auto-cards { grid-template-columns: 1fr; }
  .benefit-cards { grid-template-columns: 1fr; }
  .screenshot-placeholder { min-height: 200px; }

  /* Cards — smaller padding */
  .card { padding: 20px; }
  .pricing-card { padding: 24px; }
  .pricing-card .price { font-size: 30px; }
  .pricing-card h3 { font-size: 20px; }
  .pricing-features { grid-template-columns: 1fr; }

  /* Buttons — full width on mobile */
  .btn { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }
  .cta-banner .btn { width: auto; }

  /* Product shots — tighter margins */
  .product-showcase { padding: 20px 16px 0; margin: 24px 0; border-radius: var(--r); }
  .product-showcase-title { font-size: 18px; }
  .product-showcase-desc { font-size: 14px; margin-bottom: 16px; }
  .product-split { gap: 16px; margin: 24px 0; }
  .product-split-text h3 { font-size: 18px; }
  .product-split-text p { font-size: 14px; }
  .product-grid-2 { gap: 16px; margin: 24px 0; }
  .product-grid-2 .product-shot { height: auto; }
  .product-shot { border-radius: var(--r); }

  /* Loop diagram — swap SVG for mobile cards */
  .loop-svg { display: none; }
  .loop-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 440px;
    margin: 0 auto;
  }
  .loop-m-card { padding: 16px; gap: 12px; }
  .loop-m-card h4 { font-size: 14px; }
  .loop-m-card p { font-size: 12px; }
  .loop-m-icon { width: 40px; height: 40px; }
  .loop-m-icon svg { width: 20px; height: 20px; }
  .loop-m-hub { padding: 10px 18px; }
  .loop-m-hub span { font-size: 10px; }

  /* Trust grid — single column */
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card { padding: 20px; }

  /* Video embed — full width */
  .video-embed { border-radius: var(--r); }

  /* Testimonials */
  .testimonial { padding: 16px 20px; margin: 24px 0; }
  .testimonial blockquote { font-size: 15px; }
  .social-proof-strip { padding: 32px 20px; }
  .social-proof-strip blockquote { font-size: 18px; }
  .comparison-grid { grid-template-columns: 1fr; }

  /* Tables — ensure scrollability */
  .data-table, .cap-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 13px;
  }
  .data-table th, .data-table td,
  .cap-table th, .cap-table td {
    padding: 10px 14px;
    white-space: nowrap;
  }

  /* Before/After */
  .ba-heading { font-size: 11px; padding: 10px 16px; }
  .ba-item { padding: 12px 16px; font-size: 13px; }

  /* FAQ */
  .faq-item { padding: 16px 20px; }
  .faq-q { font-size: 13.5px; }
  .faq-a { font-size: 13px; }

  /* Calculator */
  .calc-wrap { padding: 24px; }
  .calc-wrap h3 { font-size: 18px; }
  .calc-wrap input[type="number"] { font-size: 16px; } /* Prevent iOS zoom */

  /* All inputs — 16px minimum to prevent iOS auto-zoom */
  input, select, textarea { font-size: 16px !important; }

  /* Legal pages — mobile */
  .legal-page { padding: 32px var(--section-px-mobile); }
  .legal-header { margin-bottom: 28px; padding-bottom: 20px; }
  .legal-header h1 { font-size: 26px; letter-spacing: -0.3px; }
  .legal-updated { font-size: 13px; }
  .legal-content h2 { font-size: 18px; margin: 28px 0 12px; }
  .legal-content h3 { font-size: 16px; margin: 24px 0 10px; }
  .legal-content p, .legal-content li { font-size: 14px; line-height: 1.75; }

  /* Forms */
  .form-card { padding: 24px; }

  /* Feature lists — tighter on mobile */
  .feat-list li { font-size: 13.5px; padding: 8px 0 8px 24px; }
  .feat-list li::before { font-size: 14px; }

  /* Video section text — smaller heading */
  .video-section-text h2 { font-size: 22px; }
  .video-section-text .lead { font-size: 14px; }

  /* Product splits — reduce gap between stacked sections */
  .product-split + .product-split { margin-top: 28px !important; }

  /* Simulated UI cards — tighter on mobile */
  .section [style*="padding:16px 20px"] { padding: 12px 14px !important; }

  /* Pricing card — tighter on mobile */
  .pricing-card { padding: 20px !important; }
  .pricing-card .price { font-size: 28px; }
  .check-list li { font-size: 13px; padding: 6px 0 6px 24px; }

  /* CTA banner — buttons stack */
  .cta-banner .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-banner h2 { font-size: 20px; line-height: 1.35; }

  /* Inline-styled containers — reduce padding */
  .section [style*="padding:28px 32px"],
  .section [style*="padding:28px;"] { padding: 20px !important; }
  .section [style*="padding:40px"] { padding: 24px !important; }
}

/* ── Extra small: <= 380px (iPhone SE, etc.) ── */
@media (max-width: 380px) {
  :root {
    --section-px-mobile: 16px;
  }
  .hero h1 { font-size: 24px; }
  .section h2 { font-size: 22px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; }
  .stat-item:nth-child(n+2) { border-top: 1px solid var(--border); }
  .topbar-left .wordmark { font-size: 16px; }
  .feat-list li { font-size: 13px; padding: 7px 0 7px 22px; }
  .video-section-text h2 { font-size: 20px; }
  .cta-banner h2 { font-size: 19px; }
}

/* ── Touch-friendly improvements ── */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets */
  .topbar-nav a { min-height: 44px; display: flex; align-items: center; }
  .btn { min-height: 48px; }
  .footer-col a { min-height: 44px; display: flex; align-items: center; }
  .faq-item { cursor: pointer; }

  /* Disable hover-only dropdown; use click instead */
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.dd-open .nav-dropdown-menu { display: block; }
}

/* ── Safe area (notch devices) ── */
@supports (padding: env(safe-area-inset-left)) {
  .topbar {
    padding-left: max(var(--section-px-mobile, 20px), env(safe-area-inset-left));
    padding-right: max(var(--section-px-mobile, 20px), env(safe-area-inset-right));
  }
  .site-footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ── LIGHTBOX — Fullscreen image viewer ──────────────────── */

/* Hover overlay on clickable images */
.lightbox-trigger {
  position: relative;
  cursor: pointer;
}
.lightbox-trigger::after {
  content: 'Click to view fullscreen';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 42, 0.55);
  color: #fff;
  font-family: var(--lato);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.lightbox-trigger:hover::after,
.lightbox-trigger:focus-visible::after {
  opacity: 1;
}

/* The fullscreen overlay */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
  overflow: hidden;
}
.lightbox-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 14px;
  font-family: var(--lato);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  z-index: 10003;
  backdrop-filter: blur(8px);
}
.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

/* Hint text */
.lightbox-hint {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--lato);
  font-size: 13px;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10003;
}

/* Image container — transform-based zoom and pan (no scrollbars) */
.lightbox-img-wrap {
  position: absolute;
  inset: 50px 0 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox-img-wrap img {
  max-width: calc(100% - 40px);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-img-wrap.is-zoomed {
  cursor: grab;
}
.lightbox-img-wrap.is-dragging {
  cursor: grabbing;
}
.lightbox-img-wrap.is-dragging img {
  transition: none;
}

/* Zoom controls */
.lightbox-zoom-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 10003;
  backdrop-filter: blur(8px);
}

/* Hide body scroll when lightbox is open */
body.lightbox-active {
  overflow: hidden !important;
}
.lightbox-zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 600px) {
  .lightbox-close { top: 10px; right: 12px; padding: 6px 14px; font-size: 13px; }
  .lightbox-zoom-controls { bottom: 14px; right: 12px; }
  .lightbox-zoom-btn { width: 34px; height: 34px; font-size: 18px; }
  .lightbox-hint { bottom: 14px; font-size: 12px; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-split-content,
  .hero-split-visual,
  .hero:not(:has(.hero-split)) .hero-eyebrow,
  .hero:not(:has(.hero-split)) h1,
  .hero:not(:has(.hero-split)) .hero-sub,
  .hero:not(:has(.hero-split)) .hero-actions {
    animation: none;
  }
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ── Smooth scrolling & scroll margin for sticky header ── */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
@media (max-width: 640px) {
  [id] { scroll-margin-top: 64px; }
}

/* ── HOW IT WORKS — Steps Row ──────────────────────────── */
.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 32px;
}
.step-card {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.step-number {
  display: none;
}
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  margin-bottom: 16px;
}
.step-card h4 {
  font-family: var(--sys);
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-card p {
  font-family: var(--lato);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin: 0;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 20px;
  flex-shrink: 0;
}
.step-connector svg {
  opacity: 0.4;
}

/* Steps row responsive */
@media (max-width: 820px) {
  .steps-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .step-card {
    max-width: 800px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0 16px;
    text-align: left;
    padding: 16px 0;
  }
  .step-card .step-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    margin-top: 0;
    margin-bottom: 0;
    width: 48px;
    height: 48px;
  }
  .step-card h4 {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    margin-bottom: 4px;
  }
  .step-card p {
    grid-column: 2;
    grid-row: 2;
    font-size: 14px;
  }
  .step-icon { display: inline-flex; }
  .step-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }
}

/* ── DARK MODE ELEMENT OVERRIDES ──────────────────────────── */
/* These cover cases that can't be handled purely by token remapping */

/* Shared selector for "dark mode is active" — OS preference or manual toggle */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .comparison-col--before .comparison-list li {
    background: rgba(255, 255, 255, 0.06);
  }
  html:not([data-theme="light"]) .ba-col.before .ba-heading {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink-mid);
  }
  html:not([data-theme="light"]) .data-table td {
    color: var(--ink-mid);
  }
  html:not([data-theme="light"]) .radio-tile {
    background: var(--surface);
  }
  html:not([data-theme="light"]) .benefit-card {
    background: var(--surface);
  }
  html:not([data-theme="light"]) .product-shot {
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  html:not([data-theme="light"]) .testimonial {
    background: var(--surface-alt);
    border-radius: var(--r);
    padding: 20px 28px;
  }
}

html[data-theme="dark"] .comparison-col--before .comparison-list li {
  background: rgba(255, 255, 255, 0.06);
}
html[data-theme="dark"] .ba-col.before .ba-heading {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-mid);
}
html[data-theme="dark"] .data-table td {
  color: var(--ink-mid);
}
html[data-theme="dark"] .radio-tile {
  background: var(--surface);
}
html[data-theme="dark"] .benefit-card {
  background: var(--surface);
}
html[data-theme="dark"] .product-shot {
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .testimonial {
  background: var(--surface-alt);
  border-radius: var(--r);
  padding: 20px 28px;
}
