/* CommitControl shared design system. Source: current landing page + brand guidelines. */
:root {
  --ink-900: #0A1628;
  --ink-800: #112236;
  --ink-700: #1F3147;
  --ink-500: #5A6A7A;
  --ink-400: #8A98A8;
  --ink-300: #C4CDD8;
  --ink-200: #E3E8EF;
  --ink-100: #F1F4F8;
  --bg: #FBFCFD;
  --surface: #FFFFFF;
  --primary: #0A63FF;
  --primary-dark: #053FBE;
  --primary-light: #5C9BFF;
  --primary-tint: #EEF4FF;
  --teal: #00C4A8;
  --teal-tint: #E0F6F1;
  --amber: #FFB547;
  --danger: #E24B4B;
  --alert: #E24B4B;
  --danger-tint: #FCEAEA;
  --paper: #F4EEE2;
  --paper-warm: #EDE5D2;
  --border: #E3E8EF;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ─── OLED true-black theme ─────────────────────────────────────────────
   Remaps the palette tokens; targeted overrides below fix surfaces that
   hardcode a light value or reuse --ink-900 as a dark background. */
:root[data-theme="oled"] {
  --ink-900: #F4F7FB;
  --ink-800: #E0E5EC;
  --ink-700: #B8C0CC;
  --ink-500: #8A93A0;
  --ink-400: #6C7480;
  --ink-300: #3C424B;
  --ink-200: #23272E;
  --ink-100: #16181C;
  --bg: #000000;
  --surface: #0C0D10;
  --primary: #4D8DFF;
  --primary-dark: #9DC0FF;
  --primary-light: #80AEFF;
  --primary-tint: #0F1C30;
  --teal: #2BE6C8;
  --teal-tint: #07241F;
  --amber: #FFC76B;
  --danger: #FF6B6B;
  --alert: #FF6B6B;
  --danger-tint: #2C1414;
  --paper: #0C0D10;
  --paper-warm: #0C0D10;
  --border: #23272E;
}
:root[data-theme="oled"] nav.top { background: rgba(0, 0, 0, 0.72); border-bottom-color: var(--border); }
:root[data-theme="oled"] footer.site-footer { background: #000; }
:root[data-theme="oled"] .card { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5); }
:root[data-theme="oled"] .btn-primary { background: var(--primary); color: #fff; }
:root[data-theme="oled"] .btn-primary:hover { background: var(--primary-light); box-shadow: 0 8px 24px rgba(10, 99, 255, 0.45); }
:root[data-theme="oled"] .roi-summary-card { background: #0C0D10; border: 1px solid var(--border); box-shadow: 0 28px 80px -34px rgba(0, 0, 0, 0.8); }
:root[data-theme="oled"] .roi-field input { background: #0C0D10; }
:root[data-theme="oled"] .roi-assumption-strip span { background: rgba(255, 255, 255, 0.04); }

/* ─── Theme toggle button (both modes) ─────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink-700);
  transition: color .15s, background .15s;
}
.theme-toggle:hover { color: var(--primary); background: var(--ink-100); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}

.serif { font-family: var(--font-serif); font-feature-settings: "ss01"; letter-spacing: -0.015em; }
.mono { font-family: var(--font-mono); }
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--primary);
  flex: 0 0 auto;
}

.cc-logo { display: inline-flex; align-items: center; gap: 11px; color: inherit; }
.cc-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.cc-mark svg { width: 100%; height: 100%; display: block; }
.cc-wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.028em;
  color: var(--ink-900);
  line-height: 1;
}
.cc-wordmark em { font-style: italic; color: var(--primary); font-weight: 500; }

nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 253, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ink-200);
}
nav.top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
nav.top .right { display: flex; gap: 10px; align-items: center; }
nav.top .links { display: flex; gap: 4px; margin-right: 8px; }
nav.top .links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
nav.top .links a:hover { color: var(--ink-900); background: var(--ink-100); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--ink-900); color: white; }
.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(10, 99, 255, .35);
}
.btn-secondary { background: transparent; color: var(--ink-900); border: 1px solid var(--ink-200); }
.btn-secondary:hover { border-color: var(--ink-900); }
.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { color: var(--primary); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.page-head {
  padding: 92px 0 44px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 48% at 90% 10%, rgba(10, 99, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 85%, rgba(0, 196, 168, 0.045), transparent 60%);
}
.page-head .container { position: relative; }
.page-head.center { text-align: center; }
.page-head.center h1,
.page-head.center p.lead { margin-left: auto; margin-right: auto; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head .eyebrow.danger { color: var(--danger); }
.page-head .eyebrow.danger::before { background: var(--danger); }
.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  max-width: 840px;
  text-wrap: balance;
}
.page-head p.lead {
  font-size: 18px;
  color: var(--ink-700);
  max-width: 720px;
  margin-top: 22px;
  line-height: 1.55;
}

.stub-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}

.legal {
  max-width: 820px;
  padding-bottom: 104px;
}
.prose {
  color: var(--ink-700);
  font-size: 16px;
  line-height: 1.68;
}
.prose a { color: var(--primary); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose p { margin-bottom: 18px; }
.prose h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  margin: 48px 0 14px;
  color: var(--ink-900);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 30px 0 10px;
  color: var(--ink-900);
}
.prose ul,
.prose ol {
  margin: 14px 0 22px 22px;
  color: var(--ink-700);
}
.prose li { margin-bottom: 8px; padding-left: 2px; }
.prose strong { color: var(--ink-900); font-weight: 700; }
.legal-meta {
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-500);
}

.card {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.03);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.pricing-body { padding-bottom: 96px; }
.plan {
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.plan h3 { font-size: 28px; margin-bottom: 8px; }
.plan-meta {
  color: var(--ink-500);
  font-family: var(--font-mono);
  font-size: 12px;
}
.plan-meta.primary { color: var(--primary); }
.plan-meta + .price { margin-top: 18px; }
.price + .plan-meta { margin-bottom: 6px; }
.plan .price {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-900);
  margin: 18px 0 8px;
}
.plan .price small {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-500);
  font-weight: 500;
  letter-spacing: 0;
}
.plan ul {
  margin: 22px 0 24px 18px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.55;
}
.plan ul li { margin-bottom: 7px; }
.plan .btn { width: 100%; margin-top: auto; }
.plan-featured {
  border-color: var(--primary);
  position: relative;
  box-shadow: 0 0 0 4px rgba(10, 99, 255, 0.08);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-note {
  text-align: center;
  color: var(--ink-500);
  font-size: 13px;
  margin-top: 32px;
}
.enterprise-card {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.enterprise-card > div { max-width: 820px; }
.enterprise-card h3 { font-size: 20px; margin-bottom: 8px; }
.enterprise-card p { color: var(--ink-700); font-size: 14px; line-height: 1.6; }

/* De-emphasise Enterprise: a quiet footer box, not a peer tier */
.enterprise-card {
  background: transparent;
  border: 1px dashed var(--ink-200);
  box-shadow: none;
  padding: 24px 28px;
}

/* Proof strip — the ROI argument, above the grid */
.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--ink-200);
}
.proof-stat { min-width: 140px; }
.proof-v {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--primary);
}
.proof-l {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
  max-width: 220px;
}
.proof-note {
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-500);
  max-width: 620px;
}

/* Tier outcome tagline — replaces the old seat line */
.plan-tagline {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-900);
  margin: 4px 0 0;
}
.plan-tagline.primary { color: var(--primary); }
.plan-tagline + .price { margin-top: 20px; }

/* Risk-reversal link under Insight */
.plan-reversal {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-500);
  text-align: center;
  text-decoration: none;
}
.plan-reversal:hover { color: var(--primary); }

.roi-page-head { padding-bottom: 58px; }
.roi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 48px;
  align-items: center;
  position: relative;
}
.roi-assumption-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.roi-assumption-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--ink-200);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-700);
}
.roi-summary-card {
  background: var(--ink-900);
  color: white;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 28px 80px -34px rgba(10, 22, 40, .42);
}
.roi-summary-card strong {
  display: block;
  margin: 12px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -0.045em;
  color: white;
}
.roi-summary-card p {
  color: rgba(255,255,255,.68);
  font-size: 14px;
  line-height: 1.55;
}
.roi-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.roi-summary-card .roi-label { color: var(--primary-light); }
.roi-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 32px;
}
.roi-input-panel,
.roi-result-card,
.roi-note-card { border-radius: 12px; }

/* Left column: inputs + in-flow capture, filling the dead space beside the results */
.roi-left { display: flex; flex-direction: column; gap: 24px; }
.roi-next-card {
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
}
.roi-next-card h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}
.roi-next-card p {
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}
.roi-capture-form {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.roi-capture-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  font-family: inherit;
  background: #fff;
  color: var(--ink-900);
}
.roi-capture-form input[type="email"]:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.roi-capture-form .btn { flex: 0 0 auto; height: 46px; }
.roi-capture-form .cf-turnstile { width: 100%; }
.roi-capture-form .form-status { width: 100%; font-size: 13px; color: var(--ink-500); }
.roi-walkthrough-link {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.roi-walkthrough-link:hover { text-decoration: underline; }

/* Payback band — the punchline: value vs cost, recomputed live */
.roi-payback { padding-top: 8px; }
.roi-payback-card { padding: 28px 32px; --pb-bar: #1C3A63; }
:root[data-theme="oled"] .roi-payback-card { --pb-bar: #2E5793; }
.roi-payback-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 2px;
}
.roi-payback-head strong {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--teal);
}
.roi-payback-head > div > span { font-size: 14px; color: var(--ink-700); margin-left: 8px; }
.roi-payback-sub { font-size: 13px; color: var(--ink-500); margin: 0; }
.roi-payback-label { font-size: 12px; font-weight: 600; color: var(--ink-700); margin: 22px 0 8px; }
.roi-payback-track {
  display: flex;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ink-200);
}
.roi-payback-cost { width: 2.4%; min-width: 6px; background: var(--ink-300); }
.roi-payback-upside {
  flex: 1;
  background: var(--pb-bar);
  display: flex;
  align-items: center;
  padding-left: 12px;
}
.roi-payback-upside span { font-size: 12px; font-weight: 500; color: #fff; }
.roi-payback-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 6px;
}
.roi-payback-divider { height: 1px; background: var(--ink-200); margin: 22px 0; }
.roi-payback-bar-row { margin-bottom: 14px; }
.roi-payback-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-700);
  margin-bottom: 5px;
}
.roi-payback-bar-head strong { color: var(--ink-900); font-weight: 600; }
.roi-payback-bar { height: 18px; border-radius: 8px; }
.roi-payback-bar-value { width: 100%; background: var(--pb-bar); }
.roi-payback-bar-cost { width: 2.4%; min-width: 8px; background: var(--ink-300); }
.roi-payback-note { font-size: 12px; color: var(--ink-500); line-height: 1.6; margin: 22px 0 0; }
.roi-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.roi-panel-head h2,
.roi-note-card h2 {
  font-size: 30px;
  line-height: 1.08;
  margin-top: 12px;
}
.roi-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.roi-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.roi-field span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.roi-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  background: white;
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 0 13px;
}
.roi-field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.roi-output-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 98px;
}
.roi-result-card strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.roi-result-card p {
  color: var(--ink-700);
  font-size: 13.5px;
  line-height: 1.55;
  min-height: 42px;
}
.roi-result-value {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
}
.roi-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 96px;
}
.roi-note-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.roi-note-card p {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
  margin-top: 14px;
}
.roi-note-card .btn { margin-top: 24px; }

.form-section { padding-bottom: 96px; }
.form-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 36px;
}
.form-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-700);
}
.form-card input,
.form-card select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--surface);
  color: var(--ink-900);
}
.form-card input:focus,
.form-card select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.form-card .field { margin-bottom: 18px; }
.form-card .btn { width: 100%; }
.form-note {
  color: var(--ink-500);
  font-size: 12px;
  margin-top: 18px;
  text-align: center;
}
.form-error {
  display: none;
  color: var(--danger);
  font-size: 13px;
  margin-top: 16px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--ink-400);
  font-size: 12px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-200);
}

.not-found-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

footer.site-footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.6);
  padding: 64px 0 40px;
  margin-top: 96px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
footer.site-footer .cc-wordmark { color: white; font-size: 22px; }
footer.site-footer .cc-wordmark em { color: var(--primary-light); }
footer.site-footer .lead {
  color: rgba(255,255,255,.55);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  margin-top: 16px;
}
footer.site-footer h4 {
  color: white;
  font-family: var(--font-body);
  font-size: 13px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
footer.site-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
footer.site-footer li a:hover { color: white; }
.footer-base {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

@media (max-width: 960px) {
  nav.top .container { align-items: flex-start; }
  nav.top .links { display: none; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .roi-hero-grid,
  .roi-calculator,
  .roi-notes { grid-template-columns: 1fr; }
  .roi-output-panel { position: static; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-featured { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  nav.top .container {
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 14px;
  }
  nav.top .right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  nav.top .right .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
  }
  .cc-wordmark { font-size: 20px; }
  .page-head { padding: 58px 0 30px; }
  .page-head h1 { font-size: clamp(34px, 12vw, 46px); }
  .page-head p.lead { font-size: 16px; }
  .legal { padding-bottom: 64px; }
  .card { padding: 24px; }
  .plan { padding: 26px; }
  .enterprise-card { align-items: stretch; }
  .enterprise-card .btn { width: 100%; }
  .roi-panel-head { flex-direction: column; align-items: stretch; }
  .roi-panel-head .btn { width: 100%; }
  .roi-input-grid { grid-template-columns: 1fr; }
  .roi-summary-card { padding: 26px; }
  .roi-result-card strong { font-size: 36px; }
  footer.site-footer {
    padding: 48px 0 34px;
    margin-top: 64px;
  }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-base { flex-direction: column; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  nav.top .right { flex-direction: column; align-items: stretch; }
  .btn-lg { height: 48px; padding: 0 20px; font-size: 14px; }
  .plan .price { font-size: 38px; }
}
