/* ==========================================================================
   ResumeScan — design system
   Single stylesheet, no build step, no framework.
   Sections: tokens -> reset -> typography -> buttons -> hero -> upload ->
             results -> parser view -> issues -> paywall -> trust -> footer ->
             report -> diff -> admin -> legal -> responsive -> motion prefs
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Dark hero surface */
  --ink-900: #0b1020;
  --ink-800: #121a33;
  --ink-700: #1e1b4b;
  --ink-600: #2a2560;

  /* Light content surface */
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-sunk: #eef1f8;

  /* Text */
  --text: #16192b;
  --text-soft: #4a5069;
  --text-mute: #6b7189;
  --text-invert: #f2f4fb;
  --text-invert-soft: #b6bcd6;

  /* Brand accent: teal -> violet, avoids cheap flat blue */
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --violet: #a855f7;
  --violet-deep: #8b3fe0;
  --accent-grad: linear-gradient(115deg, #2dd4bf 0%, #818cf8 52%, #a855f7 100%);

  /* Semantic */
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  --good: #10b981;
  --good-bg: #ecfdf5;
  --info: #38bdf8;

  /* Lines */
  --line: #e4e7f0;
  --line-soft: #eef0f6;
  --line-invert: rgba(255, 255, 255, 0.12);

  /* Radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Shadows — soft, low-contrast, never harsh */
  --sh-xs: 0 1px 2px rgba(16, 20, 40, 0.06);
  --sh-sm: 0 2px 6px rgba(16, 20, 40, 0.07);
  --sh: 0 6px 18px rgba(16, 20, 40, 0.08);
  --sh-lg: 0 18px 42px rgba(16, 20, 40, 0.12);
  --sh-glow: 0 14px 40px rgba(168, 85, 247, 0.28);

  /* Spacing rhythm */
  --gut: 24px;
  --maxw: 1160px;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
/* The UA sheet's [hidden]{display:none} loses to any class that sets a display
   value (e.g. .gate{display:grid}), which would leave hidden panels on screen.
   Make the attribute authoritative everywhere. */
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
p { margin: 0 0 1em; }
a { color: var(--violet-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1em; padding-left: 1.15em; }

/* Visible keyboard focus everywhere (a11y requirement) */
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}
.on-dark :focus-visible,
.hero :focus-visible { outline-color: var(--teal); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 780px; }
.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--soft { background: var(--bg-soft); }
.section--sunk { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }

.stack > * + * { margin-top: 14px; }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-deep);
  margin-bottom: 14px;
}
.eyebrow--invert { color: var(--teal); }

.lede { font-size: 1.12rem; color: var(--text-soft); max-width: 62ch; }
.lede--invert { color: var(--text-invert-soft); }
.center .lede { margin-left: auto; margin-right: auto; }

.muted { color: var(--text-mute); }
.small { font-size: 0.88rem; }
.tiny { font-size: 0.8rem; }
.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 0.97rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
              background-color 0.16s var(--ease), border-color 0.16s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--sh); text-decoration: none; }
.btn:active { transform: translateY(0); box-shadow: var(--sh-xs); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none;
}

.btn--primary { background: var(--accent-grad); color: #fff; box-shadow: var(--sh-glow); }
.btn--primary:hover { box-shadow: 0 18px 46px rgba(45, 212, 191, 0.3); }
.btn--dark { background: var(--ink-900); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn--onDark {
  background: rgba(255, 255, 255, 0.09); color: var(--text-invert);
  border-color: var(--line-invert);
}
.btn--onDark:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255,255,255,0.3); }
.btn--lg { padding: 16px 30px; font-size: 1.03rem; border-radius: var(--r-lg); }
.btn--sm { padding: 9px 16px; font-size: 0.88rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn svg { flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- 5. Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 16, 32, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-invert);
}
.nav__in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.06rem; letter-spacing: -0.03em;
  color: #fff; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; flex: none; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--text-invert-soft); font-size: 0.92rem; font-weight: 550; }
.nav__links a:hover { color: #fff; text-decoration: none; }
.nav__cta { padding: 9px 17px; font-size: 0.9rem; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- 6. Hero (dark) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--text-invert);
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 100%);
  padding: 60px 0 84px;
}
/* Soft accent orbs — pure CSS, no image weight */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(90px); opacity: 0.5;
}
.hero::before { width: 460px; height: 460px; top: -180px; right: -120px; background: rgba(168, 85, 247, 0.5); }
.hero::after { width: 400px; height: 400px; bottom: -200px; left: -140px; background: rgba(45, 212, 191, 0.36); }
.hero__in { position: relative; z-index: 2; }

.hero h1 { max-width: 16ch; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--teal) 10%, #a5b4fc 50%, var(--violet) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 2.1vw, 1.2rem); color: var(--text-invert-soft); max-width: 58ch; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-invert);
  color: var(--text-invert-soft);
}
.pill--good { color: #6ee7d5; }
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.hero__split { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 46px; align-items: start; }
@media (max-width: 1020px) { .hero__split { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- 7. Upload / dropzone ---------- */
.uploader {
  background: rgba(255, 255, 255, 0.055);
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  text-align: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
}
.uploader:hover { border-color: var(--teal); background: rgba(255, 255, 255, 0.08); }
.uploader.is-drag {
  border-color: var(--teal); background: rgba(45, 212, 191, 0.14);
  transform: scale(1.012);
}
.uploader.is-busy { pointer-events: none; opacity: 0.75; }
.uploader__icon { width: 46px; height: 46px; margin: 0 auto 14px; }
.uploader__title { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.uploader__hint { font-size: 0.86rem; color: var(--text-invert-soft); }
.uploader__types {
  display: flex; justify-content: center; gap: 8px; margin-top: 16px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--text-invert-soft);
}
.uploader__types span {
  padding: 3px 9px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-invert);
}

/* Selected file chip */
.filechip {
  display: flex; align-items: center; gap: 12px; text-align: left;
  margin-top: 16px; padding: 12px 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--line-invert);
}
.filechip__name { font-weight: 620; color: #fff; font-size: 0.93rem; word-break: break-all; }
.filechip__meta { font-size: 0.78rem; color: var(--text-invert-soft); font-family: var(--mono); }
.filechip__x {
  margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-invert); background: transparent; color: #fff;
  cursor: pointer; font-size: 1rem; line-height: 1;
}
.filechip__x:hover { background: rgba(255,255,255,0.14); }

/* Optional JD accordion inside uploader card */
.field { margin-top: 16px; text-align: left; }
.field__label {
  display: block; font-size: 0.85rem; font-weight: 650;
  color: var(--text-invert); margin-bottom: 7px;
}
.field__hint { font-size: 0.78rem; color: var(--text-invert-soft); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--violet); box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14); outline: none;
}
.on-dark .input, .on-dark .textarea, .on-dark .select {
  background: rgba(255,255,255,0.07); border-color: var(--line-invert); color: #fff;
}
.on-dark .input::placeholder, .on-dark .textarea::placeholder { color: rgba(255,255,255,0.42); }
.textarea { min-height: 118px; resize: vertical; font-size: 0.92rem; line-height: 1.55; }

.select-row { display: flex; gap: 10px; flex-wrap: wrap; }
.select-row .select { flex: 1 1 190px; }

.industry-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  padding: 7px 13px; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid var(--line-invert); background: rgba(255,255,255,0.06);
  color: var(--text-invert-soft); font-size: 0.82rem; font-weight: 600;
  transition: all 0.16s var(--ease);
}
.chip:hover { border-color: var(--teal); color: #fff; }
.chip.is-on { background: rgba(45,212,191,0.2); border-color: var(--teal); color: #fff; }

/* ---------- 8. Scan progress (skeleton + sweep) ---------- */
.scanning { padding: 30px 26px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.scanning__title { font-weight: 700; font-size: 1.06rem; margin-bottom: 4px; }
.scanning__step { font-size: 0.88rem; color: var(--text-mute); font-family: var(--mono); min-height: 1.4em; }
.scanning__steps { list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.88rem; }
.scanning__steps li {
  display: flex; align-items: center; gap: 10px; padding: 5px 0;
  color: var(--text-mute); transition: color 0.25s var(--ease);
}
.scanning__steps li .tick {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 10px; color: transparent;
}
.scanning__steps li.is-active { color: var(--text); font-weight: 600; }
.scanning__steps li.is-active .tick { border-color: var(--violet); border-right-color: transparent; animation: spin 0.7s linear infinite; }
.scanning__steps li.is-done { color: var(--text-soft); }
.scanning__steps li.is-done .tick { border-color: var(--good); background: var(--good); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Shimmer skeleton */
.skel {
  position: relative; overflow: hidden; background: var(--bg-sunk);
  border-radius: var(--r-sm);
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.85) 48%, transparent 100%);
  transform: translateX(-100%);
  animation: sweep 1.25s ease-in-out infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }
.skel--line { height: 12px; margin-bottom: 9px; }
.skel--line.w70 { width: 70%; } .skel--line.w45 { width: 45%; } .skel--line.w90 { width: 90%; }
.skel--circle { width: 148px; height: 148px; border-radius: 50%; }
.skel--block { height: 88px; margin-bottom: 10px; }

/* ---------- 9. Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--sh-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: #d8d2f0; }
.card--flat { box-shadow: none; }
.card--glass {
  background: rgba(255,255,255,0.06); border-color: var(--line-invert);
  color: var(--text-invert); box-shadow: none;
}
.card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.card__body { color: var(--text-soft); font-size: 0.94rem; }

.card__icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); margin-bottom: 14px;
  display: grid; place-items: center; background: var(--bg-sunk); color: var(--violet-deep);
}
.card__icon--good { background: var(--good-bg); color: #047857; }
.card__icon--warn { background: var(--warn-bg); color: #b45309; }
.card__icon--info { background: #eff6ff; color: #0369a1; }

/* ---------- 10. Score gauge ---------- */
.result-head {
  display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 30px; box-shadow: var(--sh);
}
@media (max-width: 780px) { .result-head { grid-template-columns: 1fr; text-align: center; gap: 22px; } }

.gauge { position: relative; width: 178px; height: 178px; flex: none; }
.gauge svg { transform: rotate(-90deg); overflow: visible; }
.gauge__track { fill: none; stroke: var(--bg-sunk); stroke-width: 14; }
.gauge__bar {
  fill: none; stroke-width: 14; stroke-linecap: round;
  transition: stroke-dashoffset 1.1s var(--ease), stroke 0.5s var(--ease);
}
.gauge__mid {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.gauge__num {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 3.1rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em;
}
.gauge__den { font-size: 0.82rem; color: var(--text-mute); font-weight: 600; }
.gauge__label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 6px; }

.verdict {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px;
  border-radius: var(--r-pill); font-weight: 700; font-size: 0.88rem; text-transform: uppercase;
  letter-spacing: 0.06em;
}
.verdict--good { background: var(--good-bg); color: #047857; }
.verdict--fair { background: var(--warn-bg); color: #b45309; }
.verdict--poor { background: var(--danger-bg); color: #b91c1c; }

.result-summary { font-size: 1.08rem; color: var(--text); margin-bottom: 14px; }

/* Metric bars */
.metrics { display: grid; gap: 15px; }
.metric__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.metric__name { font-size: 0.9rem; font-weight: 620; }
.metric__val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.9rem; }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; }
.bar__fill {
  height: 100%; width: 0; border-radius: var(--r-pill); background: var(--accent-grad);
  transition: width 1s var(--ease);
}
.bar--good .bar__fill { background: linear-gradient(90deg, #34d399, #10b981); }
.bar--warn .bar__fill { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar--bad  .bar__fill { background: linear-gradient(90deg, #f87171, #ef4444); }

/* ---------- 11. Parser View (signature module) ---------- */
.parser {
  background: #080d1c; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid #1c2440; box-shadow: var(--sh-lg);
}
.parser__bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 16px;
  background: #0d1428; border-bottom: 1px solid #1c2440;
  font-family: var(--mono); font-size: 0.76rem; color: #8b93b8;
}
.parser__dots { display: flex; gap: 6px; }
.parser__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.parser__dots i:nth-child(1) { background: #ef4444; }
.parser__dots i:nth-child(2) { background: #f59e0b; }
.parser__dots i:nth-child(3) { background: #10b981; }
.parser__fname { margin-left: 4px; }
.parser__flag {
  margin-left: auto; padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(239, 68, 68, 0.16); color: #fca5a5; border: 1px solid rgba(239,68,68,0.35);
}
.parser__flag--ok { background: rgba(16,185,129,0.14); color: #6ee7b7; border-color: rgba(16,185,129,0.35); }

.parser__body {
  padding: 20px 18px; font-family: var(--mono); font-size: 0.83rem; line-height: 1.72;
  color: #cfd6ee; white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow: auto;
  tab-size: 4;
}
/* Line numbers gutter */
.parser__line { display: block; }
.parser__line::before {
  content: attr(data-ln); display: inline-block; width: 2.4em; margin-right: 14px;
  text-align: right; color: #3f4a70; user-select: none; -webkit-user-select: none;
}
/* Mangled line treatment */
.parser__line.is-broken {
  background: rgba(239, 68, 68, 0.1);
  box-shadow: inset 3px 0 0 var(--danger);
  margin: 0 -18px; padding: 1px 18px 1px 0;
  color: #ffd9d9;
}
.parser__line.is-broken::before { color: #b1585f; }
.parser__line.is-noise {
  color: #7f88ad; text-decoration: line-through;
  text-decoration-color: rgba(239, 68, 68, 0.7);
}
.parser__legend {
  display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 16px;
  border-top: 1px solid #1c2440; background: #0d1428;
  font-size: 0.78rem; color: #8b93b8;
}
.parser__key { display: inline-flex; align-items: center; gap: 7px; }
.parser__swatch { width: 11px; height: 11px; border-radius: 3px; }
.parser__swatch--bad { background: rgba(239,68,68,0.35); border-left: 2px solid var(--danger); }
.parser__swatch--noise { background: transparent; border-top: 2px dashed #6b7396; }

/* Mini "column scramble" diagram, pure CSS */
.scramble {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px;
  padding: 16px; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line);
}
.scramble__col { display: grid; gap: 6px; }
.scramble__label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-mute); margin-bottom: 2px;
}
.scramble__block { height: 9px; border-radius: 3px; background: #cfd4e6; }
.scramble__block--a { background: #c4b5fd; }
.scramble__block--b { background: #99f6e4; }
.scramble__flow {
  grid-column: 1 / -1; text-align: center; font-family: var(--mono);
  font-size: 0.76rem; color: var(--danger); font-weight: 600;
  padding-top: 4px; border-top: 1px dashed var(--danger);
}
@media (max-width: 640px) { .parser__body { font-size: 0.76rem; } }

/* ---------- 12. Issue cards ---------- */
.issues { display: grid; gap: 14px; }
.issue {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--r); padding: 18px 20px;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}
.issue:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.issue--high { border-left-color: var(--danger); }
.issue--medium { border-left-color: var(--warn); }
.issue--low { border-left-color: var(--info); }
.issue__n {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.86rem;
  background: var(--bg-sunk); color: var(--text-soft);
}
.issue--high .issue__n { background: var(--danger-bg); color: #b91c1c; }
.issue--medium .issue__n { background: var(--warn-bg); color: #b45309; }
.issue__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.issue__title { font-weight: 700; font-size: 1.02rem; margin: 0; }
.issue__row { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 7px 0; font-size: 0.93rem; }
.issue__k {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; padding-top: 3px;
}
.issue__v { color: var(--text-soft); }
.issue__v--why { color: #b91c1c; }
@media (max-width: 560px) {
  .issue { grid-template-columns: 1fr; gap: 10px; }
  .issue__row { grid-template-columns: 1fr; gap: 2px; }
  .issue__k { padding-top: 0; }
}

.sev {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase;
}
.sev--high { background: var(--danger-bg); color: #b91c1c; }
.sev--medium { background: var(--warn-bg); color: #b45309; }
.sev--low { background: #eff6ff; color: #0369a1; }

/* Collapsible detail (report page uses native <details>) */
details.reveal { border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
details.reveal + details.reveal { margin-top: 12px; }
details.reveal > summary {
  cursor: pointer; padding: 15px 18px; list-style: none;
  display: flex; align-items: center; gap: 12px; font-weight: 650;
}
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex: none;
  border-right: 2px solid var(--text-mute); border-bottom: 2px solid var(--text-mute);
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
details.reveal[open] > summary::after { transform: rotate(-135deg); }
details.reveal[open] > summary { border-bottom: 1px solid var(--line-soft); }
details.reveal__body { padding: 16px 18px; }

/* ---------- 13. Keywords ---------- */
.kw { display: grid; gap: 9px; }
.kw__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--r-pill); font-family: var(--mono); font-size: 0.79rem; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--text-soft);
}
.tag--hit { border-color: #a7f3d0; background: var(--good-bg); color: #047857; }
.tag--miss { border-color: #fecaca; background: var(--danger-bg); color: #b91c1c; }
.tag__n { font-size: 0.7rem; opacity: 0.75; }
.tag--top {
  border-color: var(--danger); background: #fff; color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.09);
}
.kw__why {
  font-size: 0.8rem; color: var(--text-mute); margin-top: 3px;
  font-family: var(--mono);
}

/* ---------- 14. Paywall + pricing ---------- */
.paywall {
  border-radius: var(--r-xl); padding: 34px 30px;
  background: linear-gradient(155deg, var(--ink-800) 0%, var(--ink-700) 100%);
  color: var(--text-invert); box-shadow: var(--sh-lg); position: relative; overflow: hidden;
}
.paywall::before {
  content: ""; position: absolute; width: 340px; height: 340px; top: -160px; right: -110px;
  border-radius: 50%; filter: blur(80px); opacity: 0.42; background: var(--violet);
}
.paywall__in { position: relative; z-index: 2; }
.paywall h2 { color: #fff; }
.paywall .lede { color: var(--text-invert-soft); }

.locked-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 0;
  border-bottom: 1px dashed var(--line-invert); color: var(--text-invert-soft);
  font-size: 0.94rem;
}
.locked-row:last-of-type { border-bottom: 0; }
.locked-row__lock { flex: none; color: var(--teal); opacity: 0.85; }
.locked-row--blur { filter: blur(3.2px); opacity: 0.55; user-select: none; }

/* IntersectionObserver fade-in for the paywall.
   Gated on .js-reveal (set by JS) so that with JS disabled — or if the
   observer never fires — the content is simply visible rather than lost. */
.js-reveal .reveal-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js-reveal .reveal-in.is-in { opacity: 1; transform: none; }
/* Fallback for reduced-motion users, who should never see a hidden panel. */
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal-in { opacity: 1; transform: none; }
}

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; box-shadow: var(--sh-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan--featured {
  border-color: var(--violet); box-shadow: var(--sh-glow);
  background: linear-gradient(180deg, #fdfcff 0%, #fff 40%);
}
.plan__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: var(--r-pill);
  background: var(--accent-grad); color: #fff;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.plan__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 3px; }
.plan__for { font-size: 0.85rem; color: var(--text-mute); min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin: 12px 0 4px; }
.plan__amt {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 2.5rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1;
}
.plan__per { font-size: 0.85rem; color: var(--text-mute); }
.plan__list { list-style: none; padding: 0; margin: 18px 0 22px; font-size: 0.9rem; flex: 1; }
.plan__list li { display: flex; gap: 9px; padding: 5px 0; color: var(--text-soft); align-items: flex-start; }
.plan__list svg { flex: none; margin-top: 3px; color: var(--good); }
.plan__list li.off { color: var(--text-mute); }
.plan__list li.off svg { color: var(--line); }
.plan .btn { margin-top: auto; }

.no-sub {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 15px; border-radius: var(--r-pill);
  background: rgba(45,212,191,0.14); border: 1px solid rgba(45,212,191,0.34);
  color: #6ee7d5; font-weight: 650; font-size: 0.85rem;
}

/* ---------- 15. Trust / comparison ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

.compare { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.compare__row {
  display: grid; grid-template-columns: 1.5fr 1fr 1.6fr; gap: 12px; align-items: center;
  padding: 15px 20px; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem;
}
.compare__row:last-child { border-bottom: 0; }
.compare__row--head {
  background: var(--bg-soft); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-mute);
}
.compare__row--us { background: linear-gradient(90deg, rgba(45,212,191,0.09), rgba(168,85,247,0.07)); font-weight: 650; }
.compare__price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; }
.compare__price--big { color: #b45309; }
.compare__note { font-size: 0.82rem; color: var(--text-mute); }
@media (max-width: 620px) {
  .compare__row { grid-template-columns: 1.2fr 1fr; font-size: 0.87rem; padding: 13px 15px; }
  .compare__row > *:nth-child(3) { grid-column: 1 / -1; }
}

/* ---------- 16. FAQ ---------- */
.faq { display: grid; gap: 11px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.faq details[open] { border-color: #d6cdf3; box-shadow: var(--sh-xs); }
.faq summary {
  cursor: pointer; padding: 17px 20px; font-weight: 650; list-style: none;
  display: flex; align-items: center; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-size: 1.35rem; font-weight: 400; color: var(--violet-deep);
  line-height: 1; transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 20px 18px; color: var(--text-soft); font-size: 0.95rem; }

/* ---------- 17. Footer ---------- */
.footer { background: var(--ink-900); color: var(--text-invert-soft); padding: 46px 0 32px; }
.footer a { color: var(--text-invert-soft); font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer__top { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; margin-bottom: 30px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__bot {
  border-top: 1px solid var(--line-invert); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 0.84rem;
}

/* ---------- 18. Notices / states ---------- */
.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  font-size: 0.92rem; border: 1px solid var(--line); background: var(--bg-soft);
}
.notice__icon { flex: none; margin-top: 2px; }
.notice--error { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.notice--warn { background: var(--warn-bg); border-color: #fde68a; color: #92400e; }
.notice--info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.notice--good { background: var(--good-bg); border-color: #a7f3d0; color: #065f46; }

.empty {
  text-align: center; padding: 52px 24px; color: var(--text-mute);
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--bg-soft);
}
.empty h3 { color: var(--text); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.spinner--dark { border-color: rgba(22,25,43,0.2); border-top-color: var(--violet-deep); }

/* Toast for copy / checkout feedback */
.toast-host {
  position: fixed; z-index: 120; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; gap: 9px; width: min(420px, calc(100vw - 32px)); pointer-events: none;
}
.toast {
  background: var(--ink-900); color: #fff; padding: 13px 17px; border-radius: var(--r);
  box-shadow: var(--sh-lg); font-size: 0.9rem; font-weight: 550;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s var(--ease);
}
.toast--good { background: #065f46; }
.toast--bad { background: #991b1b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- 19. Report page ---------- */
.page-head {
  background: linear-gradient(160deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: var(--text-invert); padding: 46px 0 54px; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; width: 420px; height: 420px; top: -200px; right: -120px;
  border-radius: 50%; filter: blur(90px); opacity: 0.4; background: var(--violet);
}
.page-head__in { position: relative; z-index: 2; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: 8px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--text-invert-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-invert-soft); }

.delta {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
  border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 700;
  background: rgba(16,185,129,0.16); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3);
}
.delta--down { background: rgba(239,68,68,0.16); color: #fca5a5; border-color: rgba(239,68,68,0.3); }

/* Diff view */
.diff { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.diff__head {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.diff__col-h {
  padding: 12px 18px; font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--text-mute);
}
.diff__col-h--before { border-right: 1px solid var(--line); }
.diff__body { display: grid; grid-template-columns: 1fr 1fr; }
.diff__side { padding: 16px 18px; font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.diff__side--before {
  background: #fff5f5; border-right: 1px solid var(--line); color: #7f1d1d;
  text-decoration: line-through; text-decoration-color: rgba(239,68,68,0.45);
}
.diff__side--after { background: #f0fdf6; color: #065f46; }
.diff__field {
  grid-column: 1 / -1; padding: 9px 18px; background: var(--ink-900); color: #a5b4fc;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 700; border-block: 1px solid #0b1020;
}
.diff__field:first-child { border-top: 0; }
@media (max-width: 700px) {
  .diff__head { display: none; }
  .diff__body { grid-template-columns: 1fr; }
  .diff__side--before { border-right: 0; border-bottom: 1px solid var(--line); }
}
.diff__legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-mute); }

/* Share */
.sharebox { display: grid; gap: 14px; }
.copyrow { display: flex; gap: 9px; flex-wrap: wrap; }
.copyrow .input { font-family: var(--mono); font-size: 0.83rem; flex: 1 1 260px; }
.socials { display: flex; gap: 9px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff;
  font-size: 0.87rem; font-weight: 600; color: var(--text-soft);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), border-color 0.16s var(--ease);
}
.social:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); text-decoration: none; border-color: var(--violet); color: var(--violet-deep); }
.social--wa:hover { border-color: #25d366; color: #128c7e; }
.social--slack:hover { border-color: #611f69; color: #611f69; }
.social--x:hover { border-color: #0b1020; color: #0b1020; }

/* ---------- 20. Admin ---------- */
.admin-body { background: var(--bg-soft); }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

.kpi {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px; box-shadow: var(--sh-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }
.kpi__k {
  font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700; margin-bottom: 7px;
}
.kpi__v {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.72rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1;
}
.kpi__v--money::before { content: "$"; font-size: 0.62em; vertical-align: 0.28em; margin-right: 1px; opacity: 0.65; }
.kpi__d { margin-top: 5px; font-size: 0.78rem; font-weight: 650; }
.kpi__d--up { color: #047857; }
.kpi__d--down { color: #b91c1c; }
.kpi__d--flat { color: var(--text-mute); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); overflow: hidden; }
.panel__head {
  padding: 17px 20px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.panel__title { font-weight: 700; font-size: 1.02rem; margin: 0; }
.panel__sub { font-size: 0.82rem; color: var(--text-mute); margin: 2px 0 0; }
.panel__tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.panel__body { padding: 20px; }

/* Chart */
.chart { width: 100%; height: auto; }
.chart-wrap { position: relative; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.83rem; color: var(--text-soft); }
.chart-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: -1px; }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5;
  background: var(--ink-900); color: #fff; padding: 8px 11px; border-radius: var(--r-sm);
  font-size: 0.78rem; font-family: var(--mono); box-shadow: var(--sh-lg);
  opacity: 0; transition: opacity 0.14s; white-space: nowrap;
}
.chart-tip.is-on { opacity: 1; }

/* Funnel */
.funnel { display: grid; gap: 11px; }
.fstep { display: grid; grid-template-columns: 148px 1fr auto; gap: 14px; align-items: center; }
.fstep__label { font-size: 0.87rem; font-weight: 620; }
.fstep__track { height: 30px; border-radius: var(--r-sm); background: var(--bg-sunk); overflow: hidden; }
.fstep__fill {
  height: 100%; width: 0; border-radius: var(--r-sm);
  background: linear-gradient(90deg, #818cf8, #a855f7);
  transition: width 0.85s var(--ease);
}
.fstep--last .fstep__fill { background: linear-gradient(90deg, #2dd4bf, #10b981); }
.fstep__n { font-family: var(--mono); font-size: 0.84rem; font-weight: 700; min-width: 108px; text-align: right; }
.fstep__drop { font-size: 0.72rem; color: var(--text-mute); }
@media (max-width: 640px) {
  .fstep { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .fstep__track { grid-column: 1 / -1; }
}

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.89rem; min-width: 620px; }
.table th {
  text-align: left; padding: 11px 14px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-mute); font-weight: 700;
  border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table .strong { font-weight: 700; }
.roi--hi { color: #047857; font-weight: 700; }
.roi--lo { color: #b45309; font-weight: 700; }

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.hbar__label { display: flex; align-items: center; gap: 9px; font-size: 0.88rem; min-width: 0; }
.hbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar__track { grid-column: 1 / -1; height: 9px; border-radius: var(--r-pill); background: var(--bg-sunk); overflow: hidden; margin-top: -4px; }
.hbar__fill { height: 100%; width: 0; border-radius: var(--r-pill); transition: width 0.8s var(--ease); }
.hbar__v { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-align: right; }

/* Auth gate */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.gate__card {
  width: min(430px, 100%); background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 34px 30px; box-shadow: var(--sh-lg); text-align: center;
}

/* ---------- 21. Legal pages ---------- */
.legal { padding: 52px 0 76px; }
.legal h2 { font-size: 1.32rem; margin-top: 38px; padding-top: 8px; }
.legal h3 { font-size: 1.04rem; margin-top: 24px; }
.legal p, .legal li { color: var(--text-soft); font-size: 0.96rem; }
.legal ul { padding-left: 1.25em; }
.legal li { margin-bottom: 7px; }
.legal__meta {
  font-size: 0.86rem; color: var(--text-mute); font-family: var(--mono);
  padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.legal__toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin: 26px 0 8px;
}
.legal__toc ol { margin: 0; padding-left: 1.3em; }
.legal__toc li { margin-bottom: 5px; font-size: 0.92rem; }

/* ---------- 22. Share page ---------- */
.share-hero {
  min-height: 74vh; display: grid; place-items: center; padding: 56px 0;
  background: linear-gradient(165deg, var(--ink-900) 0%, var(--ink-700) 100%);
  color: var(--text-invert); position: relative; overflow: hidden;
}
.share-hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; bottom: -220px; right: -140px;
  border-radius: 50%; filter: blur(90px); opacity: 0.4; background: var(--teal);
}
.share-hero__in { position: relative; z-index: 2; text-align: center; max-width: 620px; margin: 0 auto; }
.avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 20px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; color: #fff;
  background: var(--accent-grad); box-shadow: var(--sh-glow);
}
.share-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.share-stat {
  background: rgba(255,255,255,0.07); border: 1px solid var(--line-invert);
  border-radius: var(--r); padding: 17px 12px;
}
.share-stat__v {
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.85rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.share-stat__v--bad { color: #fca5a5; }
.share-stat__v--warn { color: #fcd34d; }
.share-stat__k {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-invert-soft); font-weight: 700; margin-top: 3px;
}

/* ---------- 23. Responsive trims ---------- */
@media (max-width: 1024px) {
  .section { padding: 62px 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 15.5px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 62px; }
  .result-head, .paywall, .card, .scanning { padding: 22px 18px; border-radius: var(--r-lg); }
  .gauge { width: 156px; height: 156px; margin: 0 auto; }
  .uploader { padding: 24px 18px; }
  .panel__body { padding: 16px; }
  .fstep__label { font-size: 0.82rem; }

  /* Mobile hero: keep the promise, then the action, then the supporting detail.
     The upload card sits between the headline and the proof points so the
     primary action is reachable on a 375px screen without scrolling, without
     burying the value proposition behind a form. */
  .hero__split { display: flex; flex-direction: column; gap: 20px; }
  .hero__split > .card { order: 1; width: 100%; }
  .hero__pitch { order: 0; }
  .hero__support { order: 2; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.35rem); margin-bottom: 12px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero__sub { font-size: 0.98rem; margin-bottom: 0; }
  .hero__badges { gap: 7px; margin-top: 16px; }
  .scramble { display: none; }
  /* Keep the primary CTA inside the first viewport on short screens. */
  .uploader { padding: 20px 16px; }
  .uploader__icon { width: 38px; height: 38px; margin-bottom: 10px; }
}

/* ---------- 24. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-in { opacity: 1; transform: none; }
  .skel::after { display: none; }
}

/* ---------- 25. Print ---------- */
@media print {
  .nav, .footer, .btn, .paywall { display: none !important; }
  body { background: #fff; }
  .card, .issue, .panel { box-shadow: none; border-color: #ccc; }
}
