/* ============================================================
   GEO — "the answer"

   Most visitors won't already know what GEO is, so the page
   doesn't lead with a definition — it leads with the artefact.
   A conversation panel, a question typed in, an answer streaming
   out, and the client's domain sitting in the citation chip at
   the bottom. Understand the product by watching it happen.

   Magenta on a violet-black, and rounded where every other page
   is square — this is the one division whose subject is a chat
   interface, and chat interfaces are soft-cornered.
   ============================================================ */

html { background: #0b0710; }   /* on <html>: an opaque <body> would bury the star canvas */
main > section:not(.hero) { background: rgba(11, 7, 16, 0.91); }
.foot { background: rgba(11, 7, 16, 0.92); }

/* ---------- hero ---------- */

.geohero {
  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);
}
.geohero::before {
  background: radial-gradient(70% 70% at 25% 45%, rgba(232, 95, 160, 0.1), transparent 70%);
}
.geohero .hero__h1 i { color: var(--accent); }
.geohero .hero__note { border-top: 1px solid rgba(232, 95, 160, 0.2); padding-top: 1.1rem; }

/* ---------- the conversation ---------- */

.convo {
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.2rem;
  border: 1px solid rgba(232, 95, 160, 0.22);
  border-radius: 16px;
  background: #130b1a;
}

.bubble { border-radius: 14px; padding: 0.85rem 1.05rem; font-size: 0.92rem; line-height: 1.55; }
.bubble--ask {
  background: rgba(232, 95, 160, 0.14);
  border: 1px solid rgba(232, 95, 160, 0.25);
  color: var(--white);
  margin-left: 3rem;
  border-bottom-right-radius: 4px;
}
.bubble--ans {
  background: #1a1024;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--mute);
  margin: 0.9rem 3rem 0 0;
  border-bottom-left-radius: 4px;
}

/* The answer types itself in. Three lines, each revealed by a width
   animation on an inline-block — cheaper and far more reliable than a
   per-character JS typewriter, and it degrades to plain text if the
   animation never runs. */
.bubble--ans p { overflow: hidden; white-space: nowrap; }
.bubble--ans p span {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: type 8s steps(40, end) infinite;
}
.bubble--ans p:nth-child(1) span { animation-delay: 0.4s; }
.bubble--ans p:nth-child(2) span { animation-delay: 1.2s; }
.bubble--ans p:nth-child(3) span { animation-delay: 2s; }
@keyframes type {
  0% { max-width: 0; }
  22%, 88% { max-width: 100%; }
  100% { max-width: 0; }
}

.cite {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--accent);
  border-radius: 100px;
  background: rgba(232, 95, 160, 0.14);
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--accent);
  opacity: 0;
  animation: citein 8s ease-in-out infinite;
  animation-delay: 2.6s;
}
.cite svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 2; }
@keyframes citein {
  0%, 30% { opacity: 0; transform: translateY(6px); }
  38%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(6px); }
}

/* ---------- soft cards ---------- */

.cardgrid { border: 0; background: none; gap: 1rem; }
.card3 { background: #130b1a; border: 1px solid rgba(232, 95, 160, 0.16); border-radius: 12px; }
.card3__n { color: var(--accent); border-bottom-color: rgba(232, 95, 160, 0.18); }

/* ---------- the SEO/GEO split ---------- */

.split2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 58rem;
  margin: 3.5rem auto 0;
  padding: 0 var(--pad);
}
.split2__col { padding: clamp(1.4rem, 3vw, 2rem); border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.split2__col--geo { border-color: rgba(232, 95, 160, 0.32); background: rgba(232, 95, 160, 0.05); }
.split2__k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.9rem; }
.split2__col--geo .split2__k { color: var(--accent); }
.split2__q { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; color: var(--white); }
.split2__d { color: var(--mute); font-size: 0.9rem; margin-top: 0.7rem; }

/* ---------- checkout, soft ---------- */

.cksum, .ckpick { border-radius: 12px; }
.cksum { background: radial-gradient(90% 60% at 50% 0%, rgba(232, 95, 160, 0.11), transparent 65%), #130b1a; }
.ckpick { background: #130b1a; }
.fld input, .fld select, .fld textarea { background: #0b0710; border-radius: 8px; }

/* ============================================================
   THE SCAN

   Everything else on this page is soft-cornered, because the
   subject is a chat interface. The scan is the one place that
   isn't: it's an instrument, so it gets square corners, mono
   type and hairlines, and sits darker than the page around it.
   Reading as a readout rather than as another marketing card is
   the whole point — the thing being sold here is a measurement.

   The bars are the SCORING WEIGHTS, not a result. No prospect's
   site has been scanned at the time this renders, and a mocked
   result would be a fabricated number about a real company.
   ============================================================ */

/* Every block in this section lines up with .wrap's TEXT column, so the
   readout panel sits directly under the heading above it. .wrap is
   `max-width:76rem` with padding inside a border box, so its content is
   `min(76rem, 100%) - 2 * pad` — the four blocks below reproduce exactly
   that, either by padding (no background to paint) or by width (has one). */
.scan__grid {
  display: grid;
  /* minmax(0, …) rather than a bare fr: the readout's command line is
     nowrap, so an `auto` track minimum sizes the column to the full
     untruncated command (~630px) and pushes the section off a phone.
     min-width:0 on the text alone can't fix it — that lifts the shrink
     floor, it doesn't stop the track asking for min-content. */
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 76rem;
  margin: 3.5rem auto 0;
  padding: 0 var(--pad);
}
.seq,
.seq__end,
.scanreq {
  width: min(76rem - var(--pad) * 2, 100% - var(--pad) * 2);
  margin-inline: auto;
}

.panel {
  background: #08050d;
  border: 1px solid rgba(232, 95, 160, 0.2);
  min-width: 0;
  overflow: hidden;
}

/* ---------- readout chrome ---------- */

.rd__bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(232, 95, 160, 0.18);
  background: rgba(232, 95, 160, 0.05);
}
.rd__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex: none;
}
.rd__cmd {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--dim);
  /* A nowrap flex item defaults to min-width:auto, so its min-content —
     the whole command on one line — sets the panel's floor and pushes the
     section wider than the viewport on a phone. The ellipsis only gets to
     do its job once this is zero. */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd__cmd b { color: var(--accent); font-weight: 500; }

.rd__body { padding: 1.2rem clamp(1rem, 2.5vw, 1.6rem) 1.4rem; }

.rd__k {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- the weighted checks ---------- */

.chk {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.chk:last-child { border-bottom: 0; padding-bottom: 0; }

.chk__pts {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
  text-align: right;
  line-height: 1.2;
  padding-top: 0.05rem;
}
.chk__pts em { display: block; font-style: normal; font-size: 0.52rem; letter-spacing: 0.12em; color: var(--dim); }

.chk__t { color: var(--white); font-size: 0.9rem; font-weight: 500; }
.chk__d { color: var(--mute); font-size: 0.78rem; line-height: 1.5; margin-top: 0.2rem; }

/* Bar length is the weight. Access being twice the width of schema is the
   argument the section is making, made visually instead of in a sentence. */
.chk__meter {
  grid-column: 2;
  height: 3px;
  margin-top: 0.55rem;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.chk__meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), rgba(232, 95, 160, 0.35));
}
.chk--lead .chk__t { color: var(--accent); }

/* ---------- crawler roll call ---------- */

.bots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  margin-top: 0.9rem;
}
.bot {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--white);
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.bot span { color: var(--dim); font-family: var(--sans); font-size: 0.68rem; margin-left: auto; text-align: right; }
.bot::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: rgba(232, 95, 160, 0.55);
}

/* ---------- side stack ---------- */

.side { display: grid; gap: 1rem; }

.note {
  padding: clamp(1.2rem, 2.5vw, 1.6rem);
}
.note__k {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.note h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.15; color: var(--white); font-weight: 400; }
.note p { color: var(--mute); font-size: 0.86rem; line-height: 1.6; margin-top: 0.7rem; }
.note p b { color: var(--white); font-weight: 500; }

.note--limit { border-color: var(--line); background: rgba(255, 255, 255, 0.015); }
.note--limit .note__k { color: var(--warm); }

/* Our own score. Real, dated, and shown with what it still gets wrong —
   a self-scan that only ever showed a good number would be marketing. */
.own {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.9rem 0 0.2rem;
}
.own__n { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 3.6rem); line-height: 0.9; color: var(--accent); }
.own__of { font-family: var(--mono); font-size: 0.7rem; color: var(--dim); }
.own__date { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-left: auto; }

/* ---------- the sequence ---------- */

/* Width is set on the box rather than by padding a wider parent: these two
   have their own background and border, and padding on the outer element
   would paint them out past the panels they're meant to line up with. */
.seq {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.seq__step { background: #08050d; padding: 1.1rem 1rem 1.2rem; }
.seq__w { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.seq__t { color: var(--white); font-size: 0.85rem; font-weight: 500; margin-top: 0.55rem; line-height: 1.35; }
.seq__d { color: var(--dim); font-size: 0.74rem; line-height: 1.5; margin-top: 0.4rem; }

.seq__endin {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(232, 95, 160, 0.28);
  border-top: 0;
  background: rgba(232, 95, 160, 0.06);
  font-size: 0.86rem;
  color: var(--mute);
}
.seq__endin b { color: var(--white); font-weight: 500; }
.seq__price { font-family: var(--mono); font-size: 0.95rem; color: var(--accent); margin-left: auto; }

/* ---------- request form ---------- */

.scanreq { margin-top: 2.5rem; }
/* A fixed second track, not `auto`: the note beside the button has a long
   max-content width, and an auto track sizes to it and starves the fields. */
.scanreq__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: 1.4rem 2rem;
  align-items: end;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid rgba(232, 95, 160, 0.2);
  background: #08050d;
}
.scanreq .ckfields { padding: 0; border: 0; background: none; margin-top: 0; min-width: 0; }
.scanreq__side { display: grid; gap: 0.8rem; min-width: 0; }
.scanreq__note { color: var(--dim); font-size: 0.72rem; line-height: 1.55; }

@media (max-width: 1000px) {
  .scan__grid { grid-template-columns: minmax(0, 1fr); }
  .seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seq__step:last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .geohero { grid-template-columns: 1fr; }
  .convo { margin-top: 2.5rem; }
  .split2 { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .bots { grid-template-columns: 1fr; }
  .seq { grid-template-columns: 1fr; }
  .seq__step:last-child { grid-column: auto; }
  .scanreq__in { grid-template-columns: 1fr; align-items: stretch; }
  .scanreq__side { min-width: 0; }
  .seq__price { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble--ans p { white-space: normal; }
  .bubble--ans p span { max-width: none; animation: none; }
  .cite { opacity: 1; animation: none; }
}
