/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --black: #0E1116;
  --ink: #1A1F26;
  --ink-2: #3A434F;
  --ink-3: #5A6573;
  --line: #E5E8EC;
  --line-2: #EEF1F4;
  --bg: #FFFFFF;
  --bg-alt: #F8F9FB;
  --bg-yellow: #FFEFB0;
  --yellow: #FFC700;
  --yellow-deep: #F2A900;
  --orange: #FF6B35;
  --red: #DC2626;
  --teal: #0D9488;
  --blue: #2EB6E0;
  --max: 1180px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(14,17,22,0.04), 0 8px 24px rgba(14,17,22,0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ─── Top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.topbar nav { display: flex; align-items: center; gap: 24px; }
.topbar nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.topbar nav a:not(.btn):hover { color: var(--ink); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.05s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost-light:hover { border-color: #fff; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 800px 400px at 20% 0%, rgba(255,199,0,0.18), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 30%, rgba(46,182,224,0.10), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 740px;
  margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column; gap: 6px; }
.hero-stats strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-stats span { font-size: 13px; color: var(--ink-3); }

/* ─── Section base ────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section.section-dark { background: var(--ink); color: #D8DDE4; }
.section.section-light { background: var(--bg); }
.section.section-light.alt { background: var(--bg-alt); }
.section.section-yellow { background: var(--bg-yellow); }
.section h2 {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.15;
  max-width: 860px;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section h2.h-on-dark { color: #fff; }
.section-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 760px;
  margin-bottom: 48px;
  line-height: 1.6;
}
.section-dark .section-lede { color: #B5BCC6; }

/* ─── Grids ───────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Cards (problem section) ─────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card .muted-quote {
  color: var(--ink-3);
  font-style: italic;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--yellow);
}

/* ─── Value flow (£14M) ───────────────────────────────────────────────────── */
.value-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 20px;
}
.value-step {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.value-step-highlight { background: var(--ink); color: #fff; border-color: var(--ink); }
.value-step-highlight .value-num { color: #fff; }
.value-step-highlight .value-label { color: rgba(255,255,255,0.72); }
.value-step-highlight p { color: rgba(255,255,255,0.85); }
.value-num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.value-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.value-step p { font-size: 13px; color: var(--ink-2); margin-top: auto; line-height: 1.5; }
.value-arrow { font-size: 28px; color: var(--ink-3); align-self: center; font-weight: 300; }

/* ─── Pillars (3 capabilities) ────────────────────────────────────────────── */
.pillar { padding: 0; overflow: hidden; }
.pillar-tag {
  display: block;
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.pillar-tag-blue { background: var(--blue); color: #fff; }
.pillar-tag-orange { background: var(--orange); color: #fff; }
.pillar ul { list-style: none; padding: 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.pillar ul li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  position: relative;
  padding-left: 18px;
}
.pillar ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.pillar ul li strong { color: var(--ink); font-weight: 700; }
.pillar-body {
  padding: 24px 28px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.pillar-body strong { color: var(--ink); font-weight: 700; }

/* ─── Signals (matching engine) ───────────────────────────────────────────── */
.signals {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.signal {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.signal-confidence {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.signal h4 { font-size: 16px; color: #fff; font-weight: 700; }
.signal p { font-size: 13px; color: #B5BCC6; line-height: 1.55; }
.callout-on-dark {
  margin-top: 12px;
  padding: 20px 24px;
  background: rgba(255,199,0,0.10);
  border-left: 3px solid var(--yellow);
  border-radius: 6px;
  color: #E0E5EC;
  font-size: 14px;
  line-height: 1.6;
}

/* ─── FRR formula + windows ───────────────────────────────────────────────── */
.formula {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  margin-bottom: 32px;
}
.formula-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.formula-eq {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.formula p { font-size: 14px; color: var(--ink-3); }
.window-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.window-card-default {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.window-num {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 4px;
}
.window-card-default .window-num { color: var(--yellow); }
.window-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.window-card-default .window-label { color: rgba(255,255,255,0.65); }
.window-tag {
  background: var(--yellow);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.window-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.window-card ul li {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}
.window-card ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ink-3);
}
.window-card-default ul li { color: rgba(255,255,255,0.85); }
.window-card-default ul li::before { color: rgba(255,255,255,0.4); }

/* ─── Trusted by strip ────────────────────────────────────────────────────── */
.trusted-by {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.trusted-by .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trusted-by-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.trusted-by-logos {
  display: flex;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trusted-logo {
  height: 32px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.trusted-logo:hover { opacity: 1; }
.trusted-logo-bmw { height: 44px; }

/* ─── Window-card single-line blurb ───────────────────────────────────────── */
.window-blurb {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.window-card-default .window-blurb { color: rgba(255,255,255,0.85); }
.stat-row { margin-bottom: 56px; }
.stat-big {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.stat-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.stat-big p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.finding {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.finding h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  line-height: 1.3;
}
.finding p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-top: 16px; }

.bar-chart { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 14px;
}
.bar-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.bar {
  background: var(--line-2);
  border-radius: 6px;
  height: 30px;
  position: relative;
  overflow: hidden;
}
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; }
.bar-fill-yellow { background: var(--yellow); }
.bar-fill-grey { background: #C9CFD7; }
.bar-value {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* ─── Real dashboard screenshots ──────────────────────────────────────────── */
.screenshots {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.screenshot {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.screenshot img {
  width: 100%;
  height: auto;
  display: block;
}
.screenshot figcaption {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  background: var(--bg-alt);
}
.screenshot figcaption strong { color: var(--ink); font-weight: 700; }
.screenshots-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ─── At-Risk funnel ──────────────────────────────────────────────────────── */
.funnel-row { align-items: center; }
.funnel { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.funnel-stage {
  padding: 22px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  color: #fff;
}
.funnel-1 { background: var(--ink); width: 100%; }
.funnel-2 { background: var(--yellow); color: var(--ink); width: 80%; }
.funnel-3 { background: var(--blue); width: 60%; }
.funnel-4 { background: var(--orange); width: 40%; }
.numbered-list { list-style: none; counter-reset: item; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.numbered-list li {
  counter-increment: item;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbered-list li strong { color: var(--ink); }
.callout {
  background: var(--bg-yellow);
  border-left: 3px solid var(--yellow);
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ─── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-grid { align-items: stretch; }
.pricing-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.pricing-card-featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  position: relative;
}
.pricing-card-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--yellow);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-tier { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.pricing-card-featured .pricing-tier { color: #fff; }
.pricing-volume {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.pricing-card-featured .pricing-volume { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.15); }
.pricing-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pricing-card ul li {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow-deep);
  font-weight: 800;
}
.pricing-card-featured ul li { color: rgba(255,255,255,0.85); }
.pricing-card-featured ul li::before { color: var(--yellow); }
.pricing-note {
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-2);
}
.pricing-note a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ─── Final CTA row ───────────────────────────────────────────────────────── */
.cta-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-lede {
  margin-top: 16px;
  font-size: 17px;
  color: #B5BCC6;
  line-height: 1.6;
}
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta-actions .btn-primary:hover { background: #fff; }
@media (max-width: 980px) {
  .cta-row { grid-template-columns: 1fr; }
}

/* ─── Steps + contact (CTA section) ───────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.step-num {
  width: 32px;
  height: 32px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step-body { color: #D8DDE4; font-size: 14px; line-height: 1.55; }
.step-body strong { color: #fff; font-weight: 700; }
.step-owner {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #B5BCC6;
}
.step-owner-us { background: var(--yellow); color: var(--ink); }
.contact-card {
  background: rgba(255,199,0,0.06);
  border: 1px solid rgba(255,199,0,0.25);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.contact-card p { color: #B5BCC6; font-size: 15px; line-height: 1.55; }
.contact-card .btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.contact-card .btn-primary:hover { background: #fff; }
.contact-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #7E8693;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #7E8693; padding: 36px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer .brand { color: #fff; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-meta { font-size: 13px; }
.footer-ddx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.15s, opacity 0.15s;
  opacity: 0.85;
}
.footer-ddx:hover { color: #fff; opacity: 1; }
.footer-ddx-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7E8693;
}
.footer-ddx-logo {
  height: 16px;
  width: auto;
  display: block;
  color: #fff;          /* fill inherits via currentColor */
}
@media (max-width: 540px) {
  .footer-row { gap: 14px; justify-content: center; text-align: center; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .topbar { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  .topbar nav { gap: 14px; flex-wrap: wrap; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; }
  .signals { grid-template-columns: 1fr 1fr; }
  .value-flow { grid-template-columns: 1fr; }
  .value-arrow { transform: rotate(90deg); justify-self: center; }
  .dashboard-kpis { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 110px 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 540px) {
  .signals { grid-template-columns: 1fr; }
  .topbar nav a:not(.btn) { display: none; }
}
