/* ──────────────────────────────────────────────────────────────────────────
   subscron marketing site — single stylesheet, no build step.
   Palette mirrors ui/projects/shared/src/styles/_tokens.scss (keep in sync).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --navy: #1a2151;
  --navy-deep: #11163a;
  --navy-soft: #272f6b;
  --coral: #f96167;
  --coral-soft: #ffe9ea;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --border: #e6e8f0;
  --ink: #1c2240;
  --muted: #6a7090;
  --inv-muted: #b9bfe2;
  --success: #16a34a;
  --warn: #d97706;
  --info: #2563eb;
  --radius: 16px;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
    Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--coral-soft);
  color: var(--navy);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 800; }

section { padding: 96px 0; }

/* anchor jumps land below the fixed header */
section[id] { scroll-margin-top: 72px; }

.kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}

.fine-print { font-size: 0.82rem; color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 28px;
  transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out,
    background-color 200ms ease-in-out;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 24px rgba(249, 97, 103, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(249, 97, 103, 0.45); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-sm { padding: 9px 20px; font-size: 0.88rem; }

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(26, 33, 81, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 220ms ease-in-out;
}

.site-header.scrolled { box-shadow: 0 4px 24px rgba(17, 22, 58, 0.35); }

.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.brand img { height: 36px; width: auto; }

.main-nav { display: flex; gap: 22px; margin-left: auto; }

.main-nav a {
  color: var(--inv-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 180ms ease-in;
}

.main-nav a:hover { color: #fff; }

/* ── Language dropdown (native-name select) ────────────────────────────── */

.lang-select {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--inv-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px 6px 12px;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.lang-trigger:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.lang-globe { width: 16px; height: 16px; opacity: 0.9; }

.lang-chev {
  width: 13px;
  height: 13px;
  opacity: 0.8;
  transition: transform 180ms ease;
}

.lang-select.is-open .lang-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 100%;
  width: max-content;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 36px -16px rgba(17, 22, 58, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.lang-select.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt {
  appearance: none;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background-color 140ms ease, color 140ms ease;
}

.lang-opt:hover { background: var(--bg); }

.lang-opt.is-active {
  color: var(--coral);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .lang-chev,
  .lang-menu { transition: none; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 75% -10%, var(--navy-soft), transparent 60%), var(--navy-deep);
  color: #fff;
  padding: 168px 0 110px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(249, 97, 103, 0.45);
  background: rgba(249, 97, 103, 0.12);
  color: #ffd3d5;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

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

.hero-sub {
  margin: 22px 0 30px;
  max-width: 30rem;
  font-size: 1.13rem;
  color: var(--inv-muted);
}

.hero-sub strong, .hero-sub code { color: #fff; background: transparent; padding: 0; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--inv-muted); }

/* the cron heartbeat — echoes the logo's coral dot + halo */
.hero-bg, .final-bg { position: absolute; inset: 0; pointer-events: none; }

.cron-dot, .cron-ring {
  position: absolute;
  top: 18%;
  left: 56%;
  border-radius: 50%;
}

.cron-dot {
  width: 14px; height: 14px;
  background: var(--coral);
  animation: cron-pulse 2.8s ease-in-out infinite;
}

.cron-ring {
  border: 1px solid rgba(249, 97, 103, 0.4);
  width: 14px; height: 14px;
  animation: cron-ring 5.6s ease-out infinite;
}

.cron-ring.r2 { animation-delay: 1.85s; }

.cron-ring.r3 { animation-delay: 3.7s; }

@keyframes cron-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.85; }
}

@keyframes cron-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(26); opacity: 0; }
}

/* ── Sim panel (hero dashboard) ────────────────────────────────────────── */

.sim-panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(10, 13, 40, 0.55);
  overflow: hidden;
  color: var(--ink);
}

.sim-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #eef0f7;
  border-bottom: 1px solid var(--border);
}

.chrome-dot { width: 10px; height: 10px; border-radius: 50%; background: #d4d8e6; }

.sim-url {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}

.sim-live {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral);
  white-space: nowrap;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: cron-pulse 1.6s ease-in-out infinite;
}

.sim-body { padding: 18px; }

.sim-head { display: flex; align-items: center; gap: 12px; }

.sim-avatar {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sim-title { display: flex; flex-direction: column; line-height: 1.25; }

.sim-title strong { font-size: 0.98rem; }

.sim-sub { font-size: 0.75rem; color: var(--muted); }

.sim-pill {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  background: #e8f7ee;
  border-radius: 999px;
  padding: 4px 11px;
}

.sim-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0 14px;
}

.sim-stat {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.sim-stat .lbl { font-size: 0.68rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.sim-stat strong { font-size: 1.18rem; letter-spacing: -0.02em; }

.sim-stat .delta {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--success);
  opacity: 0;
}

.sim-stat .delta.pop { animation: delta-pop 1.4s ease-out; }

@keyframes delta-pop {
  0% { opacity: 0; transform: translateY(4px); }
  25% { opacity: 1; transform: translateY(0); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-6px); }
}

.sim-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 58px;
  padding: 6px 2px 0;
}

.sim-chart .bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #dfe3f2;
  transition: height 600ms ease-in-out;
}

.sim-chart .bar.now { background: var(--coral); }

.sim-feed {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 178px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}

.ev {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 0.78rem;
  animation: ev-in 240ms ease-out;
}

@keyframes ev-in {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

.ev-ico {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
}

.ev-new .ev-ico { background: var(--coral); }
.ev-new .ev-ico::before { content: '+'; }
.ev-renew .ev-ico { background: var(--success); }
.ev-renew .ev-ico::before { content: '↻'; }
.ev-hook .ev-ico { background: var(--navy); }
.ev-hook .ev-ico::before { content: '→'; }
.ev-dun .ev-ico { background: var(--warn); }
.ev-dun .ev-ico::before { content: '!'; }
.ev-rec .ev-ico { background: var(--success); }
.ev-rec .ev-ico::before { content: '✓'; }
.ev-trial .ev-ico { background: var(--info); }
.ev-trial .ev-ico::before { content: '◷'; }

.ev-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }

.ev-txt em { font-style: normal; font-weight: 700; }

.ev-txt code { background: #eef0f7; font-size: 0.72rem; }

.ev-amt { flex: none; font-weight: 800; color: var(--success); font-size: 0.78rem; }

.ev-ok { flex: none; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; color: var(--success); }

/* ── Pain ──────────────────────────────────────────────────────────────── */

.pain { background: var(--bg); text-align: center; }

.pain h2 { margin-bottom: 40px; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.pain-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-bottom-left-radius: 4px;
  padding: 22px 26px;
  font-size: 1.02rem;
  font-weight: 500;
  text-align: left;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(26, 33, 81, 0.05);
}

.pain-answer { margin: 42px auto 0; font-size: 1.18rem; max-width: 36rem; }

.pain-answer strong { color: var(--coral); }

/* ── How it works ──────────────────────────────────────────────────────── */

.how { background: var(--surface); }

.how h2 { margin-bottom: 48px; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -16px;
  left: 24px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(26, 33, 81, 0.3);
}

.step-min {
  float: right;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  background: var(--coral-soft);
  border-radius: 999px;
  padding: 3px 10px;
}

.step h3 { margin: 10px 0 10px; font-size: 1.12rem; }

.step p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.how .fine-print { margin-top: 26px; }

/* ── Features ──────────────────────────────────────────────────────────── */

.features { background: var(--bg); padding-top: 80px; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature.flip .feature-copy { order: 2; }

.feature.flip .feature-visual { order: 1; }

.feature h2 { margin-bottom: 16px; }

.feature p { color: var(--muted); font-size: 1.02rem; }

.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.ticks li { position: relative; padding-left: 30px; font-size: 0.95rem; }

.ticks li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* landing mock — JS cycles --lm (accent), template name and headline */
.landing-mock {
  --lm: #f96167;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(26, 33, 81, 0.14);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}

.lm-chrome { padding: 10px 14px; background: #eef0f7; border-bottom: 1px solid var(--border); display: flex; }

.lm-body { padding: 30px 30px 26px; text-align: center; }

.lm-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lm);
  border: 1px solid var(--lm);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 16px;
  transition: color 280ms ease-in-out, border-color 280ms ease-in-out;
}

.lm-body h4 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }

.lm-sub { margin: 0 0 18px; font-size: 0.85rem; color: var(--muted); }

.lm-price { font-size: 1rem; color: var(--muted); margin-bottom: 16px; }

.lm-price strong { font-size: 2rem; color: var(--lm); letter-spacing: -0.03em; transition: color 280ms ease-in-out; }

.lm-cta {
  display: inline-block;
  background: var(--lm);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 11px 30px;
  transition: background-color 280ms ease-in-out;
}

.lm-themes { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }

.lm-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.45;
  transition: opacity 220ms ease-in-out, transform 220ms ease-in-out;
}

.lm-dot.is-active { opacity: 1; transform: scale(1.2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }

.lm-fade { transition: opacity 220ms ease-in-out; }

.lm-fade.out { opacity: 0; }

/* lifecycle stepper */
.lifecycle {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lc-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 14px 48px;
  transition: border-color 240ms ease-in-out, box-shadow 240ms ease-in-out,
    opacity 240ms ease-in-out, transform 240ms ease-in-out;
  opacity: 0.55;
}

.lc-step::before {
  content: '';
  position: absolute;
  left: 18px; top: 19px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #cdd2e6;
  background: var(--surface);
  transition: background-color 240ms ease-in-out, border-color 240ms ease-in-out;
}

.lc-step.is-done { opacity: 0.8; }

.lc-step.is-done::before { background: var(--success); border-color: var(--success); }

.lc-step.is-active {
  opacity: 1;
  border-color: var(--coral);
  box-shadow: 0 10px 30px rgba(249, 97, 103, 0.16);
  transform: translateX(6px);
}

.lc-step.is-active::before { background: var(--coral); border-color: var(--coral); animation: cron-pulse 1.6s ease-in-out infinite; }

.lc-step h4 { font-size: 0.98rem; display: inline; }

.lc-step::after {
  content: attr(data-chip);
  float: right;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--navy);
  background: #eef0f7;
  border-radius: 999px;
  padding: 2px 9px;
  margin-top: 2px;
}

.lc-step p { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }

/* webhook code window */
.code-win {
  background: var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(17, 22, 58, 0.4);
  overflow: hidden;
  font-family: var(--mono);
}

.cw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.74rem;
}

.cw-method { color: #fff; background: var(--coral); border-radius: 6px; padding: 2px 8px; font-weight: 700; }

.cw-bar code { background: transparent; color: var(--inv-muted); padding: 0; }

.cw-sig { margin-left: auto; color: #6ee7a0; font-size: 0.7rem; }

.cw-json {
  margin: 0;
  padding: 18px 20px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #d8dcf5;
  min-height: 230px;
  white-space: pre-wrap;
}

.cw-json .k { color: #8fb5ff; }

.cw-json .s { color: #ffb3b6; }

.cw-caret { display: inline-block; width: 7px; height: 1em; background: var(--coral); vertical-align: text-bottom; animation: caret 0.9s step-start infinite; }

@keyframes caret { 50% { opacity: 0; } }

.cw-resp {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  transition: opacity 240ms ease-in-out;
}

.cw-resp.dim { opacity: 0; }

.cw-status { color: #6ee7a0; font-weight: 700; }

.cw-grant { color: var(--inv-muted); }

/* TR checklist */
.tr-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tr-checklist li {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px 16px 52px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 6px 18px rgba(26, 33, 81, 0.05);
}

.tr-checklist li::before {
  content: '✓';
  position: absolute;
  left: 16px; top: 50%;
  translate: 0 -50%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ── Pricing / money flow ──────────────────────────────────────────────── */

.pricing { background: var(--surface); text-align: center; }

.pricing-sub { max-width: 34rem; margin: 14px auto 44px; color: var(--muted); font-size: 1.05rem; }

.money-flow {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 34px;
  text-align: left;
}

.mf-total { font-size: 1.02rem; margin-bottom: 20px; }

.mf-total strong { font-size: 1.4rem; letter-spacing: -0.02em; }

.mf-rows { display: flex; flex-direction: column; gap: 14px; }

.mf-row { display: grid; grid-template-columns: 200px 1fr 58px; align-items: center; gap: 14px; font-size: 0.88rem; }

.mf-row.you { font-weight: 800; font-size: 0.95rem; }

.mf-bar { position: relative; height: 12px; border-radius: 999px; background: #e8eaf4; overflow: hidden; }

.mf-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  transition: width 900ms ease-in-out 200ms;
}

.is-in .mf-bar::after { width: var(--w); }

.mf-bar.pay::after { background: #aab0d0; }

.mf-bar.sub::after { background: var(--coral); }

.mf-bar.you::after { background: var(--success); }

.mf-val { text-align: right; font-weight: 700; }

.money-flow .fine-print { margin: 22px 0 0; }

/* ── Comparison ────────────────────────────────────────────────────────── */

.compare { background: var(--bg); text-align: center; }

.compare h2 { margin-bottom: 40px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.cmp-table {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.92rem;
}

.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); }

.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }

.cmp-table thead th { background: var(--bg); font-size: 0.85rem; }

.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }

.cmp-table .cmp-us { background: var(--coral-soft); font-weight: 800; color: var(--navy); }

.cmp-table .ok { color: var(--success); font-weight: 800; }

.cmp-table .no { color: #c2c7dd; font-weight: 700; }

.cmp-table .mid { color: var(--warn); font-weight: 800; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { background: var(--surface); }

.faq h2 { margin-bottom: 36px; }

.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 22px;
  transition: border-color 200ms ease-in-out;
}

.faq-item[open] { border-color: var(--coral); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 18px 36px 18px 0;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '';
  position: absolute;
  right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--coral);
  border-bottom: 2px solid var(--coral);
  translate: 0 -70%;
  rotate: 45deg;
  transition: rotate 220ms ease-in-out, translate 220ms ease-in-out;
}

.faq-item[open] summary::after { rotate: 225deg; translate: 0 -30%; }

.faq-item p { margin: 0 0 20px; color: var(--muted); font-size: 0.94rem; }

/* ── Final CTA ─────────────────────────────────────────────────────────── */

.final {
  position: relative;
  overflow: hidden;
  background: radial-gradient(900px 500px at 50% 120%, var(--navy-soft), transparent 65%), var(--navy-deep);
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.final .cron-dot, .final .cron-ring { top: 50%; left: 50%; }

.final h2 { font-size: clamp(2rem, 4vw, 3rem); }

.final p { margin: 18px auto 34px; max-width: 30rem; color: var(--inv-muted); font-size: 1.08rem; }

.final-inner { position: relative; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer { background: var(--navy-deep); color: var(--inv-muted); padding: 34px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.footer-inner img { height: 26px; width: auto; opacity: 0.9; }

.footer-inner p { margin: 0; font-size: 0.82rem; }

/* ── Scroll reveal (JS adds .is-in; hidden only when JS is present) ────── */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}

.js .reveal.is-in { opacity: 1; transform: none; }

.js .pain-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2) { transition-delay: 90ms; }

.js .pain-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3) { transition-delay: 180ms; }

.js .pain-grid .reveal:nth-child(4) { transition-delay: 270ms; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
  section { padding: 72px 0; }

  .hero { padding: 140px 0 80px; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }

  .hero-sub { max-width: none; }

  .sim-panel { max-width: 560px; }

  .feature { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }

  .feature.flip .feature-copy { order: 1; }

  .feature.flip .feature-visual { order: 2; }

  .steps { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }

  /* nav gone → toggle takes over the right-side push */
  .lang-toggle { margin-left: auto; }

  .pain-grid { grid-template-columns: 1fr; }

  .mf-row { grid-template-columns: 1fr 64px; }

  .mf-row .mf-bar { order: 3; grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }

  .sim-url { font-size: 0.64rem; padding: 3px 8px; }

  .hero h1 { font-size: 2.35rem; }

  .sim-stats { grid-template-columns: 1fr 1fr; }

  .sim-stat:first-child { grid-column: 1 / -1; }

  .btn-lg { padding: 14px 30px; }
}

/* ── Reduced motion: static frame, no loops ────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .is-in .mf-bar::after { width: var(--w); }

  .cron-ring, .cron-dot, .live-dot { animation: none; }
}
