/* Maximal marketing site — brand tokens per docs/bd/maximal-screenshot-production-guide.md
   Light mode only · system-ui stack · rose #E11D48 wordmark/accent · slate palette */

:root {
  --page: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --faint: #94A3B8;
  --rose: #E11D48;
  --rose-tint: #FDF1F4;
  --rose-border: #FBCFE0;
  --navy: #0F172A;
  --navy-card: #1E293B;
  --ice: #CBD5E1;
  --green: #059669;
  --green-tint: #ECFDF5;
  --green-dark: #065F46;
  --green-on-dark: #34D399;
  --amber-tint: #FEF3C7;
  --amber-text: #92400E;
  --indigo: #4338CA;
  --indigo-tint: #EEF2FF;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(15, 23, 42, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.wordmark { font-size: 19px; font-weight: 800; color: var(--rose); letter-spacing: -0.4px; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.logo-icon { height: 24px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--rose); color: #fff; }
.btn-primary:hover { background: #BE123C; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--faint); }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 8px; }

/* ---------- shared ---------- */
section { padding: 88px 0; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 14px;
}
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
h2 { font-size: clamp(26px, 3.5vw, 36px); line-height: 1.15; letter-spacing: -0.6px; font-weight: 800; margin-bottom: 14px; }
.lede { font-size: 17px; color: var(--muted); max-width: 640px; }
.section-head { margin-bottom: 40px; }


.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; box-shadow: var(--shadow);
}

/* ---------- hero ---------- */
.hero { padding: 96px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero .sub { font-size: 19px; color: var(--muted); margin: 22px 0 10px; max-width: 560px; }
.hero .oneliner { font-size: 14px; color: var(--faint); margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-video {
  width: 100%; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: block;
}
.case-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.chip {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px;
}
.chips-tail { font-size: 13px; color: var(--faint); }

/* ---------- problem ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem-card h3 { font-size: 16px; margin-bottom: 8px; }
.problem-card h3::before { content: "■ "; color: var(--rose); font-size: 11px; vertical-align: 2px; }
.problem-card p { font-size: 14px; color: var(--muted); }
.result-card { background: var(--rose); border-color: var(--rose); color: #fff; }
.result-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: #FECDD3; margin-bottom: 10px; }
.result-card p { font-weight: 600; font-size: 15px; }

/* ---------- comparison ---------- */
.compare-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
table.compare { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare tr:last-child td { border-bottom: none; }
.compare thead th { font-size: 12.5px; color: var(--muted); background: var(--page); }
.compare thead th.max-col { background: var(--rose); color: #fff; font-size: 13px; }
.compare td:first-child { font-weight: 600; }
.compare td { color: var(--muted); }
.compare td.max-col { background: var(--rose-tint); color: var(--rose); font-weight: 600; }
.compare-tagline {
  margin-top: 18px; background: var(--navy); color: var(--ice); border-radius: 8px;
  padding: 16px 22px; font-size: 15px;
}
.compare-tagline strong { color: #fff; }

/* ---------- agents ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.agent-card .agent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.agent-dot {
  width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.agent-card h3 { font-size: 17px; }
.agent-card p { font-size: 14px; color: var(--muted); }

/* ---------- governance (dark) ---------- */
.dark { background: var(--navy); color: #fff; }
.dark .kicker { color: #FB7185; }
.dark .lede { color: var(--ice); }
.gov-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; margin: 44px 0 30px; }
.gov-step { background: var(--navy-card); border: 1px solid #334155; border-radius: 10px; padding: 24px; }
.gov-step.gate { background: var(--rose); border-color: var(--rose); }
.gov-step .tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--faint); }
.gov-step.gate .tag { color: #FECDD3; }
.gov-step h3 { font-size: 19px; margin: 6px 0 8px; }
.gov-step p { font-size: 13.5px; color: var(--ice); }
.gov-step.gate p { color: #FFE4E6; }
.gov-arrow { align-self: center; color: var(--rose); font-size: 24px; font-weight: 800; }
.audit-note {
  background: #123B2E; border: 1px solid #1D5B45; border-radius: 8px; padding: 16px 22px;
  font-size: 14.5px; color: var(--ice);
}
.audit-note strong { color: var(--green-on-dark); }

/* ---------- surfaces ---------- */
.surfaces-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
.surface-row { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border); }
.surface-row:last-child { border-bottom: none; }
.surface-num {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none;
  align-self: center;
}
.surface-row.hot .surface-num { background: var(--rose); }
.surface-row h3 { font-size: 16px; display: inline; }
.surface-row span { font-size: 14px; color: var(--muted); }
.pull-quote { font-size: 16px; font-style: italic; margin-bottom: 18px; }
.navy-note { background: var(--navy); color: var(--ice); border: none; font-size: 14.5px; }

/* ---------- journey ---------- */
.journey-grid { display: grid; grid-template-columns: 0.62fr 1.38fr; gap: 48px; align-items: start; }
.phone-demo { width: 100%; max-width: 316px; margin: 0 auto; position: relative; }
.phone-frame {
  width: 100%; max-width: 300px; border-radius: 26px; border: 8px solid var(--navy);
  box-shadow: var(--shadow); display: block; margin: 0 auto;
}
.phone-demo-label {
  position: absolute; z-index: 2; top: 16px; left: 50%; transform: translateX(-50%);
  padding: 5px 10px; border-radius: 999px; background: var(--navy); color: #fff;
  border: 1px solid rgba(255,255,255,.35); box-shadow: 0 2px 8px rgba(15,23,42,.2);
  font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1; white-space: nowrap;
  text-transform: uppercase; pointer-events: none;
}
table.journey { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.journey th, .journey td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.journey thead th { font-size: 12px; color: var(--muted); background: var(--page); }
.journey thead th.max-col { background: var(--green); color: #fff; }
.journey td:first-child { font-weight: 600; white-space: nowrap; }
.journey td { color: var(--muted); }
.journey td.max-col { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }

/* ---------- numbers (dark) ---------- */
.numbers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big-stat { font-size: clamp(52px, 7vw, 78px); font-weight: 800; letter-spacing: -2px; line-height: 1; }
.big-stat small { font-size: 20px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.fte { font-size: 21px; font-weight: 700; color: var(--green-on-dark); margin: 14px 0 12px; }
.numbers-note { color: var(--ice); font-size: 14.5px; max-width: 420px; }
.hours-row { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid #334155; font-size: 15px; }
.hours-row:last-child { border-bottom: none; }
.hours-row b { color: var(--green-on-dark); white-space: nowrap; }
.fineprint { margin-top: 40px; font-size: 12px; color: var(--faint); }

/* ---------- economics ---------- */
.econ-card .tag { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 10px; }
.econ-card h3 { font-size: 18px; margin-bottom: 8px; }
.econ-card p { font-size: 14px; color: var(--muted); }
.econ-card.hot { background: var(--green); border-color: var(--green); }
.econ-card.hot .tag { color: #A7F3D0; }
.econ-card.hot h3 { color: #fff; }
.econ-card.hot p { color: #D1FAE5; }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-card h3 { font-size: 15.5px; color: var(--green); margin-bottom: 6px; }
.trust-card p { font-size: 14px; color: var(--muted); }

/* ---------- intelligence ---------- */
.intel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.stat-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-chip { background: var(--indigo-tint); border: 1px solid #C7D2FE; border-radius: 8px; padding: 14px; text-align: center; }
.stat-chip b { display: block; font-size: 26px; color: var(--indigo); }
.stat-chip span { font-size: 12px; color: var(--muted); }
.models-card { background: var(--navy); color: var(--ice); border: none; }
.models-card h3 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.models-card p { font-size: 14.5px; }
.intel-note { font-size: 13px; font-style: italic; color: var(--muted); margin-top: 16px; }

/* ---------- product screenshots ---------- */
.shot-section { padding-top: 0; }
.shot {
  display: block; width: 100%; height: auto; border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.10);
}
.shot-caption { text-align: center; font-size: 13px; color: var(--faint); margin-top: 14px; }
.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.shot-grid figure { margin: 0; }
.shot-grid figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.shot-grid figcaption b { color: var(--text); }
.dark .shot { border-color: #334155; }
.gov-shot { margin-top: 30px; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: 1fr; } }

/* contract-name mapping, stated once per copy source §3.1 */
.agent-note { display: block; margin-top: 8px; font-size: 12.5px; color: var(--faint); }

.surfaces-next { margin-top: 22px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.surfaces-next b { color: var(--text); }

/* ---------- ladder (how customers start) ---------- */
.ladder-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rung { display: flex; flex-direction: column; }
.rung-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint);
  margin-bottom: 10px;
}
.rung h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 4px; }
.rung p { font-size: 13.5px; color: var(--muted); }
.rung.entry { border-color: var(--rose-border); background: var(--rose-tint); }
.ladder-note { margin-top: 22px; font-size: 13.5px; color: var(--faint); }

/* ---------- three ways money goes missing ---------- */
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.way .way-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.way ul { margin: 10px 0 0; padding-left: 18px; }
.way li { font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }

/* ---------- portfolio firewall ---------- */
.firewall {
  margin-top: 22px; padding: 16px 20px; border-radius: 8px;
  background: var(--navy); color: var(--ice); font-size: 14px;
}
.firewall strong { color: #fff; }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* flex column so the LinkedIn row bottom-aligns across cards of unequal bio length */
.member { display: flex; flex-direction: column; }
.member .avatar {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  object-fit: cover;
  background: var(--rose-tint); border: 1px solid var(--rose-border); color: var(--rose);
  font-size: 17px; font-weight: 800; letter-spacing: 0.04em;
}
.member h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; }
.member .role {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rose); margin: 7px 0 12px;
}
.member p { font-size: 14.5px; color: var(--muted); }
.member .li {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; padding-top: 18px; align-self: flex-start;
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.member .li svg { width: 14px; height: 14px; flex-shrink: 0; }
.member .li:hover { color: var(--rose); }

/* ---------- cta ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); }
.cta .lede { margin: 0 auto 34px; }
.cta-tag { margin-top: 44px; font-size: 15px; font-weight: 700; color: var(--rose); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 34px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-inner p { font-size: 13px; color: var(--faint); }
.footer-links { display: flex; gap: 16px; margin-top: 6px; justify-content: flex-end; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- legal pages ---------- */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-page {
  flex: 1; padding: 72px 0 104px;
  background:
    radial-gradient(circle at 82% 4%, rgba(225, 29, 72, 0.08), transparent 28rem),
    var(--page);
}
.legal-shell { max-width: 920px; }
.legal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(32px, 6vw, 64px); box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.legal-eyebrow {
  margin-bottom: 12px; color: var(--rose); font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.legal-page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.legal-content { max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--text); }
.legal-content .legal-updated {
  margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border);
  color: var(--faint); font-size: 14px;
}
.legal-content h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.3px; }
.legal-content p { margin-bottom: 16px; color: var(--muted); }
.legal-content ul, .legal-content ol { margin: 0 0 20px 22px; color: var(--muted); }
.legal-content li { margin-bottom: 10px; padding-left: 4px; }
.legal-content strong { color: var(--text); }
.legal-content a { color: var(--rose); font-weight: 650; text-underline-offset: 3px; }
.legal-content a:hover { color: #BE123C; }

/* ---------- modal and demo form ---------- */
.modal-overlay[hidden] { display: none; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { position: relative; width: 100%; max-width: 460px; transform: translateY(16px) scale(0.98); transition: transform 0.25s ease; }
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; z-index: 10; padding: 4px; border-radius: 4px; }
.modal-close:hover { color: var(--text); background: var(--border); }
.demo-form-wrapper { text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); color: var(--text); }
.demo-form .form-group { margin-bottom: 20px; }
.demo-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.demo-form input, .demo-form textarea, .demo-form select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; background: #fff; color: var(--text); }
.demo-form input:focus, .demo-form textarea:focus, .demo-form select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-tint); }
.demo-success { text-align: center; padding: 24px 0; }
.demo-success h3 { color: var(--green); margin-bottom: 8px; font-size: 20px; }
.demo-success p { color: var(--muted); font-size: 15px; }
.hp-field { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .hero-grid, .surfaces-grid, .journey-grid, .numbers-grid, .intel-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .gov-flow { grid-template-columns: 1fr; }
  .gov-arrow { transform: rotate(90deg); justify-self: center; }
  .trust-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .ladder-grid { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .stat-chips { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .footer-links { justify-content: flex-start; }
  .foot-inner > div:last-child { text-align: left !important; }
  .legal-page { padding: 40px 0 72px; }
  .legal-card { border-radius: 12px; }
}
