:root {
	--ink: #0f2a24;
	--paper: #f3eee4;
	--wash: #d5e5dc;
	--accent: #e08a2c;
	--line: rgba(15, 42, 36, 0.14);
	--danger: #a11c2e;
	--ok: #1f7a4c;
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(ellipse 80% 50% at 100% -10%, rgba(224, 138, 44, 0.18), transparent 50%),
		radial-gradient(ellipse 60% 40% at -10% 20%, rgba(47, 110, 90, 0.16), transparent 45%),
		linear-gradient(165deg, #ebe3d4 0%, var(--paper) 42%, #e4ece7 100%);
	min-height: 100vh;
}

a { color: inherit; }
.top {
	display: flex; justify-content: space-between; align-items: center;
	padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
	background: rgba(243, 238, 228, 0.88);
}
.top.public { justify-content: flex-start; }
.brand { font-family: var(--font-display); font-size: 1.35rem; text-decoration: none; font-weight: 700; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 1rem; align-items: center; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }

main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.hero-app { padding: 0.5rem 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; opacity: 0.7; margin: 0 0 0.5rem; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 0.75rem; }
.brand-hero { font-size: clamp(2.6rem, 8vw, 5rem); max-width: 12ch; }
.lede { max-width: 42ch; font-size: 1.1rem; margin: 0 0 1.25rem; }
.muted { opacity: 0.7; }
.tiny { font-size: 0.8rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn {
	display: inline-block; background: var(--ink); color: #f7f4ef;
	text-decoration: none; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; padding: 0.8rem 1.15rem; border-radius: 0.4rem;
	transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.inline-form { display: inline; margin-right: 0.4rem; }

.panel {
	background: rgba(255,255,255,0.58);
	border: 1px solid var(--line);
	border-radius: 1.1rem;
	padding: 1.25rem;
	backdrop-filter: blur(8px);
}
.panel.narrow { max-width: 560px; }
.detail-panel { animation: rise 0.45s ease both; }

.stats {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat {
	background: rgba(255,255,255,0.55); border: 1px solid var(--line); border-radius: 0.9rem;
	padding: 0.9rem 1rem;
}
.stat span { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.stat label { font-size: 0.75rem; opacity: 0.65; text-transform: uppercase; letter-spacing: 0.04em; }
.stat.hot span { color: var(--ok); }
.stat.warn span { color: var(--danger); }

.project-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.project-card {
	background: rgba(255,255,255,0.62); border: 1px solid var(--line); border-radius: 1rem;
	padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15,42,36,0.08); }
.project-card h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0.2rem 0; line-height: 1.15; }
.project-card h2 a { text-decoration: none; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.project-card-actions { display: flex; gap: 0.8rem; margin-top: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.project-card.is-live { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

.empty-state {
	grid-column: 1 / -1; text-align: center; padding: 3rem 1rem;
	border: 1px dashed var(--line); border-radius: 1rem; background: rgba(255,255,255,0.35);
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.75rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table a { font-weight: 600; }

.pill {
	display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
	background: var(--wash); font-size: 0.8rem; font-weight: 600;
}
.status-failed, .status-hold { background: #f3d5d8; }
.status-sent, .status-opened, .status-clicked, .status-ready { background: #d8efd7; }
.status-queued, .status-capturing, .status-extracting, .status-redesigning, .status-rendering, .status-sending {
	background: #f7e2c4;
}

.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form input, .form select {
	font: inherit; padding: 0.7rem 0.8rem; border-radius: 0.45rem;
	border: 1px solid var(--line); background: #fff;
}
.form .check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; }
.error { color: var(--danger); font-weight: 600; }

.compare {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem;
}
.compare img {
	width: 100%; border-radius: 0.75rem; border: 1px solid var(--line);
	background: #fff; min-height: 160px; object-fit: cover; object-position: top;
}
.compare figcaption { font-size: 0.85rem; opacity: 0.7; margin-top: 0.35rem; }

.preview-fold { margin: 1rem 0 1.5rem; }
.preview-fold summary { cursor: pointer; font-weight: 700; margin-bottom: 0.6rem; }
.redesign-frame {
	width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff;
}

.live-bar {
	display: flex; align-items: center; gap: 0.55rem;
	background: #fff4e4; border: 1px solid #f0d2a4; border-radius: 0.7rem;
	padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.92rem;
}
.pulse {
	width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
	box-shadow: 0 0 0 0 rgba(224,138,44,0.5);
	animation: pulse 1.4s infinite;
}

.events { padding-left: 1.1rem; }
.events li { margin-bottom: 0.35rem; }

.pitch-hero { padding: 1rem 0 1.25rem; }
.slider-section { margin-bottom: 1.5rem; }
.slider-hint { margin: 0.5rem 0 0; }
.ba {
	position: relative; width: 100%; aspect-ratio: 16/10;
	overflow: hidden; border-radius: 1.1rem; border: 1px solid var(--line);
	background: #111; user-select: none;
	box-shadow: 0 20px 50px rgba(15,42,36,0.12);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before-wrap { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; border-right: 2px solid #fff; }
.ba-range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize; z-index: 5;
}
.ba-handle {
	position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; z-index: 4;
}
.ba-handle::after {
	content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ba-tag {
	position: absolute; top: 0.75rem; z-index: 3;
	background: rgba(0,0,0,0.55); color: #fff; padding: 0.25rem 0.55rem;
	border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.ba-tag.left { left: 0.75rem; }
.ba-tag.right { right: 0.75rem; }

.reel-embed {
	width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 0.75rem;
	margin-bottom: 1rem; background: #0b1411;
}
.pitch-cta h2, .thanks-panel h1 { font-family: var(--font-display); }

.landing {
	position: relative; min-height: calc(100vh - 3rem);
	display: flex; flex-direction: column; justify-content: center;
	padding: 2rem 0 3rem; overflow: hidden;
}
.landing-glow {
	position: absolute; inset: -20% auto auto -10%; width: 70vw; height: 70vw;
	background: radial-gradient(circle, rgba(224,138,44,0.22), transparent 60%);
	pointer-events: none;
}
.landing-brand {
	font-size: clamp(3.5rem, 14vw, 7.5rem); margin: 0 0 0.5rem; max-width: 8ch; line-height: 0.9;
}
.landing-lede { max-width: 34ch; font-size: 1.2rem; margin-bottom: 1.5rem; }
.landing-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.landing-steps {
	list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; max-width: 420px;
}
.landing-steps li {
	display: flex; gap: 0.8rem; align-items: baseline;
	padding: 0.75rem 0.9rem; border-radius: 0.7rem;
	background: rgba(255,255,255,0.45); border: 1px solid var(--line);
}
.landing-steps strong { font-family: var(--font-display); color: var(--accent); }

.login-shell { min-height: calc(100vh - 3rem); display: grid; place-items: center; }
.login-card {
	width: min(420px, 100%); background: rgba(255,255,255,0.65);
	border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem;
	backdrop-filter: blur(8px);
}

.wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.recorder-frame iframe {
	width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 0.75rem; background: #000;
}

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { animation: rise 0.55s ease forwards; }

@keyframes rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(224,138,44,0.5); }
	70% { box-shadow: 0 0 0 12px rgba(224,138,44,0); }
	100% { box-shadow: 0 0 0 0 rgba(224,138,44,0); }
}

@media (max-width: 900px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
	.compare { grid-template-columns: 1fr; }
	.top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
