/* ============================================================
   SEO — "the results page"

   The division sells position, so the page is built out of the
   thing position happens on: a search result. Mock SERP rows, a
   rank ladder that climbs, monospace data furniture, and a green
   that reads as a terminal rather than a brand colour.

   Densest, most technical page on the site. That's deliberate —
   SEO buyers are usually comparing vendors on specifics, and a
   page of airy reassurance is exactly what they discount.
   ============================================================ */

html { background: #060b09; }   /* on <html>: an opaque <body> would bury the star canvas */
main > section:not(.hero) { background: rgba(6, 11, 9, 0.91); }
.foot { background: rgba(6, 11, 9, 0.92); }

/* ---------- hero ---------- */

.seohero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: auto;
  padding: clamp(7rem, 12vw, 9rem) var(--pad) clamp(4rem, 8vw, 6rem);
}
.seohero::before {
  background: radial-gradient(70% 70% at 25% 45%, rgba(111, 227, 166, 0.08), transparent 70%);
}
.seohero .hero__h1 i { color: var(--accent); }
.seohero .hero__note {
  font-family: var(--mono);
  border-top: 1px solid rgba(111, 227, 166, 0.2);
  padding-top: 1.1rem;
}

/* ---------- the mock SERP ---------- */

.serp {
  border: 1px solid rgba(111, 227, 166, 0.2);
  border-radius: 6px;
  background: #08110d;
  overflow: hidden;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}
.serp__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(111, 227, 166, 0.16);
  background: #0b1712;
}
.serp__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.serp__q {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--mute);
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #060b09;
}
.serp__q b { color: var(--accent); font-weight: 400; }

.serp__row {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.42;
  transition: opacity 0.5s, background 0.5s;
}
.serp__row:last-child { border-bottom: 0; }
.serp__pos { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; color: var(--dim); }
.serp__t { font-size: 0.9rem; margin-top: 0.3rem; color: var(--mute); }
.serp__u { font-family: var(--mono); font-size: 0.62rem; color: var(--dim); margin-top: 0.2rem; }

/* The row that climbs. Everything else is deliberately dimmed so the
   page's single claim — you move up this list — needs no caption. */
.serp__row--you {
  opacity: 1;
  background: linear-gradient(90deg, rgba(111, 227, 166, 0.1), transparent);
  border-left: 2px solid var(--accent);
  animation: serprise 5.5s ease-in-out infinite;
}
.serp__row--you .serp__pos { color: var(--accent); }
.serp__row--you .serp__t { color: var(--white); font-weight: 500; }
@keyframes serprise {
  0%, 18% { transform: translateY(0); }
  38%, 100% { transform: translateY(-100%); }
}
/* The row it displaces slides down to fill the gap, so the movement reads
   as an exchange of positions rather than one item drifting. */
.serp__row--above { animation: serpfall 5.5s ease-in-out infinite; }
@keyframes serpfall {
  0%, 18% { transform: translateY(0); }
  38%, 100% { transform: translateY(100%); }
}

/* ---------- rank ladder ---------- */

.rank { display: flex; align-items: flex-end; gap: 0.45rem; max-width: 34rem; margin: 3.5rem auto 0; height: 10rem; padding: 0 var(--pad); }
.rank__bar { flex: 1; background: rgba(111, 227, 166, 0.14); border-radius: 2px 2px 0 0; position: relative; transition: background 0.4s; }
.rank__bar:hover { background: rgba(111, 227, 166, 0.3); }
.rank__bar span { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.58rem; color: var(--dim); }
.rank__bar--top { background: var(--accent); }
.rank__bar--top span { color: var(--accent); font-weight: 600; }

/* ---------- data cards ---------- */

.cardgrid { border-color: rgba(111, 227, 166, 0.14); background: rgba(111, 227, 166, 0.14); }
.card3 { background: #08110d; }
.card3__n { color: var(--accent); border-bottom-color: rgba(111, 227, 166, 0.18); }

/* ---------- checkout, terminal green ---------- */

.cksum { background: radial-gradient(90% 60% at 50% 0%, rgba(111, 227, 166, 0.1), transparent 65%), #08110d; }
.ckpick { background: #08110d; }
.fld input, .fld select, .fld textarea { background: #060b09; }

@media (max-width: 900px) {
  .seohero { grid-template-columns: 1fr; }
  .serp { margin-top: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .serp__row--you, .serp__row--above { animation: none; }
}
