/* styles.css — Vetfluence v2
   Refined per impeccable + taste/minimalism skills:
   • Tinted neutrals (OKLCH, biased subtly cool toward the accent)
   • Hierarchy ≥1.25 ratio between type steps
   • Ease-out-expo motion curves
   • New section grammar: ruled rows (How it works), comparison list (Checks), dominant Pro tile (Pricing)
   • Restrained scroll-reveal
*/

:root {
  /* OKLCH neutrals tinted toward the brand hue (250° = cool blue). */
  --bg:       oklch(99.4% 0.003 250);   /* page (not pure white) */
  --bg-alt:   oklch(97.4% 0.005 250);   /* section tint */
  --bg-tint:  oklch(95.4% 0.006 250);   /* chip / track */
  --ink:      oklch(20.5% 0.012 250);   /* primary text */
  --ink-2:    oklch(50%   0.010 250);   /* secondary text */
  --ink-3:    oklch(70%   0.008 250);   /* tertiary text */
  --line:     oklch(91%   0.006 250);   /* borders */
  --line-2:   oklch(94%   0.005 250);   /* faint divider */

  --accent:        oklch(57% 0.18 254);   /* Apple-blue, slightly warmed */
  --accent-deep:   oklch(48% 0.18 254);
  --accent-ink:    #ffffff;
  --accent-tint:   oklch(96% 0.04 254);   /* very pale accent wash */

  /* Semantic only */
  --green:  oklch(70% 0.16 145);
  --amber:  oklch(76% 0.16  68);
  --red:    oklch(65% 0.22  27);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px -16px rgba(15, 23, 42, 0.16),
               0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-pro: 0 30px 60px -28px oklch(57% 0.18 254 / 0.18),
                0 2px 6px rgba(15, 23, 42, 0.04);

  --radius-card: 16px;
  --radius-card-lg: 22px;
  --sec-pad-y: 128px;
  --container: 1100px;

  /* Type scale (ratio ≈1.27 between adjacent steps) */
  --t-eyebrow:  13px;
  --t-meta:     13.5px;
  --t-body:     17px;
  --t-lead:     21px;
  --t-h3:       22px;
  --t-h2-min:   34px;
  --t-h2-max:   60px;
  --t-h1-min:   54px;
  --t-h1-max:   104px;

  --pad-card: 28px;

  /* Motion: exponential ease-out per impeccable */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.30, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

[data-density="cozy"] {
  --sec-pad-y: 88px;
  --pad-card: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html { scroll-behavior: smooth; }
button { font-family: inherit; }

.vf-app { min-height: 100vh; }

/* ── Typography ─────────────────────────────────────────── */
.h-hero {
  font-size: clamp(var(--t-h1-min), 8vw, var(--t-h1-max));
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(var(--t-h2-min), 4.6vw, var(--t-h2-max));
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.h-3 {
  font-size: var(--t-h3);
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0;
}
.eyebrow {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.dim { color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; }

/* ── Layout helpers ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); padding: 0 32px; margin: 0 auto; }
.wide      { width: 100%; max-width: 1200px; padding: 0 32px; margin: 0 auto; }
.section   { padding: var(--sec-pad-y) 0; }
.section--tint { background: var(--bg-alt); }
.divider   { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out-expo),
              transform 0.9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: oklch(99.4% 0.003 250 / 0.78);
  border-bottom: 1px solid oklch(91% 0.006 250 / 0.6);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
  cursor: default;
}
.brand-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), oklch(72% 0.14 250));
  position: relative;
}
.brand-dot::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 55%);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a { color: inherit; text-decoration: none; cursor: pointer; transition: color .18s var(--ease-out-quart); }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13.5px; font-weight: 500;
  background: var(--ink); color: white;
  padding: 8px 16px; border-radius: 999px;
  border: 0; cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100dvh - 64px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 32px 64px;
}
.hero-tagline {
  font-size: 14px; color: var(--ink-2);
  margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 999px;
}
.hero-tagline .dot {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 999px; background: var(--green);
}
.hero-sub {
  font-size: clamp(18px, 2vw, var(--t-lead));
  color: var(--ink-2);
  margin: 24px auto 44px;
  max-width: 540px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.hero-tags { margin-top: 22px; color: var(--ink-3); font-size: 14px; }
.hero-tags b { color: var(--ink-2); font-weight: 500; }
.hero-tags .tag {
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px dashed transparent;
  transition: color .15s var(--ease-out-quart), border-color .15s var(--ease-out-quart);
}
.hero-tags .tag:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hero-disclaimer { margin-top: 22px; color: var(--ink-3); font-size: 13px; }

/* ── Search bar ─────────────────────────────────────────── */
.search-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }

.platform-toggle {
  display: inline-flex; gap: 4px;
  background: var(--bg-tint);
  padding: 4px; border-radius: 999px;
}
.platform-toggle button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  padding: 7px 16px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .18s var(--ease-out-quart),
              color .18s var(--ease-out-quart),
              box-shadow .18s var(--ease-out-quart);
}
.platform-toggle button.is-active {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 0 0 0.5px rgba(15,23,42,.04);
}

.search-bar {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 60px;
  width: min(520px, 100%);
  padding: 6px 6px 6px 22px;
  transition: border-color .2s var(--ease-out-quart), box-shadow .2s var(--ease-out-quart);
}
.search-bar:focus-within {
  border-color: oklch(57% 0.18 254 / 0.45);
  box-shadow: 0 0 0 4px oklch(57% 0.18 254 / 0.10);
}
.search-bar .at { color: var(--ink-3); margin-right: 4px; font-size: 17px; user-select: none; }
.search-bar input {
  appearance: none; border: 0; outline: 0;
  background: transparent;
  flex: 1; min-width: 0;
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 0;
  letter-spacing: -0.005em;
}
.search-bar input::placeholder { color: var(--ink-3); }
.search-go {
  appearance: none; border: 0;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--accent); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform .2s var(--ease-out-expo),
              background .15s var(--ease-out-quart),
              opacity .15s var(--ease-out-quart);
}
.search-go:hover { transform: scale(1.06); }
.search-go:active { transform: scale(0.96); }
.search-go:disabled { opacity: 0.4; cursor: default; transform: none; }
.search-go svg { width: 20px; height: 20px; }
.search-bar--lg { height: 64px; padding-left: 26px; }

/* ── Generic card ───────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--pad-card);
}

/* ── Section intro ──────────────────────────────────────── */
.sec-intro { max-width: 720px; text-align: center; margin: 0 auto; }
.sec-intro .sub { color: var(--ink-2); font-size: 19px; margin-top: 16px; letter-spacing: -0.01em; text-wrap: pretty; }
.sec-head-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ── How it works: numbered ruled rows ─────────────────── */
.how-rows {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.how-row {
  display: grid;
  grid-template-columns: 96px 1fr minmax(280px, 0.9fr);
  gap: 48px;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.how-row .idx {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.how-row h3 {
  font-size: 30px;
  letter-spacing: -0.022em;
  font-weight: 600;
  margin: 0;
  line-height: 1.05;
}
.how-row .body {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  max-width: 44ch;
}
@media (max-width: 760px) {
  .how-row {
    grid-template-columns: 56px 1fr;
    gap: 16px 20px;
    padding: 32px 0;
  }
  .how-row .body { grid-column: 2; max-width: none; }
}

/* ── What we check: comparison list ─────────────────────── */
.check-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.check-row {
  display: grid;
  grid-template-columns: 1.1fr 2fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease-out-quart);
}
.check-row:hover { background: var(--bg-alt); padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
.check-row h3 {
  font-size: 21px; font-weight: 600; letter-spacing: -0.014em;
  margin: 0;
}
.check-row .body { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.check-row .weight {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  font-weight: 500;
}
@media (max-width: 760px) {
  .check-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .check-row:hover { padding-left: 0; padding-right: 0; margin: 0; }
  .check-row .weight { order: -1; color: var(--accent); }
}

/* ── Who it's for: scenarios ────────────────────────────── */
.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}
.who-cell {
  background: var(--bg);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
}
.who-cell .label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.who-cell .quote {
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* ── Pricing: dominant Pro + side rails ─────────────────── */
.price-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
  margin-top: 56px;
  align-items: stretch;
}
.price-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .4s var(--ease-out-expo);
}
.price-card--featured {
  background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 60%);
  border-color: oklch(57% 0.18 254 / 0.25);
  box-shadow: var(--shadow-pro);
  padding: 48px 36px;
  margin: -12px 0;
}
.price-badge {
  position: absolute; top: -12px; left: 36px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
}
.price-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.price-card--featured .price-name { color: var(--accent-deep); }
.price-amount {
  margin: 14px 0 6px;
  font-size: 44px; font-weight: 600; letter-spacing: -0.028em;
  line-height: 1;
}
.price-card--featured .price-amount { font-size: 56px; }
.price-amount small {
  font-size: 16px; color: var(--ink-2); font-weight: 500; margin-left: 4px;
}
.price-tag { color: var(--ink-2); font-size: 15px; margin-bottom: 28px; text-wrap: pretty; }
.price-features {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px;
}
.price-features li {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--ink);
}
.price-features svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-cta {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: var(--ink);
  font: inherit; font-size: 14.5px; font-weight: 500;
  padding: 12px 18px; border-radius: 999px;
  cursor: pointer; margin-top: auto;
  transition: background .18s var(--ease-out-quart),
              border-color .18s var(--ease-out-quart);
}
.price-cta:hover { background: var(--bg-alt); }
.price-cta--filled {
  background: var(--accent); border-color: var(--accent); color: white;
}
.price-cta--filled:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.price-note { color: var(--ink-3); font-size: 13px; text-align: center; margin-top: 32px; }
@media (max-width: 860px) {
  .price-row { grid-template-columns: 1fr; }
  .price-card--featured { margin: 0; }
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 19px; font-weight: 500; color: var(--ink);
  text-align: left; letter-spacing: -0.014em;
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer;
}
.faq-q .chev {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--bg-tint); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease-out-expo),
              background .15s var(--ease-out-quart);
  flex-shrink: 0;
}
.faq-item.is-open .faq-q .chev {
  transform: rotate(180deg);
  background: var(--accent-tint); color: var(--accent);
}
.faq-a {
  max-height: 0; overflow: hidden;
  color: var(--ink-2); font-size: 16px; line-height: 1.6;
  transition: max-height .45s var(--ease-out-expo), padding .3s var(--ease-out-quart);
  padding: 0;
  max-width: 70ch;
}
.faq-item.is-open .faq-a { max-height: 320px; padding: 0 0 26px; }

/* ── Footer CTA ─────────────────────────────────────────── */
.footer-cta {
  background: linear-gradient(180deg, var(--accent-tint), var(--bg-alt));
  border-top: 1px solid var(--line);
  padding: 128px 32px 104px;
  text-align: center;
}
.footer-end {
  padding: 28px 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--ink-3);
  background: var(--bg-alt);
}
.footer-end .links { display: flex; gap: 22px; }
.footer-end .links a { color: inherit; text-decoration: none; transition: color .15s var(--ease-out-quart); }
.footer-end .links a:hover { color: var(--ink); }

/* ── Browser frame (example report) ─────────────────────── */
.browser-frame {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px oklch(20% 0.012 250 / 0.18),
              0 2px 6px rgba(15,23,42,0.04);
}
.browser-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i {
  display: inline-block; width: 11px; height: 11px; border-radius: 999px;
  background: var(--line);
}
.browser-dots i:nth-child(1) { background: oklch(70% 0.18 27); }
.browser-dots i:nth-child(2) { background: oklch(80% 0.16 80); }
.browser-dots i:nth-child(3) { background: oklch(75% 0.16 145); }
.browser-url {
  font-size: 12.5px; color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  flex: 1; max-width: 480px;
}
.browser-url b { color: var(--ink-2); font-weight: 500; }

.example-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-tint);
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto 28px;
}
.example-toggle button {
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  padding: 7px 16px; border-radius: 999px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s var(--ease-out-quart), color .2s var(--ease-out-quart);
}
.example-toggle button.is-active {
  background: var(--bg); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.example-toggle .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px;
}

.mini-report { padding: 40px 36px 44px; }

/* ── Report screen ──────────────────────────────────────── */
.report { max-width: 880px; margin: 0 auto; padding: 56px 32px 120px; }
.report-top {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 14px;
  margin-bottom: 36px;
}
.report-top button {
  appearance: none; background: transparent; border: 0;
  color: var(--ink-2); font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 999px;
  transition: background .15s var(--ease-out-quart),
              color .15s var(--ease-out-quart);
}
.report-top button:hover { color: var(--ink); background: var(--bg-alt); }

.profile-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 40px;
}
.avatar {
  width: 72px; height: 72px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.profile-meta h1 {
  font-size: 28px; font-weight: 600; letter-spacing: -0.022em; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.profile-meta .name {
  color: var(--ink-2); font-size: 15px; margin-top: 4px;
}
.platform-badge {
  font-size: 11px; font-weight: 500;
  background: var(--bg-tint); color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex; align-items: center; gap: 6px;
  vertical-align: 4px;
}

.score-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 44px 32px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.score-ring-wrap { position: relative; width: 140px; height: 140px; }
.score-ring-wrap .num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.score-band {
  margin-top: 18px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.score-band .dot { width: 9px; height: 9px; border-radius: 999px; }
.score-summary {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 16px;
  max-width: 52ch;
  text-wrap: pretty;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px;
}
.metric .label {
  font-size: 12.5px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}
.metric .value {
  margin-top: 10px;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
}
.metric .sub { margin-top: 4px; color: var(--ink-2); font-size: 13px; }

.section-title {
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 40px 0 16px;
}

.breakdown-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.bar-row { display: flex; flex-direction: column; gap: 8px; }
.bar-head { display: flex; justify-content: space-between; font-size: 14.5px; }
.bar-head .v { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
.bar-track {
  height: 6px; background: var(--bg-tint); border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 1.1s var(--ease-out-expo);
}

.signal-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  align-items: start;
}
.signal-card + .signal-card { margin-top: 10px; }
.signal-dot {
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 7px;
}
.signal-title { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.signal-body { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }

.rec-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}
.rec-card .label {
  font-size: 12.5px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 500;
}
.rec-card .verdict {
  margin-top: 8px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.018em;
}
.rec-card .body { margin-top: 10px; color: var(--ink); font-size: 16px; line-height: 1.6; }

.actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 12px 20px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s var(--ease-out-quart),
              border-color .15s var(--ease-out-quart);
}
.btn:hover { background: var(--bg-alt); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ── Analyzing transition ───────────────────────────────── */
.analyzing {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(99.4% 0.003 250 / 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 22px;
  text-align: center;
  animation: vf-fade-in 0.25s var(--ease-out-quart);
}
.analyzing .ring {
  width: 56px; height: 56px;
  border-radius: 999px;
  border: 3px solid var(--bg-tint);
  border-top-color: var(--accent);
  animation: vf-spin 0.9s linear infinite;
}
.analyzing .status {
  font-size: 15.5px; color: var(--ink-2);
  letter-spacing: -0.005em;
  min-height: 22px;
}
.analyzing .status b { color: var(--ink); font-weight: 500; }

@keyframes vf-spin { to { transform: rotate(360deg); } }
@keyframes vf-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vf-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: vf-fade-up 0.6s var(--ease-out-expo) both; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .metrics-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 24px 48px; }
  .nav-links { display: none; }
  :root { --sec-pad-y: 96px; }
}
