/* ============================================================
   ThumbTruth — mobile-first design system
   ============================================================ */

:root {
  --bg: #0a0a13;
  --bg-soft: #0f0f1c;
  --panel: #15152a;
  --panel-2: #1c1c35;
  --text: #f4f4f8;
  --muted: #a0a0ba;
  --line: rgba(255, 255, 255, 0.09);
  --acc: #7c5cff;
  --acc-2: #4dabf7;
  --acc-3: #2ec4b6;
  --good: #3ddc97;
  --warn: #ffd166;
  --bad: #ff6b81;
  --grad: linear-gradient(120deg, #7c5cff 0%, #4dabf7 52%, #2ec4b6 100%);
  --accent: var(--acc);
  --r: 20px;
  --r-sm: 14px;
  --tap: 58px;
  --max: 1080px;
  --measure: 690px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------- layout shell */
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 19, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--max); margin: 0 auto; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 19px;
}
.logo-mark {
  width: 26px; height: 26px; border-radius: 9px; background: var(--grad);
  display: grid; place-items: center; font-size: 13px; color: #0a0a13; font-weight: 900;
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.5);
  animation: pulse 3.2s ease-out infinite;
}
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-nav { display: flex; gap: 4px; align-items: center; }
.header-nav a {
  text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 600;
  padding: 8px 10px; border-radius: 10px;
}
.header-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 520px) { .header-nav a.hide-s { display: none; } }

#app {
  max-width: var(--max); margin: 0 auto; padding: 0 18px 40px;
  min-height: 62vh;
}
#app:focus { outline: none; }
.hero, .intro, .runner, .result, .prose, .empty-state, .section > .section-title, .cta-band { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section { padding: 46px 0 6px; max-width: var(--measure); margin: 0 auto; }
.section-title { font-size: clamp(24px, 5.5vw, 32px); letter-spacing: -0.03em; margin: 0 0 18px; line-height: 1.15; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head .section-title { margin-bottom: 8px; }
.kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.link { color: var(--acc-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.link:hover { text-decoration: underline; }
.back {
  display: inline-block; margin: 22px 0 6px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.back:hover { color: var(--text); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16.5px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:active { transform: scale(0.972); }
.btn-primary {
  background: var(--grad); color: #07070f;
  box-shadow: 0 10px 30px rgba(77, 171, 247, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(124, 92, 255, 0.4); }
.btn-primary:disabled { opacity: 0.75; cursor: wait; }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-lg { min-height: 60px; font-size: 17px; padding: 0 28px; }
.btn-block { display: flex; width: 100%; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-size: 16px; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.pill-feat { background: rgba(61, 220, 151, 0.14); color: var(--good); border: 1px solid rgba(61, 220, 151, 0.35); }
.pill-test { background: rgba(255, 209, 102, 0.12); color: var(--warn); border: 1px solid rgba(255, 209, 102, 0.35); text-transform: none; letter-spacing: 0; font-size: 12.5px; }

/* ---------------------------------------------------------- hero */
.hero { position: relative; padding: 58px 0 10px; text-align: left; }
.hero-glow {
  position: absolute; inset: -60px -40px auto; height: 340px; z-index: -1;
  background:
    radial-gradient(50% 60% at 20% 30%, rgba(124, 92, 255, 0.35), transparent 70%),
    radial-gradient(45% 55% at 80% 15%, rgba(46, 196, 182, 0.28), transparent 70%);
  filter: blur(10px);
}
.hero h1 {
  font-size: clamp(34px, 8.6vw, 56px); line-height: 1.06; letter-spacing: -0.035em;
  margin: 0 0 16px; font-weight: 850;
}
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17.5px; max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px;
  color: var(--muted); font-size: 14.5px;
}
.hero-stats b { color: var(--text); font-weight: 800; margin-right: 4px; }

.steps { display: grid; gap: 14px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px;
}
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px;
  background: var(--grad); color: #07070f; font-weight: 900; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 17.5px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.trust-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.tcard { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; background: var(--bg-soft); }
.tcard-i { font-size: 24px; display: block; margin-bottom: 10px; }
.tcard h3 { margin: 0 0 6px; font-size: 17px; }
.tcard p { margin: 0; color: var(--muted); font-size: 14.8px; }

.cta-band {
  margin-top: 54px; padding: 34px 26px; text-align: center;
  border-radius: 26px; background:
    radial-gradient(60% 100% at 10% 0%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(60% 100% at 95% 100%, rgba(46, 196, 182, 0.3), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(22px, 5vw, 28px); letter-spacing: -0.03em; margin: 0 0 20px; }

/* ---------------------------------------------------------- catalog */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 650;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  cursor: pointer; transition: all 0.16s;
}
.fchip:hover { color: var(--text); }
.fchip.is-on { background: var(--text); color: #0a0a13; border-color: var(--text); }

.catalog {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  max-width: var(--max); margin: 0 auto;
}
/* the hidden attribute must beat component display rules
   (e.g. .qcard{display:flex} was defeating it — caught by real-browser test) */
[hidden] { display: none !important; }

.qcard {
  position: relative; display: flex; flex-direction: column; gap: 7px;
  padding: 20px 18px 18px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.2s, box-shadow 0.25s;
  animation: rise 0.5s var(--d, 0ms) both ease-out;
  overflow: hidden;
}
.qcard::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  opacity: 0.9;
}
.qcard::after {
  content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px;
  background: var(--accent); opacity: 0.12; border-radius: 50%; filter: blur(30px);
  transition: opacity 0.25s;
}
.qcard:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); box-shadow: var(--shadow); }
.qcard:hover::after { opacity: 0.22; }
.qcard-top { display: flex; align-items: center; justify-content: space-between; }
.qcard-emoji {
  font-size: 30px; width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 16px;
}
.qcard-cat { font-size: 11.5px; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.qcard h3 { margin: 2px 0 0; font-size: 19.5px; letter-spacing: -0.02em; }
.qcard-tag { margin: 0; color: var(--muted); font-size: 14.8px; flex: 1; }
.qcard-meta { font-size: 13.5px; color: var(--muted); font-weight: 600; opacity: 0.85; }
.empty-note { color: var(--muted); text-align: center; padding: 18px; }

/* ---------------------------------------------------------- intro */
.intro { padding-top: 8px; padding-bottom: 150px; }
.intro-head { display: flex; flex-direction: column; gap: 8px; }
.intro-emoji {
  font-size: 40px; width: 74px; height: 74px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line); border-radius: 22px; margin-bottom: 6px;
  box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 26%, transparent);
}
.intro h1 { margin: 0; font-size: clamp(30px, 7.5vw, 44px); letter-spacing: -0.035em; line-height: 1.08; }
.intro-tag { color: var(--muted); font-size: 17px; margin: 0; }
.intro-hook {
  font-size: clamp(18px, 4.4vw, 21px); font-weight: 650; letter-spacing: -0.015em;
  margin: 22px 0 6px; line-height: 1.4;
}
.intro-bullets { list-style: none; margin: 14px 0 22px; padding: 0; display: grid; gap: 10px; }
.intro-bullets li {
  position: relative; padding-left: 30px; color: var(--muted); font-size: 15.5px;
}
.intro-bullets li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--good); font-weight: 900;
}
.stat-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.stat {
  flex: 1 1 100px; text-align: center; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 13px 8px; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 2px;
}
.stat b { font-size: 21px; color: var(--text); letter-spacing: -0.02em; }
.basis {
  font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; line-height: 1.5;
}
.basis b { color: var(--text); }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(10, 10, 19, 0.92) 34%);
  display: flex; flex-direction: column; gap: 7px;
}
.sticky-cta > * { max-width: var(--measure); margin-inline: auto; width: 100%; }
.cta-fine { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------- runner */
.runner { padding-top: 16px; min-height: calc(100dvh - 66px); display: flex; flex-direction: column; }
.runner-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.progress {
  flex: 1; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.counter { font-size: 13.5px; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }

.stage { flex: 1; display: flex; align-items: center; padding: 10px 0 6px; }
.qcard-live { width: 100%; }
.qcard-live.enter { animation: rise 0.32s ease-out both; }
.q-kicker { font-size: 12.5px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.q-prompt { font-size: clamp(22.5px, 5.6vw, 30px); line-height: 1.24; letter-spacing: -0.03em; margin: 0 0 6px; font-weight: 800; }
.q-sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.q-sub + .opts { margin-top: 0; }
.opts { display: grid; gap: 11px; margin-top: 18px; }
.opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  min-height: var(--tap); padding: 14px 16px; border-radius: 18px;
  background: var(--panel); border: 1.5px solid var(--line); color: var(--text);
  font-size: 16.2px; line-height: 1.35; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
  animation: rise 0.34s both ease-out;
}
.opt:nth-child(1) { animation-delay: 0.05s; }
.opt:nth-child(2) { animation-delay: 0.1s; }
.opt:nth-child(3) { animation-delay: 0.15s; }
.opt:nth-child(4) { animation-delay: 0.2s; }
.opt:nth-child(5) { animation-delay: 0.25s; }
.opt:hover { border-color: rgba(255, 255, 255, 0.26); background: var(--panel-2); }
.opt:active { transform: scale(0.985); }
.opt-key {
  flex: 0 0 26px; height: 26px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07); font-size: 12.5px; font-weight: 800; color: var(--muted);
}
.opt-label { flex: 1; }
.opt-check { opacity: 0; color: var(--good); font-weight: 900; transform: scale(0.5); transition: all 0.18s; }
.opt.is-sel {
  border-color: color-mix(in srgb, var(--accent) 75%, #fff 10%);
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.opt.is-sel .opt-check { opacity: 1; transform: scale(1); }
.opt.is-sel .opt-key { background: var(--accent); color: #07070f; }

.ghost-back {
  background: none; border: none; color: var(--muted); font-size: 15px; font-weight: 650;
  padding: 14px; cursor: pointer; margin-top: auto;
}
.ghost-back:hover { color: var(--text); }

.finish-screen { text-align: center; padding: 40px 0; }
.finish-screen.enter { animation: rise 0.4s both ease-out; }
.finish-emoji { font-size: 54px; display: block; margin-bottom: 18px; }
.finish-screen h2 { margin: 16px 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.finish-screen p { color: var(--muted); margin: 0; }

.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite; display: inline-block; vertical-align: middle;
}
.spinner-lg { width: 44px; height: 44px; border-width: 4px; }

/* ---------------------------------------------------------- result */
.result { padding-top: 10px; }
.result-hero { padding: 26px 0 6px; text-align: left; }
.archetype {
  font-size: clamp(33px, 8.5vw, 52px); line-height: 1.04; letter-spacing: -0.04em;
  margin: 0 0 12px; font-weight: 900;
  background: linear-gradient(100deg, var(--text) 20%, color-mix(in srgb, var(--accent) 70%, #fff) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pop 0.55s 0.1s both cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.verdict { font-size: clamp(17px, 4.3vw, 20px); color: var(--muted); margin: 0 0 18px; line-height: 1.5; }

.numchips { display: flex; gap: 9px; flex-wrap: wrap; }
.numchip {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 13px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 1px;
}
.numchip b { font-size: 17px; color: var(--text); letter-spacing: -0.02em; }
.numchip.is-masked b { color: var(--muted); letter-spacing: 0.1em; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; margin-top: 16px;
}
.card-title { margin: 0 0 16px; font-size: 17px; letter-spacing: -0.02em; }
.summary p { margin: 0 0 13px; color: #d7d7e6; font-size: 16.2px; }
.summary p:last-child { margin-bottom: 0; }

.gauges-card { display: grid; gap: 18px; }
.gauges-card .card-title { margin-bottom: 2px; }
.gauge { display: grid; gap: 7px; }
.gauge-head { display: flex; justify-content: space-between; align-items: baseline; }
.gauge-label { font-size: 14.5px; font-weight: 700; }
.gauge-val {
  font-size: 15px; font-weight: 850; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gauge-track {
  position: relative; height: 11px;
  background: var(--gz, rgba(255, 255, 255, 0.08));
  border-radius: 999px; overflow: visible;
}
.gauge-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, #6ef3d8));
  transform-origin: left center;
  animation: gfill 0.85s var(--d, 0ms) both cubic-bezier(0.2, 0.9, 0.25, 1);
}
.gauge-mark {
  position: absolute; top: 50%; width: 15px; height: 15px;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--accent);
  border: 2.5px solid var(--bg-soft);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 75%, transparent), 0 2px 8px rgba(0, 0, 0, 0.45);
  animation: gmark 0.45s calc(var(--d, 0ms) + 400ms) both cubic-bezier(0.2, 0.9, 0.25, 1);
}
@keyframes gmark {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.gauge-zones { position: relative; height: 15px; }
.gzone {
  position: absolute; top: 0; transform: translateX(-50%);
  white-space: nowrap; font-size: 11.5px; color: var(--muted);
}
.gzone.is-current { color: var(--accent); font-weight: 750; }
.gzone.edge-l { left: 0 !important; transform: none; }
.gzone.edge-r { left: auto !important; right: 0; transform: none; }
.gauge-poles { display: flex; justify-content: space-between; font-size: 12.3px; color: var(--muted); }
.gauge.is-masked .gauge-val { background: none; color: var(--muted); }
.gauge.is-masked .gauge-track {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-size: 200% 100%; animation: shimmer 1.6s linear infinite;
}
.gauge.is-masked .gzone { opacity: 0.6; }

.rsections { display: grid; gap: 14px; margin-top: 16px; }
.rsection {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r); padding: 19px 18px;
}
.rs-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 17.5px; letter-spacing: -0.02em; }
.rs-icon {
  width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid var(--line);
  font-size: 15px; flex: 0 0 auto;
}
.rs-body p { margin: 0 0 12px; color: #d7d7e6; font-size: 16px; }
.rs-body p:last-child { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.chip {
  font-size: 13px; font-weight: 650; padding: 7px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: #e7e7f4;
}

/* locked / blur */
.lockframe { position: relative; }
.blur-body {
  filter: blur(6.5px); opacity: 0.55; user-select: none; pointer-events: none;
  max-height: 170px; overflow: hidden;
}
.blur-body p { color: #d7d7e6; font-size: 16px; margin: 0 0 12px; }
.lock-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 750; color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.sw-card { position: relative; display: grid; gap: 18px; }
@media (min-width: 560px) { .sw-card { grid-template-columns: 1fr 1fr; } }
.sw-h { margin: 0 0 10px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.sw-h-good { color: var(--good); }
.sw-h-watch { color: var(--warn); }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sw-list li {
  font-size: 15.2px; padding-left: 22px; position: relative; color: #d7d7e6;
}
.sw-list li::before { content: "▸"; position: absolute; left: 2px; color: var(--accent); }
.sw-col:last-child .sw-list li::before { color: var(--warn); }
.sw-mask {
  position: absolute; inset: 0; border-radius: var(--r);
  backdrop-filter: blur(7px); background: rgba(10, 10, 19, 0.35);
  display: grid; place-items: center;
}
.is-locked-sw { overflow: hidden; }

.disclaimer {
  font-size: 13.5px; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 14px; padding: 13px 15px; margin-top: 16px; line-height: 1.5;
}
.disclaimer b { color: var(--text); }

.unlock-inline {
  margin-top: 18px; border-radius: 24px; padding: 22px 20px;
  background:
    radial-gradient(70% 100% at 0% 0%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 60%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}
.unlock-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.unlock-price {
  font-size: 34px; font-weight: 900; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.unlock-head b { display: block; font-size: 17px; }
.unlock-head i { display: block; font-style: normal; color: var(--muted); font-size: 13.8px; }
.unlock-perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; }
.unlock-perks li { font-size: 14.6px; color: var(--muted); padding-left: 24px; position: relative; }
.unlock-perks li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 900; }

.result-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.result-actions .btn { flex: 1 1 160px; }

.cross { margin-top: 40px; }
.mini {
  display: flex; align-items: center; gap: 13px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 10px; transition: border-color 0.2s, transform 0.15s;
}
.mini:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateX(3px); }
.mini-e {
  font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 14px;
}
.mini b { display: block; font-size: 16px; }
.mini i { display: block; font-style: normal; color: var(--muted); font-size: 13.6px; }
.mini span:nth-child(2) { flex: 1; }
.mini-arrow { color: var(--muted); font-size: 20px; }

.empty-state { text-align: center; padding: 60px 0; }
.big-emoji { font-size: 56px; display: block; margin-bottom: 14px; }
.empty-state h1 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0 0 24px; }

/* ---------------------------------------------------------- sheet / modal */
#modal-root:empty, #confetti-root:empty, #toast-root:empty { display: none; }
.sheet-scrim {
  position: fixed; inset: 0; background: rgba(4, 4, 10, 0.72); z-index: 60;
  backdrop-filter: blur(4px); animation: fade 0.2s both;
}
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 26px 26px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  max-height: 92dvh; overflow-y: auto; animation: slide-up 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@media (min-width: 640px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%);
    width: min(480px, calc(100vw - 40px)); border-radius: 26px; border-bottom: 1px solid var(--line);
    padding: 16px 26px 26px; animation: fade 0.24s both;
  }
}
.sheet-grip { width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.22); margin: 4px auto 10px; }
@media (min-width: 640px) { .sheet-grip { display: none; } }
.sheet-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); color: var(--muted); cursor: pointer;
}
.sheet-x:hover { color: var(--text); }
.sheet-title { margin: 14px 0 6px; font-size: 24px; letter-spacing: -0.03em; }
.sheet-amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.sheet-amount .amt {
  font-size: 46px; font-weight: 900; letter-spacing: -0.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sheet-amount .amt-note { color: var(--muted); font-size: 13.5px; }
.sheet-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.sheet-perks li { font-size: 14.6px; color: var(--muted); padding-left: 22px; position: relative; }
.sheet-perks li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 900; }

.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.field span i { font-style: normal; font-weight: 500; opacity: 0.8; }
.field input {
  min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line);
  background: rgba(0, 0, 0, 0.35); color: var(--text); padding: 0 15px;
  font-size: 16.5px; font-family: inherit; letter-spacing: 0.02em;
}
.field input:focus { outline: none; border-color: var(--acc-2); background: rgba(0, 0, 0, 0.5); }
.field input::placeholder { color: rgba(160, 160, 186, 0.55); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-error {
  color: var(--bad); font-size: 14px; margin: 0 0 10px; background: rgba(255, 107, 129, 0.1);
  border: 1px solid rgba(255, 107, 129, 0.3); border-radius: 10px; padding: 9px 12px;
}
/* hardened checkout: inline invalid state + network hint + shake */
.field-note { color: var(--good); font-weight: 700; }
.field input.is-invalid { border-color: var(--bad); background: rgba(255, 107, 129, 0.07); }
.field input.is-invalid:focus { border-color: var(--bad); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.field input.shake { animation: shake 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .field input.shake { animation: none; }
}
.sheet-fine { font-size: 12.6px; color: var(--muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* share channel sheet */
.share-lede { margin: 2px 0 14px; font-size: 15px; color: var(--muted); }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.share-ch {
  appearance: none; -webkit-appearance: none; font: inherit; font-size: 15.4px; font-weight: 650;
  color: var(--text); background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line); border-radius: 13px;
  min-height: 50px; padding: 8px 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background 0.15s, transform 0.06s;
}
.share-ch:hover { background: rgba(255, 255, 255, 0.08); }
.share-ch:active { transform: scale(0.97); }
.share-ch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* toast + confetti */
#toast-root { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 80; display: grid; place-items: center; pointer-events: none; }
.toast {
  background: #10101d; border: 1px solid var(--line); color: var(--text);
  padding: 12px 20px; border-radius: 999px; font-size: 14.5px; font-weight: 650;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(14px);
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); max-width: calc(100vw - 40px);
}
.toast.is-in { opacity: 1; transform: translateY(0); }

#confetti-root { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti-bit {
  position: absolute; top: -24px; border-radius: 3px; opacity: 0.95;
  animation: fall linear forwards;
}

/* ---------------------------------------------------------- prose pages */
.prose { padding: 6px 0 30px; }
.prose h1 { font-size: clamp(32px, 8vw, 46px); letter-spacing: -0.04em; margin: 0 0 18px; line-height: 1.06; }
.prose h2 { font-size: 22px; letter-spacing: -0.03em; margin: 34px 0 10px; }
.prose p, .prose li { color: #cfcfe0; font-size: 16.3px; }
.prose p { margin: 0 0 14px; }
.prose b { color: var(--text); }
.prose a { color: var(--acc-2); }
.p-section {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 18px 20px; margin-top: 16px;
}
.p-section h2:first-child { margin-top: 0; }
.p-section ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.refs li { font-size: 14.6px; color: var(--muted); }
.basis-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.basis-list li {
  display: flex; gap: 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.bl-e { font-size: 22px; flex: 0 0 auto; }
.basis-list b { display: block; color: var(--text); font-size: 15.4px; }
.basis-list span { display: block; color: var(--muted); font-size: 14.2px; line-height: 1.5; }
.ticks, .crosses { list-style: none; padding: 0; display: grid; gap: 9px; }
.ticks li, .crosses li { position: relative; padding-left: 28px; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; font-weight: 900; }
.ticks li::before { content: "✓"; color: var(--good); }
.crosses li::before { content: "✕"; color: var(--bad); }
.price-hero { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 16px; }
.price-big {
  font-size: clamp(58px, 16vw, 92px); font-weight: 900; letter-spacing: -0.05em; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-per { color: var(--muted); font-size: 16px; }
.cta-inline { margin-top: 26px; }

/* ---------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg-soft); }
.footer-in {
  max-width: var(--max); margin: 0 auto; padding: 34px 18px calc(34px + env(safe-area-inset-bottom));
  display: grid; gap: 26px;
}
@media (min-width: 760px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-blurb { color: var(--muted); font-size: 14.5px; max-width: 330px; margin: 10px 0 0; }
.foot-col h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.foot-col a { display: block; color: #cfcfe0; text-decoration: none; font-size: 15px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-legal {
  max-width: var(--max); margin: 0 auto; padding: 0 18px 26px;
  color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------------------------------------------------------- animations */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes gfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}
@keyframes fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105dvh) rotate(720deg); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}
