/* ============================================================
   Know Thy Buyer — Direction 1: Stripe Precision
   Palette: #ffffff / #f6f9fc / #0a2540 / #635BFF (sparing)
   ============================================================ */

:root {
  --ground: #ffffff;
  --wash: #f6f9fc;
  --ink: #0a2540;
  --ink-soft: #33475f;
  --muted: #5b6b7f;
  --faint: #647688; /* AA-safe on white (4.68:1) for small text */
  --hairline: #e2e8f0;
  --indigo: #635bff;
  --indigo-deep: #4f47e6;
  --indigo-ink: #3c36c9;
  --peach: #ffd9c2;
  --lavender: #d9d0f8;
  --mint: #c9efe0;
  --radius: 14px;
  --shadow-card: 0 24px 60px -24px rgba(10, 37, 64, 0.22),
                 0 2px 6px rgba(10, 37, 64, 0.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* hard guard: never scroll sideways */
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 1 · Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-mark {
  width: 10px;
  height: 10px;
  border-radius: 2.5px;
  background: var(--indigo);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 8px;
  padding: 13px 26px;
  min-height: 48px; /* tap-friendly */
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--indigo);
  color: #fff;
  border: 1px solid transparent;
}

.btn-primary:hover { background: var(--indigo-deep); }
.btn-primary:active { transform: translateY(1px); }

.btn-ghost {
  background: transparent;
  color: var(--indigo-ink);
  border: 1px solid var(--indigo); /* sanctioned sparing use */
}

.btn-ghost:hover { background: rgba(99, 91, 255, 0.07); }

.btn-sm { padding: 9px 18px; min-height: 42px; font-size: 14px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }

.btn:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* ---------- 2 · Hero ---------- */
.hero {
  padding: 88px 0 96px;
  background: var(--ground);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.kicker {
  margin: 0 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  /* unrotated, quiet — deliberately not indigo */
}

.headline {
  margin: 0 0 20px;
  font-size: clamp(40px, 5.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  color: var(--ink);
}

.subhead {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.62;
  letter-spacing: -0.004em;
  color: var(--ink-soft);
  max-width: 30em;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.microcopy {
  margin: 0;
  font-size: 13.5px;
  color: var(--faint);
}

/* --- Hero visual: mesh canvas lives BEHIND the card only --- */
.hero-visual {
  position: relative;
  /* Static CSS-gradient fallback when JS is disabled or canvas fails */
  background:
    radial-gradient(46% 42% at 22% 26%, rgba(255, 217, 194, 0.55), transparent 70%),
    radial-gradient(44% 40% at 78% 22%, rgba(217, 208, 248, 0.55), transparent 70%),
    radial-gradient(52% 46% at 60% 82%, rgba(201, 239, 224, 0.5), transparent 70%),
    radial-gradient(36% 34% at 30% 74%, rgba(255, 217, 194, 0.35), transparent 70%),
    var(--ground);
  border-radius: 24px;
  padding: 44px 40px;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  pointer-events: none;
}

/* --- Report card mock (pure HTML/CSS, no imagery) --- */
.report-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 28px 22px;
}

.rc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.rc-pill {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--indigo-ink);
  border: 1px solid var(--indigo); /* small indigo pill — sanctioned */
  border-radius: 999px;
  padding: 3px 11px;
}

.rc-verdict-kicker {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.rc-verdict-text {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-weight: 500;
}

.rc-verdict-text strong { font-weight: 700; }

.rc-spark {
  display: block;
  width: 100%;
  height: 48px;
  margin: 10px 0 18px;
}

.rc-spark .gridline {
  stroke: var(--hairline);
  stroke-width: 1;
}

.rc-spark .trendline {
  fill: none;
  stroke: var(--indigo); /* indigo chart line — sanctioned */
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rc-spark .trenddot { fill: var(--indigo); }

.rc-segments {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.seg-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.seg-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seg-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.seg-bar {
  height: 6px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.seg-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8f96f5, var(--indigo));
}

.rc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--wash);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 5px 10px;
}

.rc-caption {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--faint);
}

/* ---------- 3 · Proof band ---------- */
.proof {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 52px;
  padding-bottom: 52px;
  gap: 32px;
}

.proof-item { position: relative; padding-left: 0; }

.proof-value {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.proof-unit { font-size: 20px; font-weight: 600; color: var(--muted); }

.proof-formats { font-size: 24px; line-height: 1.35; }

.proof-label {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 4 · Steps ---------- */
.steps { padding: 104px 0; }

.section-kicker {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0 0 52px;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.024em;
  line-height: 1.16;
  font-weight: 700;
  max-width: 16em;
}

.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.step-num {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

.step-title {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
}

.step-text {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-soft);
  max-width: 22em;
}

/* ---------- Closing CTA ---------- */
.closing {
  background: var(--wash);
  border-top: 1px solid var(--hairline);
  padding: 104px 0;
  text-align: center;
}

.closing-inner { max-width: 640px; }

.closing-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.026em;
  line-height: 1.12;
  font-weight: 700;
}

.closing-text {
  margin: 0 0 34px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- 5 · Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 44px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-wordmark {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.footer-slogan {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  /* single quiet italic slogan placement — unbadged */
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--faint);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual { min-height: 0; padding: 36px 28px; }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 24px;
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { padding: 72px 0; }
  .closing { padding: 72px 0; }
}

@media (max-width: 420px) {
  .container { padding-left: 20px; padding-right: 20px; }

  .hero { padding: 52px 0 60px; }
  .headline { font-size: 40px; }
  .subhead { font-size: 16.5px; }

  .cta-row .btn { flex: 1 1 100%; } /* full-width tap targets */

  .hero-visual { padding: 28px 20px; }
  .report-card { padding: 22px 20px 18px; }
  .rc-verdict-text { font-size: 17px; }

  .proof-value { font-size: 28px; }
  .proof-formats { font-size: 20px; }

  .footer-inner { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
