:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1f2330;
  --text: #f2f3f5;
  --muted: #9aa0ac;
  --accent: #5b8cff;
  --good: #3ddc84;
  --warn: #ffb020;
  --bad: #ff5c5c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 96px;
}

h1 { font-size: 1.4rem; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 24px 0 10px; color: var(--muted); font-weight: 600; }
p.sub { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}

label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
input[type=text], input[type=password] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #2a2f3a;
  background: var(--panel-2);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 14px;
}

button {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: var(--panel-2); color: var(--text); }
.btn-danger { background: var(--bad); color: white; }
.btn-row { display: flex; gap: 10px; }
.btn-row > button { flex: 1; }

.status-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 7px; background: var(--muted);
}
.status-dot.live { background: var(--good); box-shadow: 0 0 0 4px rgba(61,220,132,0.15); }
.status-dot.paused { background: var(--warn); }
.status-dot.ended { background: var(--bad); }

.muted { color: var(--muted); font-size: 0.88rem; }

/* Big audience trigger */
.trigger {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 8px auto 18px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 30% 30%, #6f9bff, #3a5fe0);
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(59,95,224,0.45);
  transition: transform 0.08s ease;
}
.trigger:active { transform: scale(0.96); }
.trigger:disabled { opacity: 0.4; }

.feedback-row { display: flex; gap: 10px; margin-top: 4px; }
.fb-btn {
  flex: 1;
  background: var(--panel-2);
  border-radius: 12px;
  padding: 14px 6px;
  font-size: 1.5rem;
  text-align: center;
}
.fb-btn small { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.fb-btn.flash { background: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery figure { margin: 0; background: var(--panel-2); border-radius: 10px; overflow: hidden; position: relative; }
.gallery img { width: 100%; display: block; }
.delete-snap {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
  background: rgba(15,17,21,0.72); color: var(--text); font-size: 0.9rem;
  line-height: 1; display: flex; align-items: center; justify-content: center;
}
.delete-snap:disabled { opacity: 0.5; }
.gallery figcaption { padding: 8px 10px; font-size: 0.82rem; }
.gallery textarea {
  width: 100%; background: transparent; border: none; color: var(--text);
  font-size: 0.82rem; resize: none; padding: 0 10px 8px;
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--panel-2); color: var(--text); padding: 10px 18px;
  border-radius: 30px; font-size: 0.9rem; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.toast.show { opacity: 1; }

.qr-box { text-align: center; }
.qr-box img { width: 220px; height: 220px; border-radius: 10px; background: white; padding: 10px; }
.link-mono { font-family: ui-monospace, monospace; font-size: 0.85rem; word-break: break-all; color: var(--muted); }

video#preview { width: 100%; border-radius: 10px; margin-top: 10px; display: none; background: #000; }

table.report { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.report th, table.report td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #2a2f3a; }
table.report img { width: 54px; border-radius: 4px; vertical-align: middle; }
.bar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; margin-top: 3px; }
.bar > span { display: block; height: 100%; background: var(--accent); }

a { color: var(--accent); }

/* Top bar: brand + account (dashboard) */
.topbar { background: var(--panel); border-bottom: 1px solid #262b38; }
.topbar-inner {
  max-width: 900px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.dash-account { display: flex; align-items: center; gap: 12px; }
.dash-account button { width: auto; }

/* ---------- Landing page (light, color-blocked "knackig" style) ---------- */

:root {
  --lp-bg: #f5f3ec;
  --lp-text: #171a2e;
  --lp-muted: #5c6079;
  --lp-navy: #171a3a;
  --lp-navy-2: #23274f;
  --lp-accent: #c8f23a;
  --lp-accent-ink: #16210a;
  --lp-lavender: #e6e2fb;
  --lp-mint: #dcf3e0;
  --lp-grey-card: #ececea;
  --lp-radius-lg: 28px;
}

body.landing { background: var(--lp-bg); color: var(--lp-text); }

.lp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.lp-nav { padding: 24px 0; }
.lp-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.lp-brand { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--lp-text); }
.lp-accent-mark { color: var(--lp-navy); }
body.landing .lp-brand .lp-accent-mark { color: #8f9a2a; }

.lp-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 12px 22px; font-weight: 700; font-size: 0.92rem;
  text-decoration: none; border: none; cursor: pointer; white-space: nowrap;
}
.lp-pill-dark { background: var(--lp-navy); color: white; }
.lp-pill-accent { background: var(--lp-accent); color: var(--lp-accent-ink); }
.lp-pill-accent:hover, .lp-pill-dark:hover { filter: brightness(1.06); }

.lp-kicker {
  color: var(--lp-accent-ink); background: var(--lp-accent); display: inline-block;
  font-weight: 700; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  margin: 0 0 16px; padding: 5px 12px; border-radius: 999px;
}
.lp-hero-content .lp-kicker { background: transparent; color: var(--lp-accent); padding: 0; }

/* Full-bleed hero photo (the "solution" shot: calm tap instead of raised phone) */
.lp-hero-photo { position: relative; width: 100%; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.lp-hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%;
  z-index: 0;
}
.lp-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,12,26,0.92) 0%, rgba(10,12,26,0.72) 38%, rgba(10,12,26,0.15) 70%, rgba(10,12,26,0) 100%);
}
.lp-hero-content { position: relative; z-index: 2; color: white; padding-top: 48px; padding-bottom: 48px; }
.lp-hero-content h1 { font-size: 2.8rem; line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.02em; font-weight: 800; max-width: 620px; }
.lp-accent-text { color: var(--lp-accent); }
.lp-hero-sub { font-size: 1.05rem; line-height: 1.6; color: var(--lp-muted); margin: 0 0 30px; max-width: 460px; }
.lp-hero-content .lp-hero-sub, .lp-band-dark .lp-hero-sub { color: rgba(255,255,255,0.82); }

.lp-cta-form { display: flex; gap: 10px; max-width: 440px; }
.lp-cta-form input {
  flex: 1; margin: 0; border-radius: 999px; border: none; padding: 13px 20px;
  background: rgba(255,255,255,0.14); color: white; font-size: 0.95rem;
}
.lp-cta-form input::placeholder { color: rgba(255,255,255,0.6); }
.lp-hero-status { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 12px 0 4px; min-height: 1.2em; }
.lp-hero-trust { color: rgba(255,255,255,0.65); font-size: 0.85rem; margin: 0 0 26px; }
.lp-scroll-cue { color: white; font-size: 0.9rem; font-weight: 600; text-decoration: underline; }

/* Two-perspective preview panels (speaker report / audience gallery) */
.perspective-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.perspective-label { font-weight: 800; font-size: 0.95rem; color: var(--lp-text); margin: 0 0 12px; }
.mock-panel {
  background: var(--lp-navy); border-radius: 20px; padding: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.mock-panel-title { color: rgba(255,255,255,0.7); font-size: 0.8rem; margin: 0 0 14px; }
.mock-report-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mock-report-row:last-child { border-bottom: none; }
.mock-report-row img { width: 56px; border-radius: 6px; display: block; flex-shrink: 0; }
.mock-row-meta { color: white; font-size: 0.78rem; }
.mock-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); overflow: hidden; margin-top: 5px; }
.mock-bar > span { display: block; height: 100%; background: var(--lp-accent); }

.mock-detail-photo { width: 100%; border-radius: 12px; margin-bottom: 16px; display: block; }
.mock-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-gallery figure { margin: 0; background: var(--lp-navy-2); border-radius: 10px; overflow: hidden; }
.mock-gallery img { width: 100%; display: block; }
.mock-gallery figcaption { color: rgba(255,255,255,0.75); font-size: 0.72rem; padding: 6px 8px 8px; }

@media (max-width: 720px) {
  .perspective-grid { grid-template-columns: 1fr; }
}

.lp-section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.lp-section-head h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -0.01em; color: var(--lp-text); }
.lp-section-title { font-size: 1.8rem; font-weight: 800; margin: 0 0 32px; letter-spacing: -0.01em; color: var(--lp-text); }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 48px; }
.compare-card { border-radius: var(--lp-radius-lg); padding: 34px; }
.compare-card h3 { margin: 0 0 14px; font-size: 1.25rem; font-weight: 800; }
.compare-card p { margin: 0; line-height: 1.55; }
.compare-without { background: var(--lp-grey-card); color: var(--lp-muted); }
.compare-without h3 { color: var(--lp-text); }
.compare-with { background: var(--lp-accent); color: var(--lp-accent-ink); }
.compare-punch { font-size: 1.4rem; font-weight: 800; margin-top: 18px; letter-spacing: -0.01em; }

.lp-photo { width: 100%; margin: 40px 0 0; overflow: hidden; max-height: 480px; }
.lp-photo img { width: 100%; display: block; object-fit: cover; max-height: 480px; }

.lp-band { padding: 72px 0; width: 100%; }
.lp-band-cream { background: var(--lp-bg); padding-bottom: 0; }
.lp-band-lavender { background: var(--lp-lavender); }
.lp-band-mint { background: var(--lp-mint); }
.lp-band-dark { background: var(--lp-navy); color: white; }
.lp-band-dark h2 { font-size: 1.9rem; font-weight: 800; margin: 0 0 12px; color: white; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { background: white; border-radius: 20px; padding: 26px; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--lp-navy); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 16px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--lp-muted); font-size: 0.92rem; line-height: 1.5; }

.lp-footer { padding: 48px 0 56px; }
.lp-footer-inner { display: flex; flex-direction: column; gap: 10px; }
.lp-footer-privacy { color: var(--lp-muted); font-size: 0.85rem; max-width: 560px; margin: 0; }
.lp-footer-links { display: flex; gap: 16px; }
.lp-footer-links a { color: var(--lp-text); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.lp-footer-links a:hover { text-decoration: underline; }

.legal-page { padding: 48px 24px 80px; max-width: 720px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; color: var(--lp-text); margin: 0 0 24px; }
.legal-page h2 { font-size: 1.1rem; font-weight: 800; color: var(--lp-text); margin: 32px 0 10px; }
.legal-page p { line-height: 1.6; margin: 0 0 14px; color: var(--lp-text); }
.legal-page p.muted { color: var(--lp-muted); font-size: 0.95rem; }
.legal-page a { color: var(--lp-text); text-decoration: underline; }

@media (max-width: 820px) {
  .lp-hero-photo { min-height: 560px; }
  .lp-hero-content h1 { font-size: 2.1rem; }
  .lp-hero-scrim { background: linear-gradient(180deg, rgba(10,12,26,0.55) 0%, rgba(10,12,26,0.88) 55%, rgba(10,12,26,0.95) 100%); }
  .compare-grid { grid-template-columns: 1fr; }
  .lp-cta-form { flex-direction: column; }
}

/* Dashboard room list */
.room-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid #262b38;
}
.room-row:last-child { border-bottom: none; }
.room-row a.btn-secondary { padding: 8px 14px; font-size: 0.85rem; }

@media (max-width: 520px) {
  .topbar-inner { flex-direction: column; align-items: stretch; }
}
