/* OnCatch demo gallery — shared styles. Hand-rolled (no CDN framework) so the
   demos can run under a strict CSP with no script/style CDN allowances. */

:root {
  --bg: #0b1020;
  --panel: #131a2e;
  --panel-2: #1b2440;
  --ink: #e8ecf6;
  --muted: #9aa6c2;
  --brand: #5b8cff;
  --brand-2: #38e1b0;
  --danger: #ff6b6b;
  --line: #26314f;
  --radius: 14px;
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #16224a 0%, transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.topbar .brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.topbar .brand span {
  color: var(--brand);
}
.topbar nav a {
  margin-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Hero */
.hero {
  padding: 72px 0 48px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-2);
  background: rgba(56, 225, 176, 0.1);
  border: 1px solid rgba(56, 225, 176, 0.3);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 16px;
}
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #0a0f1f;
  transition:
    transform 0.06s ease,
    filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.danger {
  background: transparent;
  border-color: rgba(255, 107, 107, 0.5);
  color: var(--danger);
}

/* Layout split: content + sidebar */
.split {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  padding: 8px 0 80px;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.feature {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Booking iframe */
.booking {
  width: 100%;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

/* QA sidebar */
.sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}
.sidebar .card {
  background: var(--panel-2);
}
.testplan {
  list-style: none;
  margin: 0;
  padding: 0;
}
.testplan li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}
.testplan li:last-child {
  border-bottom: 0;
}
.testplan .step {
  color: var(--brand);
  font-weight: 700;
  min-width: 18px;
}

/* Triage feed */
.feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feed-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.refcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--brand);
}
.status-pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.status-new {
  color: var(--brand-2);
  border-color: rgba(56, 225, 176, 0.4);
}
.metrics {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}
.metrics b {
  color: var(--ink);
}
.time {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.note {
  font-size: 13px;
  color: var(--muted);
}
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}
