/* =========================================================
   ClinicScout — Tesla-inspired cinematic design system
   Black · white · one electric-blue accent · panels of light
   ========================================================= */

:root {
  --ink: #171a20;
  --ink-soft: #393c41;
  --muted: #5c5e62;
  --muted-2: #8f9095;
  --line: rgba(23, 26, 32, 0.08);
  --line-strong: rgba(23, 26, 32, 0.16);
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --bg-deep: #0a0a0a;
  --accent: #3457d5;
  --accent-2: #5d4dff;

  /* Quality tiers — muted, professional. Light bg variants. */
  --t-excellent: #2e7d54;
  --t-strong:    #6a8f3a;
  --t-fair:      #b5851a;
  --t-caution:   #b15f0c;
  --t-critical:  #9d3e2f;
  /* Brighter variants for dark backgrounds */
  --t-excellent-d: #4fae7c;
  --t-strong-d:    #95b65c;
  --t-fair-d:      #d4a13a;
  --t-caution-d:   #d97a2b;
  --t-critical-d:  #c66054;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont,
    "SF Pro Display", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 56px;
}

html { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg);
  color: var(--ink);
  font-feature-settings: "ss01", "cv11";
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(52, 87, 213, 0.18); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.nav--on-dark {
  background: rgba(10, 10, 10, 0.6);
  color: #fff;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.nav__brand svg { width: 18px; height: 18px; }

.nav__links {
  display: flex;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.nav__links a, .nav__actions a {
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s var(--ease);
}
.nav__links a:hover, .nav__actions a:hover { background: rgba(23, 26, 32, 0.06); }
.nav--on-dark .nav__links a:hover,
.nav--on-dark .nav__actions a:hover { background: rgba(255, 255, 255, 0.1); }

.nav__actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 500;
}

/* ---------------------------------------------------------
   PANEL
   --------------------------------------------------------- */
.panel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 56px) 24px 64px;
  overflow: hidden;
}
.panel--dark { background: var(--bg-deep); color: #fff; }
.panel--soft { background: var(--bg-soft); }

/* Ambient cursor-follow glow on dark surfaces */
.has-glow { position: relative; isolation: isolate; }
.has-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}
.has-glow:hover::after { opacity: 1; }
.has-glow > * { position: relative; z-index: 1; }

.panel__top {
  width: 100%;
  max-width: 980px;
  text-align: center;
  flex-shrink: 0;
}
.panel__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
}
.panel__bottom {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  margin-top: 44px;
}

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel--dark .eyebrow { color: rgba(255, 255, 255, 0.55); }

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.04;
}

.panel__hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.panel__sub {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.panel--dark .panel__sub { color: rgba(255, 255, 255, 0.7); }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 256px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.15s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2a2d34; }

.btn .ti {
  font-size: 15px;
  margin-right: -2px;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.btn--text .ti { font-size: 14px; }

.btn--ghost {
  background: rgba(244, 244, 244, 0.75);
  color: var(--ink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(244, 244, 244, 1); }
.panel--soft .btn--ghost,
.plan .btn--ghost {
  background: #fff;
  border: 1px solid var(--line-strong);
}
.panel--soft .btn--ghost:hover,
.plan .btn--ghost:hover { background: #fff; border-color: var(--ink); }

.panel--dark .btn--primary { background: #fff; color: var(--ink); }
.panel--dark .btn--primary:hover { background: #e5e5e5; }
.panel--dark .btn--ghost {
  background: rgba(36, 36, 36, 0.7);
  color: #fff;
}
.panel--dark .btn--ghost:hover { background: rgba(60, 60, 60, 0.85); }

.btn--text {
  min-width: 0;
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
}
.btn--text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transition: opacity 0.2s var(--ease);
}
.btn--text:hover::after { opacity: 1; }

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint svg { animation: bob 2.4s var(--ease) infinite; }
.panel--dark .scroll-hint { color: rgba(255, 255, 255, 0.5); }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  background:
    radial-gradient(900px 600px at 50% 110%, rgba(52, 87, 213, 0.06), transparent 70%),
    var(--bg);
}
.hero__inner { width: 100%; max-width: 900px; text-align: center; }
.hero__sub {
  margin: 16px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* Search */
.search { margin: 32px auto 0; max-width: 640px; text-align: left; }

.search__shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color 0.2s var(--ease), box-shadow 0.25s var(--ease);
}
.search__shell:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 26, 32, 0.06);
}
.search__icon { display: inline-grid; place-items: center; color: var(--muted-2); flex-shrink: 0; }
.search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  color: var(--ink);
}
.search__input::placeholder { color: var(--muted-2); }
.search__kbd {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.search__cta {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: background 0.2s var(--ease);
}
.search__cta:hover { background: #2a2d34; }

.search__hint {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--muted);
}
.search__hint-label { color: var(--muted-2); }

.chip {
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
}
.chip:hover { background: var(--bg-soft); border-color: var(--ink); }

.trustbar {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.trustbar strong { color: var(--ink); font-weight: 600; }
.trustbar__stack { display: inline-flex; }
.avatar {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -7px;
  background: var(--bg-soft);
}
.avatar--1 { background: #ffd58b; }
.avatar--2 { background: #a3c4ff; }
.avatar--3 { background: #cdb8ff; }
.avatar--4 { background: #b9f0d8; }
.avatar--5 { background: #e6e6ee; }

/* Live analysis ticker */
.ticker {
  margin-top: 32px;
  display: inline-grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 720px;
  padding: 10px 18px 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 244, 244, 0.5));
  border: 1px solid rgba(23, 26, 32, 0.06);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 6px 22px rgba(23, 26, 32, 0.05);
}
.ticker__pulse {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  position: relative;
}
.ticker__pulse span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e7d54;
  box-shadow: 0 0 0 4px rgba(46, 125, 84, 0.18);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 125, 84, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(46, 125, 84, 0); }
}
.ticker__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__viewport {
  position: relative;
  height: 22px;
  overflow: hidden;
  min-width: 0;
}
.ticker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease-out);
}
.ticker__list li {
  display: grid;
  grid-template-columns: 70px 1fr auto auto;
  gap: 12px;
  align-items: center;
  height: 22px;
  font-size: 12.5px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ticker__city {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ticker__clinic {
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker__sources {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ticker__score {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  min-width: 22px;
  text-align: right;
}
@media (max-width: 720px) {
  .ticker { grid-template-columns: auto 1fr; }
  .ticker__label { display: none; }
  .ticker__sources { display: none; }
  .ticker__list li { grid-template-columns: 60px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__pulse span { animation: none; }
  .ticker__list { transition: none; }
}

/* ---------------------------------------------------------
   SCORE — cinematic
   --------------------------------------------------------- */
.score-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.score-ring {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  --score: 92;
}
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring__track { fill: none; stroke: rgba(23, 26, 32, 0.08); stroke-width: 1.2; }
.score-ring__progress {
  fill: none;
  stroke: var(--tier, var(--ink));
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--score));
  transition: stroke-dashoffset 1.8s var(--ease-out), stroke 0.6s var(--ease);
}
.panel--dark .score-ring__track,
.report-score .score-ring__track { stroke: rgba(255, 255, 255, 0.1); }
.panel--dark .score-ring__progress,
.report-score .score-ring__progress { stroke: var(--tier, #fff); }

.score-ring__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}
.score-ring__num {
  font-family: var(--font-display);
  font-size: clamp(80px, 11vw, 140px);
  font-weight: 500;
  letter-spacing: -0.06em;
  color: var(--tier, var(--ink));
  transition: color 0.6s var(--ease);
  font-variant-numeric: tabular-nums;
}
.panel--dark .score-ring__num,
.report-score .score-ring__num { color: var(--tier, #fff); }
.score-ring__den {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel--dark .score-ring__den,
.report-score .score-ring__den { color: rgba(255, 255, 255, 0.5); }

.score-verdict {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.panel--dark .score-verdict,
.report-score .score-verdict { color: #fff; }
.score-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.panel--dark .score-meta,
.report-score .score-meta { color: rgba(255, 255, 255, 0.6); }

/* small ring (in alternative cards) */
.score-ring--sm { width: 64px; }
.score-ring--sm .score-ring__track,
.score-ring--sm .score-ring__progress { stroke-width: 2.4; }
.score-ring--sm .score-ring__num { font-size: 18px; letter-spacing: -0.02em; }
.score-ring--sm .score-ring__den { display: none; }

/* ---------------------------------------------------------
   INTELLIGENCE — ruled list
   --------------------------------------------------------- */
.signal-list { width: 100%; max-width: 980px; border-top: 1px solid var(--line); }
.signal {
  display: grid;
  grid-template-columns: 44px 1fr 132px;
  align-items: center;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.signal:hover { background: rgba(23, 26, 32, 0.02); }
.signal__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(244, 244, 244, 0.6));
  border: 1px solid rgba(23, 26, 32, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(23, 26, 32, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.signal__icon .ti { font-size: 19px; }
.signal:hover .signal__icon {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(52, 87, 213, 0.12);
}
.signal__name { font-size: 17px; font-weight: 500; letter-spacing: -0.012em; }
.signal__desc {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
}

/* Weight — glass pill with gradient fill */
.weight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.weight__bar {
  position: relative;
  width: 120px;
  height: 6px;
  border-radius: 999px;
  background: rgba(23, 26, 32, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(23, 26, 32, 0.04);
}
.weight__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.weight__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3457d5 0%, #5d4dff 60%, #8a7bff 100%);
  box-shadow:
    0 0 12px rgba(52, 87, 213, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform-origin: left;
  animation: meterIn 1.4s var(--ease-out) both;
  transition: width 0.6s var(--ease-out);
}
.weight__num {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.panel--dark .signal__icon {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.panel--dark .weight__bar { background: rgba(255, 255, 255, 0.08); }
.panel--dark .weight__num { color: rgba(255, 255, 255, 0.55); }

/* ---------------------------------------------------------
   STEPS
   --------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1080px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 22px 24px 22px 0;
  border-right: 1px solid var(--line);
}
.step:last-child { border-right: 0; padding-right: 0; }
.step__num {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.step p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 30ch; }

/* ---------------------------------------------------------
   PRICING
   --------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 320px));
  gap: 16px;
  justify-content: center;
  width: 100%;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
  text-align: left;
}
.plan:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.plan--featured {
  border-color: rgba(23, 26, 32, 0.18);
  box-shadow: 0 14px 40px rgba(23, 26, 32, 0.08), 0 2px 6px rgba(23, 26, 32, 0.04);
  transform: translateY(-4px);
}
.plan--featured:hover { transform: translateY(-6px); }
.plan__name { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.plan__tag {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.plan__price-num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.plan__price-meta { font-size: 12.5px; color: var(--muted); }
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  color: var(--ink-soft);
  font-size: 14px;
}
.plan ul li { display: flex; align-items: flex-start; gap: 10px; }
.plan ul li::before {
  content: "";
  margin-top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.plan__cta { width: 100%; min-width: 0; padding: 12px 18px; }

/* ---------------------------------------------------------
   CLOSING
   --------------------------------------------------------- */
.panel--closing { background: var(--bg-deep); color: #fff; }

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
.footer {
  padding: 44px 32px 20px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer__cols { display: grid; grid-template-columns: repeat(4, auto); gap: 48px; }
.footer__cols h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.footer__cols a {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer__cols a:hover { color: var(--ink); }
.footer__legal {
  max-width: 1180px;
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
}

/* =========================================================
   REPORT PAGE
   ========================================================= */
.report-header {
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 40px;
  max-width: 980px;
  margin: 0 auto;
}
.report-header__crumb {
  display: inline-flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.report-header__crumb a { color: var(--ink); }
.report-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.report-header__meta {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 15px;
}
.report-header__tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg-soft);
  border-radius: 999px;
}
.pill--accent { color: #fff; background: var(--ink); }
.pill--good { color: #1f5d3b; background: #e2efe7; }
.pill--warn { color: #7a4a06; background: #fdebcf; }

.report-score {
  background: var(--bg-deep);
  color: #fff;
  padding: 64px 24px 56px;
}
.report-score__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.report-score__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.report-summary {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}
.report-summary__quote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.4;
}
.report-summary__byline {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-section { max-width: 1080px; margin: 0 auto; padding: 56px 24px; }
.report-section__head { text-align: center; margin-bottom: 36px; }
.report-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.022em;
}
.report-section__lead {
  margin: 14px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
}
.report-section--soft {
  max-width: none;
  background: var(--bg-soft);
}
.report-section--soft > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* Breakdown rows */
.breakdown { width: 100%; border-top: 1px solid var(--line); }
.breakdown__row {
  display: grid;
  grid-template-columns: 220px 1fr 120px 80px;
  align-items: center;
  gap: 32px;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.breakdown__row:hover { background: rgba(23, 26, 32, 0.025); }
.breakdown__row:hover .breakdown__chev { opacity: 1; transform: translateX(2px); }
.breakdown__name { font-size: 17px; font-weight: 500; letter-spacing: -0.012em; }
.breakdown__detail { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.breakdown__meter {
  height: 4px;
  background: rgba(23, 26, 32, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.breakdown__meter i {
  display: block;
  width: var(--w, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--tier, var(--ink)) 0%, color-mix(in oklab, var(--tier, var(--ink)) 70%, white) 100%);
  box-shadow: 0 0 10px color-mix(in oklab, var(--tier, var(--ink)) 35%, transparent);
  border-radius: inherit;
  transform-origin: left;
  animation: meterIn 1.4s var(--ease-out) both;
  transition: background 0.4s var(--ease);
}
.breakdown__meter--warn i { background: linear-gradient(90deg, var(--tier, var(--t-fair)), color-mix(in oklab, var(--tier, var(--t-fair)) 70%, white)); }
@keyframes meterIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.breakdown__score {
  text-align: right;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--tier, var(--ink));
  transition: color 0.4s var(--ease);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
}
.breakdown__chev {
  font-size: 14px;
  color: var(--muted-2);
  opacity: 0.4;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  align-self: center;
}
.breakdown__score--warn { color: var(--tier, var(--t-caution)); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }

/* Insights */
.insights { border-top: 1px solid var(--line); }
.insight {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  gap: 32px;
  align-items: flex-start;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.insight__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.insight__label--warn { color: var(--t-caution); }
.insight__body { font-size: 17px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.45; }
.insight__source { font-size: 12px; color: var(--muted-2); line-height: 1.5; }

/* Flags */
.flags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flag {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flag__label {
  display: inline-flex;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 999px;
  width: max-content;
}
.flag__label--warn { color: #7a4a06; background: #fdebcf; }
.flag__label--good { color: #1f5d3b; background: #def4ea; }
.flag h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.012em; }
.flag p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Alternatives */
.alts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.alt {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.alt:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.alt__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.alt__head > div { min-width: 0; flex: 1; }
.alt h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alt__loc { margin: 0; font-size: 12.5px; color: var(--muted); }
.alt p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.alt__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  width: max-content;
}

/* Methodology */
.report-method {
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.report-method__text { color: var(--muted); font-size: 14px; max-width: 640px; line-height: 1.6; }
.report-method__text strong { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------
   Reveal-on-scroll
   --------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 1ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .signal { grid-template-columns: 40px 1fr auto; gap: 16px; }
  .signal__name { font-size: 16px; }
  .signal__desc { font-size: 13px; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .step:last-child { border-bottom: 0; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .breakdown__row { grid-template-columns: 160px 1fr 80px 60px; gap: 16px; }
  .insight { grid-template-columns: 1fr; gap: 12px; }
  .flags, .alts { grid-template-columns: 1fr; }
  .report-method { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 0 16px; grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .nav__actions a:not(.is-mobile-keep) { display: none; }
  .panel { padding: calc(var(--nav-h) + 36px) 18px 36px; }
  .footer { padding: 48px 18px 20px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .search__cta { padding: 0 16px; font-size: 12.5px; }
  .search__kbd { display: none; }
  .breakdown__row {
    grid-template-columns: 1fr 64px;
    grid-template-areas: "name score" "detail detail" "meter meter";
    gap: 6px 16px;
  }
  .breakdown__name { grid-area: name; }
  .breakdown__detail { grid-area: detail; }
  .breakdown__meter { grid-area: meter; margin-top: 10px; }
  .breakdown__score { grid-area: score; font-size: 18px; }
  .report-header { padding: calc(var(--nav-h) + 48px) 18px 40px; }
  .report-section { padding: 56px 18px; }
  .report-summary { padding: 64px 18px; }
  .report-score { padding: 72px 18px 56px; }
  .report-method { padding: 56px 18px 80px; }
  .btn { min-width: 0; width: 100%; }
  .panel__bottom { width: 100%; flex-direction: column; }
}

/* =========================================================
   SOURCES DRAWER
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr min(480px, 100vw);
}
.drawer[hidden] { display: none; }
.drawer__scrim {
  background: rgba(10, 10, 10, 0.36);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.drawer__panel {
  position: relative;
  background: #fff;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: -16px 0 60px rgba(10, 10, 10, 0.16);
  outline: none;
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 28px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  z-index: 2;
}
.drawer__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.drawer__sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.drawer__close {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  transition: background 0.2s var(--ease);
}
.drawer__close:hover { background: var(--bg-soft); }
.drawer__close .ti { font-size: 18px; }

.drawer__list {
  margin: 0;
  padding: 12px 0;
  list-style: none;
  flex: 1;
}
.source {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s var(--ease);
}
.source:hover { background: rgba(23, 26, 32, 0.025); }
.source__favicon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  border: 1px solid var(--line);
  letter-spacing: 0;
}
.source__body { min-width: 0; }
.source__domain {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.source__title {
  margin: 2px 0 6px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.source__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.source__title .ti { font-size: 12px; color: var(--muted-2); }
.source__quote {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.source--empty {
  grid-template-columns: 1fr;
  padding: 18px 16px;
  background: var(--surface-soft);
  border-radius: 12px;
  text-align: center;
}
.source--empty .source__quote { color: var(--muted-2); font-style: italic; }
.source__weight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.source__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tier, var(--ink));
}

.drawer__foot {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.drawer__foot .ti { font-size: 14px; vertical-align: -2px; margin-right: 4px; }

@media (max-width: 720px) {
  .drawer { grid-template-columns: 0 1fr; }
  .drawer__head { padding: 22px 18px 18px; }
  .source { padding: 16px 18px; }
  .drawer__foot { padding: 14px 18px; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer__scrim, .drawer__panel { transition: none; }
}

/* =========================================================
   COMPARE PAGE
   ========================================================= */
:root {
  --vs-a: var(--ink);
  --vs-a-soft: rgba(23, 26, 32, 0.08);
  --vs-b: #3457d5;
  --vs-b-soft: rgba(52, 87, 213, 0.12);
}

.compare-header {
  text-align: center;
  padding: calc(var(--nav-h) + 48px) 24px 36px;
  max-width: 1080px;
  margin: 0 auto;
}
.compare-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.06;
}
.compare-header__vs {
  display: inline-block;
  margin: 0 12px;
  padding: 4px 10px 5px;
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 999px;
  vertical-align: middle;
  transform: translateY(-6px);
}
.compare-header__meta {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
}
.compare-header__actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.compare-header__actions .btn { min-width: 0; padding: 10px 18px; }

.compare-verdict {
  background: var(--bg-deep);
  color: #fff;
  padding: 72px 24px 80px;
  position: relative;
  overflow: hidden;
}
.compare-verdict::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 20% 30%, rgba(255, 255, 255, 0.05), transparent 65%),
    radial-gradient(900px 500px at 80% 70%, rgba(52, 87, 213, 0.10), transparent 65%);
  pointer-events: none;
}
.compare-verdict__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.compare-verdict__eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.compare-verdict__stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.vs-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.vs-side__head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.vs-side__flag {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10), 0 4px 14px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.vs-side__flag svg { width: 100%; height: 100%; display: block; }
.vs-side__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: #fff;
}
.vs-side__loc {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
.vs-side .score-ring { width: clamp(180px, 18vw, 240px); }
.vs-side .score-ring__num { font-size: clamp(60px, 7vw, 96px); }
.vs-side .score-ring__den { color: rgba(255, 255, 255, 0.5); margin-top: 4px; }
.vs-side__verdict {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.vs-side__meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.vs-diff {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 120px;
}
.vs-diff__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.vs-diff__num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--t-excellent-d);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.vs-diff__hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  line-height: 1.45;
}

.compare-verdict__summary {
  margin: 40px auto 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* Paired breakdown grid */
.vs-grid {
  width: 100%;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  --flag-a: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='16' cy='16' r='16'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='32' height='32' fill='%23E30A17'/%3E%3Ccircle cx='13.4' cy='16' r='6.2' fill='%23fff'/%3E%3Ccircle cx='14.8' cy='16' r='5' fill='%23E30A17'/%3E%3Cpolygon fill='%23fff' points='20.2,16 17.4,16.9 17.4,18.6 18.7,17.2 20.5,17.6 19.4,16 20.5,14.4 18.7,14.8 17.4,13.4 17.4,15.1'/%3E%3C/g%3E%3C/svg%3E");
  --flag-b: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='c'%3E%3Ccircle cx='16' cy='16' r='16'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%23c)'%3E%3Crect width='32' height='32' fill='%23ED1C24'/%3E%3Crect y='5.5' width='32' height='21' fill='%23fff'/%3E%3Crect y='11' width='32' height='10' fill='%23241D4F'/%3E%3C/g%3E%3C/svg%3E");
}
.vs-grid__head {
  display: grid;
  grid-template-columns: 180px 1fr 90px 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.vs-grid__col--a { color: var(--ink); font-weight: 600; }
.vs-grid__col--b { color: var(--vs-b); font-weight: 600; }
.vs-grid__col--diff { text-align: center; }
.vs-grid__col {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vs-grid__flag {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}
.vs-grid__col--a .vs-grid__flag { background-image: var(--flag-a); }
.vs-grid__col--b .vs-grid__flag { background-image: var(--flag-b); }

.vs-row {
  display: grid;
  grid-template-columns: 180px 1fr 90px 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.vs-row__name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.vs-cell {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 14px;
}
.vs-cell--b {
  grid-template-columns: 42px 1fr;
}
.vs-cell--b .vs-cell__num { order: 0; text-align: left; }
.vs-cell--b .vs-cell__track { order: 1; }
.vs-cell__track {
  position: relative;
  height: 7px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}
.vs-cell__fill {
  position: absolute;
  inset: 0;
  width: var(--w, 0%);
  border-radius: 999px;
  transform-origin: left;
  background: linear-gradient(90deg,
    color-mix(in oklab, var(--tier, #1f2329) 55%, white),
    var(--tier, #1f2329));
  box-shadow: 0 0 10px color-mix(in oklab, var(--tier, #1f2329) 28%, transparent);
  animation: meterIn 1.2s var(--ease-out) both;
}
.vs-cell--b .vs-cell__fill {
  transform-origin: right;
  left: auto;
  right: 0;
  background: linear-gradient(270deg,
    color-mix(in oklab, var(--tier, #3457d5) 55%, white),
    var(--tier, #3457d5));
}

.vs-cell__num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum";
  text-align: right;
  color: var(--tier, var(--ink));
}
.vs-cell--b .vs-cell__num { color: var(--tier, var(--vs-b)); }
.vs-cell__num--text { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

.vs-row__diff {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  min-width: 78px;
  white-space: nowrap;
  line-height: 1;
}
.vs-row__diff::before,
.vs-row__diff::after {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: currentColor;
}
.vs-row__diff--a { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 22%, transparent); background: color-mix(in oklab, var(--ink) 6%, white); }
.vs-row__diff--a::before { content: "\2190"; }
.vs-row__diff--b { color: var(--vs-b); border-color: color-mix(in oklab, var(--vs-b) 32%, transparent); background: color-mix(in oklab, var(--vs-b) 8%, white); }
.vs-row__diff--b::after { content: "\2192"; }

/* Cost / meta rows */
.vs-row--cost .vs-row__name { color: var(--muted); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.vs-meta {
  display: inline-flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.vs-meta small {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}
.vs-meta--a { color: var(--ink); }
.vs-meta--b { color: var(--vs-b); }

/* Diff cards */
.diffs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.diff {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.diff__topic {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.diff__topic .ti { font-size: 16px; color: var(--muted); }
.diff__col { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.diff__col p { margin: 8px 0 0; color: var(--muted); }
.diff__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.diff__pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.diff__col--b .diff__pip { background: var(--vs-b); }
.diff__col--b .diff__head { color: var(--vs-b); }
.diff__winner {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
}

/* Pick (recommendation) */
.pick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}
.pick__card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pick__badge {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.pick__card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
}
.pick__pick {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
}
.pick__card ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.pick__card ul li { display: flex; align-items: center; gap: 8px; }
.pick__card ul li .ti { font-size: 14px; color: var(--t-excellent); }
.pick__card .btn { margin-top: auto; width: 100%; min-width: 0; }

@media (max-width: 960px) {
  .compare-verdict__stage { grid-template-columns: 1fr; gap: 18px; }
  .vs-diff { flex-direction: row; gap: 14px; padding: 14px 22px; min-width: 0; align-self: center; }
  .vs-diff__hint br { display: none; }
  .diffs, .pick { grid-template-columns: 1fr; }
  .vs-row, .vs-grid__head { grid-template-columns: 140px 1fr 80px 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .vs-row, .vs-grid__head { grid-template-columns: 1fr 80px 1fr; gap: 12px; }
  .vs-row__name { grid-column: 1 / -1; }
  .compare-header__title { font-size: 30px; }
  .compare-header__vs { display: block; margin: 8px auto; transform: none; }
}

/* ---------------------------------------------------------
   BRAND MARK & TRUST FACTS
   --------------------------------------------------------- */
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: #fff;
}
.brand-mark__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.brand-mark--light,
body .brand-mark.is-light {
  background: rgba(23, 26, 32, 0.06);
  border-color: rgba(23, 26, 32, 0.10);
  color: var(--ink);
}

.tm {
  font-family: var(--font);
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0.02em;
  margin-left: 1px;
  opacity: 0.85;
}

/* Trust facts strip */
.vs-facts {
  margin: 14px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  width: 100%;
}
.vs-facts li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.vs-facts li:last-child { border-right: 0; }
.vs-facts li .ti {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}
.vs-facts li strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-transform: none;
  line-height: 1.1;
}
.vs-facts--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 720px) {
  .vs-facts { grid-template-columns: repeat(3, 1fr); gap: 12px 0; }
  .vs-facts li:nth-child(3) { border-right: 0; }
  .vs-facts li:nth-child(4) { border-right: 1px solid rgba(255, 255, 255, 0.06); }
}

/* ---------------------------------------------------------
   REVIEW AUDIT
   --------------------------------------------------------- */
.audit {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.audit__platform {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}
.audit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}
.audit__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.audit__head-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.audit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.audit__grid--single { grid-template-columns: 1fr; }
.audit-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
.audit-card--a { border-right: 1px solid var(--line); }
.audit-card--a::before,
.audit-card--b::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}
.audit-card--a::before { background: var(--ink); }
.audit-card--b::before { background: var(--vs-b); }

.audit-card__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-card__owner {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.audit-card--b .audit-card__owner { color: var(--vs-b); }
.audit-card__rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.audit-card__rating strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.audit-card__stars {
  display: inline-flex;
  gap: 2px;
  color: #f5b400;
  font-size: 16px;
}
.audit-card__count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.audit-card__spark {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}
.audit-card__spark-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.audit-card__spark-fill {
  fill: rgba(23, 26, 32, 0.06);
}
.audit-card--b .audit-card__spark-line { stroke: var(--vs-b); }
.audit-card--b .audit-card__spark-fill { fill: rgba(52, 87, 213, 0.08); }
.audit-card__spark-cap {
  margin: -8px 0 0;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.audit-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit-stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.audit-stats li:last-child { border-bottom: 0; padding-bottom: 0; }
.audit-stats li span { color: var(--muted); letter-spacing: 0.01em; }
.audit-stats li strong {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.audit-stats li strong.t-good { color: var(--t-excellent); }
.audit-stats li strong.t-warn { color: var(--t-caution); }

.audit-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.audit-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.audit-flag .ti { font-size: 13px; }
.audit-flag--good {
  background: color-mix(in oklab, var(--t-excellent) 10%, white);
  color: var(--t-excellent);
  border-color: color-mix(in oklab, var(--t-excellent) 18%, white);
}
.audit-flag--warn {
  background: color-mix(in oklab, var(--t-caution) 12%, white);
  color: var(--t-caution);
  border-color: color-mix(in oklab, var(--t-caution) 20%, white);
}

.audit__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.audit__foot .ti { color: var(--muted-2); flex-shrink: 0; margin-top: 2px; }

@media (max-width: 820px) {
  .audit__grid { grid-template-columns: 1fr; }
  .audit-card--a { border-right: 0; border-bottom: 1px solid var(--line); }
  .audit__head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------------------------------------------------------
   RISK FLAGS
   --------------------------------------------------------- */
.risks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}
.risks--single { grid-template-columns: 1fr; }
.risks--single .risks__card::before { background: var(--ink); }
.risks__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.risks__card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.risks__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--ink);
}
.risks__card:nth-child(2)::before { background: var(--vs-b); }

.risks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.risks__owner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.risks__owner--b { color: var(--vs-b); }
.risks__flag {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.risks__flag svg { width: 100%; height: 100%; display: block; }
.risks__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-soft);
  white-space: nowrap;
}
.risks__stat .ti { font-size: 14px; }
.risks__stat--ok {
  color: var(--t-excellent);
  background: color-mix(in oklab, var(--t-excellent) 10%, white);
  border-color: color-mix(in oklab, var(--t-excellent) 22%, white);
}
.risks__stat--warn {
  color: var(--t-caution);
  background: color-mix(in oklab, var(--t-caution) 12%, white);
  border-color: color-mix(in oklab, var(--t-caution) 25%, white);
}

.risks__group {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.risks__group::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.risks__group--warn { color: var(--t-caution); }
.risks__group--warn::before { background: var(--t-caution); box-shadow: 0 0 8px color-mix(in oklab, var(--t-caution) 50%, transparent); }
.risks__group--ok { color: var(--t-excellent); }
.risks__group--ok::before { background: var(--t-excellent); box-shadow: 0 0 8px color-mix(in oklab, var(--t-excellent) 50%, transparent); }

.risks__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.risk {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.risk__pip {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  margin-top: 5px;
}
.risk--warn {
  background: color-mix(in oklab, var(--t-caution) 6%, white);
  border-color: color-mix(in oklab, var(--t-caution) 22%, white);
}
.risk--warn .risk__pip { background: var(--t-caution); box-shadow: 0 0 0 3px color-mix(in oklab, var(--t-caution) 14%, transparent); }
.risk--ok {
  background: color-mix(in oklab, var(--t-excellent) 5%, white);
  border-color: color-mix(in oklab, var(--t-excellent) 18%, white);
  align-items: center;
  font-size: 13px;
  color: var(--ink-soft);
}
.risk--ok .risk__pip { background: var(--t-excellent); margin-top: 0; }
.risk__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.risk__sub {
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 820px) {
  .risks { grid-template-columns: 1fr; }
  .risks__cols { grid-template-columns: 1fr; gap: 18px; }
  .risks__head { flex-direction: column; align-items: flex-start; gap: 8px; }
}


/* ─────────────────────────────────────────────
   PHP additions — search grid, lead form, banners
   ───────────────────────────────────────────── */
.search__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}
.search__grid input,
.search__grid select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.search__grid input:focus,
.search__grid select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (max-width: 720px) {
  .search__grid { grid-template-columns: 1fr; }
}

/* Lead form */
.lead { display: grid; gap: 14px; }
.lead__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lead__full { grid-column: 1 / -1; }
.lead label { display: grid; gap: 6px; }
.lead label > span { font-size: 12px; color: #5f6368; font-weight: 500; }
.lead input, .lead textarea, .lead select {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.lead input:focus, .lead textarea:focus, .lead select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.lead textarea { resize: vertical; min-height: 84px; }
.lead__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.lead__legal { color: #5f6368; font-size: 12.5px; }
@media (max-width: 640px) {
  .lead__grid { grid-template-columns: 1fr; }
}

/* Banner */
.banner {
  max-width: 760px;
  margin: 16px auto;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}
.banner--error { background: #fdecea; color: #6b1f15; }
.banner--success { background: #e8f3ee; color: #1c5b34; }

/* Banner sticky on top so the user always sees error feedback */
.banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  text-align: center;
  border-radius: 0;
  margin: 0 auto;
  max-width: none;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
