/* ==========================================================================
   Demo gate page only. Everything else comes from site.css + marketing.css.
   ========================================================================== */

/* `hidden` must beat every display rule in this sheet: the buttons are
   inline-flex, and an inline-flex element ignores the attribute. */
[hidden] { display: none !important; }


.gate-hero { padding-bottom: 6px; }

.gate-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.gate-card { padding: clamp(22px, 3vw, 32px); }

.gate-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.gate-step__num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #1a1240;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.gate-fine {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.gate-fine a { color: var(--gold-bright); }

.gate-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--gold-bright);
  text-decoration: underline;
  cursor: pointer;
}

.gate-state { text-align: left; }

.gate-tick {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(123, 216, 169, 0.14);
  border: 1px solid var(--ok);
  color: var(--ok);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.gate-error {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(242, 143, 143, 0.55);
  background: rgba(242, 143, 143, 0.1);
  color: #ffd9d9;
  font-size: 0.86rem;
}

#code-error { color: #ffd9d9; }

.gate-side { display: grid; gap: 18px; }

.gate-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(36, 24, 80, 0.55);
  padding: clamp(18px, 2.4vw, 24px);
}

.gate-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.gate-list li { position: relative; padding-left: 18px; color: var(--muted); }
.gate-list li b { color: var(--cream); font-weight: 600; }
.gate-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.68rem; top: 4px; }

[aria-busy="true"] { opacity: 0.65; pointer-events: none; }

@media (max-width: 900px) {
  .gate-grid { grid-template-columns: 1fr; }
}

/* ---------- light theme (the marketing pages) ---------- */

body.marketing .gate-fine a { color: var(--gold-ink); }
body.marketing .gate-link { color: var(--gold-ink); }

body.marketing .gate-list {
  background: #fff;
  border-color: var(--line-soft);
  box-shadow: var(--shadow-soft);
}

body.marketing .gate-list li { color: var(--ink-muted); }
body.marketing .gate-list li b { color: var(--ink); }
body.marketing .gate-list li::before { color: var(--gold-ink); }

body.marketing .gate-error {
  border-color: rgba(163, 42, 42, 0.35);
  background: #fdf0ee;
  color: #8c2b22;
}

body.marketing #code-error { color: #8c2b22; }

body.marketing .gate-tick {
  background: #eef8f1;
  border-color: #2f7d55;
  color: #2f7d55;
}

body.marketing .gate-step__num { color: #fff8ea; background: var(--ink); }
