/* EXFIL — landing + rooms. Extends base.css.

   The organising idea: this page is a prospectus, not a poster. Someone is deciding
   whether to put real money into a shooter, and every number they need to make that
   decision is on the page before any wallet is connected. Trenches puts all of it
   behind a Unity build and a login. */

/* ── shell ────────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s3) var(--s5);
  background: rgba(11, 14, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 72%;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.brand b { color: var(--gain); }
.site-nav { display: flex; gap: var(--s4); margin-left: auto; align-items: center; }
.site-nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .site-nav .hide-sm { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
/* Two stops, not a single fade: the top scrim carries the nav, the bottom one carries
   the copy, and the middle stays open so the arena is actually visible. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,14,18,.92) 0%, rgba(11,14,18,.25) 34%, rgba(11,14,18,.78) 78%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 1; padding: var(--s9) 0 var(--s8); }
.hero h1 { max-width: 15ch; margin-bottom: var(--s4); }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--ink-2); max-width: 52ch; }
.hero-lede b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.hero-fine {
  margin-top: var(--s4);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s4);
}
.live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gain);
  box-shadow: 0 0 0 3px rgba(53, 224, 208, 0.16);
}

/* ── sections ─────────────────────────────────────────────────────────────── */

.sec { padding: var(--s8) 0; border-bottom: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: var(--s6); }
.sec-head p { color: var(--ink-2); }

.grid-3 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  padding: var(--s5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--ink-2); margin: 0; font-size: 0.95rem; }
.card .step {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--gain);
  display: block;
  margin-bottom: var(--s3);
}

/* the numbers. tabular, monospaced, no decoration: it is a term sheet */
.terms { width: 100%; border-collapse: collapse; }
.terms caption { text-align: left; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ink-3); padding-bottom: var(--s3); text-transform: uppercase; }
.terms th, .terms td { padding: 11px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.92rem; }
.terms th { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--ink-3); font-weight: 500; text-transform: uppercase; }
.terms td:last-child, .terms th:last-child { text-align: right; }
.terms td b { font-weight: 600; }
.terms .note { color: var(--ink-3); font-size: 0.82rem; }
.table-scroll { overflow-x: auto; }

/* rooms */
.rooms { display: grid; gap: var(--s3); }
.room {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  text-decoration: none;
  color: inherit;
  transition: border-color 140ms ease, background 140ms ease;
}
.room:hover { background: var(--panel-2); border-color: var(--line-2); }
.room:hover .room-name { color: var(--gain); }
.room-name { font-family: var(--display); font-weight: 800; font-stretch: 86%; font-size: 1.15rem; letter-spacing: 0.04em; }
.room-blurb { color: var(--ink-3); font-size: 0.85rem; }
.room-stake { font-family: var(--mono); font-size: 1.05rem; text-align: right; }
.room-stake span { display: block; font-size: 0.64rem; letter-spacing: 0.16em; color: var(--ink-3); }
.room-live { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2); text-align: right; min-width: 6ch; }
@media (max-width: 620px) {
  .room { grid-template-columns: 1fr auto; }
  .room-live { grid-column: 1 / -1; text-align: left; }
}

/* comparison: two columns, theirs muted, ours lit */
.vs { display: grid; gap: var(--s4); grid-template-columns: 1fr 1fr; }
.vs > div { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r2); }
.vs .them { background: var(--bg-2); color: var(--ink-3); }
.vs .us { background: var(--panel); }
.vs h3 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 var(--s4); color: var(--ink-3); }
.vs .us h3 { color: var(--gain); }
.vs ul { list-style: none; margin: 0; padding: 0; }
.vs li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.9rem; line-height: 1.5; }
.vs li:first-child { border-top: 0; }
@media (max-width: 700px) { .vs { grid-template-columns: 1fr; } }

/* tiers */
.tier-row { display: flex; align-items: center; gap: var(--s4); padding: 12px 0; border-bottom: 1px solid var(--line); }
.tier-dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.tier-name { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; min-width: 9ch; }
.tier-amount { font-family: var(--mono); color: var(--ink-2); font-size: 0.9rem; }
.tier-cut { margin-left: auto; font-family: var(--mono); font-size: 0.95rem; }

.faq { max-width: 74ch; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: var(--s3); align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--gain); font-family: var(--mono); }
.faq details[open] summary::before { content: "\2212"; }
.faq p { margin: var(--s3) 0 0 calc(var(--s3) + 1ch); color: var(--ink-2); }

.site-foot { padding: var(--s7) 0 var(--s8); color: var(--ink-3); font-size: 0.86rem; }
.site-foot a { color: var(--ink-2); }
.foot-grid { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: flex-start; }

.callout {
  padding: var(--s5);
  border: 1px solid rgba(255, 122, 26, 0.32);
  border-radius: var(--r2);
  background: rgba(255, 122, 26, 0.05);
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--hazard); }


/* ── rooms page setup panel ───────────────────────────────────────────────
   Lifted out of an inline <style> on /play/: one stylesheet is cacheable, and a
   page whose only inline rules are monospaced reads to a static analyser as a
   single-font page even when the linked sheet says otherwise. */
  .setup { display: grid; gap: var(--s5); grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); align-items: start; }
  @media (max-width: 860px) { .setup { grid-template-columns: 1fr; } }
  .field { margin-bottom: var(--s5); }
  .field > label { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s2); }
  .field input {
    width: 100%; padding: 12px 14px; background: var(--bg-2); color: var(--ink);
    border: 1px solid var(--line-2); border-radius: var(--r1);
    font-family: var(--mono); font-size: 0.95rem;
  }
  .classes { display: grid; gap: var(--s2); }
  .cls {
    display: block; padding: var(--s3) var(--s4); cursor: pointer;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r1);
    transition: border-color 120ms ease, background 120ms ease;
  }
  .cls:hover { background: var(--panel-2); }
  .cls input { position: absolute; opacity: 0; pointer-events: none; }
  .cls:has(input:checked) { border-color: var(--gain); background: var(--panel-2); }
  .cls:has(input:focus-visible) { outline: 2px solid var(--gain); outline-offset: 2px; }
  .cls-name { font-family: var(--display); font-weight: 800; font-stretch: 86%; font-size: 1rem; letter-spacing: 0.06em; }
  .cls:has(input:checked) .cls-name { color: var(--gain); }
  .cls-blurb { display: block; color: var(--ink-3); font-size: 0.84rem; margin-top: 2px; }
  .cls-load { display: block; color: var(--ink-2); font-family: var(--mono); font-size: 0.72rem; margin-top: 4px; letter-spacing: 0.06em; }
  .locked { opacity: 0.55; cursor: not-allowed; }
  .locked .room-live { color: var(--hazard); }
