/* ReviewSplit — premium SaaS design system (design round 2)
 * Palette: deep ink navy #0A0F1E · indigo accent #4F46E5 · violet #7C3AED
 * Verdicts: Split Risk crimson #B3273D · Shared emerald #0C7A57 · Grey amber #96690A
 */
:root {
  --ink: #0a0f1e;
  --ink-2: #232c42;
  --muted: #5b6a85;
  --faint: #8593ab;
  --line: #e4e8f0;
  --line-2: #eef1f6;
  --bg: #f6f7fa;
  --card: #ffffff;
  --accent: #4f46e5;
  --accent-dark: #4338ca;
  --accent-soft: #eef0fe;
  --violet: #7c3aed;
  --split: #b3273d;
  --split-soft: #fceef0;
  --shared: #0c7a57;
  --shared-soft: #e6f4ee;
  --grey: #96690a;
  --grey-soft: #fbf2dc;
  /* Text-only deepenings (audit round 2, WCAG AA): --faint and --grey sit
   * below 4.5:1 as small text on their backgrounds (3.11 and 4.36), so
   * small text uses these same-hue shades instead (4.64+ and 4.67 on the
   * tint). Rails, borders, dots and chart graphics keep the base tokens. */
  --faint-text: #5f718c;
  --grey-text: #916409;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(10, 15, 30, .05), 0 1px 3px rgba(10, 15, 30, .04);
  --shadow-md: 0 4px 16px rgba(10, 15, 30, .07), 0 1px 3px rgba(10, 15, 30, .05);
  --shadow-lg: 0 16px 40px rgba(10, 15, 30, .12), 0 2px 6px rgba(10, 15, 30, .05);
  --shadow-hero: 0 30px 70px rgba(2, 6, 23, .5), 0 4px 14px rgba(2, 6, 23, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
/* One slim sticky bar: brand lockup left, quiet section nav and the
 * primary CTA right (nav from 768px up). A 2px indigo-to-violet
 * hairline under the bar ties it to the hero. */
.topbar {
  background: rgba(10, 15, 30, .96); color: #fff;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--violet), #c084fc);
}
.topbar-in { display: flex; align-items: center; gap: 14px 20px; flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-height: 40px; flex: none; }
.mark-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .3),
              0 4px 12px rgba(79, 70, 229, .35);
}
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.12; }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.wordmark em { font-style: normal; color: #a5abff; }
.brand-cap {
  display: none; margin-top: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #97a3bd;
  white-space: nowrap;
}
.topnav { display: none; }
.top-cta {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--violet));
  box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.top-cta:hover { background: linear-gradient(120deg, var(--accent-dark), #6d28d9); transform: translateY(-1px); }
.top-cta .cta-l-short, .top-cta .cta-l-new, .top-cta .cta-l-run, .top-cta .cta-l-audit { display: none; }
/* Free spent (or license active): the landing label drops its "free". */
.top-cta.is-nofree .cta-l-full, .top-cta.is-nofree .cta-l-short { display: none; }
.top-cta.is-nofree .cta-l-run { display: inline; }
.top-cta.is-results .cta-l-full, .top-cta.is-results .cta-l-short, .top-cta.is-results .cta-l-run, .top-cta.is-results .cta-l-audit { display: none; }
.top-cta.is-results .cta-l-new { display: inline; }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 3px solid #a5abff; outline-offset: 2px; }
/* Anchor jumps (and the results scroll) land below the sticky bar. */
section[id], #results { scroll-margin-top: 72px; }

@media (min-width: 768px) {
  .topnav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
  .topnav a {
    color: #aebadd; text-decoration: none; white-space: nowrap;
    font-size: 13.5px; font-weight: 600; letter-spacing: .01em; padding: 6px 2px;
    transition: color .15s ease;
  }
  .topnav a:hover { color: #fff; }
  .top-cta { margin-left: 0; }
}

@media (max-width: 767px) {
  .top-cta .cta-l-full { display: none; }
  .top-cta .cta-l-short { display: inline; }
  .top-cta.is-results .cta-l-short { display: none; }
  .top-cta.is-nofree .cta-l-short, .top-cta.is-nofree .cta-l-run { display: none; }
  .top-cta.is-nofree .cta-l-audit { display: inline; }
  .top-cta.is-results .cta-l-audit { display: none; }
}

/* The micro-caption joins at 1024px: at 768-1023 the wordmark, nav and
 * CTA already fill the bar, and the caption's tracked caps are the
 * widest part of the lockup. */
@media (min-width: 1024px) {
  .brand-cap { display: block; }
}

/* ---------- hero ---------- */
.hero-band {
  position: relative; overflow: hidden; color: #e8ecf7;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(124, 58, 237, .42), rgba(124, 58, 237, 0) 62%),
    radial-gradient(760px 460px at -12% 108%, rgba(79, 70, 229, .38), rgba(79, 70, 229, 0) 62%),
    radial-gradient(520px 300px at 55% 120%, rgba(12, 122, 87, .14), rgba(12, 122, 87, 0) 65%),
    linear-gradient(158deg, #0a0f1e 0%, #111a38 52%, #1e1545 100%);
}
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .033) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, .033) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 78%);
          mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 78%);
}
.hero-in { position: relative; padding-top: 54px; padding-bottom: 58px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow-light { color: #a5abff; }
.hero-band h1 {
  font-size: clamp(31px, 5.2vw, 46px); line-height: 1.13; letter-spacing: -0.027em;
  font-weight: 800; margin: 0 0 18px; color: #fff; max-width: 820px;
}
.grad {
  background: linear-gradient(93deg, #a5abff 0%, #c084fc 55%, #f0a6e8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--ink-2); font-size: 16.5px; margin: 0 0 12px; }
.lede-light { color: #c6cfe4; max-width: 780px; font-size: 17px; }
.lede-light strong { color: #fff; }
.hero-points {
  list-style: none; margin: 26px 0 6px; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px 30px; max-width: 880px;
}
.hero-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: #c6cfe4; }
.hero-points li strong { color: #fff; font-weight: 700; }
.hero-points svg { width: 21px; height: 21px; flex: none; color: #34d399; margin-top: 1px; }

/* ---------- upload (glass stage, white card) ---------- */
.upload-card {
  margin-top: 30px; background: var(--card); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px;
  box-shadow: var(--shadow-hero); padding: 22px; position: relative;
}
.upload-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), var(--violet), #c084fc);
}
.dropzone {
  border: 2px dashed #c3cbdd; border-radius: var(--radius);
  background: #fbfcfe; padding: 40px 24px 34px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.dropzone:hover { border-color: #9aa6c4; }
.dropzone:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.dropzone.busy { pointer-events: none; opacity: .75; }
.dz-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #e3e0fd); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px #dcd9fb;
}
.dz-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
.dz-sub { color: var(--muted); margin: 0; font-size: 14.5px; }
.dz-formats { color: var(--faint-text); margin: 10px 0 0; font-size: 12.5px; letter-spacing: .08em; font-weight: 600; }
.dz-status { color: var(--accent); font-weight: 600; margin: 12px 0 0; font-size: 14.5px; }
.demo-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; padding: 0 4px;
}
.demo-label { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.demo-note { color: var(--muted); font-size: 13.5px; }
.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 12px; padding: 12px 16px; margin: 20px 0 0; font-size: 14.5px;
}
.privacy-glass {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
  color: #d3daee; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: 880px;
}
.privacy-glass strong { color: #fff; }
.privacy .lock { line-height: 1.4; }

/* ---------- pricing: deal line, entitlement status, license, gate ---------- */
/* The one-line deal, printed on the upload card before any click. It
 * only renders while this visitor's free report is still unused; the
 * status line below takes over the moment it is spent. */
.deal-line {
  margin: 0 0 16px; padding: 10px 14px; border-radius: 10px;
  background: var(--accent-soft); color: var(--ink-2);
  font-size: 14.5px; font-weight: 550;
}
.ent-zone { margin-top: 16px; padding: 0 4px; }
.ent-status { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.ent-licrow { margin: 0; font-size: 14px; }
.ent-link {
  background: none; border: none; padding: 0; font: inherit; font-size: inherit;
  color: var(--accent-dark); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.ent-link:hover { color: var(--accent); }
.ent-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.lic-form { margin-top: 10px; }
.lic-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.lic-row { display: flex; gap: 10px; flex-wrap: wrap; }
.lic-input {
  flex: 1 1 220px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
}
.lic-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.lic-msg { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
/* The Unlimited panel: sits above everything (topbar is z-index 50),
 * on a dimmed navy scrim with the same blur the glass surfaces use. */
.gate-overlay {
  position: fixed; inset: 0; z-index: 80; padding: 20px;
  background: rgba(6, 9, 20, .62);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.gate-overlay[hidden] { display: none; }
.gate-card {
  position: relative; width: 100%; max-width: 520px;
  background: var(--card); color: var(--ink);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 28px;
}
.gate-card::before {
  content: ""; position: absolute; top: 0; left: 22px; right: 22px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), var(--violet), #c084fc);
}
.gate-title { font-size: 21px; letter-spacing: -0.01em; margin: 0 0 10px; }
.gate-body { font-size: 15px; color: var(--ink-2); margin: 0 0 12px; }
.gate-price { font-size: 15px; margin: 0 0 18px; }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.gate-actions .btn { text-decoration: none; }
@media (max-width: 640px) {
  .gate-card { padding: 22px; }
  .gate-actions .btn { flex: 1 1 auto; }
}

/* ---------- markets strip (hero) ---------- */
.markets { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin: 22px 0 0; max-width: 880px; }
.markets-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a5abff;
}
.market-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.market-chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 650; color: #eef1fa;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.market-chips li span { font-weight: 500; color: #9aa7c7; margin-left: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 11px;
  font: inherit; font-size: 14.5px; font-weight: 650; cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--violet)); color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .28);
}
.btn-primary:hover { background: linear-gradient(120deg, var(--accent-dark), #6d28d9); transform: translateY(-1px); }
.btn-outline { background: var(--card); color: var(--ink-2); border-color: var(--line); }
.btn-outline:hover { border-color: #c3cbdd; background: #fbfcfe; }
.btn-ghost { background: var(--accent-soft); color: var(--accent-dark); }
.btn-ghost:hover { background: #e2e5fd; }
.btn .btn-ico { width: 17px; height: 17px; flex: none; }
/* Samples CTA — same premium indigo→violet gradient family as the primary
 * actions (gradient, shadow and hover lift come from .btn-primary), with an
 * inset highlight ring so the pair read as designed siblings, not twins. */
.btn-samples {
  min-height: 48px; padding: 0 20px;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .28), inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-samples:hover {
  box-shadow: 0 8px 22px rgba(79, 70, 229, .34), inset 0 0 0 1px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}
/* Filled state (pure CSS, no JS): once sample counts sit in the inputs,
 * soften the CTA a shade and tick it so it reads as done, not as a
 * second call to action. Falls back to the plain primary look where
 * :has() is unsupported. */
#results:has(.rc-input.sampled) .btn-samples {
  background: linear-gradient(120deg, #6d64f0, #8b5cf6);
  box-shadow: 0 4px 14px rgba(79, 70, 229, .22), inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
}
#results:has(.rc-input.sampled) .btn-samples::after { content: "✓"; font-weight: 800; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- error (sits on the dark hero) ---------- */
.error {
  background: rgba(179, 39, 61, .18); border: 1px solid rgba(255, 190, 200, .4); color: #ffd9de;
  border-radius: 12px; padding: 13px 16px; margin-top: 18px; font-size: 14.5px; max-width: 880px;
}

/* ---------- landing bands ---------- */
.band { padding: 62px 0 8px; }
.band.alt { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 62px; padding-bottom: 62px; }
.band-title {
  font-size: clamp(24px, 3.4vw, 31px); letter-spacing: -0.024em; font-weight: 780;
  line-height: 1.2; margin: 0 0 12px; max-width: 720px;
}
.band-title em { font-style: normal; color: var(--accent); }
.band-sub { color: var(--muted); font-size: 16px; margin: 0 0 8px; max-width: 720px; }
.reveal { animation: fadeUp .7s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* proof */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.proof-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 20px 20px 17px; position: relative; overflow: hidden;
}
.proof-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--split), #e05a74);
}
.proof-brand { font-size: 12px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.proof-nums {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px;
  font-variant-numeric: tabular-nums;
}
.proof-nums .was { font-size: 21px; font-weight: 650; color: var(--faint-text); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(179, 39, 61, .55); }
.proof-nums .arrow { color: var(--faint-text); font-size: 19px; }
.proof-nums .now { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--split); line-height: 1; }
.proof-note { color: var(--ink-2); font-size: 14px; margin: 0; }
.proof-bars { margin: 2px 0 12px; }
.proof-bar { margin: 0 0 9px; }
.proof-bar:last-child { margin-bottom: 0; }
.proof-bar-label {
  display: block; font-size: 10.5px; font-weight: 750; letter-spacing: .09em;
  text-transform: uppercase; color: var(--faint-text); margin: 0 0 4px;
}
.pb-track { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pb-fill { height: 100%; border-radius: 999px; }
.pb-pool { width: 100%; background: linear-gradient(90deg, #d9dfea, #c2cddd); }
.pb-own { width: var(--w); background: linear-gradient(90deg, var(--split), #e05a74); }
.proof-bars.pb-armed .pb-own { width: 0; transition: width .95s cubic-bezier(.22, .61, .36, 1) .15s; }
.proof-bars.pb-armed.pb-in .pb-own { width: var(--w); }
.proof-lost { margin: 10px 0 0; font-size: 13.5px; font-weight: 650; color: var(--ink-2); }
.proof-lost strong { color: var(--split); font-weight: 800; }
.proof-strip {
  margin: 22px 0 0; font-size: 16px; color: var(--ink-2);
  background: linear-gradient(120deg, var(--accent-soft), #f3eafd);
  border: 1px solid #dcd9fb; border-radius: 14px; padding: 16px 20px;
}
.proof-strip strong { color: var(--ink); }
.proof-src { color: var(--faint-text); font-size: 12.5px; margin: 12px 0 0; max-width: 820px; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; position: relative; }
.how-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-sm); padding: 22px 20px 18px;
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff;
  font-size: 17px; font-weight: 800; box-shadow: 0 6px 14px rgba(79, 70, 229, .3);
}
.how-card h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.how-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.feat-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 22px 20px 18px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.feat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.feat-icon svg { width: 23px; height: 23px; }
.feat-card h3 { margin: 0 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.feat-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* who it's for */
.who-markets { color: var(--ink-2); font-size: 16px; margin: 0 0 4px; max-width: 720px; }
.who-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 6px; padding: 0; }
.who-pills li {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 650;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

/* ---------- results ---------- */
#results { padding-top: 38px; scroll-margin-top: 118px; }
.results-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.results-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.02em; font-weight: 750; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* action plan */
.plan-panel {
  margin-top: 20px; border-radius: 20px; padding: 24px 24px 20px;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(120deg, var(--accent), var(--violet), #c084fc) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-md);
}
.plan-eyebrow {
  margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
}
.plan-title { margin: 0 0 16px; font-size: 20px; letter-spacing: -0.02em; font-weight: 760; }
.moves { list-style: none; margin: 0; padding: 0; }
.move { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-2); }
.move:first-child { border-top: 0; padding-top: 2px; }
.move-num {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet)); color: #fff;
  font-size: 15px; font-weight: 780; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(79, 70, 229, .3); margin-top: 2px;
}
.move-txt { flex: 1; min-width: 0; }
.move-tagrow { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 3px; }
.mtag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
}
.mtag.split { background: var(--split-soft); color: var(--split); }
.mtag.data, .mtag.grey { background: var(--grey-soft); color: var(--grey-text); }
.mtag.ok { background: var(--shared-soft); color: var(--shared); }
.mtag.empty { background: #eef1f6; color: var(--muted); }
.move-sku { font-size: 12px; color: var(--faint-text); font-variant-numeric: tabular-nums; }
.move-name { display: block; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); }
.move-body { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-2); }
.safe-block { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.safe-title { margin: 0 0 3px; font-size: 16px; letter-spacing: -0.01em; font-weight: 720; }
.safe-sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); gap: 10px; }
.principle {
  background: #f8f8fe; border: 1px solid #e3e5fa; border-radius: 13px; padding: 13px 15px;
}
.principle strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 3px; }
.principle p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* charts */
.chart-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 14px; margin-top: 14px;
}
.chart-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  border-left: 4px solid var(--faint); border-right: 4px solid var(--faint);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.chart-title { margin: 0 0 4px; font-size: 15.5px; font-weight: 720; letter-spacing: -0.01em; }
.chart-sub { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.donutwrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.donut-holder { flex: none; line-height: 0; }
.donut .seg {
  transition: stroke-dasharray .95s cubic-bezier(.22, .61, .36, 1), stroke-dashoffset .95s cubic-bezier(.22, .61, .36, 1);
}
.legend-holder { flex: 1; min-width: 180px; }
.legend { }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 0; color: var(--ink-2); }
.ldot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.llabel { flex: 1; }
.lcount { font-weight: 750; font-variant-numeric: tabular-nums; }
.lpct { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.xbar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: #eef1f6; margin: 6px 0 12px; }
.xseg { height: 100%; }
.xbar-empty { font-size: 13px; color: var(--muted); padding: 4px 2px; }

/* summary stats */
.summary {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 16px 0 4px;
}
.stat {
  --sa: var(--faint); --st: #eef1f6;
  background: linear-gradient(180deg, var(--st), var(--card) 78%);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: inset 0 3px 0 var(--sa), var(--shadow-sm);
  padding: 17px 16px 14px;
}
.stat .num {
  display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.08; font-variant-numeric: tabular-nums; color: var(--sa);
}
.stat .lbl {
  display: block; margin-top: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.stat.fam { --sa: var(--accent); --st: var(--accent-soft); }
.stat.kids { --sa: #5b6a85; --st: #e9edf3; }
.stat.split { --sa: var(--split); --st: var(--split-soft); }
.stat.shared { --sa: var(--shared); --st: var(--shared-soft); }
.stat.grey { --sa: var(--grey); --st: var(--grey-soft); }
.stat.solo { --sa: var(--violet); --st: #f1eafd; }
.warn {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fffaf0; border: 1px solid #eedcae; color: #6d5410;
  border-radius: 12px; padding: 12px 16px; margin: 12px 0 0; font-size: 14.5px;
}
.warn::before { content: "⚠"; flex: none; color: var(--grey); font-size: 15px; line-height: 1.45; }

/* ---------- filter chips ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 4px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 0 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2);
  font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.fchip:hover { border-color: #c3cbdd; }
.fchip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fchip .cnt { font-variant-numeric: tabular-nums; color: var(--faint-text); font-weight: 700; }
.fchip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.active .cnt { color: #b9c2d8; }
.fchip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.fchip .dot.split { background: var(--split); }
.fchip .dot.shared { background: var(--shared); }
.fchip .dot.grey { background: var(--grey); }
.no-match {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--muted); font-size: 14.5px; text-align: center; margin-top: 14px;
}

/* ---------- family cards ---------- */
.family {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 4px solid var(--faint); border-right: 4px solid var(--faint);
  box-shadow: var(--shadow-sm); margin: 14px 0 0; overflow: hidden;
}
.family.split { border-left-color: var(--split); border-right-color: var(--split); }
.family.shared { border-left-color: var(--shared); border-right-color: var(--shared); }
.family.grey { border-left-color: var(--grey); border-right-color: var(--grey); }
.family > summary {
  list-style: none; cursor: pointer; padding: 18px 20px; min-height: 44px;
  display: block; position: relative;
}
.family > summary::-webkit-details-marker { display: none; }
.family > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.frow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-right: 26px; }
.fname { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.chev {
  position: absolute; right: 18px; top: 20px; color: var(--faint-text);
  font-size: 13px; transition: transform .18s ease;
}
.family[open ] .chev { transform: rotate(180deg); }
.fmeta { color: var(--muted); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dimchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.dchip {
  font-size: 12px; font-weight: 650; padding: 3.5px 10px; border-radius: 999px;
  background: #f1f3f8; color: var(--ink-2); white-space: nowrap;
}
.dchip.functional { background: var(--split-soft); color: var(--split); }
.dchip.minor { background: var(--shared-soft); color: var(--shared); }
.dchip.grey { background: var(--grey-soft); color: var(--grey-text); }
.chip {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; padding: 4.5px 11px;
  border-radius: 999px; white-space: nowrap; text-transform: uppercase;
}
.chip.split { background: var(--split-soft); color: var(--split); }
.chip.shared { background: var(--shared-soft); color: var(--shared); }
.chip.grey { background: var(--grey-soft); color: var(--grey-text); }
.fbody { padding: 2px 20px 20px; border-top: 1px solid var(--line-2); }
.fbody h3 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .11em;
  color: var(--faint-text); font-weight: 750; margin: 20px 0 8px;
}
.headline { font-size: 15.5px; color: var(--ink-2); margin: 14px 0 0; }
.flag {
  display: flex; gap: 8px; align-items: flex-start;
  background: #fffaf0; border: 1px solid #eedcae; color: #6d5410;
  border-radius: 10px; padding: 9px 13px; font-size: 14px; margin: 10px 0 0;
}
.flag::before { content: "⚠"; flex: none; color: var(--grey); line-height: 1.5; }
.drivers { list-style: none; margin: 0; padding: 0; }
.drivers li { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; color: var(--ink-2); }
.drivers li:last-child { border-bottom: 0; }
.drivers .dwhy { color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; text-align: left; vertical-align: top; }
thead th {
  background: #f8f9fc; color: var(--muted); font-size: 11.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr + tr td { border-top: 1px solid var(--line-2); }
td.asin, td.sku { white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }

/* ---------- playbook steps (family cards) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps li {
  counter-increment: step; position: relative;
  padding: 4px 0 14px 46px; font-size: 14.5px; color: var(--ink-2);
}
.steps li:last-child { padding-bottom: 2px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 14px; font-weight: 750; display: flex; align-items: center; justify-content: center;
}
.steps strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.steps p { margin: 0; }

/* ---------- standalones ---------- */
.standalones-card .fbody { border-top: 0; padding-top: 4px; }
.standalones-card ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.standalones-card li { padding: 2.5px 0; }

/* ---------- footer ---------- */
footer {
  color: var(--muted); font-size: 13px; margin-top: 56px;
  border-top: 1px solid var(--line); padding: 20px 0 46px; max-width: 780px;
}
footer strong { color: var(--ink-2); }

/* ---------- reality check (v1.5) ---------- */
.dpill {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em; padding: 4.5px 11px;
  border-radius: 999px; white-space: nowrap; text-transform: uppercase;
  display: inline-block;
}
.dpill[hidden] { display: none; }
.dpill.split { background: var(--split-soft); color: var(--split); }
.dpill.shared { background: var(--shared-soft); color: var(--shared); }
.dpill.notyet {
  background: linear-gradient(90deg, var(--grey-soft), var(--shared-soft));
  color: #6d5410; box-shadow: inset 0 0 0 1px #d9c58a;
}
.dpill.unexpected { background: #fff; color: var(--split); box-shadow: inset 0 0 0 1.5px var(--split); }
.dpill.grey { background: var(--grey-soft); color: var(--grey-text); }
.dpill.partial { background: #eef1f6; color: var(--muted); }

.reality { margin-top: 4px; }
.reality-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reality-head h3 { margin-right: auto; }
.samplebadge {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: #fffaf0; color: #6d5410; border: 1.5px dashed #c9a227;
}
.samplebadge[hidden] { display: none; }
.reality-guide { font-size: 14px; color: var(--muted); margin: 0 0 10px; max-width: 720px; }
.rc-row { padding: 5px 0; }
.rc-label { display: flex; align-items: center; gap: 14px; cursor: text; }
.rc-txt { flex: 1 1 auto; min-width: 0; }
.rc-variant { display: block; font-size: 14.5px; font-weight: 650; color: var(--ink-2); overflow-wrap: break-word; }
.rc-asin {
  display: block; font-weight: 400; font-size: 12px; color: var(--faint-text);
  font-variant-numeric: tabular-nums; margin-top: 1px; overflow-wrap: break-word;
}
.rc-input {
  flex: none; width: 138px; min-height: 48px; padding: 10px 12px;
  font: inherit; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rc-input::placeholder { color: #5f718c; font-size: 13.5px; text-align: right; font-style: italic; }
.rc-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rc-input.sampled { border-color: #c9a227; border-style: dashed; background: #fffdf4; }
.rc-old { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 11px; }

.reality-out { margin-top: 14px; border-radius: 13px; padding: 14px 16px; font-size: 14.5px; }
.reality-out.inv { border: 1.5px dashed var(--line); background: #fbfcfe; color: var(--muted); }
.reality-out.split { background: var(--split-soft); }
.reality-out.shared { background: var(--shared-soft); }
.reality-out.notyet { background: linear-gradient(120deg, #fdf6e0, #e9f5ef); }
.reality-out.unexpected { background: #fff5f6; box-shadow: inset 0 0 0 1.5px rgba(179, 39, 61, .45); }
.reality-out.grey { background: #fdf6e0; }
.reality-out.partial { background: #f4f6fa; }
.diag-invite { margin: 0; }
.diag-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; }
.diag-headline { margin: 0 0 4px; font-weight: 700; font-size: 15px; color: var(--ink); }
.diag-detail { margin: 0; color: var(--ink-2); }
.diag-note { margin: 9px 0 0; font-size: 13px; color: var(--muted); }
.drops { list-style: none; margin: 12px 0 2px; padding: 0; }
.drops li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 6px 0; border-top: 1px solid rgba(10, 15, 30, .08);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.drop-name { color: var(--ink-2); font-weight: 600; min-width: 0; }
.drop-nums { color: var(--ink); white-space: nowrap; }

.reality-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 14px 0 0; font-size: 13.5px;
}
.reality-line[hidden] { display: none; }
.rl-label { font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .summary { grid-template-columns: repeat(3, 1fr); }
  .proof-grid, .how-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .proof-grid, .how-grid, .feat-grid { grid-template-columns: 1fr; }
  .hero-points { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-in { padding-top: 36px; padding-bottom: 40px; }
  .lede-light { font-size: 16px; }
  /* Re-assert the bar's vertical padding: the .wrap shorthand above
   * would otherwise zero it, .topbar-in carries both classes. */
  .topbar-in { gap: 8px 14px; padding-top: 8px; padding-bottom: 8px; }
  .band { padding-top: 44px; }
  .band.alt { margin-top: 44px; padding-bottom: 44px; }
  .upload-card { padding: 14px; border-radius: 18px; }
  .dropzone { padding: 30px 16px 26px; }
  .plan-panel { padding: 18px 16px 14px; border-radius: 18px; }
  .move { gap: 11px; }
  .chart-card { padding: 16px; }
  .donutwrap { gap: 14px; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .stat .num { font-size: 26px; }
  .results-head { align-items: flex-start; flex-direction: column; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .family > summary { padding: 16px; }
  .fbody { padding: 2px 16px 18px; }
  .chev { right: 14px; top: 18px; }
  th, td { padding: 8px 8px; }
  /* Children table on phones: SKU/ASIN are long unbreakable strings.
   * Left alone they hog the row, crush the Title column into a ribbon
   * and push the attribute columns off-screen. Let the identifiers
   * wrap so every column stays on screen and the title can breathe.
   * Column headers wrap too: a long one ("pack size / number of
   * items") must not hold its whole column hostage at nowrap width. */
  td.sku, td.asin { white-space: normal; overflow-wrap: anywhere; word-break: break-all; }
  thead th { white-space: normal; }
  table { font-size: 12.5px; }
  .rc-input { width: 118px; }
  .reality-out { padding: 13px 14px; }
  .drops li { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
  .donut .seg { transition: none; }
  .proof-bars.pb-armed .pb-own { transition: none; }
  html { scroll-behavior: auto; }
}
