:root {
	--wpt-bg: #0a0e14;
	--wpt-panel: #121821;
	--wpt-border: #1f2937;
	--wpt-accent: #2fe6c9;
	--wpt-accent-dim: #1b9c88;
	--wpt-danger: #ff5470;
	--wpt-text: #e6ecf5;
	--wpt-text-dim: #8a95a6;
	--wpt-radius: 10px;
	--wpt-glow: 0 0 0 1px rgba(47, 230, 201, 0.25), 0 0 22px rgba(47, 230, 201, 0.12);
}

body {
	background-color: var(--wpt-bg);
	background-image:
		linear-gradient(rgba(47, 230, 201, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(47, 230, 201, 0.055) 1px, transparent 1px);
	background-size: 42px 42px;
	background-attachment: fixed;
}

.wpt-host-dashboard, .wpt-panel-room, .wpt-waiting-room, .wpt-audience-view {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
	color: var(--wpt-text);
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpt-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.wpt-grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 20px;
}
@media (max-width: 800px) {
	.wpt-grid { grid-template-columns: 1fr; }
}

.wpt-panel {
	background: var(--wpt-panel);
	border: 1px solid var(--wpt-border);
	border-radius: var(--wpt-radius);
	padding: 16px;
	box-shadow: var(--wpt-glow);
}
.wpt-panel h3 {
	margin-top: 0;
	font-family: var(--wpt-font-display, inherit);
	letter-spacing: 0.01em;
}

.wpt-queue-panel { grid-row: span 2; }

#wpt-queue-list { list-style: none; padding: 0; margin: 0; }
#wpt-queue-list li {
	display: flex; justify-content: space-between; align-items: center;
	padding: 8px 0; border-bottom: 1px solid var(--wpt-border);
}

.wpt-video-box {
	background: #000;
	border-radius: var(--wpt-radius);
	aspect-ratio: 16 / 9;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	border: 1px solid var(--wpt-border);
	box-shadow: var(--wpt-glow);
}
.wpt-video-box video { width: 100%; height: 100%; object-fit: cover; }
.wpt-video-placeholder { color: var(--wpt-text-dim); font-size: 14px; padding: 20px; text-align: center; }

/* ---- Full-screen video control ----
   Wraps every .wpt-video-box (added by video-fullscreen.js) so the expand
   button survives the box's innerHTML being replaced when a live stream
   attaches. */
.wpt-video-wrap {
	position: relative;
	margin-bottom: 12px;
}
.wpt-video-wrap .wpt-video-box { margin-bottom: 0; }

.wpt-fs-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 14, 20, 0.65);
	border: 1px solid rgba(47, 230, 201, 0.35);
	border-radius: 6px;
	color: var(--wpt-text);
	cursor: pointer;
	backdrop-filter: blur(2px);
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.wpt-fs-btn:hover {
	background: rgba(47, 230, 201, 0.15);
	border-color: var(--wpt-accent);
	box-shadow: 0 0 12px rgba(47, 230, 201, 0.35);
}

.wpt-video-wrap.is-fullscreen {
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wpt-video-wrap.is-fullscreen .wpt-video-box {
	width: 100%;
	height: 100%;
	aspect-ratio: unset;
	border: none;
	box-shadow: none;
	border-radius: 0;
}
.wpt-video-wrap.is-fullscreen .wpt-fs-btn {
	top: 20px;
	right: 20px;
}

.wpt-answer-box {
	background: #12151b;
	border: 1px solid var(--wpt-border);
	border-radius: var(--wpt-radius);
	padding: 14px;
	margin-bottom: 12px;
}

.wpt-btn {
	background: var(--wpt-border);
	color: var(--wpt-text);
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.wpt-btn:hover { background: #232b38; border-color: var(--wpt-border); }
.wpt-btn-primary {
	background: var(--wpt-accent);
	color: #06110f;
	font-weight: 600;
	box-shadow: 0 0 16px rgba(47, 230, 201, 0.35);
}
.wpt-btn-primary:hover { background: #4bf0d6; box-shadow: 0 0 22px rgba(47, 230, 201, 0.5); }
.wpt-btn-danger { background: var(--wpt-danger); color: #fff; }
.wpt-btn-sm { padding: 4px 8px; font-size: 12px; }

.wpt-badge {
	background: var(--wpt-border);
	border: 1px solid rgba(47, 230, 201, 0.25);
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--wpt-font-mono, inherit);
}

textarea, input[type="text"], input[type="password"] {
	width: 100%;
	background: #0d1218;
	border: 1px solid var(--wpt-border);
	border-radius: 6px;
	color: var(--wpt-text);
	padding: 8px;
	margin-bottom: 8px;
	box-sizing: border-box;
	font-family: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
textarea:focus, input[type="text"]:focus, input[type="password"]:focus {
	outline: none;
	border-color: var(--wpt-accent);
	box-shadow: 0 0 0 3px rgba(47, 230, 201, 0.15);
}
textarea { min-height: 90px; resize: vertical; }

.wpt-text-dim { color: var(--wpt-text-dim); font-size: 13px; }

.wpt-panelist-add-row {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.wpt-panelist-add-row input[type="text"] { margin-bottom: 0; }
.wpt-panelist-add-row .wpt-btn { flex-shrink: 0; white-space: nowrap; }

.wpt-panelist-list { list-style: none; padding: 0; margin: 8px 0 0; }
.wpt-panelist-list li {
	display: flex; justify-content: space-between; align-items: center;
	gap: 8px;
	padding: 8px 0; border-bottom: 1px solid var(--wpt-border);
}
.wpt-panelist-actions { display: flex; gap: 6px; align-items: center; }

.wpt-error-page { max-width: 500px; margin: 60px auto; text-align: center; color: var(--wpt-text); }

.wpt-host-key-gate {
	max-width: 420px;
	margin: 80px auto;
	padding: 24px;
	background: var(--wpt-panel-bg, #1a1d24);
	border: 1px solid var(--wpt-border);
	border-radius: 10px;
	text-align: center;
}
.wpt-host-key-gate input[type="password"] { margin-bottom: 12px; }
.wpt-error-text { color: #ff6b6b; font-size: 13px; min-height: 18px; }

/* ======================================================================
   Front page — landing / marketing view.
   Same dark control-room palette as the product itself, extended with:
     --wpt-live   a tally-light red, used ONLY for the on-air indicator
     Space Grotesk for display type, Inter for body, IBM Plex Mono for
     the small broadcast-style readouts (step numbers, dates, badges).
   ====================================================================== */
:root {
	--wpt-live: #ff4d5e;
	--wpt-font-display: "Chakra Petch", -apple-system, sans-serif;
	--wpt-font-body: "Inter", -apple-system, sans-serif;
	--wpt-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

.wpt-landing {
	background: var(--wpt-bg);
	color: var(--wpt-text);
	font-family: var(--wpt-font-body);
}

.wpt-landing h1, .wpt-landing h2, .wpt-landing h3 {
	font-family: var(--wpt-font-display);
	line-height: 1.1;
	margin: 0 0 12px;
}

.wpt-mono { font-family: var(--wpt-font-mono); letter-spacing: 0.03em; }

/* ---- Hero ---- */
.wpt-hero {
	padding: 96px 24px 72px;
	border-bottom: 1px solid var(--wpt-border);
}
.wpt-hero-inner {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: center;
}
@media (max-width: 900px) {
	.wpt-hero-inner { grid-template-columns: 1fr; }
	.wpt-hero { padding: 56px 20px 48px; }
}

.wpt-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wpt-font-mono);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wpt-text-dim);
	margin-bottom: 20px;
}

/* Signature element: a broadcast tally light rendered as a tiny
   4-bar equalizer. Static/dim when off air, pulsing red when live —
   this is the one motif that recurs across hero, cards, and badges. */
.wpt-tally {
	display: inline-flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
}
.wpt-tally span {
	width: 3px;
	background: var(--wpt-border);
	border-radius: 1px;
	height: 40%;
}
.wpt-tally.is-live span { background: var(--wpt-live); animation: wpt-eq 1.1s ease-in-out infinite; }
.wpt-tally.is-live span:nth-child(1) { height: 60%; animation-delay: -0.9s; }
.wpt-tally.is-live span:nth-child(2) { height: 100%; animation-delay: -0.3s; }
.wpt-tally.is-live span:nth-child(3) { height: 45%; animation-delay: -0.6s; }
.wpt-tally.is-live span:nth-child(4) { height: 80%; animation-delay: 0s; }
@keyframes wpt-eq {
	0%, 100% { height: 30%; }
	50% { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.wpt-tally.is-live span { animation: none; height: 70%; }
}

.wpt-hero h1 {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 600;
	letter-spacing: -0.02em;
}
.wpt-hero-sub {
	color: var(--wpt-text-dim);
	font-size: 17px;
	max-width: 46ch;
	margin: 0 0 32px;
}
.wpt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wpt-btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 8px; text-decoration: none; display: inline-block; }

.wpt-hero-preview { display: flex; flex-direction: column; }
.wpt-preview-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.wpt-preview-title { color: var(--wpt-text-dim); font-size: 13px; }
.wpt-preview-note { color: var(--wpt-text-dim); font-size: 13px; margin: 0; }

/* ---- Sections ---- */
.wpt-section {
	max-width: 1160px;
	margin: 0 auto;
	padding: 72px 24px;
	border-bottom: 1px solid var(--wpt-border);
}
.wpt-section-title {
	font-size: 26px;
	margin-bottom: 32px;
}

/* ---- How it works ---- */
.wpt-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 800px) { .wpt-steps { grid-template-columns: 1fr; } }
.wpt-step-num {
	display: block;
	color: var(--wpt-accent);
	font-size: 14px;
	margin-bottom: 10px;
}
.wpt-step h3 { font-size: 19px; }
.wpt-step p { color: var(--wpt-text-dim); font-size: 15px; margin: 0; }

/* ---- Show lists ---- */
.wpt-show-list { list-style: none; margin: 0; padding: 0; }
.wpt-show-row {
	display: grid;
	grid-template-columns: 70px 1fr auto;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--wpt-border);
}
.wpt-show-row:last-child { border-bottom: none; }
.wpt-show-date { color: var(--wpt-text-dim); font-size: 13px; }
.wpt-show-name { font-size: 16px; }

/* ---- Closing CTA ---- */
.wpt-cta { text-align: center; border-bottom: none; }
.wpt-cta h2 { font-size: 30px; }
.wpt-cta p { color: var(--wpt-text-dim); margin-bottom: 28px; }
