:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --text: #111827;
  --muted: #526171;
  --line: #d8dee8;
  --dark: #111827;
  --dark-2: #1f2937;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --success: #047857;
  --warning: #b45309;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 40px)); }
.centered { text-align: center; }
.skip-link { position: absolute; left: -999px; top: auto; }
.skip-link:focus { left: 20px; top: 20px; z-index: 9999; background: var(--surface); padding: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.7);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--dark); color: #fff; font-weight: 900; }
.brand-text { font-size: 0.96rem; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.site-nav a { color: #374151; font-weight: 650; }
.site-nav a:hover, .site-nav .active { color: var(--accent); }
.nav-cta { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; }

.hero, .page-hero { padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr); gap: 36px; align-items: start; }
.hero-grid .hero-copy { grid-column: 1; grid-row: 1 / span 2; }
.hero-grid .hero-panel { grid-column: 2; grid-row: 1; }
.hero-grid .hero-visual { grid-column: 2; grid-row: 2; margin-top: 18px; display: block; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-grid .hero-copy, .hero-grid .hero-panel, .hero-grid .hero-visual { grid-column: 1; grid-row: auto; } }

.hero h1, .page-hero h1 { font-size: clamp(2.55rem, 7vw, 5.15rem); line-height: 0.95; letter-spacing: -0.07em; margin: 0 0 24px; }
.page-hero h1 { font-size: clamp(2.35rem, 5vw, 3.4rem); white-space: nowrap; }
.hero-subtitle, .page-hero p { font-size: 1.2rem; max-width: 720px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 900; margin-bottom: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.centered-actions { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--accent); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 0 14px 35px rgba(37, 99, 235, 0.26); transition: transform 0.18s ease, background 0.18s ease; }
.button:hover { transform: translateY(-1px); background: var(--accent-dark); }
.button-secondary { background: var(--surface); color: var(--dark); border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { background: var(--surface-2); color: var(--dark); }
.button-light { background: #fff; color: var(--dark); box-shadow: 0 14px 35px rgba(255, 255, 255, 0.18); }
.button-small { padding: 10px 14px; font-size: 0.92rem; }
.button-secondary-dark { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.28); box-shadow: none; }

.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0; }
.chain span { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: #e0ebff; color: #1e40af; font-weight: 800; font-size: 0.88rem; }
.chain b { color: #64748b; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.hero-panel { position: relative; overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto auto; width: 170px; height: 170px; background: radial-gradient(circle, rgba(37,99,235,0.22), transparent 65%); }
.panel-label { color: var(--success); font-weight: 900; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.check-list { padding: 0; list-style: none; margin: 18px 0; }
.check-list li { position: relative; padding-left: 30px; margin: 10px 0; color: #374151; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.check-list.large li { font-size: 1.05rem; }
.text-link { color: var(--accent); font-weight: 800; }

.section { padding: 78px 0; }
.section-tight { padding: 48px 0; }
.alt { background: #edf2f9; }
.split, .two-col { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 46px; align-items: start; }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.045em; margin: 0 0 18px; }
.section-heading { text-align: center; max-width: 780px; margin: 0 auto 38px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mini-card { background: #fff; border: 1px solid var(--line); padding: 18px; border-radius: 14px; font-weight: 750; }
.deliverable-grid, .process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.deliverable-grid h3, .process-grid h3 { margin-top: 0; }
.centered-cta { text-align: center; margin-top: 34px; }
.use-case-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.use-case-list a, .use-case-list span { background: #fff; border: 1px solid var(--line); padding: 16px 18px; border-radius: 14px; font-weight: 800; }
.use-case-list a { color: var(--accent); }
.cta-band { background: var(--dark); color: #fff; }
.cta-band p { color: rgba(255,255,255,0.78); }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }

.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.dark-hero { background: radial-gradient(circle at top right, rgba(37,99,235,0.35), transparent 35%), var(--dark); color: #fff; }
.dark-hero p { color: rgba(255,255,255,0.78); }
.dark-hero .eyebrow { color: #93c5fd; }
.price-card, .risk-card, .proof-card { border-top: 5px solid var(--accent); }
.small { font-size: 0.92rem; }
.timeline { display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.timeline > div { display: grid; grid-template-columns: 95px 1fr; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.timeline span, .process-grid span, .method-card span { color: var(--accent); font-weight: 950; letter-spacing: 0.1em; }
.timeline > div > h3,
.timeline > div > p {
  grid-column: 2;
}
.timeline h3 { margin: 0; }
.timeline p { margin: 6px 0 0; }
.process-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.method-stack { display: grid; gap: 18px; max-width: 940px; }
.method-card { display: grid; grid-template-columns: 70px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.method-card h2 { font-size: 1.45rem; letter-spacing: -0.02em; }
.quote { font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.18; color: var(--dark); font-weight: 900; letter-spacing: -0.045em; }
.score-pill { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: #e0ebff; color: #1e40af; font-weight: 900; }

/* === Trust badges === */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges .badge { display: inline-flex; border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; font-weight: 800; background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.form-section { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr); gap: 34px; align-items: start; }
.lead-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.on-dark .lead-form { box-shadow: 0 20px 70px rgba(0,0,0,0.25); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 800; color: #253041; font-size: 0.95rem; }
input, textarea, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 12px 13px; font: inherit; color: var(--text); background: #fff; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(37, 99, 235, 0.18); border-color: var(--accent); }
textarea { resize: vertical; }
.lead-form > label, .lead-form .checkbox-line, .form-actions { margin-top: 14px; }
.checkbox-line { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 650; }
.checkbox-line input { width: auto; margin-top: 5px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { margin: 0; font-size: 0.92rem; }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }

.site-footer { background: #0b1220; color: #fff; padding: 56px 0 24px; }
.site-footer p { color: rgba(255,255,255,0.68); }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.site-footer h3 { margin-top: 0; }
.site-footer a { display: block; color: rgba(255,255,255,0.82); margin: 9px 0; white-space: nowrap; font-size: 13px; }
.footer-brand .brand-mark { background: #fff; color: #0b1220; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px; margin-top: 30px; color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-bottom a { display: inline; font-size: inherit; margin: 0; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 20px; right: 20px; top: 76px; display: none; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .hero-grid, .split, .two-col, .form-section, .cta-grid { grid-template-columns: 1fr; }
  .deliverable-grid, .process-grid, .footer-grid { grid-template-columns: 1fr; }
  .method-card { grid-template-columns: 1fr; gap: 4px; }
  .form-grid, .problem-grid { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 1fr; }
  .hero, .page-hero { padding: 60px 0 48px; }
  .footer-bottom { flex-direction: column; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .use-case-list { grid-template-columns: 1fr; }
}

/* === Funnel page utilities (scorecard, booking, dashboard, case-study) === */
.score-output { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; margin: 24px 0; }
.score-circle { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #60a5fa); color: #fff; font-size: 42px; font-weight: 900; box-shadow: 0 14px 35px rgba(37,99,235,0.26); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
th { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.badge { display: inline-flex; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 900; background: #e0ebff; color: #1e40af; }
.badge.red { background: #fef2f2; color: #dc2626; }
.badge.yellow { background: #fffbeb; color: #b45309; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { font-size: 42px; font-weight: 900; color: var(--accent); letter-spacing: -0.05em; margin: 0 0 6px; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--success); padding: 16px; border-radius: 14px; background: #f0fdf4; }
.dark-hero .score-circle { background: linear-gradient(135deg, #93c5fd, #60a5fa); color: var(--dark); }
.dark-hero .stat { color: #93c5fd; }

/* === Spine-stage tags (Phase 1 coherence) === */
.stage-tag { display: inline-flex; font-family: ui-monospace, 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; margin-bottom: 8px; }
.stage-pain { background: #fef3f2; color: #c2410c; border: 1px solid #fecaca; }
.stage-spec { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.stage-ctrl { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.stage-evid { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.stage-out { background: #fffbeb; color: #a16207; border: 1px solid #fde68a; }
.dark-hero .stage-tag, .site-footer .stage-tag { font-size: 9px; padding: 2px 7px; margin-bottom: 0; margin-left: 6px; }
.card .stage-tag { margin-bottom: 10px; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #0f172a; color: #e2e8f0; padding: 14px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; z-index: 9999; border-top: 1px solid rgba(255,255,255,0.1); box-shadow: 0 -2px 12px rgba(0,0,0,0.25); }
.cookie-banner p { margin: 0; flex: 1; font-size: 0.85rem; min-width: 200px; }
.cookie-banner p a { color: #93c5fd; }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
