/* ============================================================
   LARP or Not — tokens
   ============================================================ */
:root {
  --bg: #0c0d10;
  --panel: #15171c;
  --panel-2: #1b1e25;
  --text: #eef0f4;
  --muted: #9aa1ad;
  --accent: #ff4d5e;
  --accent-2: #ffd34d;
  --ok: #3ddc84;
  --border: #262a33;
  --border-hover: #363c49;
  --radius: 16px;

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* spacing rhythm */
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;
}

/* ============================================================
   base
   ============================================================ */
* { box-sizing: border-box; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-display);
  min-height: 100vh; display: flex; flex-direction: column;
  position: relative;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% -5%, rgba(255, 77, 94, .09), transparent 70%),
    radial-gradient(700px 500px at 10% 110%, rgba(255, 211, 77, .05), transparent 70%);
}
main { flex: 1; width: min(960px, 92vw); margin: 0 auto; }
a { color: var(--accent-2); }
button, a, summary { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.mono, .r-meta, .r-handle, .r-sev, .r-num, .r-date, .r-chips, .r-links,
.fineprint, .stats, #progress-msg, .progress-sub, .kicker { font-family: var(--font-mono); }

/* poster display treatment: wide, black, uppercase */
.display, .hero h1, .sec-head h2, .bottom-cta h2, .r-verdict, .r-h2,
.logo, .footer-brand {
  font-weight: 900; font-stretch: 122%; text-transform: uppercase;
  letter-spacing: 0; line-height: 1.02;
}

/* ============================================================
   header / footer
   ============================================================ */
.site-header { padding: var(--s-4) var(--s-3); text-align: center; }
.logo {
  font-weight: 800; font-size: 1.35rem; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
}
.logo span { color: var(--accent); font-style: italic; padding: 0 2px; }

.site-footer {
  margin-top: var(--s-7); padding: var(--s-5) var(--s-4); text-align: center;
  color: var(--muted); font-size: .78rem; border-top: 1px solid var(--border);
}
.site-footer p { max-width: 640px; margin: 0 auto; line-height: 1.6; }
.footer-brand { font-weight: 800; letter-spacing: .04em; color: var(--text); margin-bottom: var(--s-2); }
.footer-brand span { color: var(--accent); font-style: italic; padding: 0 2px; }
.footer-links { margin-top: var(--s-2); }
.footer-links a { color: var(--muted); }

/* ============================================================
   landing
   ============================================================ */
.hero { text-align: center; padding: var(--s-6) 0 var(--s-4); }
.kicker {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: var(--s-3);
}
.hero h1 { font-size: clamp(1.9rem, 4.9vw, 3.2rem); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), #ff8a5e 40%, var(--accent) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.tagline { color: var(--muted); max-width: 560px; margin: var(--s-3) auto var(--s-5); line-height: 1.6; }
.notice { color: var(--accent-2); margin-bottom: var(--s-3); }

.scan-box {
  display: flex; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 6px 6px 6px 18px;
  max-width: 540px; margin: 0 auto;
}
.scan-box .at { color: var(--muted); font-size: 1.2rem; margin-right: 4px; }
.scan-box input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font: inherit; font-size: 1.05rem; padding: 12px 8px;
  min-width: 0;
}
.scan-box button {
  background: var(--accent); color: #fff; border: none;
  font: inherit; font-weight: 700; padding: 12px 22px;
  border-radius: calc(var(--radius) - 5px); white-space: nowrap;
  transition: transform .15s ease-out, filter .15s ease-out;
}
.scan-box button:hover { transform: translateY(-1px); filter: brightness(1.1); }
.scan-box button:disabled { opacity: .5; cursor: wait; transform: none; }
.fineprint { color: var(--muted); font-size: .78rem; margin-top: var(--s-3); }
.fineprint a { color: var(--muted); }

.progress { margin: var(--s-5) auto; }
.spinner {
  width: 36px; height: 36px; margin: 0 auto 14px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#progress-msg { color: var(--muted); font-size: .9rem; }
.progress-sub { color: var(--muted); font-size: .75rem; margin-top: var(--s-2); }
.error { color: var(--accent); margin-top: var(--s-4); font-weight: 600; }
.hidden { display: none; }
.stats { margin-top: var(--s-5); color: var(--muted); font-size: .85rem; }
.stats strong { color: var(--accent-2); font-size: 1.05rem; }

/* sample-report teaser */
.demo { margin-top: var(--s-6); }
.demo-card {
  display: flex; gap: var(--s-5); align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-5);
  text-decoration: none; color: var(--text);
  max-width: 720px; margin: 0 auto;
  transition: border-color .2s, transform .2s ease-out;
}
.demo-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.demo-ring { position: relative; flex: 0 0 128px; }
.demo-ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.demo-ring-fill { fill: none; stroke: var(--accent); stroke-width: 13; stroke-linecap: round; }
.demo-ring-label {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.demo-ring-label span { font-size: 2.3rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.demo-eyebrow {
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .16em; margin-bottom: var(--s-2);
}
.demo-info h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: var(--s-2); }
.demo-quote { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.demo-link {
  display: inline-block; margin-top: var(--s-3);
  font-family: var(--font-mono); font-size: .78rem; color: var(--accent-2);
  border-bottom: 1px dashed color-mix(in srgb, var(--accent-2) 50%, transparent); padding-bottom: 1px;
}
.demo-card:hover .demo-link { border-bottom-style: solid; }

/* section headers: left-aligned, mono eyebrow */
.sec-head { margin: var(--s-7) 0 var(--s-4); }
.sec-eyebrow {
  font-family: var(--font-mono); font-size: .68rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: .18em; margin-bottom: var(--s-2);
}
.sec-head h2 { font-weight: 800; font-size: 1.9rem; letter-spacing: -.01em; }

/* graded lanes */
.lane-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
@media (max-width: 640px) { .lane-grid { grid-template-columns: 1fr; } }
.lane {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-4);
  transition: border-color .2s, transform .2s ease-out;
}
.lane:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.lane-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-3); }
.lane-label {
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em; padding-top: 8px;
}
.lane-grade {
  font-weight: 900; font-stretch: 125%; font-size: 2.2rem; line-height: 1;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.lane[data-grade="F"] .lane-grade { color: var(--accent); }
.lane[data-grade="D"] .lane-grade { color: #ff9d4d; }
.lane:hover .lane-grade { transform: scale(1.15) rotate(-5deg); }
.lane p:last-child { color: var(--muted); font-size: .88rem; line-height: 1.6; max-width: 44ch; }

/* red-flag ticker */
.ticker {
  overflow: hidden; margin-top: var(--s-6);
  border-block: 1px solid var(--border); padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tset {
  display: inline-flex; gap: 44px; padding-right: 44px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.tset span::before { content: "⚑ "; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* steps: borderless editorial columns */
.steps-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .steps-grid { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--border); padding-top: var(--s-3); }
.step-num {
  display: block; font-family: var(--font-mono); font-weight: 600;
  color: var(--accent); font-size: .82rem; margin-bottom: var(--s-2);
}
.step h4 { margin-bottom: 6px; font-size: 1rem; }
.step p { color: var(--muted); font-size: .85rem; line-height: 1.6; }

/* faq: divider list */
.faq { max-width: 720px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  padding: 18px 0; font-weight: 700; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); line-height: 1.65; font-size: .92rem; max-width: 60ch; }
.faq details p a { color: var(--accent-2); }

/* bottom cta: horizontal band */
.bottom-cta {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  flex-wrap: wrap; margin-top: var(--s-7);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-5);
}
.bottom-cta h2 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; }
.bottom-cta p { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.cta-btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
  padding: 14px 34px; border-radius: 12px; text-decoration: none; font-size: 1.05rem;
  transition: transform .15s ease-out, filter .15s ease-out;
}
.cta-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* ============================================================
   report v2
   ============================================================ */
.r { --band: var(--accent); }
.r.band-low { --band: var(--ok); }
.r.band-mid { --band: var(--accent-2); }
.r.band-high { --band: var(--accent); }

/* hero */
.r-hero { text-align: center; padding: var(--s-5) 0 0; }
.r-handle {
  font-size: .95rem; color: var(--muted); letter-spacing: .12em;
  text-transform: uppercase;
}
.r-name { font-size: 1.6rem; font-weight: 800; margin-top: 6px; letter-spacing: -.01em; }

.r-ring { position: relative; width: 232px; margin: var(--s-4) auto var(--s-3); }
.r-ring::before {
  /* circular glow behind the ring (a filter on the SVG clips to a square) */
  content: ""; position: absolute; inset: 4%; border-radius: 50%; z-index: -1;
  box-shadow: 0 0 48px color-mix(in srgb, var(--band) 22%, transparent);
}
.r-ring svg { width: 100%; display: block; transform: rotate(-90deg); }
.r-ring-track { fill: none; stroke: var(--border); stroke-width: 12; }
.r-ring-fill {
  fill: none; stroke: var(--band); stroke-width: 12; stroke-linecap: round;
  transition: stroke-dashoffset 1.4s cubic-bezier(.22, 1, .36, 1);
}
.r-ring-label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.r-score {
  font-size: 4.6rem; font-weight: 800; line-height: 1; color: var(--band);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.r-score-sub { font-family: var(--font-mono); color: var(--muted); font-size: .8rem; margin-top: 6px; letter-spacing: .1em; }

.r-verdict {
  font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; color: var(--band);
  letter-spacing: -.02em; line-height: 1.05;
}
.r-bio { color: var(--muted); max-width: 52ch; margin: var(--s-3) auto 0; line-height: 1.6; }
.r-meta {
  display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap;
  margin-top: var(--s-4); font-size: .74rem; color: var(--muted);
}
.r-meta span {
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px;
  letter-spacing: .06em;
}
.r-meta .r-warn { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, transparent); }

/* summary */
.r-summary {
  max-width: 720px; margin: var(--s-6) auto 0;
  border-left: 3px solid var(--band);
  padding: var(--s-2) 0 var(--s-2) var(--s-4);
}
.r-summary p { font-size: 1.18rem; line-height: 1.65; font-weight: 400; }

/* rubric */
.r-rubric {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3); margin-top: var(--s-6);
}
@media (max-width: 640px) { .r-rubric { grid-template-columns: 1fr; } }
.r-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-4);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .2s;
}
.r-card:hover { border-color: var(--border-hover); }
.r-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-2); }
.r-card-label {
  font-family: var(--font-mono); font-size: .68rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.5;
  padding-top: 8px; max-width: 110px;
}
.r-grade { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.grade-A .r-grade { color: var(--ok); }
.grade-B .r-grade { color: #a4d34d; }
.grade-C .r-grade { color: var(--accent-2); }
.grade-D .r-grade { color: #ff9d4d; }
.grade-F .r-grade { color: var(--accent); }
.r-card-note { color: var(--muted); font-size: .86rem; line-height: 1.6; flex: 1; }
.r-chips { display: flex; flex-wrap: wrap; gap: 6px; font-size: .72rem; }
.r-chips:empty { display: none; }
.r-chips a {
  display: grid; place-items: center; min-width: 24px; padding: 3px 6px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px;
  text-decoration: none; color: var(--accent-2);
}
.r-chips a:hover { border-color: var(--accent-2); }

/* sections */
.r-section { margin-top: var(--s-7); }
.r-h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: var(--s-4); }
.r-count {
  display: inline-grid; place-items: center; vertical-align: 6px;
  min-width: 28px; height: 28px; padding: 0 9px; margin-left: 6px;
  background: var(--accent); color: #fff; font-size: .85rem; border-radius: 999px;
}

/* receipts */
.r-receipts { display: grid; gap: var(--s-3); }
.r-receipt {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--sev, var(--border));
  border-radius: var(--radius); padding: var(--s-4);
  transition: border-color .2s;
}
.r-receipt:hover { border-color: var(--border-hover); border-left-color: var(--sev, var(--border)); }
.sev-minor { --sev: var(--accent-2); }
.sev-major { --sev: #ff9d4d; }
.sev-nuclear { --sev: var(--accent); }
.r-receipt-top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.r-num { color: var(--muted); font-size: .78rem; }
.r-sev {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--sev); border: 1px solid color-mix(in srgb, var(--sev) 45%, transparent);
  border-radius: 999px; padding: 3px 12px;
}
.sev-nuclear .r-sev { background: var(--accent); color: #fff; border-color: var(--accent); animation: nuke-pulse 2.4s ease-in-out infinite; }
@keyframes nuke-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 94, .4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 77, 94, 0); }
}
.r-explain { font-size: 1.02rem; line-height: 1.65; max-width: 68ch; }
.r-links { display: flex; gap: var(--s-3); margin-top: var(--s-3); font-size: .76rem; }
.r-links a { color: var(--accent-2); text-decoration: none; border-bottom: 1px dashed color-mix(in srgb, var(--accent-2) 50%, transparent); padding-bottom: 1px; }
.r-links a:hover { border-bottom-style: solid; }

/* revenue timeline */
.r-time { list-style: none; padding: 0; max-width: 720px; }
.r-time li {
  position: relative; display: flex; gap: var(--s-4); align-items: baseline;
  padding: 14px 0 14px var(--s-4); border-left: 1px solid var(--border);
}
.r-time li::before {
  content: ""; position: absolute; left: -4.5px; top: 22px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--band);
}
.r-date { color: var(--muted); font-size: .78rem; min-width: 110px; }
.r-claim { font-weight: 600; line-height: 1.5; }
.r-claim a { text-decoration: none; margin-left: 6px; }

/* red flags */
.r-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-3); }
.r-flag {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--s-4);
  transition: border-color .2s;
}
.r-flag:hover { border-color: var(--border-hover); }
.r-flag h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: var(--s-2); }
.r-flag h3::before { content: "⚑ "; color: var(--accent); }
.r-flag p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.r-flag .r-links { margin-top: var(--s-3); }

/* share footer */
.r-share {
  display: flex; gap: var(--s-3); justify-content: center; align-items: center;
  flex-wrap: wrap; margin-top: var(--s-7);
}
.share-btn {
  background: var(--accent); color: #fff; border: none;
  font: inherit; font-weight: 700; padding: 14px 28px; border-radius: 12px;
  text-decoration: none; display: inline-block;
  transition: transform .15s ease-out, filter .15s ease-out;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.share-x { background: var(--text); color: var(--bg); }
.again { color: var(--muted); }

/* ============================================================
   motion
   ============================================================ */
.rise { opacity: 0; transform: translateY(14px); animation: fade-up .55s ease-out forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease-out, transform .55s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal > .r-card, .js .reveal .r-receipt, .js .reveal .r-flag, .js .reveal .lane, .js .reveal .step {
  opacity: 0; transform: translateY(12px);
  transition: opacity .45s ease-out, transform .45s ease-out, border-color .2s;
}
.js .reveal.in > .r-card, .js .reveal.in .r-receipt, .js .reveal.in .r-flag, .js .reveal.in .lane, .js .reveal.in .step { opacity: 1; transform: none; }
.js .reveal.in > :nth-child(2), .js .reveal.in > * > :nth-child(2) { transition-delay: .06s; }
.js .reveal.in > :nth-child(3), .js .reveal.in > * > :nth-child(3) { transition-delay: .12s; }
.js .reveal.in > :nth-child(4), .js .reveal.in > * > :nth-child(4) { transition-delay: .18s; }
.js .reveal.in > :nth-child(5), .js .reveal.in > * > :nth-child(5) { transition-delay: .24s; }
.js .reveal.in > :nth-child(6), .js .reveal.in > * > :nth-child(6) { transition-delay: .3s; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 560px) {
  .scan-box { flex-wrap: wrap; padding: 10px; }
  .scan-box input { width: 100%; flex: 1 1 100%; }
  .scan-box button { width: 100%; }
  .r-ring { width: 190px; }
  .r-score { font-size: 3.6rem; }
  .r-summary { margin-top: var(--s-5); }
  .r-section { margin-top: var(--s-6); }
  .r-date { min-width: 88px; }
}

/* ============================================================
   reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .rise, .reveal, .reveal * { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
  .hero h1 em, .sev-nuclear .r-sev, .ticker-track { animation: none !important; }
  .r-ring-fill, .demo-ring-fill { transition: none !important; }
  .spinner { animation-duration: 1.5s; }
}
