/* ==========================================================================
   OnlineReputation.top — marketing site
   Design tokens first, then components in page order.
   ========================================================================== */

:root {
  /* Surfaces — dark is the brand default, light sections create rhythm. */
  --deep:        #06090e;
  --dark:        #0a0e15;
  --dark-raised: #111823;
  --dark-line:   rgba(255, 255, 255, .09);

  --white:       #ffffff;
  --offwhite:    #f5f7f8;
  --light-line:  #e3e8ec;

  /* Ink */
  --ink-on-dark:      #eef3f8;
  --ink-on-dark-mute: #94a5b8;
  --ink:              #0b1a26;
  --ink-mute:         #536778;

  /* Accent — turquoise, carried over from the product UI. */
  --accent:      #2dd4bf;
  --accent-deep: #0f9e8c;
  --accent-ink:  #04231f;
  --accent-soft: rgba(45, 212, 191, .12);

  /* Semantic: things that rise vs things that sink. */
  --rise: #2dd4bf;
  --sink: #f0836b;

  --radius:    14px;
  --radius-lg: 22px;

  /* Fluid type scale. */
  --t-eyebrow: .72rem;
  --t-body:    clamp(1rem, .96rem + .2vw, 1.09rem);
  --t-lead:    clamp(1.06rem, 1rem + .4vw, 1.25rem);
  --t-h3:      clamp(1.12rem, 1.05rem + .35vw, 1.3rem);
  --t-h2:      clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --t-h1:      clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);

  --shell:  1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --band:   clamp(4.5rem, 9vw, 7.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--dark);
  color: var(--ink-on-dark);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--t-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is load-bearing — the sprites carry width/height attributes for
   CLS, and without this any CSS width override squashes them horizontally. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Every character sprite is pixel art — never let the browser smooth it. */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--t-h2); font-weight: 800; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -.01em; }
p  { margin: 0; text-wrap: pretty; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0; font-weight: 700;
}
.skip:focus { left: 0; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------- sections */

.band { padding-block: var(--band); position: relative; }
.band--dark  { background: var(--dark);  color: var(--ink-on-dark); }
.band--deep  { background: var(--deep);  color: var(--ink-on-dark); }
.band--light { background: var(--white); color: var(--ink); }
.band--off   { background: var(--offwhite); color: var(--ink); }

/* Hairline seam so light/dark transitions read as deliberate. */
.band--light + .band--off, .band--off + .band--light { border-top: 1px solid var(--light-line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--t-eyebrow); font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 1rem;
}
.band--dark .eyebrow, .band--deep .eyebrow { color: var(--accent); }
.eyebrow img { width: 15px; height: 15px; }

.band-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.band-head p { color: var(--ink-mute); font-size: var(--t-lead); margin-top: 1.1rem; }
.band--dark .band-head p, .band--deep .band-head p { color: var(--ink-on-dark-mute); }
.band-head--center { margin-inline: auto; text-align: center; }

/* Fine grid, only on dark bands. Decorative, so hidden from AT. */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, #000 30%, transparent 100%);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; letter-spacing: -.01em;
  padding: .95rem 1.6rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 26px -10px rgba(45, 212, 191, .75);
}
.btn--primary:hover { background: #4ee0ce; box-shadow: 0 12px 32px -10px rgba(45, 212, 191, .9); }

.btn--ghost { background: transparent; border-color: rgba(255,255,255,.22); color: var(--ink-on-dark); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

.band--light .btn--ghost, .band--off .btn--ghost { border-color: var(--light-line); color: var(--ink); }
.band--light .btn--ghost:hover, .band--off .btn--ghost:hover { border-color: var(--accent-deep); background: var(--accent-soft); }

.btn--sm { padding: .62rem 1.15rem; font-size: .92rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 21, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--dark-line);
}
.nav__in { display: flex; align-items: center; gap: 1.25rem; height: 72px; }
.nav__brand {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.12rem;
  text-decoration: none; color: var(--ink-on-dark); margin-right: auto;
  display: inline-flex; align-items: center; gap: .55rem;
}
.nav__brand img { width: 22px; height: 22px; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { text-decoration: none; color: var(--ink-on-dark-mute); font-weight: 600; font-size: .95rem; }
.nav__links a:hover { color: var(--ink-on-dark); }
.nav__end { display: flex; align-items: center; gap: 1rem; }
.nav__login { text-decoration: none; color: var(--ink-on-dark-mute); font-weight: 600; font-size: .95rem; }
.nav__login:hover { color: var(--ink-on-dark); }

.nav__toggle {
  display: none; background: none; border: 1px solid var(--dark-line);
  border-radius: 10px; padding: .5rem .6rem; cursor: pointer; color: var(--ink-on-dark);
}
.nav__toggle svg { display: block; }

/* ----------------------------------------------------------------- hero */

.hero { padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--band); overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.tag {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid rgba(45,212,191,.32); background: var(--accent-soft);
  color: var(--accent); border-radius: 999px; padding: .42rem .95rem;
  font-size: var(--t-eyebrow); font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.hero h1 { margin: 1.4rem 0 0; text-transform: uppercase; }
.hero h1 .u { color: var(--accent); display: block; }
.hero__lead { color: var(--ink-on-dark-mute); font-size: var(--t-lead); margin-top: 1.4rem; max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }
.hero__price { margin-top: 1.1rem; font-size: .92rem; color: var(--ink-on-dark-mute); }
.hero__price b { color: var(--ink-on-dark); font-weight: 700; }

/* Hero visual: coded rank cards + score panel, with sprite art layered in.
   No text is baked into any image. */
/* Two columns: coded cards on the left, sprite stage on the right. Keeping the
   art in its own column is what stops the sheriff colliding with the cards. */
.serp { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 1.2rem; align-items: center; }
.serp__col { display: grid; gap: .55rem; min-width: 0; }
.serp__stack { display: grid; gap: .55rem; }

.rank {
  display: flex; align-items: center; gap: .7rem;
  background: var(--dark-raised); border: 1px solid var(--dark-line);
  border-radius: 12px; padding: .72rem .9rem;
  font-size: .92rem; font-weight: 650;
}
.rank__n {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: .8rem;
  background: rgba(255,255,255,.07); border-radius: 6px; padding: .16rem .44rem; color: var(--ink-on-dark-mute);
}
.rank__dir { margin-left: auto; font-weight: 800; }
.rank > :not(.rank__n):not(.rank__dir) { white-space: nowrap; }
.rank--up   { border-color: rgba(45,212,191,.34); }
.rank--up   .rank__n { background: var(--accent-soft); color: var(--accent); }
.rank--up   .rank__dir { color: var(--rise); }
.rank--down { border-color: rgba(240,131,107,.32); opacity: .82; }
.rank--down .rank__dir { color: var(--sink); }

.score {
  background: var(--dark-raised); border: 1px solid var(--dark-line);
  border-radius: var(--radius); padding: 1rem 1.15rem; max-width: 250px;
}
.score__k { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-on-dark-mute); font-weight: 800; }
.score__v { font-size: 2.1rem; font-weight: 800; letter-spacing: -.04em; margin-top: .3rem; font-variant-numeric: tabular-nums; }
.score__v .to { color: var(--accent); }
.score__d { font-size: .85rem; color: var(--rise); font-weight: 700; }

/* Sprite stage. Aspect-ratio box keeps every percentage position stable as the
   column resizes, so the composition never drifts apart at odd widths. */
.serp__art { position: relative; aspect-ratio: 4 / 5; min-height: 320px; }
.serp__sheriff {
  position: absolute; left: 50%; bottom: 6%; translate: -50% 0;
  width: 70%; height: auto;
}
.ghost { position: absolute; width: 26%; }
.ghost--a { top: 4%;  left: 4%; }            /* drifting in, top-left  */
.ghost--b { top: 0;   right: 2%; }           /* drifting in, top-right */
.ghost--c { top: 32%; right: 0; width: 23%; }
.ghost--d { bottom: 2%; left: 0; width: 22%; }   /* the one going down */
.marker { position: absolute; bottom: 0; left: 19%; width: 27%; }
.marker__cap {
  position: absolute; inset: auto 0 38%; text-align: center;
  font-size: .58rem; font-weight: 800; letter-spacing: .1em; color: #cbd5e1;
}

/* Stat strip */
.stats {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--dark-line); border-radius: var(--radius-lg);
  background: rgba(255,255,255,.02); overflow: hidden;
}
.stat { padding: 1.6rem 1rem; text-align: center; border-right: 1px solid var(--dark-line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 800; color: var(--accent); letter-spacing: -.035em; }
.stat span { font-size: .82rem; color: var(--ink-on-dark-mute); font-weight: 600; }

/* ------------------------------------------------------------- problem */

.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.prob {
  background: var(--white); border: 1px solid var(--light-line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem 1.6rem; text-align: center;
}
/* The ghosts are pale by design, so on light bands they sit on a dark disc.
   Without it the cyan and grey ones all but disappear against off-white. */
.prob__disc {
  width: 108px; height: 108px; margin: 0 auto 1.1rem;
  border-radius: 50%; background: var(--deep);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.prob__disc img { width: 66px; height: auto; }
.prob h3 { margin-bottom: .45rem; }
.prob p { color: var(--ink-mute); font-size: .95rem; }

/* ------------------------------------------------------- how it works */

.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.15rem; padding: 1.5rem 0; border-bottom: 1px solid var(--light-line); }
.step:last-child { border-bottom: 0; }
.step__n {
  counter-increment: s; font-variant-numeric: tabular-nums;
  font-weight: 800; font-size: .78rem; color: var(--accent-deep);
  letter-spacing: .1em; padding-top: .3rem;
}
.step__n::before { content: "0" counter(s); }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--ink-mute); font-size: .96rem; }

.panel {
  background: var(--deep); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.9rem); color: var(--ink-on-dark);
  position: sticky; top: 100px;
}
.panel__bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.panel__q {
  flex: 1; background: rgba(255,255,255,.05); border: 1px solid var(--dark-line);
  border-radius: 999px; padding: .55rem .95rem; font-size: .85rem; color: var(--ink-on-dark-mute);
}
.panel__pill {
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .4rem .7rem;
}
.res { border: 1px solid var(--dark-line); border-radius: 12px; padding: .85rem 1rem; margin-bottom: .6rem; background: rgba(255,255,255,.02); }
.res__k { font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.res--down .res__k { color: var(--sink); }
.res h4 { margin: .3rem 0 .2rem; font-size: .96rem; font-weight: 700; }
.res p { font-size: .84rem; color: var(--ink-on-dark-mute); }
.res__pos { float: right; font-weight: 800; font-size: .9rem; color: var(--accent); }
.res--down .res__pos { color: var(--sink); }

.panel__note { font-size: .72rem; color: var(--ink-on-dark-mute); margin-top: .9rem; font-style: italic; }

/* ------------------------------------------------------------- feature grid */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.card {
  border: 1px solid var(--light-line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; background: var(--white);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.55); box-shadow: 0 16px 40px -26px rgba(11,26,38,.5); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-mute); font-size: .95rem; }
.card__ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 1rem;
  background: var(--accent-soft); color: var(--accent-deep);
  display: grid; place-items: center;
}
.card__ico svg { width: 19px; height: 19px; }

/* ------------------------------------------------------------------ pills */

.pills { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.pill {
  background: var(--white); border: 1px solid var(--light-line);
  border-radius: 999px; padding: .62rem 1.15rem; font-size: .93rem; font-weight: 650;
}

/* ---------------------------------------------------------------- pricing */

.price-wrap { display: grid; place-items: center; }
.price {
  width: min(480px, 100%); background: var(--white);
  border: 1.5px solid var(--accent); border-radius: var(--radius-lg);
  padding: clamp(1.7rem, 4vw, 2.5rem); position: relative;
  box-shadow: 0 28px 70px -46px rgba(11,26,38,.6);
}
.price__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
}
.price__k { text-align: center; font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); }
.price__v { text-align: center; font-size: clamp(3rem, 2rem + 4vw, 4.2rem); font-weight: 800; color: var(--accent-deep); letter-spacing: -.05em; line-height: 1; margin: .5rem 0 .2rem; }
.price__sub { text-align: center; color: var(--ink-mute); font-size: .95rem; }
.price__chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.3rem 0; }
.chip { background: var(--accent-soft); color: var(--accent-deep); border-radius: 999px; padding: .4rem .85rem; font-size: .84rem; font-weight: 700; }
.price ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.price li { display: grid; grid-template-columns: auto 1fr; gap: .7rem; padding: .72rem 0; border-bottom: 1px solid var(--light-line); font-size: .94rem; }
.price li:last-child { border-bottom: 0; }
.price li svg { width: 17px; height: 17px; color: var(--accent-deep); margin-top: .28rem; }
.price__fine { text-align: center; font-size: .84rem; color: var(--ink-mute); margin-top: .85rem; }

/* -------------------------------------------------------------------- faq */

.faq { max-width: 780px; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--light-line); }
.qa summary {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  padding: 1.35rem 0; font-weight: 700; font-size: 1.04rem; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; margin-left: auto; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .22s ease;
}
.qa[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.qa p { color: var(--ink-mute); padding-bottom: 1.4rem; max-width: 68ch; font-size: .97rem; }

/* ------------------------------------------------------------------- blog */

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.post {
  border: 1px solid var(--light-line); border-radius: var(--radius);
  padding: 1.5rem; background: var(--white); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .2s ease, transform .2s ease;
}
.post:hover { transform: translateY(-3px); border-color: rgba(45,212,191,.55); }
.post h3 { font-size: 1.05rem; }
.post p { color: var(--ink-mute); font-size: .92rem; }
.post time { margin-top: auto; font-size: .8rem; color: var(--ink-mute); }

/* -------------------------------------------------------------- final cta */

.final { text-align: center; }
.final h2 { max-width: 18ch; margin-inline: auto; }
.final p { color: var(--ink-on-dark-mute); font-size: var(--t-lead); margin: 1.2rem auto 2rem; max-width: 52ch; }
.final__sheriff { width: min(150px, 34vw); margin: 0 auto 2rem; }

/* ----------------------------------------------------------------- footer */

.foot { background: var(--deep); border-top: 1px solid var(--dark-line); padding-block: 2.6rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot__brand { font-weight: 800; letter-spacing: -.03em; display: inline-flex; align-items: center; gap: .5rem; }
.foot__brand img { width: 20px; height: 20px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot a { color: var(--ink-on-dark-mute); text-decoration: none; font-size: .9rem; }
.foot a:hover { color: var(--ink-on-dark); }
.foot__c { font-size: .85rem; color: var(--ink-on-dark-mute); }

/* -------------------------------------------------------------- motion */

@keyframes drift  { 0%,100% { transform: translateY(0)      rotate(-3deg); }
                    50%     { transform: translateY(-11px)  rotate(3deg);  } }
@keyframes sink   { 0%,100% { transform: translateY(0)      rotate(2deg);  }
                    50%     { transform: translateY(10px)   rotate(-2deg); } }
@keyframes bob    { 0%,100% { transform: translateY(0); }
                    50%     { transform: translateY(-7px); } }

.ghost--a { animation: drift 6.5s ease-in-out infinite; }
.ghost--b { animation: drift 7.8s ease-in-out infinite .7s; }
.ghost--c { animation: drift 7.1s ease-in-out infinite 1.4s; }
.ghost--d { animation: sink  5.4s ease-in-out infinite; }
.serp__sheriff { animation: bob 5.6s ease-in-out infinite; }

/* Scoped to .js so a blocked or failed script can never leave content invisible. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .post:hover { transform: none; }
}

/* --------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; }
  /* Art below copy on tablet so it can never crowd the headline. */
  .hero__art { order: 2; }
  .serp__stack { max-width: none; }
  .how { grid-template-columns: 1fr; }
  .panel { position: static; }
  .cards, .probs, .posts { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__login { display: none; }
  .nav__toggle { display: block; order: 3; }
  .nav[data-open="true"] .nav__links {
    display: flex; position: absolute; inset: 72px 0 auto; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--deep);
    border-bottom: 1px solid var(--dark-line); padding: .5rem var(--gutter) 1.2rem;
  }
  .nav[data-open="true"] .nav__links a { padding: .95rem 0; border-bottom: 1px solid var(--dark-line); }
  .nav[data-open="true"] .nav__login { display: block; padding: .95rem 0; }
}

/* Below this width the two-column hero visual squeezes the rank cards until the
   sprites overlap them — stack it and give the art a wider stage instead. */
@media (max-width: 780px) {
  .serp { grid-template-columns: 1fr; gap: 1.4rem; }
  .serp__art { aspect-ratio: 3 / 2; min-height: 0; }
  .serp__sheriff { width: 30%; }
  .ghost  { width: 13%; }
  .ghost--d { width: 12%; }
  .marker { width: 14%; left: 32%; }
}

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  /* Brand + CTA + toggle must coexist on a 390px bar without colliding. */
  .nav__in { gap: .6rem; }
  .nav__brand { font-size: .95rem; letter-spacing: -.04em; }
  .nav__brand img { width: 18px; height: 18px; }
  .nav__end .btn { padding: .55rem .85rem; font-size: .85rem; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .cards, .probs, .posts { grid-template-columns: 1fr; }
  /* Thin the decorative ghosts right down on phones. */
  .ghost--b, .ghost--c { display: none; }
  .serp__art { min-height: 230px; }
  .serp__sheriff { width: 45%; }
  .hero__cta .btn { width: 100%; }
}

@media print { .nav, .serp__art, .final__sheriff { display: none; } }

/* ==========================================================================
   ATMOSPHERE & INTERACTION
   Added after the base layer so it can layer on top without fighting it.
   Everything here is transform/opacity only, and all of it is disabled under
   prefers-reduced-motion or on devices without a fine pointer.
   ========================================================================== */

/* --- pointer spotlight -----------------------------------------------------
   A soft teal wash that follows the cursor across dark bands, lighting up the
   grid beneath it. Position comes from --mx/--my, written by JS on rAF. */
.band--dark, .band--deep, .hero { --mx: 50%; --my: 40%; }

.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
              rgba(45,212,191,.10), rgba(45,212,191,.04) 40%, transparent 70%);
  opacity: 0; transition: opacity .45s ease;
}
.spot.lit::after { opacity: 1; }
.hero > *, .band > * { position: relative; z-index: 1; }

/* --- film grain ------------------------------------------------------------
   Stops the large flat darks from reading as empty. Tiny inline SVG, no file. */
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* --- aurora ----------------------------------------------------------------
   One slow off-centre bloom behind the hero. Deliberately singular: the brief
   warns against random gradients, so there is exactly one, and it moves. */
.aurora {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  pointer-events: none; z-index: 0; opacity: .55;
  background:
    radial-gradient(38% 44% at 74% 28%, rgba(45,212,191,.20), transparent 62%),
    radial-gradient(32% 40% at 22% 12%, rgba(56,132,255,.13), transparent 66%);
  filter: blur(24px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1);    }
  to   { transform: translate3d( 3%,  2%, 0) scale(1.09); }
}

/* --- magnetic buttons ------------------------------------------------------ */
.btn { will-change: transform; }
.btn--magnet { transform: translate3d(var(--bx, 0px), var(--by, 0px), 0); }
.btn--magnet:hover { transform: translate3d(var(--bx, 0px), calc(var(--by, 0px) - 2px), 0); }

/* --- ticker ----------------------------------------------------------------
   Restores the rotating strap-line the old hero had, as a continuous marquee. */
.ticker {
  border-block: 1px solid var(--dark-line); background: rgba(255,255,255,.02);
  overflow: hidden; padding-block: .9rem; position: relative; z-index: 1;
}
.ticker__row { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker span {
  display: inline-flex; align-items: center; gap: .9rem; padding-inline: 1.5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-on-dark-mute); white-space: nowrap;
}
.ticker span::after { content: "◆"; color: var(--accent); font-size: .6rem; }
.ticker:hover .ticker__row { animation-play-state: paused; }
@keyframes slide { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* --- ghost mechanic --------------------------------------------------------
   Hero ghosts are clickable: clicking sinks one toward the page-2 marker.
   Purely additive — the page reads identically if nobody ever clicks. */
.ghost { cursor: pointer; transition: filter .2s ease; }
.ghost:hover  { filter: drop-shadow(0 0 12px rgba(45,212,191,.55)) brightness(1.12); }
.ghost:active { filter: drop-shadow(0 0 6px rgba(45,212,191,.8)) brightness(.9); }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }

.ghost.buried { animation: bury .85s cubic-bezier(.55,.06,.68,.19) forwards; pointer-events: none; }
@keyframes bury {
  40%  { transform: translateY(6px)  scale(1.06) rotate(6deg); opacity: 1; }
  100% { transform: translateY(190px) scale(.32) rotate(-16deg); opacity: 0; }
}

.tally {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(17,24,35,.9); border: 1px solid var(--dark-line);
  border-radius: 999px; padding: .42rem .8rem; font-size: .74rem; font-weight: 700;
  color: var(--ink-on-dark-mute); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.tally.on { opacity: 1; transform: none; }
.tally b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* --- card cursor glow ------------------------------------------------------ */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(240px circle at var(--cx, 50%) var(--cy, 50%),
              rgba(45,212,191,.10), transparent 65%);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

/* --- hero art parallax ----------------------------------------------------- */
.serp__art { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .aurora, .ticker__row { animation: none; }
  .spot::after { display: none; }
  .ghost.buried { animation: none; opacity: 0; }
  .btn--magnet { transform: none; }
}
/* No hover spotlight where there is no hover. */
@media (hover: none), (pointer: coarse) {
  .spot::after, .card::before { display: none; }
}

/* ==========================================================================
   MINIGAME — "Clear page one"
   A contained, optional interlude. Nothing here is required to understand the
   product; the section reads as a static panel if JS never runs.
   ========================================================================== */

.game { --arena-h: clamp(340px, 46vw, 470px); }

.game__head { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.game__head .band-head { margin-bottom: 0; }

.hud { display: flex; align-items: center; gap: .55rem; flex: none; }
.hud__stat {
  display: inline-flex; align-items: baseline; gap: .45rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--dark-line);
  border-radius: 999px; padding: .5rem .95rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-on-dark-mute);
}
.hud__stat b { font-size: 1rem; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hud__stat--time b { color: var(--ink-on-dark); }
.hud__stat--warn b { color: var(--sink); }

.hud__btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  background: rgba(255,255,255,.04); border: 1px solid var(--dark-line);
  border-radius: 50%; color: var(--ink-on-dark-mute); cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.hud__btn:hover { color: var(--accent); border-color: rgba(45,212,191,.5); }
.hud__btn svg { width: 17px; height: 17px; }
.hud__btn .off { display: none; }
.hud__btn[aria-pressed="true"] .on  { display: none; }
.hud__btn[aria-pressed="true"] .off { display: block; }

/* --- arena ---------------------------------------------------------------- */
.arena {
  position: relative; height: var(--arena-h);
  border: 1px solid var(--dark-line); border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(45,212,191,.05), transparent 42%),
    var(--deep);
  overflow: hidden; cursor: crosshair;
}
.arena__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 46px 46px;
}

/* The page-one boundary: ghosts dragged below it are out of sight, which is
   the actual product outcome rather than deletion. */
.arena__line { position: absolute; left: 0; right: 0; bottom: 22%; pointer-events: none; }
.arena__line::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(240,131,107,.5) 0 8px, transparent 8px 16px);
}
.arena__line span {
  position: absolute; right: 12px; top: 7px;
  font-size: .58rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--sink);
}

.arena__sheriff { position: absolute; left: 18px; bottom: 10px; width: clamp(74px, 11%, 108px); pointer-events: none; z-index: 2; }

/* --- targets -------------------------------------------------------------- */
.spook {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: none; border: 0; padding: 0; cursor: pointer;
  will-change: transform; transform: translate3d(0,0,0);
}
.spook img { width: clamp(44px, 5.4vw, 62px); pointer-events: none; }
.spook__tag {
  font-size: .64rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap;
  background: rgba(10,14,21,.9); border: 1px solid var(--dark-line);
  border-radius: 999px; padding: .2rem .55rem; color: var(--ink-on-dark-mute);
  pointer-events: none;
}
.spook:hover img { filter: drop-shadow(0 0 11px rgba(45,212,191,.6)) brightness(1.14); }
.spook:hover .spook__tag { color: var(--ink-on-dark); border-color: rgba(45,212,191,.5); }
.spook:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 10px; }

.spook--stalker .spook__tag { color: var(--sink); border-color: rgba(240,131,107,.45); }

.spook.hit { animation: hit .55s cubic-bezier(.5,.05,.75,.2) forwards; pointer-events: none; }
@keyframes hit {
  30%  { transform: translate3d(var(--hx,0), calc(var(--hy,0px) - 6px), 0) scale(1.14); }
  100% { transform: translate3d(var(--hx,0), calc(var(--hy,0px) + 150px), 0) scale(.3) rotate(14deg); opacity: 0; }
}

.pop {
  position: absolute; pointer-events: none; font-weight: 800; font-size: .82rem;
  color: var(--accent); animation: pop .75s ease-out forwards;
}
@keyframes pop { to { transform: translateY(-34px); opacity: 0; } }

/* --- overlay -------------------------------------------------------------- */
.arena__over {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center;
  gap: .85rem; text-align: center; padding: 1.5rem;
  background: rgba(6,9,14,.82); backdrop-filter: blur(3px);
}
.arena__over[hidden] { display: none; }
.arena__over h3 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); }
.arena__over p { color: var(--ink-on-dark-mute); font-size: .93rem; max-width: 42ch; margin-inline: auto; }
.arena__over .btn { justify-self: center; }
.game__foot { margin-top: 1rem; font-size: .82rem; color: var(--ink-on-dark-mute); font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .spook.hit { animation: none; opacity: 0; }
  .pop { animation: none; opacity: 0; }
}
@media (max-width: 640px) {
  .game__head { flex-direction: column; align-items: stretch; }
  .hud { justify-content: space-between; }
  .arena { cursor: pointer; }
  .arena__sheriff { display: none; }
}
