/* The Momentum Index — shared styles */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fa;
  --bg-warm: #f7f3ea;          /* warm cream — adds tonal variety */
  --bg-warm-strong: #f1ebdb;
  --text: #0a0a0a;
  --text-muted: #5b6472;
  --text-subtle: #9ca3af;
  --border: #e7e9ee;
  --border-strong: #d4d8e0;
  --border-warm: #e6dfcb;

  --accent: #3b6ef5;
  --accent-hover: #2856e0;
  --accent-soft: rgba(59, 110, 245, 0.08);
  --accent-border: rgba(59, 110, 245, 0.22);

  --dark: #0b1120;
  --dark-card: #111a2e;
  --dark-border: #1f2a44;
  --dark-text-muted: #9aa3b8;

  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;

  --maxw: 1180px;
  --maxw-narrow: 920px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(11, 17, 32, 0.14);
  --shadow-hero: 0 40px 100px rgba(11, 17, 32, 0.20);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}

a { color: var(--accent); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--accent-hover); }

em.accent { color: var(--accent); font-style: italic; font-weight: 700; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 32px; position: relative; }

/* Content sections are narrower than hero/dashboard/CTA — hero stays wide */
section > .wrap { max-width: 960px; }
section.hero > .wrap,
section.subhero > .wrap,
section.dash-section > .wrap,
section.tight > .wrap { max-width: var(--maxw); }
section { padding: 112px 0; position: relative; }
section.alt { background: var(--bg-alt); }
section.warm { background: var(--bg-warm); }
section.dark { background: var(--dark); color: #fff; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark .eyebrow { color: #6e93f7; }
section.dark p { color: var(--dark-text-muted); }
section.tight { padding: 80px 0; }

.center { text-align: center; }
.center .eyebrow, .center h1, .center h2, .center .lede, .center .section-lede, .center .hero-cta { margin-left: auto; margin-right: auto; }
.center .hero-cta { justify-content: center; }

/* Dot-grid backgrounds (subtle depth) */
.grid-bg, .grid-bg-dark {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
/* Soft gradient glow — atmospheric depth that spans the page width */
.grid-bg::before, .grid-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.grid-bg::before {
  width: 140%; height: 640px;
  top: -240px; left: -20%;
  background: radial-gradient(ellipse at center, rgba(59, 110, 245, 0.22) 0%, rgba(59, 110, 245, 0.07) 38%, transparent 68%);
}
.grid-bg::after {
  width: 110%; height: 440px;
  bottom: -160px; left: -5%;
  background: radial-gradient(ellipse at center, rgba(212, 168, 100, 0.14) 0%, rgba(212, 168, 100, 0.05) 45%, transparent 72%);
}

.grid-bg-dark::before, .grid-bg-dark::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.grid-bg-dark::before {
  width: 140%; height: 560px;
  top: -200px; left: -20%;
  background: radial-gradient(ellipse at center, rgba(110, 147, 247, 0.28) 0%, rgba(110, 147, 247, 0.08) 42%, transparent 72%);
}
.grid-bg-dark::after {
  width: 100%; height: 360px;
  bottom: -120px; left: 0;
  background: radial-gradient(ellipse at center, rgba(110, 147, 247, 0.16) 0%, transparent 72%);
}
section > .wrap, section > .wrap-narrow { position: relative; z-index: 1; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15.5px; color: var(--text);
  letter-spacing: -0.015em;
}
.brand-mark {
  display: inline-flex; align-items: flex-end; justify-content: center;
  width: 22px; height: 22px;
  color: var(--accent);
}
.brand-mark svg { width: 22px; height: 22px; display: block; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta-group { display: flex; align-items: center; gap: 22px; }
.nav-login { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-login:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 14px;
  border-radius: 8px; border: 1px solid var(--accent);
  letter-spacing: -0.005em;
  transition: background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(59,110,245,0.32); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); border-color: var(--text); box-shadow: var(--shadow-sm); }
.btn-link {
  background: transparent; color: var(--accent); border: none; padding: 0;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-link:hover { background: transparent; color: var(--accent-hover); text-decoration: none; }
.btn-link .arr { transition: transform 120ms ease; display: inline-block; }
.btn-link:hover .arr { transform: translateX(3px); }
.btn-on-dark { background: #fff; color: var(--dark); border-color: #fff; }
.btn-on-dark:hover { background: #f2f4f8; color: var(--dark); box-shadow: 0 4px 14px rgba(255,255,255,0.18); }

/* Hero */
.hero {
  padding-top: 120px;
  padding-bottom: 56px;
  overflow: hidden;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 28px;
}
.pill .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero h1 {
  max-width: 1120px;
  font-size: clamp(36px, 4.6vw, 54px);
}
.hero .lede { max-width: 820px; }

.lede {
  font-size: 19px; color: var(--text-muted);
  max-width: 640px; margin: 0 0 36px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section headers */
.eyebrow {
  color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin: 0 0 16px;
  display: inline-block;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 20px;
  color: var(--text);
}
h2 em.accent { color: inherit; font-style: normal; font-weight: inherit; }
section.dark h2 em.accent { color: inherit; }
h3 {
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-lede {
  color: var(--text-muted); font-size: 17px;
  margin: 0 0 48px; line-height: 1.6;
}

/* Dashboard wrapper offset upward into hero space */
.dash-section {
  padding-top: 0;
  padding-bottom: 96px;
  margin-top: -40px;
}

/* Teaser cards (3-up) */
.teaser-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.teaser {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
section.warm .teaser { background: #fffdf7; border-color: var(--border-warm); }
.teaser:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.teaser-num {
  font-size: 12px; color: var(--accent);
  font-weight: 700; letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: 'Inter', monospace;
}
.teaser p {
  color: var(--text-muted); font-size: 15px;
  margin: 0 0 18px; line-height: 1.6;
}

/* Dashboard card (dark surface) */
.dash-card {
  background: #0d1621;
  color: #fff;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-hero);
  position: relative;
}
.dash-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.dash-title { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.005em; }
.dash-scroll-hint {
  display: none;
  margin: -8px 0 10px;
  color: #8b92a5;
  font-size: 11px;
}
.dash-tag {
  display: inline-block; padding: 5px 11px;
  background: rgba(59,110,245,0.14);
  border: 1px solid rgba(59,110,245,0.32);
  color: #8eacfa;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 999px;
}
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  font-size: 10px; font-weight: 600;
  color: #6b7388;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 12px 10px;
  border-bottom: 1px solid var(--dark-border);
}
.dash-table th:first-child { padding-left: 2px; }
.dash-table th.num, .dash-table td.num { text-align: center; }
.dash-table td {
  padding: 16px 10px;
  border-bottom: 1px solid rgba(31, 42, 68, 0.5);
  font-size: 13.5px;
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table td:first-child {
  padding-left: 2px; color: #fff; font-weight: 500;
}
.dash-table td.num { font-weight: 600; font-variant-numeric: tabular-nums; }
.v-green { color: #4ade80; }
.v-orange { color: #fbbf24; }
.v-red { color: #f87171; }
.trend-up { color: #4ade80; }
.trend-down { color: #f87171; }
.trend-flat { color: #fbbf24; }
.dash-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--dark-border);
  font-size: 11.5px; color: #8b92a5;
}
.legend-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 8px; vertical-align: middle;
}
.ld-green { background: #4ade80; }
.ld-orange { background: #fbbf24; }
.ld-red { background: #f87171; }

/* Quote / wedge block (used on dark "why" teaser) */
.wedge-block {
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 880px;
}
.wedge-block h1,
.wedge-block h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 880px;
}
.wedge-block .wedge-sub {
  color: var(--dark-text-muted); font-size: 17px;
  max-width: 100%; margin: 0 0 32px; line-height: 1.65;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: 60px 32px;
  background: var(--dark); color: #fff;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.cta-block .grid-bg-dark { opacity: 0.6; }
.cta-block > * { position: relative; z-index: 1; }
.cta-block .eyebrow { color: #6e93f7; }
.cta-block h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0 auto 14px;
  color: #fff;
  max-width: 640px;
}
.cta-block p {
  color: #b0b6c4; font-size: 15.5px;
  max-width: 520px; margin: 0 auto 28px; line-height: 1.6;
}

/* Footer */
footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-brand {
  font-weight: 700; font-size: 15.5px;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.foot-tag {
  color: var(--text-muted); font-size: 14px;
  max-width: 320px; line-height: 1.55;
  margin: 0;
}
.foot-col h5 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin: 0 0 10px; }
.foot-col a { color: var(--text-muted); font-size: 14px; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  color: var(--text-subtle); font-size: 13px;
}

/* Pull-quote callout — for emphasis between sections */
.pullquote {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 28px;
}
section.dark .pullquote { color: #fff; border-left-color: #8eacfa; }

/* Stat row for economics section */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 16px;
}
.stat {
  border-top: 1px solid var(--dark-border);
  padding-top: 22px;
}
.stat .stat-label {
  font-size: 11px; color: #8eacfa;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  margin: 0 0 12px;
}
.stat .stat-value {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; color: #fff;
  margin: 0 0 12px; line-height: 1.3;
}
.stat .stat-note {
  font-size: 14.5px; color: var(--dark-text-muted);
  margin: 0; line-height: 1.55;
}
@media (max-width: 900px) {
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
}

/* Fit comparison cards (used on Why "Where it fits" section) */
.fit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.fit-item {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.fit-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 16px;
  padding: 7px 10px;
  text-transform: uppercase;
}
.fit-pill.featured {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}
.fit-item.featured {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(59, 110, 245, 0.08);
}
.fit-item .fit-source {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-subtle);
  margin: 0 0 14px;
}
.fit-item.featured .fit-source { color: var(--accent); }
.fit-item h4 {
  font-size: 17px; font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.fit-item p {
  color: var(--text-muted); font-size: 14.5px;
  margin: 0; line-height: 1.55;
}
@media (max-width: 900px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* "What you have today" three-up contrast list (Why page) */
.missing-list {
  display: grid; gap: 0;
  margin-top: 40px;
}
.missing-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.missing-item:first-child { padding-top: 0; border-top: none; }
.missing-item:last-child { padding-bottom: 0; }
.missing-item .missing-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.missing-item h3 {
  font-size: 22px; font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.missing-item p {
  color: var(--text-muted); font-size: 16px;
  line-height: 1.65; margin: 0;
  max-width: 720px;
}
section.warm .missing-item { border-top-color: var(--border-warm); }

/* Persona cards (used on Who it's for) */
.persona-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.persona-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
section.warm .persona-card { background: #fffdf7; border-color: var(--border-warm); }
.persona-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.persona-card .persona-role {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.persona-card h3 {
  font-size: 20px;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.persona-card p {
  color: var(--text-muted); font-size: 15px;
  line-height: 1.6; margin: 0;
}
.persona-card .persona-question {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted);
  line-height: 1.55;
}
.persona-card .persona-question strong { color: var(--text); font-weight: 600; }

/* Spotlight (PE/boards on Who it's for) */
.spotlight {
  margin-top: 24px;
  padding: 44px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.spotlight .grid-bg-dark { opacity: 0.5; }
.spotlight > * { position: relative; z-index: 1; }
.spotlight .spotlight-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #8eacfa;
  margin: 0 0 12px;
}
.spotlight h3 {
  font-size: 26px; color: #fff;
  margin: 0 0 18px; letter-spacing: -0.02em;
  max-width: 760px;
}
.spotlight p {
  font-size: 16.5px;
  color: var(--dark-text-muted);
  max-width: 760px;
  margin: 0 0 14px;
  line-height: 1.65;
}
.spotlight p:last-child { margin-bottom: 0; }

/* Engagement inclusions list */
.includes-list {
  display: grid; gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.include-row {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px; padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.include-row h4 {
  font-size: 15px; font-weight: 600;
  margin: 0; letter-spacing: -0.005em;
  color: var(--text);
}
.include-row p {
  font-size: 15px; color: var(--text-muted);
  margin: 0; line-height: 1.6;
}

/* Forms (contact, login) */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row .form-group { margin-bottom: 0; }
.form-group {
  display: block;
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}
.form-hint {
  font-size: 13px;
  color: var(--text-subtle);
  margin: 8px 0 0;
}
.form-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition: background 120ms ease, box-shadow 120ms ease;
}
.form-submit:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(59,110,245,0.32);
}

/* Contact split layout */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-side h3 { font-size: 22px; margin: 0 0 14px; letter-spacing: -0.015em; }
.contact-side p { color: var(--text-muted); font-size: 16px; margin: 0 0 18px; line-height: 1.65; }
.contact-side .contact-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-side .contact-item:last-child { border-bottom: none; }
.contact-side .contact-item h5 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.contact-side .contact-item p { margin: 0; font-size: 15px; }

/* Login auth shell */
.auth-shell {
  min-height: calc(100vh - 140px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.auth-shell .grid-bg {
  position: absolute; inset: 0;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.auth-card .auth-mark {
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  font-weight: 700; font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.015em;
}
.auth-card .auth-mark .brand-mark { width: 22px; height: 22px; }
.auth-card .auth-mark .brand-mark svg { width: 22px; height: 22px; }
.auth-card h2 {
  font-size: 22px; margin: 0 0 6px;
  text-align: center; letter-spacing: -0.02em;
}
.auth-card .auth-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  margin: 0 0 32px;
  text-align: center;
}
.auth-links {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
}
.auth-links a { color: var(--text-muted); font-weight: 500; }
.auth-links a:hover { color: var(--accent); }
.auth-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.auth-footer a { font-weight: 600; }

@media (max-width: 900px) {
  .persona-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .include-row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .form-card { padding: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-row .form-group { margin-bottom: 20px; }
  .auth-card { padding: 36px 28px; }
  .spotlight { padding: 32px; }
}

/* Proof grid — 4-up 2x2 short items (used on Why teaser on home) */
.proof-sub {
  margin-top: 36px; margin-bottom: 0;
  font-size: 12px; font-weight: 600;
  color: var(--text-subtle);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.proof-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.proof-item {
  padding: 24px 26px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
section.warm .proof-item { background: #fffdf7; border-color: var(--border-warm); }
section.alt .proof-item { background: var(--bg); }
.proof-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.proof-item h4 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.proof-item p {
  color: var(--text-muted); font-size: 14.5px;
  margin: 0; line-height: 1.55;
}

/* Who-it's-for bullet list (used on home) */
.who-bullets {
  display: grid; gap: 0;
  margin-top: 32px;
}
.who-bullet {
  display: grid; grid-template-columns: 10px 1fr;
  gap: 18px; align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
section.alt .who-bullet { border-bottom-color: var(--border); }
.who-bullet:first-child { padding-top: 0; }
.who-bullet:last-child { border-bottom: none; padding-bottom: 0; }
.who-bullet-mark {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 10px;
}
.who-bullet-text {
  font-size: 16.5px; line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}
.who-bullet-text strong {
  color: var(--text); font-weight: 600;
}

/* Sub-page hero (slimmer than home) */
.subhero {
  padding-top: 88px;
  padding-bottom: 80px;
  overflow: hidden;
  position: relative;
}
.subhero h1 {
  font-size: clamp(36px, 4.6vw, 54px);
  max-width: 1120px;
  margin: 0 auto 22px;
}
.subhero .lede {
  margin-left: auto; margin-right: auto;
  max-width: 820px;
}

/* Dark economics hero used on the Why page */
.why-hero {
  padding-top: 96px;
  padding-bottom: 96px;
  overflow: hidden;
}
.why-hero .wedge-block {
  align-items: center;
  margin: 0 auto;
  max-width: 1040px;
}
.why-hero .wedge-block h1,
.why-hero .wedge-block h2 {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}
.why-hero .wedge-block .wedge-sub {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.why-hero .stat-row {
  text-align: left;
  margin-top: 36px;
}
.why-hero .fit-grid {
  text-align: left;
  margin-top: 42px;
}
.why-hero .fit-item,
.why-hero .fit-item.featured {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--dark-border);
  border-radius: 0;
  box-shadow: none;
  padding: 22px 0 0;
}
.why-hero .fit-item .fit-source,
.why-hero .fit-item.featured .fit-source {
  color: #8eacfa;
}
.why-hero .fit-pill {
  border-color: rgba(255,255,255,0.16);
  color: var(--dark-text-muted);
}
.why-hero .fit-pill.featured {
  background: rgba(110, 147, 247, 0.14);
  border-color: rgba(142, 172, 250, 0.42);
  color: #c8d6ff;
}
.why-hero .fit-item h4 {
  color: #fff;
}
.why-hero .fit-item p {
  color: var(--dark-text-muted);
}

/* Driver grid (2 cols x 3 rows on desktop, fall to 1 col on mobile) */
.driver-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.driver-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
section.alt .driver-card { background: var(--bg); }
section.warm .driver-card { background: #fffdf7; border-color: var(--border-warm); }
.driver-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.driver-card .driver-name {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
}
.driver-card .driver-num {
  font-size: 11px; color: var(--accent);
  font-weight: 700; letter-spacing: 0.12em;
  padding: 4px 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.driver-card h3 { margin: 0; font-size: 18px; }
.driver-card p {
  color: var(--text-muted); font-size: 14.5px;
  margin: 0; line-height: 1.6;
}
.driver-card .driver-signal {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-muted);
}
.driver-card .driver-signal strong { color: var(--text); font-weight: 600; }

/* Deployment matrix (2x2) */
.deploy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.deploy-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
section.warm .deploy-card { background: #fffdf7; border-color: var(--border-warm); }
.deploy-card .deploy-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}
.deploy-card .deploy-tag span {
  padding: 3px 9px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}
.deploy-card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.015em; }
.deploy-card p {
  color: var(--text-muted); font-size: 15px;
  margin: 0; line-height: 1.6;
}

/* Steps (deeper version of home teasers — numbered with description) */
.steps-detailed {
  display: grid; gap: 32px;
}
.step-row {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.step-row:first-child { padding-top: 0; }
.step-row:last-child { border-bottom: none; padding-bottom: 0; }
.step-row .step-num {
  font-size: 36px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.025em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.step-row h3 { font-size: 22px; margin: 0 0 12px; letter-spacing: -0.015em; }
.step-row p {
  color: var(--text-muted); font-size: 16px;
  margin: 0 0 12px; line-height: 1.65;
  max-width: 680px;
}
.step-row p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 900px) {
  .driver-grid, .deploy-grid { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .step-row .step-num { font-size: 28px; }
  .subhero { padding-top: 56px; padding-bottom: 56px; }
  section { padding: 80px 0; }
  .hero { padding-top: 80px; padding-bottom: 32px; }
  .dash-section { padding-bottom: 64px; margin-top: -24px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .dash-card { padding: 18px; }
  .dash-table { min-width: 820px; }
  .dash-section { overflow: hidden; }
  .dash-section .wrap { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
  .dash-card { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-table th, .dash-table td { padding: 10px 6px; font-size: 12.5px; }
  .cta-block { padding: 44px 24px; }
  .center h1, .center .lede { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 560px) {
  html, body { overflow-x: hidden; }
  section, header, footer { max-width: 100vw; overflow-x: hidden; }
  .wrap, .wrap-narrow { padding-left: 20px; padding-right: 20px; }
  .nav-inner { width: 100%; max-width: 100%; padding: 12px 16px; gap: 10px; }
  .brand { min-width: 0; font-size: 13.5px; gap: 7px; }
  .brand-mark, .brand-mark svg { width: 19px; height: 19px; }
  .nav-cta-group { margin-left: auto; flex: 0 0 auto; }
  .nav-cta-group .btn { padding: 8px 10px; font-size: 11px; white-space: nowrap; }
  .hero { padding-top: 64px; }
  .hero h1 { max-width: 100%; font-size: 36px; line-height: 1.08; }
  .hero .eyebrow { max-width: 320px; line-height: 1.5; }
  .hero .lede { font-size: 17px; }
  .dash-section .wrap { padding-left: 20px; padding-right: 20px; }
  .dash-card { border-radius: 12px; }
  .dash-head { align-items: flex-start; gap: 12px; }
  .dash-title { min-width: 190px; line-height: 1.45; }
  .dash-scroll-hint { display: block; }
  .why-hero { padding-top: 68px; padding-bottom: 68px; }
  .why-hero .wedge-block h1, .why-hero .wedge-block h2 { font-size: 34px; }
  .proof-grid { grid-template-columns: 1fr; }
  .platform { padding: 64px 0 !important; }
  .shot-hero .shot-view { height: 300px !important; }
  .shot-hero .shot-view iframe { transform: scale(0.34) !important; }
  .foot-grid { grid-template-columns: 1fr; }
}
