/* Design tokens live in /design-tokens.css. Import them first so this
 * file can reference them. */
@import url("/design-tokens.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
em { font-style: italic; font-family: var(--serif); font-weight: 400; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ─── Type ───────────────────────────────────────── */
.display-1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.display-2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 8px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: var(--ink-3);
}
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }

/* ─── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); }
.btn-arrow::after { content: "→"; font-family: var(--serif); font-size: 18px; line-height: 1; }

/* ─── Wordmark ───────────────────────────────────── */
.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.wordmark-mark {
  width: 22px; height: 22px;
  display: inline-flex;
  flex-shrink: 0;
}
.wordmark-mark svg { display: block; width: 100%; height: 100%; }
.wordmark-mark .mark-bg { fill: var(--ink); }
.wordmark-mark .mark-fg { fill: var(--paper); }

/* ─── Nav ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; color: var(--ink-2);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* ─── Hero ───────────────────────────────────────── */
.hero { padding: 96px 0 80px; border-bottom: 1px solid var(--rule); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 28px; }
.display-1 { margin-top: 0; }
.hero-lede { margin-top: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 10px; margin-top: 36px; }
.hero-meta {
  margin-top: 24px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-3);
}
.hero-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grade-a); }

/* hero figure: vendor profile card */
.profile {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 48px -28px rgba(20, 25, 45, 0.18), 0 1px 0 rgba(255,255,255,0.6) inset;
}
.profile-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.profile-name { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -0.015em; }
.profile-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 4px; }
.profile-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14px;
}
.profile-row:last-of-type { border-bottom: 0; }
.profile-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.profile-row .v { color: var(--ink); }
.profile-row .delta { font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums; }
.profile-row .delta.pos { color: var(--grade-a); }
.profile-foot {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-3);
}
.profile-foot span:last-child { color: var(--grade-a); }

/* ─── Grade pill ─────────────────────────────────── */
.grade-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  flex-shrink: 0;
}
.grade-pill.a { background: var(--grade-a-soft); color: var(--grade-a); }
.grade-pill.b { background: var(--grade-b-soft); color: var(--grade-b); }
.grade-pill.c { background: var(--grade-c-soft); color: var(--grade-c); }
.grade-pill.f { background: var(--grade-f-soft); color: var(--grade-f); }

/* ─── Trust rail ─────────────────────────────────── */
.trust-rail { padding: 36px 0; border-bottom: 1px solid var(--rule); }
.trust-rail-inner { display: flex; align-items: center; gap: 56px; }
.trust-rail-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); white-space: nowrap;
}
.logos {
  display: flex; gap: 56px; flex: 1;
  font-family: var(--serif); font-size: 22px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
  opacity: 0.85;
  justify-content: space-between;
}
.logo-cell { font-style: italic; }

/* ─── Sections ───────────────────────────────────── */
.section { padding: 120px 0; border-bottom: 1px solid var(--rule); }
.sec-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 72px;
}
.sec-head-narrow { display: block; }
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head p { font-size: 17px; color: var(--ink-2); margin: 0; max-width: 480px; }

/* quote */
.quote {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.22;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 980px;
  margin: 0;
  text-wrap: balance;
}
.quote::before { content: "\201C"; color: var(--ink-3); }
.quote::after  { content: "\201D"; color: var(--ink-3); }
.quote-attr {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-3); margin-top: 32px;
}

/* dark variant for problem section */
.problem-section { padding: 100px 0; }
.problem-section .quote-dark { color: var(--paper); max-width: 1080px; }
.problem-section .quote-dark::before,
.problem-section .quote-dark::after { color: oklch(80% 0.10 65); }
.problem-section .quote-attr-dark { color: rgba(255,255,255,0.55); }

/* pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.pillar { padding-top: 28px; border-top: 1px solid var(--ink); }
.pillar-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px;
}
.pillar h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.2;
  margin: 0 0 14px;
}
.pillar p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.step { padding-top: 24px; border-top: 1px solid var(--rule-2); }
.step-num {
  font-family: var(--mono); font-size: 13px; line-height: 1;
  color: var(--accent); margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.feature {
  padding: 32px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feature-mark { color: var(--accent); font-size: 14px; margin-bottom: 18px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* dark section / monitoring */
.dark-section {
  background: var(--ink-bg);
  color: var(--paper);
  padding: 120px 0;
}
.dark-section .eyebrow { color: rgba(255,255,255,0.55); }
.dark-section .eyebrow::before { background: rgba(255,255,255,0.55); }
.dark-section .display-2 { color: var(--paper); }
.dark-section em { color: oklch(80% 0.10 65); }
.dark-section .sec-head p { color: rgba(255,255,255,0.7); }

.diff-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.diff-card-head {
  padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between;
}
.diff-card-head .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }
.diff-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.diff-line { display: flex; gap: 10px; }
.diff-line .marker { font-weight: 500; }
.diff-line.del { color: oklch(70% 0.14 25); background: rgba(220, 80, 80, 0.06); padding: 4px 8px; border-radius: 4px; }
.diff-line.ins { color: oklch(78% 0.13 155); background: rgba(80, 200, 130, 0.06); padding: 4px 8px; border-radius: 4px; }

.alert-strip {
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.alert-strip-inner {
  display: flex; gap: 40px;
  animation: tickerScroll 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .alert-strip-inner { animation: none; }
}
.alert-item {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
}
.alert-item .v { color: var(--paper); font-weight: 500; }

/* ─── Report widget ─────────────────────────────── */
.report {
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 320px 1fr;
  overflow: hidden;
  box-shadow: 0 24px 48px -32px rgba(20, 25, 45, 0.15);
}
.report-side {
  border-right: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 8px;
}
.report-side-h {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 12px;
}
.report-side-h .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.vendor-row {
  display: flex; gap: 14px; align-items: center;
  width: 100%; padding: 14px;
  border-radius: 10px;
  text-align: left;
  transition: background 0.12s;
}
.vendor-row:hover { background: var(--paper); }
.vendor-row.active { background: var(--paper); box-shadow: 0 1px 0 var(--rule-2), 0 8px 16px -10px rgba(20,25,45,0.1); }
.vendor-row .name { font-size: 15px; font-weight: 500; }
.vendor-row .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-3); margin-top: 2px; }

.report-main { padding: 28px 32px; }
.report-h {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
.report-h-l { display: flex; gap: 18px; align-items: center; }
.report-h-l .grade-pill { width: 56px; height: 56px; font-size: 32px; }
.report-h-name { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; }
.report-h-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3); margin-top: 8px;
  display: flex; align-items: center; gap: 10px;
}
.report-h-plan { padding: 2px 8px; border: 1px solid var(--rule-2); border-radius: 4px; }
.report-h-r { text-align: right; }
.report-h-r .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); }
.report-h-r .v { font-family: var(--serif); font-size: 36px; line-height: 1; margin-top: 4px; font-variant-numeric: tabular-nums; }
.report-h-r .v small { font-size: 16px; color: var(--ink-3); }

.report-tabs {
  display: flex; gap: 28px;
  border-bottom: 1px solid var(--rule);
  margin: 0 -32px;
  padding: 0 32px;
}
.report-tab {
  padding: 16px 0; margin-bottom: -1px;
  font-size: 13px; color: var(--ink-3);
  border-bottom: 2px solid transparent;
  font-weight: 500;
}
.report-tab:hover { color: var(--ink-2); }
.report-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.report-body { padding: 24px 0; min-height: 240px; }

.flag-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14.5px;
}
.flag-row:last-child { border-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 90px;
  justify-content: center;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.pill-hardstop { background: var(--grade-f-soft); color: var(--grade-f); }
.pill-hardstop .dot { background: var(--grade-f); }
.pill-high { background: var(--grade-f-soft); color: var(--grade-f); }
.pill-high .dot { background: var(--grade-f); }
.pill-med { background: var(--grade-c-soft); color: var(--grade-c); }
.pill-med .dot { background: var(--grade-c); }
.pill-low { background: var(--grade-b-soft); color: var(--grade-b); }
.pill-low .dot { background: var(--grade-b); }
.pill-ok { background: var(--grade-a-soft); color: var(--grade-a); }
.pill-ok .dot { background: var(--grade-a); }
.flag-row .label { color: var(--ink); }

.evidence { padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.evidence:last-child { border-bottom: 0; }
.evidence .src { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 8px; }
.evidence .text { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink); }
.evidence mark { background: oklch(94% 0.10 95); padding: 1px 4px; border-radius: 2px; color: var(--ink); font-style: italic; }

.report-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-3);
}

/* ─── Pricing ───────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 880px; margin: 0 auto; }
.tier {
  padding: 32px;
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 24px;
}
.tier.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tier.featured .tier-cadence,
.tier.featured .tier-blurb,
.tier.featured ul { color: rgba(255,255,255,0.7); }
.tier.featured ul li::before { color: oklch(78% 0.13 155); }
.tier-name { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.005em; }
.tier-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 999px;
  background: oklch(78% 0.13 155); color: var(--ink);
}
.tier-price { font-family: var(--serif); font-weight: 500; font-size: 48px; line-height: 1; letter-spacing: -0.025em; }
.tier-cadence { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); margin-top: 6px; }
.tier-blurb { font-size: 14.5px; color: var(--ink-2); margin: 0; min-height: 42px; }
.tier-cta { width: 100%; height: 44px; justify-content: center; }
.tier ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.tier ul li { padding-left: 22px; position: relative; }
.tier ul li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--grade-a); font-size: 14px;
}

/* ─── CTA section ───────────────────────────────── */
.cta-section {
  padding: 140px 0;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.cta-section p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 540px;
  margin: 28px auto 40px;
}
.cta-section .display-1 { font-size: 76px; line-height: 1.05; }

/* ─── Footer ────────────────────────────────────── */
.footer {
  padding: 80px 0 32px;
  background: var(--paper-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
}
.footer-blurb { font-size: 14px; color: var(--ink-2); margin: 20px 0 24px; max-width: 280px; line-height: 1.5; }
.footer-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--ink-2); font-size: 14px; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-3);
}
.footer-bottom a { margin-left: 24px; }
.footer-bottom a:hover { color: var(--ink); }

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .sec-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .report { grid-template-columns: 1fr; }
  .report-side { border-right: 0; border-bottom: 1px solid var(--rule); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .display-1 { font-size: 44px; }
  .display-2 { font-size: 34px; }
  .quote { font-size: 28px; }
  .cta-section .display-1 { font-size: 48px; }
  .trust-rail-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .logos { gap: 28px; flex-wrap: wrap; }
}
