/* Rivalatch home (/): additions on top of the shared sheet /listing/rivalatch.css.
   Same language as /listing/: near-black backdrop (body::before in the shared sheet,
   replacing the old aurora blobs), warm-gold accent, serif display, tracked labels,
   glass plates with an opaque no-blur fallback. Motion is transform/opacity only;
   reduced motion = one settled frame; loops pause while the tab is hidden.
   Notes: vibegate-ship/docs/RIVALATCH_MOTION_NOTES.md. No fonts or CDNs fetched. */

html { scroll-behavior: smooth; }
section[id], header[id] { scroll-margin-top: 16px; }

/* ── Top bar ─────────────────────────────────────────── */
.home .top nav a[aria-current="location"] { color: var(--ink); border-color: var(--glass-edge); }
.home .top nav a.nav-door {
  color: var(--gold);
  border-color: rgba(226, 192, 114, 0.45);
  background: rgba(226, 192, 114, 0.06);
  margin-left: 6px;
}
.home .top nav a.nav-door:hover { border-color: var(--gold); color: var(--gold); }

/* ── Hero ────────────────────────────────────────────── */
.home .wire { margin-bottom: 14px; }
.hero-meta {
  max-width: 480px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* ── How a knock works ───────────────────────────────── */
.knock3 { margin-bottom: 14px; }
.knock3 .card { display: flex; flex-direction: column; padding: 18px 20px 18px 24px; }
.knock3 .card .http { position: absolute; top: 16px; right: 18px; float: none; }
.knock3 .card p { flex: 1; }
.knock3 pre.code { margin-top: 14px; font-size: 11.5px; padding: 12px 14px; }

/* Held vs incoming: the public 409 story, no crown. */
.lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  padding: 14px;
}
.lane {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(211, 156, 92, 0.22);
  border-radius: 3px;
  background: rgba(211, 156, 92, 0.04);
}
.lane .label-sm { color: var(--contested); min-width: 66px; }
.lane code { font-size: 12.5px; }
.lane .stamp { margin-left: auto; }
.lane-vs { display: flex; align-items: center; justify-content: center; }
.lane-vs .mark { letter-spacing: 0.18em; }

/* ── MCP ─────────────────────────────────────────────── */
.mcp-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.tooltable { width: 100%; border-collapse: collapse; font-size: 13px; }
.tooltable th {
  text-align: left;
  padding: 0 12px 8px 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  border-bottom: 1px solid rgba(241, 236, 224, 0.1);
}
.tooltable td { padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(241, 236, 224, 0.06); vertical-align: top; }
.tooltable tr:last-child td { border-bottom: 0; }
.tooltable td:first-child code { color: var(--gold); }
.tooltable code { background: none; border: 0; padding: 0; font-size: 12px; }
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.clients > .client { flex: 1 1 auto; }
.client { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.client-mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: var(--gold);
  border: 1px solid rgba(226, 192, 114, 0.35);
  border-radius: 50%;
  background: rgba(226, 192, 114, 0.05);
}
.client strong { display: block; font: 400 18px/1.25 var(--serif); color: var(--ink); }
.client span:not(.client-mark) { font-size: 12.5px; color: var(--mute); }

/* ── Door words legend sits in the same band rhythm ──── */
#words .legend .card { padding: 18px 20px 18px 24px; }

/* ── Call to action ──────────────────────────────────── */
.cta-band { padding-bottom: 88px; }
.cta-card { position: relative; text-align: center; padding: 48px 28px 44px; overflow: hidden; }
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 220px at 50% 0%, rgba(226, 192, 114, 0.09), transparent 70%);
}
.cta-card > * { position: relative; }
.cta-card .sub { margin-left: auto; margin-right: auto; }
.cta-card .cta { justify-content: center; margin: 0; }
.cta-door { position: relative; width: 56px; height: 56px; margin: 0 auto 22px; }
.cta-icon { display: block; width: 56px; height: 56px; border-radius: 6px; border: 1px solid rgba(226, 192, 114, 0.35); object-fit: cover; }
/* Slow knock rings around the mark: transform + opacity only. */
.cta-rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.cta-rings i {
  position: absolute;
  left: -40px;
  top: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(226, 192, 114, 0.55);
  opacity: 0;
  transform: scale(0.7);
  animation: cta-knock 3.6s var(--ease-settle) infinite;
}
.cta-rings i:nth-child(2) { animation-delay: 180ms; }
.cta-rings i:nth-child(3) { animation-delay: 360ms; }
@keyframes cta-knock {
  0% { opacity: 0; transform: scale(0.7); }
  6% { opacity: 0.7; }
  40%, 100% { opacity: 0; transform: scale(1.9); }
}

/* ── Footer ──────────────────────────────────────────── */
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-row .chiplinks { margin: 0 -10px 0 0; }
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot-brand img { border-radius: 4px; }

/* Mid widths: wordmark on its own line, nav as one swipeable row (same as the shared mobile bar). */
@media (min-width: 681px) and (max-width: 1180px) {
  .home .top { flex-wrap: wrap; gap: 4px 18px; padding: 14px 0 8px; }
  .home .top nav {
    flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 80px); margin: 0 -40px;
    padding: 0 28px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
    mask: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent);
  }
  .home .top nav::-webkit-scrollbar { display: none; }
  .home .top nav a { flex: none; }
}

@media (max-width: 1120px) {
  .mcp-grid { grid-template-columns: 1fr; }
  .clients { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .lanes { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .lane { flex-wrap: wrap; gap: 8px 12px; padding: 10px 12px; }
  .lane .label-sm { min-width: 0; }
  .lane-vs { padding: 2px 0; }
  .clients { display: flex; }
  .client { padding: 14px 16px; }
  .tooltable th:last-child, .tooltable td:last-child { padding-right: 0; }
  .tooltable td { display: block; padding: 0; border: 0; }
  .tooltable tr { display: block; padding: 9px 0; border-bottom: 1px solid rgba(241, 236, 224, 0.06); }
  .tooltable tr:last-child { border-bottom: 0; }
  .tooltable thead { display: none; }
  .tooltable td + td { margin-top: 3px; }
  .cta-card { padding: 36px 18px 32px; }
  .cta-band { padding-bottom: 60px; }
  .foot-row .chiplinks { margin: 0 0 0 -10px; }
}
