/* ═══════════════════════════════════════════════════════════════════════════
   Very Big Clips — Main Stylesheet  (Black & White Sketchy)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Custom Properties ──────────────────────────────────────────────────── */
:root {
  --primary:        #0a0a0a;
  --primary-dark:   #171717;
  --primary-light:  #525252;
  --primary-glow:   rgba(0, 0, 0, 0.08);
  --bg:             #f7f7f7;
  --bg-card:        #ffffff;
  --bg-sidebar:     #0a0a0a;
  --text:           #0a0a0a;
  --text-muted:     #525252;
  --text-light:     #a3a3a3;
  --border:         #d4d4d4;
  --border-strong:  #0a0a0a;
  --shadow-sm:      2px 2px 0 #0a0a0a;
  --shadow-md:      3px 3px 0 #0a0a0a;
  --shadow-lg:      4px 4px 0 #0a0a0a;
  --shadow-xl:      6px 6px 0 #0a0a0a;
  --radius-sm:      4px;
  --radius-md:      4px;
  --radius-lg:      4px;
  --radius-xl:      6px;
  --transition:     0.15s ease;
  --font:           'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display:   'Oswald', sans-serif;
  --sidebar-width:  240px;
}

/* ─── Airy animated gradient ─────────────────────────────────────────────── */
@keyframes airy-bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shimmer {
  0%   { opacity: 0; }
  50%  { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes progress-indeterminate {
  0%   { transform: translateX(-100%); width: 60%; }
  100% { transform: translateX(200%); width: 60%; }
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 30%, #ebebeb 60%, #f7f7f7 80%, #ffffff 100%);
  background-size: 400% 400%;
  animation: airy-bg 20s ease infinite;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
}

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

img { display: block; max-width: 100%; }

button { font-family: var(--font); cursor: pointer; border: none; background: none; }

input, textarea, select { font-family: var(--font); font-size: 14px; }

/* ─── Typography ────────────────────────────────────────────────────────── */
h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
p  { color: var(--text); }
.text-muted { color: var(--text-muted); font-size: 13px; }

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ─── Views ─────────────────────────────────────────────────────────────── */
.view { display: none; }

/* ─── Auth Spinner ──────────────────────────────────────────────────────── */
#auth-spinner {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #ffffff;
  z-index: 9999;
}

/* ─── Spinners ──────────────────────────────────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid #d4d4d4;
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.spinner--sm { width: 16px; height: 16px; border-width: 2px; display: inline-block; vertical-align: middle; }
.spinner--lg { width: 48px; height: 48px; border-width: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   LOGIN VIEW
   ══════════════════════════════════════════════════════════════════════════ */
#view-login {
  display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   LANDING PAGE (Login view)
   ══════════════════════════════════════════════════════════════════════════ */

.lp-page {
  background: #ffffff;
  font-family: var(--font);
  color: #0a0a0a;
  overflow-x: hidden;
}

/* ── Shared ─────────────────────────────────────────────────────────────── */
.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section { padding: 96px 0; }

.lp-dark { background: #0a0a0a; }

.lp-overline {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #525252;
  margin-bottom: 16px;
}

.lp-overline--light { color: rgba(255,255,255,0.4); }

.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.lp-section-title--light { color: #ffffff; }

.lp-section-sub {
  font-size: 17px;
  color: #525252;
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 56px;
}

/* ── Demo video ─────────────────────────────────────────────────────────── */
.lp-demo-video {
  position: relative;
  padding: 140px 0;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(255, 214, 224, 0.85), transparent 60%),
    radial-gradient(1100px 700px at 95% 5%,  rgba(214, 228, 255, 0.85), transparent 60%),
    radial-gradient(900px  600px at 50% 110%, rgba(232, 214, 255, 0.85), transparent 60%),
    radial-gradient(800px  500px at 85% 95%, rgba(214, 244, 224, 0.7),  transparent 60%),
    linear-gradient(125deg, #fff5f7 0%, #f3f4ff 35%, #f7f0ff 70%, #f0fbf5 100%);
  background-size: 200% 200%, 220% 200%, 180% 220%, 200% 180%, 250% 250%;
  animation: lp-gradient-shift 22s ease-in-out infinite;
  overflow: hidden;
}
@keyframes lp-gradient-shift {
  0%, 100% { background-position: 0% 50%, 100% 0%, 50% 100%, 100% 100%, 0% 50%; }
  50%      { background-position: 100% 50%, 0% 100%, 50% 0%, 0% 0%, 100% 50%; }
}
.lp-demo-video::before,
.lp-demo-video::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: lp-orb-float 14s ease-in-out infinite;
}
.lp-demo-video::before {
  width: 380px; height: 380px;
  background: #ffc8d6;
  top: -120px; left: -120px;
}
.lp-demo-video::after {
  width: 420px; height: 420px;
  background: #c8d4ff;
  bottom: -140px; right: -140px;
  animation-delay: -7s;
}
@keyframes lp-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}

.lp-demo-video .lp-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
}
.lp-demo-video .lp-overline,
.lp-demo-video .lp-section-title,
.lp-demo-video .lp-section-sub { text-align: center; }
.lp-demo-video .lp-section-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.lp-video-frame {
  position: relative;
  width: 100%;
  margin: 24px auto 0;
  border: 2px solid #0a0a0a;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow:
    0 40px 80px -20px rgba(20, 20, 60, 0.35),
    0 16px 36px -10px rgba(20, 20, 60, 0.22);
  aspect-ratio: 16 / 9;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Custom unmute control for the YouTube demo iframe.
   The iframe is intentionally controls=0 to keep the embed clean — this
   button is the only way for a visitor to enable audio. */
.lp-video-unmute {
  position: absolute;
  bottom: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background 0.15s ease, padding 0.15s ease;
}
.lp-video-unmute:hover { background: #fff; transform: translateY(-1px); }
.lp-video-unmute:focus-visible { outline: 2px solid #ff6b6b; outline-offset: 2px; }
.lp-video-unmute[data-muted="true"]  .lp-video-unmute-icon--unmuted { display: none; }
.lp-video-unmute[data-muted="false"] .lp-video-unmute-icon--muted   { display: none; }
.lp-video-unmute[data-muted="false"] .lp-video-unmute-label         { display: none; }
.lp-video-unmute[data-muted="false"] {
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
}
@media (max-width: 768px) {
  .lp-video-unmute { bottom: 12px; right: 12px; padding: 8px 14px; font-size: 12px; }
  .lp-video-unmute[data-muted="false"] { padding: 8px; }
}
.lp-video-frame:hover {
  transform: translateY(-4px);
  box-shadow:
    0 50px 100px -20px rgba(20, 20, 60, 0.4),
    0 20px 44px -10px rgba(20, 20, 60, 0.28);
}
.lp-video-frame video,
.lp-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0a0a0a;
}
.lp-video-frame video { object-fit: contain; }
@media (max-width: 768px) {
  .lp-demo-video { padding: 80px 0; }
  .lp-video-frame { border-radius: 16px; }
  .lp-demo-video::before { width: 220px; height: 220px; }
  .lp-demo-video::after  { width: 240px; height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-demo-video,
  .lp-demo-video::before,
  .lp-demo-video::after { animation: none; }
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid #0a0a0a;
  padding: 0 24px;
}

/* Offset in-page anchor jumps so sections don't slide under the sticky nav. */
html { scroll-padding-top: 72px; }

.lp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.lp-nav-icon {
  width: 32px; height: 32px;
  border-radius: 6px;
  display: block;
}

.lp-nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a0a0a;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-nav-link {
  font-size: 13px;
  font-weight: 600;
  color: #525252;
  text-decoration: none;
  transition: color 0.15s;
}

.lp-nav-link:hover { color: #0a0a0a; text-decoration: none; }

.lp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #0a0a0a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 2px 2px 0 #0a0a0a;
  white-space: nowrap;
}

.lp-btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #0a0a0a;
}

.lp-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  33%  { background-position: 50% 0%; }
  66%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes orb-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33%  { transform: translate(50px, 35px) scale(1.15); opacity: 0.65; }
  66%  { transform: translate(-25px, 55px) scale(0.9); opacity: 0.45; }
}
@keyframes orb-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
  33%  { transform: translate(-35px, 45px) scale(1.1); opacity: 0.6; }
  66%  { transform: translate(25px, -35px) scale(1.05); opacity: 0.5; }
}
@keyframes orb-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50%  { transform: translate(-45px, -25px) scale(1.2); opacity: 0.55; }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { opacity: 0.7; transform: scale(0.85); box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.lp-hero {
  background: linear-gradient(-45deg,
    #0a0a12 0%, #1a0a30 18%, #0c1538 36%,
    #0a1a1a 50%, #201010 64%, #180a2c 80%, #0a0a15 100%
  );
  background-size: 400% 400%;
  animation: hero-gradient 16s ease infinite;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.lp-hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.lp-hero-inner { position: relative; z-index: 1; }

.lp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.lp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 24px;
}

.lp-hero-title-accent {
  background: linear-gradient(90deg, #a78bfa 0%, #818cf8 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.lp-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.lp-btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffff;
  color: #0a0a0a;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
  text-decoration: none;
}

.lp-btn-hero:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(255,255,255,0.25);
  text-decoration: none;
}

.lp-btn-hero:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.lp-btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  font-weight: 600;
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-btn-upload:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.lp-pending-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.lp-pending-file-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-pending-status {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}
.lp-pending-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  flex-shrink: 0;
}
.lp-pending-clear:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.lp-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s;
}

.lp-btn-ghost:hover {
  border-color: rgba(255,255,255,0.8);
  color: #ffffff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}

.lp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-hero-pills .lp-pill:not([class*="lp-pill--"]) {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}

/* ── Features ────────────────────────────────────────────────────────────── */
.lp-features { background: #f7f7f7; }

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.lp-feature-card {
  background: #ffffff;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  padding: 32px;
  box-shadow: 3px 3px 0 #0a0a0a;
  transition: all 0.15s;
}

.lp-feature-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #0a0a0a;
}

.lp-feature-icon {
  width: 48px; height: 48px;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #0a0a0a;
}

.lp-feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  color: #0a0a0a;
}

.lp-feature-card p {
  font-size: 14px;
  color: #525252;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────────────────── */
.lp-how { background: #0a0a0a; }

.lp-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.lp-step {
  flex: 1;
  min-width: 160px;
  padding: 32px 24px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}

.lp-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255,255,255,0.2);
  padding: 0 8px;
  align-self: center;
  flex-shrink: 0;
}

.lp-step-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 12px;
}

.lp-step h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 8px;
}

.lp-step p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ── Personas hub (Built for your workflow) ──────────────────────────────── */
.lp-personas { background: #fafafa; border-top: 1px solid rgba(0,0,0,0.04); }
.lp-personas .lp-section-title { text-align: center; }
.lp-personas .lp-section-sub { text-align: center; margin-left: auto; margin-right: auto; max-width: 640px; }
.lp-personas .lp-overline { text-align: center; }

.lp-personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.lp-persona-card {
  position: relative;
  display: block;
  padding: 28px 24px 56px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lp-persona-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,107,107,0.4);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.lp-persona-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF6B6B 0%, #e11d48 100%);
  color: #fff;
  margin-bottom: 16px;
}

.lp-persona-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 0 0 8px;
}

.lp-persona-card p {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

.lp-persona-arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 18px;
  color: #e11d48;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.lp-persona-card:hover .lp-persona-arrow { transform: translateX(4px); }

/* Footer personas row — secondary nav under main footer links */
.lp-footer-personas {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
}

.lp-footer-personas-label {
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-right: 4px;
}

.lp-footer-personas a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-personas a:hover { color: rgba(255,255,255,0.9); }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.lp-pricing { background: #f7f7f7; }
.lp-pricing .lp-section-title { text-align: center; }
.lp-pricing .lp-section-sub { text-align: center; margin-left: auto; margin-right: auto; }
.lp-pricing .lp-overline { text-align: center; }

.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.lp-plan {
  background: #ffffff;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: 3px 3px 0 #0a0a0a;
  display: flex;
  flex-direction: column;
  position: relative;
}

.lp-plan--popular {
  background: #0a0a0a;
  box-shadow: 5px 5px 0 #525252;
  transform: scale(1.02);
  z-index: 1;
}

.lp-plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #0a0a0a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border: 2px solid #ffffff;
  white-space: nowrap;
}

.lp-plan--popular .lp-plan-badge {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #0a0a0a;
}

.lp-plan-header { margin-bottom: 24px; }

.lp-plan-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a0a0a;
  margin-bottom: 8px;
}

.lp-plan--popular .lp-plan-name { color: #ffffff; }

.lp-plan-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1;
}

.lp-plan--popular .lp-plan-price { color: #ffffff; }

.lp-plan-price span {
  font-size: 16px;
  font-weight: 500;
  color: #525252;
}

.lp-plan--popular .lp-plan-price span { color: rgba(255,255,255,0.5); }

.lp-plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #0a0a0a;
  line-height: 1.4;
}

.lp-plan--popular .lp-plan-features li { color: rgba(255,255,255,0.85); }

.lp-check {
  display: inline-flex;
  width: 16px; height: 16px;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lp-check::after {
  content: '';
  position: absolute;
  left: 2px; top: 0px;
  width: 5px; height: 8px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lp-check--inv { border-color: #ffffff; }
.lp-check--inv::after { border-color: #ffffff; }

.lp-dash {
  display: inline-flex;
  width: 16px; height: 16px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: #a3a3a3;
  font-weight: 700;
  font-size: 14px;
}

.lp-dash::before { content: '—'; }

.lp-plan-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #0a0a0a;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.lp-plan-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #0a0a0a;
}

.lp-plan-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.lp-plan-btn--inv {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
  box-shadow: 2px 2px 0 rgba(255,255,255,0.3);
}

.lp-plan-btn--inv:hover { box-shadow: 3px 3px 0 rgba(255,255,255,0.4); }

.lp-pricing-note {
  text-align: center;
  font-size: 13px;
  color: #a3a3a3;
}

/* ── Final CTA ───────────────────────────────────────────────────────────── */
.lp-cta-section { background: #0a0a0a; padding: 96px 0; }

.lp-cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-cta-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin-bottom: 28px;
  filter: invert(1) brightness(2);
  opacity: 0.9;
}

.lp-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 32px;
  max-width: 400px;
}

.lp-cta-terms {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  max-width: 360px;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.lp-footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
}

.lp-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.lp-footer-icon {
  width: 24px; height: 24px;
  border-radius: 4px;
  filter: invert(1);
  opacity: 0.5;
}

.lp-footer-links {
  display: flex;
  gap: 24px;
}

.lp-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.lp-footer-links a:hover { color: rgba(255,255,255,0.8); text-decoration: none; }

.lp-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ── Hero orbs ───────────────────────────────────────────────────────────── */
.lp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.lp-hero-orb--purple {
  width: 600px; height: 600px;
  top: -140px; left: -80px;
  background: radial-gradient(circle, rgba(124,58,237,0.85), transparent 60%);
  animation: orb-drift-a 22s ease-in-out infinite;
}
.lp-hero-orb--blue {
  width: 480px; height: 480px;
  top: 40px; right: -50px;
  background: radial-gradient(circle, rgba(37,99,235,0.8), transparent 60%);
  animation: orb-drift-b 28s ease-in-out infinite;
}
.lp-hero-orb--amber {
  width: 420px; height: 420px;
  bottom: -100px; left: 35%;
  background: radial-gradient(circle, rgba(245,158,11,0.7), transparent 60%);
  animation: orb-drift-c 19s ease-in-out infinite;
}

/* ── Badge dot ───────────────────────────────────────────────────────────── */
.lp-hero-badge-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: dot-pulse 2.2s ease-in-out infinite;
  vertical-align: middle;
}

/* ── Pills ───────────────────────────────────────────────────────────────── */
.lp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  transition: all 0.15s;
}
.lp-pill--violet {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.4);
  color: #c4b5fd;
}
.lp-pill--blue {
  background: rgba(37,99,235,0.15);
  border-color: rgba(37,99,235,0.35);
  color: #93c5fd;
}
.lp-pill--amber {
  background: rgba(217,119,6,0.15);
  border-color: rgba(217,119,6,0.35);
  color: #fcd34d;
}
.lp-pill--green {
  background: rgba(22,163,74,0.15);
  border-color: rgba(22,163,74,0.35);
  color: #86efac;
}

/* ── Demo transcript mockup ──────────────────────────────────────────────── */
.lp-hero-demo {
  position: relative;
  margin: 52px auto 0;
  max-width: 620px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(124,58,237,0.2), 0 20px 60px rgba(0,0,0,0.5);
}
.lp-demo-label {
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-demo-label::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7c3aed;
}
.lp-demo-transcript {
  padding: 22px 20px 22px;
  line-height: 2.2;
  position: relative;
}
.lp-demo-word {
  display: inline;
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  margin: 0 1px;
  padding: 2px 2px;
  border-radius: 2px;
  cursor: default;
  user-select: none;
  transition: color 0.1s;
}
.lp-demo-selected {
  color: #ffffff;
  background: rgba(124,58,237,0.38);
  border-bottom: 2px solid rgba(124,58,237,0.9);
  border-radius: 2px;
  position: relative;
}
.lp-demo-tooltip {
  display: inline-block;
  background: #7c3aed;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  vertical-align: middle;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.5);
  position: relative;
  top: -2px;
}
.lp-demo-selected {
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hero demo: action bar + Create Clip button + success state */
.lp-demo-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  min-height: 50px;
}
.lp-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(124,58,237,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  opacity: 0.65;
  filter: saturate(0.8);
}
.lp-demo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(124,58,237,0.55);
}
.lp-demo-btn--armed {
  opacity: 1;
  filter: saturate(1);
  animation: lp-demo-btn-pulse 1.2s ease-in-out infinite;
}
@keyframes lp-demo-btn-pulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(124,58,237,0.55), 0 0 0 0 rgba(124,58,237,0.4); }
  50%      { box-shadow: 0 2px 12px rgba(124,58,237,0.55), 0 0 0 8px rgba(124,58,237,0); }
}
.lp-demo-btn--firing {
  transform: scale(0.86) translateY(2px);
  animation: none;
  background: linear-gradient(135deg, #5b21b6 0%, #4c1d95 100%);
  box-shadow:
    0 0 0 4px rgba(124,58,237,0.25),
    inset 0 3px 6px rgba(0,0,0,0.35);
  filter: brightness(0.92);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease, filter 0.08s ease;
}

/* Animated cursor that drags across the text and clicks the button */
.lp-demo-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.55));
  transform: translate(20px, 20px);
  transition:
    opacity 0.22s ease,
    transform 0.42s cubic-bezier(0.45, 0.05, 0.25, 0.95);
  will-change: transform;
}
.lp-demo-cursor--visible { opacity: 1; }
.lp-demo-cursor--fast {
  transition:
    opacity 0.22s ease,
    transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.lp-demo-cursor--clicking {
  /* tighter scale on click — applied on top of translate via .lp-demo-cursor svg path */
}
.lp-demo-cursor--clicking::after {
  content: "";
  position: absolute;
  top: 4px; left: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.85);
  animation: lp-demo-click-ripple 0.55s ease-out forwards;
  pointer-events: none;
}
@keyframes lp-demo-click-ripple {
  0%   { transform: scale(0.4); opacity: 0.95; }
  100% { transform: scale(2.6); opacity: 0;    }
}
.lp-demo-success {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.lp-demo-success--visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Differentiator: "You're the editor. AI just helps." ─────────────────── */
.lp-vs { background: #fafafa; }
.lp-vs .lp-overline,
.lp-vs .lp-section-title,
.lp-vs .lp-section-sub { text-align: center; }
.lp-vs .lp-section-sub { margin-left: auto; margin-right: auto; max-width: 580px; }
.lp-vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 20px;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.lp-vs-card {
  padding: 36px 32px 32px;
  border-radius: 18px;
  border: 2px solid #0a0a0a;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-vs-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 14px 0 12px;
  letter-spacing: -0.01em;
}
.lp-vs-card p {
  color: #4b5563;
  line-height: 1.65;
  font-size: 15px;
  margin-bottom: 22px;
}
.lp-vs-card--bad {
  background: #f1f1f0;
  color: #1f2937;
  opacity: 0.92;
}
.lp-vs-card--bad h3 { color: #4b5563; }
.lp-vs-card--good {
  background: linear-gradient(155deg, #f5f0ff 0%, #ede4ff 100%);
  box-shadow: 8px 8px 0 #7c3aed;
}
.lp-vs-card--good:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 #7c3aed; }
.lp-vs-card--good h3 { color: #5b21b6; }
.lp-vs-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
}
.lp-vs-tag--bad { background: rgba(0,0,0,0.08); color: #6b7280; }
.lp-vs-tag--good { background: #7c3aed; color: #ffffff; }
.lp-vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lp-vs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  padding: 8px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.lp-vs-list li:first-child { border-top: none; }
.lp-vs-x, .lp-vs-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-vs-x { background: rgba(220,38,38,0.12); color: #b91c1c; }
.lp-vs-check { background: rgba(124,58,237,0.18); color: #6d28d9; }
.lp-vs-card--bad .lp-vs-list li { color: #6b7280; }

/* ── Features in action (GIF showcases) ──────────────────────────────────── */
.lp-action { background: #ffffff; }
.lp-action .lp-overline,
.lp-action .lp-section-title,
.lp-action .lp-section-sub { text-align: center; }
.lp-action .lp-section-sub { margin-left: auto; margin-right: auto; max-width: 560px; margin-bottom: 64px; }
.lp-action-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.lp-action-row:last-child { margin-bottom: 0; }
.lp-action-row--reverse { grid-template-columns: 1fr 1.15fr; }
.lp-action-row--reverse .lp-action-img { order: 2; }
.lp-action-row--reverse .lp-action-text { order: 1; }
.lp-action-img {
  border: 2px solid #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 8px 8px 0 #0a0a0a;
  line-height: 0;
}
.lp-action-img img {
  display: block;
  width: 100%;
  height: auto;
}
.lp-action-text h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0a0a0a;
  margin: 14px 0 16px;
}
.lp-action-text p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
}
.lp-action-tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
}
.lp-action-tag--violet { background: rgba(124,58,237,0.12); color: #6d28d9; border: 1px solid rgba(124,58,237,0.25); }
.lp-action-tag--green  { background: rgba(22,163,74,0.12);  color: #15803d; border: 1px solid rgba(22,163,74,0.25); }

@media (max-width: 768px) {
  .lp-vs-grid { grid-template-columns: 1fr; gap: 16px; }
  .lp-vs-card--good { box-shadow: 5px 5px 0 #7c3aed; }
  .lp-action-row,
  .lp-action-row--reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .lp-action-row--reverse .lp-action-img { order: 0; }
  .lp-action-row--reverse .lp-action-text { order: 0; }
  .lp-action-img { box-shadow: 4px 4px 0 #0a0a0a; }
  .lp-action-text h3 { font-size: 26px; }
}

/* ── Feature card color variants ─────────────────────────────────────────── */
.lp-feature-card--hero {
  grid-column: span 2;
  background: linear-gradient(135deg, #faf5ff 0%, #f0ebff 100%);
  border-color: #7c3aed;
  box-shadow: 4px 4px 0 rgba(124,58,237,0.35);
}
.lp-feature-card--hero:hover { box-shadow: 6px 6px 0 rgba(124,58,237,0.45); }
.lp-feature-card--violet { border-top: 3px solid #7c3aed; }
.lp-feature-card--blue   { border-top: 3px solid #2563eb; }
.lp-feature-card--amber  { border-top: 3px solid #d97706; }
.lp-feature-card--green  { border-top: 3px solid #16a34a; }
.lp-feature-card--slate  { border-top: 3px solid #475569; }
.lp-feature-card--rose   { border-top: 3px solid #e11d48; }

/* ── Feature icon color variants ─────────────────────────────────────────── */
.lp-feature-icon--violet { background: rgba(124,58,237,0.08);  border-color: rgba(124,58,237,0.25); color: #7c3aed; }
.lp-feature-icon--blue   { background: rgba(37,99,235,0.08);   border-color: rgba(37,99,235,0.25);  color: #2563eb; }
.lp-feature-icon--amber  { background: rgba(217,119,6,0.08);   border-color: rgba(217,119,6,0.25);  color: #d97706; }
.lp-feature-icon--green  { background: rgba(22,163,74,0.08);   border-color: rgba(22,163,74,0.25);  color: #16a34a; }
.lp-feature-icon--slate  { background: rgba(71,85,105,0.08);   border-color: rgba(71,85,105,0.25);  color: #475569; }
.lp-feature-icon--rose   { background: rgba(225,29,72,0.08);   border-color: rgba(225,29,72,0.25);  color: #e11d48; }

/* ── Feature tag ─────────────────────────────────────────────────────────── */
.lp-feature-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 3px;
  color: #7c3aed;
}

/* ── How-it-works step number color variants ─────────────────────────────── */
.lp-step-num--violet { color: rgba(124,58,237,0.55); }
.lp-step-num--blue   { color: rgba(37,99,235,0.55); }
.lp-step-num--amber  { color: rgba(217,119,6,0.55); }
.lp-step-num--green  { color: rgba(22,163,74,0.55); }

/* ── LP responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .lp-section { padding: 64px 0; }
  .lp-hero { padding: 64px 0 56px; }
  .lp-step-arrow { display: none; }
  .lp-steps { gap: 12px; }
  .lp-step { min-width: calc(50% - 6px); }
  .lp-plan--popular { transform: none; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { justify-content: center; }
  .lp-nav-actions .lp-nav-link { display: none; }
  .lp-feature-card--hero { grid-column: span 1; }
  .lp-hero-orb { display: none; }
  .lp-hero-demo { margin-top: 36px; }
}

@media (max-width: 480px) {
  .lp-step { min-width: 100%; }
  .lp-pricing-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   DASHBOARD VIEW
   ══════════════════════════════════════════════════════════════════════════ */
#view-dashboard {
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.dashboard-sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 2px solid #0a0a0a;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  filter: invert(1) brightness(2);
}

.sidebar-brand {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
}

.nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #ffffff;
  font-weight: 600;
  border-left: 3px solid #ffffff;
}

.nav-item svg { flex-shrink: 0; }

.nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 12px;
}

/* User info in sidebar */
.sidebar-user {
  padding: 16px 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.user-avatar-fallback {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }

#user-name  { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffffff; }
#user-email { font-size: 11px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn-sign-out {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.4);
  transition: all var(--transition);
  flex-shrink: 0;
}

.btn-sign-out:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

/* ─── License Panel ──────────────────────────────────────────────────────── */
.license-panel {
  margin: 0 12px 12px;
  padding: 12px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
}

.license-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.license-tier-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1.5px solid;
  text-transform: uppercase;
}

.license-tier-free    { background: rgba(255,255,255,0.08); color: #a3a3a3; border-color: #525252; }
.license-tier-starter { background: rgba(91,184,255,0.15);  color: #5BB8FF; border-color: #5BB8FF; }
.license-tier-creator { background: rgba(61,220,132,0.15);  color: #3DDC84; border-color: #3DDC84; }
.license-tier-pro     { background: rgba(168,85,247,0.15);  color: #A855F7; border-color: #A855F7; }

.license-active-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3DDC84;
  box-shadow: 0 0 6px #3DDC84;
  flex-shrink: 0;
}

.license-limits {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.license-limit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.license-limit-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.license-limit-value {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.license-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-license-upgrade {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
  background: #ffffff;
  color: #0a0a0a;
  border: 1.5px solid #ffffff;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-license-upgrade:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: none;
}

.btn-license-change {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
  padding: 5px 10px;
  border-radius: 2px;
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.btn-license-change:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.5);
}

/* Tier changer modal */
.tier-changer-box {
  width: min(380px, 92vw);
  max-width: 380px;
}

.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-box-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text);
}

.modal-close-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close-btn:hover { background: var(--bg); color: var(--text); }

.tier-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.tier-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.tier-option input[type="radio"] { display: none; }

.tier-option:hover { border-color: var(--primary); }

.tier-option--selected {
  border-color: var(--primary);
  background: var(--bg);
  box-shadow: 2px 2px 0 var(--primary);
}

.tier-option-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.tier-option-limits {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.tier-changer-footer {
  display: flex;
  gap: 8px;
}

.tier-changer-footer .btn-primary,
.tier-changer-footer .btn-secondary { flex: 1; justify-content: center; }

/* Dashboard Main */
.dashboard-main { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; }

.dashboard-topbar {
  padding: 20px 32px 16px;
  border-bottom: 2px solid #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.dashboard-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dashboard-title h2 {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#job-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #ebebeb;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid #d4d4d4;
}

.dashboard-topbar-actions { display: flex; align-items: center; gap: 12px; }

.dashboard-content { padding: 32px; }

/* Deeplink banner (Workspace add-on entry) */
.deeplink-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #fff8f0, #fff);
  border: 1px solid #ffd9b3;
  border-left: 4px solid #FF6B6B;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.deeplink-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #FFE4D6;
  color: #FF6B6B;
}
.deeplink-banner-body { flex: 1; min-width: 0; }
.deeplink-banner-title { font-size: 13px; color: #777; }
.deeplink-banner-file {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deeplink-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.deeplink-banner-continue { padding: 8px 16px; }
.deeplink-banner-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  border-radius: 6px;
}
.deeplink-banner-cancel:hover { background: rgba(0,0,0,0.05); color: #555; }

/* Upload card */
@keyframes upload-card-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.upload-card {
  background: linear-gradient(135deg,
    #ffffff 0%, #f5f0ff 20%, #eef4ff 40%,
    #fffbeb 60%, #f0fdf4 80%, #ffffff 100%
  );
  background-size: 300% 300%;
  animation: upload-card-gradient 12s ease infinite;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  border: 2px solid #0a0a0a;
  box-shadow: var(--shadow-md);
}

.upload-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.upload-card h3 { font-size: 15px; font-weight: 700; }

.upload-card-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#upload-file-info { display: none; margin-top: 12px; }
#upload-progress-container { display: none; margin-top: 12px; }

.file-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.file-icon { color: var(--primary); }
.file-name { font-size: 14px; font-weight: 600; }
.file-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Job grid */
.jobs-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.jobs-section-header h3 { font-size: 16px; font-weight: 700; }

#job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Job cards */
.job-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid #0a0a0a;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.job-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lg);
}

.job-card:active { transform: translate(0, 0); box-shadow: var(--shadow-sm); }

.job-card-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  overflow: hidden;
}

.job-thumb-img,
.job-thumb-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

.job-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-status-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

.job-card-body { padding: 14px 16px; }

/* Inline rename row */
.job-card-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.job-title-input {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  padding: 2px 2px;
  color: var(--text);
  min-width: 0;
  transition: border-color var(--transition);
  cursor: text;
}

.job-title-input:hover { border-bottom-color: var(--border); }
.job-title-input:focus { outline: none; border-bottom-color: var(--primary); }

.job-rename-save {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  color: var(--text-muted);
  opacity: 0.4;
  transition: all var(--transition);
}

.job-rename-save:hover { opacity: 1; background: var(--bg); }
.job-rename-save:disabled { opacity: 0.2; }
.job-rename-save.job-rename-saved { color: #3DDC84; opacity: 1; }

.job-delete-btn {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px;
  color: var(--text-muted);
  opacity: 0.3;
  transition: all var(--transition);
  margin-left: auto;
}
.job-delete-btn:hover { opacity: 1; color: #FF6B6B; background: rgba(255,107,107,0.08); }
.job-delete-btn:disabled { opacity: 0.15; pointer-events: none; }

/* Quota displays */
.video-quota-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.quota-label { color: var(--text-muted); }
.quota-value { font-weight: 600; color: var(--text); }
.quota-value.quota-full { color: #FF6B6B; }

.clips-quota-display {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.clips-quota-display.quota-full { color: #FF6B6B; border-color: #FF6B6B44; }

.job-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.job-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.job-clip-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Empty / Loading / Error states */
.loading-state, .error-state, .jobs-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 64px 24px;
  text-align: center;
  grid-column: 1 / -1;
}

.jobs-empty h3 { font-size: 18px; font-weight: 700; color: var(--text); }
.jobs-empty p  { color: var(--text-muted); font-size: 14px; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #0a0a0a;
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #0a0a0a;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active { transform: translate(0,0); box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #0a0a0a;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f7f7f7;
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #0a0a0a;
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #0a0a0a;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-danger:hover { background: #EF4444; border-color: #EF4444; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: white;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #0a0a0a;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 1px 1px 0 #0a0a0a;
}

.btn-sm:hover {
  background: #f7f7f7;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #0a0a0a;
}

.btn-sm.btn-primary {
  background: #0a0a0a;
  color: white;
  border-color: #0a0a0a;
}

.btn-sm.btn-primary:hover {
  background: #262626;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 #525252;
}

.btn-youtube {
  background: #FF0000 !important;
  color: white !important;
  border-color: #CC0000 !important;
}
.btn-youtube:hover { background: #CC0000 !important; border-color: #CC0000 !important; }

.icon-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}
.icon-btn:hover { background: #f7f7f7; color: var(--text); }

.btn-upload-first { margin-top: 8px; padding: 12px 24px; font-size: 15px; }

/* ══════════════════════════════════════════════════════════════════════════
   STATUS BADGES  (keep semantic colors)
   ══════════════════════════════════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
}

.status-draft     { background: #F5F5F5; color: #525252;  border-color: #d4d4d4; }
.status-processing,
.status-rendering { background: #FFF8E1; color: #F59E0B; border-color: #FDE68A; }
.status-ready,
.status-done,
.status-completed { background: #ECFDF5; color: #10B981; border-color: #A7F3D0; }
.status-failed,
.status-error     { background: #FEF2F2; color: #EF4444; border-color: #FECACA; }
.status-published { background: #EFF6FF; color: #3B82F6; border-color: #BFDBFE; }
.status-scheduled { background: #F5F3FF; color: #8B5CF6; border-color: #DDD6FE; }
.status-queued    { background: #F9FAFB; color: #6B7280; border-color: #E5E7EB; }
.status-transcribing { background: #EFF6FF; color: #3B82F6; border-color: #BFDBFE; }

/* ══════════════════════════════════════════════════════════════════════════
   CLIP COLOR CLASSES  (keep for transcript identification)
   ══════════════════════════════════════════════════════════════════════════ */
.clip-color-0 { background: #FFE8E8; border-left: 3px solid #FF6B6B; }
.clip-color-1 { background: #E8F4FF; border-left: 3px solid #5BB8FF; }
.clip-color-2 { background: #E8FFF2; border-left: 3px solid #3DDC84; }
.clip-color-3 { background: #F2E8FF; border-left: 3px solid #A855F7; }
.clip-color-4 { background: #FFF4E8; border-left: 3px solid #FFB347; }

/* ══════════════════════════════════════════════════════════════════════════
   PROGRESS BARS
   ══════════════════════════════════════════════════════════════════════════ */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #ebebeb;
  border-radius: 3px;
  border: 1px solid #d4d4d4;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #0a0a0a;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-message { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.progress-percent { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-align: right; }

.mini-progress {
  height: 3px;
  background: #ebebeb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 6px;
}

.mini-progress-bar {
  height: 100%;
  background: #0a0a0a;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.render-progress-wrapper { display: flex; flex-direction: column; gap: 3px; width: 100%; }
.render-progress-info { font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* Job progress bar */
.job-progress-container {
  padding: 12px 16px;
  background: #f7f7f7;
  border-radius: 4px;
  border: 1px solid #d4d4d4;
}

.job-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.job-progress-label-text { font-size: 13px; font-weight: 600; color: var(--text); }
.job-progress-pct { font-size: 12px; font-weight: 600; color: var(--text-muted); }

.job-progress-track {
  width: 100%;
  height: 8px;
  background: #ebebeb;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #d4d4d4;
}

.job-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0a0a0a, #525252);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.job-progress-fill::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 20px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: shimmer 1.5s infinite;
}

/* ══════════════════════════════════════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.modal-visible { opacity: 1; }

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 2px solid #0a0a0a;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-visible .modal-card { transform: translateY(0); }
.modal-card--sm { max-width: 360px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid #d4d4d4;
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close-btn:hover { background: #f7f7f7; color: var(--text); border-color: #0a0a0a; }

.confirm-message { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-hint { color: var(--text-muted); font-weight: 400; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d4d4d4;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: #0a0a0a;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-youtube-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FF0000;
  color: white;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #CC0000;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-youtube-submit:hover { background: #CC0000; }
.btn-youtube-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFF9F9;
  border-bottom: 1px solid #FFE0E0;
  font-size: 12px;
  color: #666;
}
.yt-channel-info strong { color: #333; }

/* ══════════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 500;
  min-width: 240px;
  max-width: 360px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
  border: 2px solid #0a0a0a;
}

.toast--visible { transform: translateX(0); }

.toast-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.toast--success .toast-icon { background: #ECFDF5; color: #10B981; }
.toast--error   .toast-icon { background: #FEF2F2; color: #EF4444; }
.toast--info    .toast-icon { background: #f7f7f7; color: #0a0a0a; }
.toast--warning .toast-icon { background: #FFFBEB; color: #F59E0B; }

.toast--success { border-left: 4px solid #10B981; }
.toast--error   { border-left: 4px solid #EF4444; }
.toast--info    { border-left: 4px solid #0a0a0a; }
.toast--warning { border-left: 4px solid #F59E0B; }

/* ══════════════════════════════════════════════════════════════════════════
   EDITOR VIEW
   ══════════════════════════════════════════════════════════════════════════ */
#view-editor {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

.editor-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Editor topbar */
.editor-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  background: #0a0a0a;
  border-bottom: 2px solid #0a0a0a;
  flex-shrink: 0;
  z-index: 50;
}

.editor-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  transition: all var(--transition);
}

.editor-back-btn:hover { color: #ffffff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }

.editor-job-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.editor-job-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
  color: #ffffff;
}

.editor-topbar-actions { display: flex; gap: 8px; }
.editor-topbar-actions .btn-sm {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.2);
  box-shadow: none;
}
.editor-topbar-actions .btn-sm:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
  transform: none;
  box-shadow: none;
}

/* Editor body */
.editor-body {
  display: grid;
  grid-template-columns: 1fr 280px 320px;
  flex: 1;
  overflow: hidden;
}

.editor-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 2px solid #0a0a0a;
}

.editor-panel--right { border-right: none; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 2px solid #0a0a0a;
  background: #f7f7f7;
  flex-shrink: 0;
}

.panel-header h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0a0a0a;
}

.panel-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.panel-header-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  width: 100%;
}
.panel-header-actions .btn-sm {
  flex: 1;
  justify-content: center;
}
.panel-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-hint { font-size: 11px; color: var(--text-light); cursor: help; }

/* Video preview */
.video-preview-wrapper {
  position: relative;
  background: #0a0a0a;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-video { max-width: 100%; max-height: 100%; width: 100%; }

iframe.editor-video { height: 100%; min-height: 300px; border: none; }

.drive-embed-notice {
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  text-align: center;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #525252;
  font-size: 13px;
}

.video-time-display {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  font-family: monospace;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  background: rgba(0,0,0,0.6);
  flex-shrink: 0;
}

/* Clip list */
.clip-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #f7f7f7;
}

.clip-list::-webkit-scrollbar { width: 4px; }
.clip-list::-webkit-scrollbar-track { background: transparent; }
.clip-list::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 2px; }

.clips-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
}

.clips-empty p { font-size: 13px; }

/* ─── Clip Cards ─────────────────────────────────────────────────────────── */
.clip-card {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 2px solid #d4d4d4;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.clip-card:hover {
  border-color: #0a0a0a;
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.clip-card--selected {
  border-color: #0a0a0a;
  box-shadow: var(--shadow-md);
}

@keyframes clip-render-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.clip-card--rendering {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #f5f5f5 15%,
    #e0e0e0 28%,
    #ffffff 40%,
    #f0f0f0 52%,
    #d8d8d8 64%,
    #ffffff 76%,
    #f5f5f5 88%,
    #ffffff 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: clip-render-shimmer 1.8s linear infinite !important;
  border-color: #d4d4d4 !important;
}

.clip-card--creating {
  background: linear-gradient(
    105deg,
    #ffffff 0%,
    #fafafa 30%,
    #f0f0f0 50%,
    #fafafa 70%,
    #ffffff 100%
  ) !important;
  background-size: 200% 100% !important;
  animation: clip-render-shimmer 1.4s linear infinite !important;
  border-color: #e5e5e5 !important;
  opacity: 0.92;
}

@keyframes clip-creating-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.clip-creating-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #888;
  animation: clip-creating-spin 0.9s linear infinite;
}

.clip-card-color-strip {
  width: 4px;
  flex-shrink: 0;
}

.clip-card-body {
  flex: 1;
  padding: 8px 10px;
  min-width: 0;
}

/* Two-row header: title on top, meta below */
.clip-card-header {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.clip-number-badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  border: 1.5px solid;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Title group: stacks title input + meta vertically */
.clip-title-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clip-ai-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, #E8D5F5, #D5E8F5);
  color: #6B5B8A;
  width: fit-content;
  line-height: 1.3;
}

.clip-title-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  min-width: 0;
  line-height: 1.3;
}

.clip-title-input:focus {
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  padding: 0 3px;
}

.clip-card-meta {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.clip-duration { color: var(--text-light); margin-left: 2px; }

.clip-seg-count {
  display: inline-block;
  background: #ebebeb;
  color: #525252;
  font-size: 9px;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 3px;
  border: 1px solid #d4d4d4;
}

.clip-card-actions { display: flex; gap: 2px; flex-shrink: 0; align-items: center; margin-top: 1px; }

.clip-card-expanded {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ebebeb;
}

.clip-summary-row {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}
.clip-summary-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  cursor: pointer;
}
.clip-summary-check { margin: 0; cursor: pointer; }
.clip-summary-label { font-weight: 500; }
.clip-summary-input {
  width: 100%;
  margin-top: 6px;
  padding: 6px 8px;
  border: 1px dashed #d4d4d4;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
  resize: none;
  font-family: inherit;
}
.clip-summary-hint {
  font-size: 10px;
  color: #aaa;
  margin-top: 2px;
  line-height: 1.3;
}
.clip-summary-input:focus {
  outline: none;
  border-color: #999;
}
.clip-format-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 6px 8px;
  background: #f8f8f8;
  border-radius: 5px;
  font-size: 10px;
  color: #888;
  line-height: 1.3;
}
.clip-format-note svg { flex-shrink: 0; stroke: #aaa; }

.clip-actions-row { display: flex; gap: 4px; flex-wrap: wrap; }

/* Editor loading overlay */
.editor-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(247, 247, 247, 0.94);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.editor-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 2px solid #0a0a0a;
  text-align: center;
}

.editor-loading-message { font-size: 15px; font-weight: 600; color: var(--text); }

/* ─── Create Clip Popup ───────────────────────────────────────────────────── */
.create-clip-popup {
  position: fixed;
  z-index: 500;
  display: none;
  background: #ffffff;
  border: 2px solid #0a0a0a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-width: 220px;
  box-shadow: var(--shadow-lg);
}

.create-clip-popup .ccp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.create-clip-popup .ccp-time { font-size: 12px; font-family: monospace; color: var(--text-muted); }
.create-clip-popup .ccp-dur { font-size: 11px; color: var(--text-muted); margin-left: auto; }

.create-clip-popup .ccp-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px; margin-left: 4px; border-radius: 4px;
}
.create-clip-popup .ccp-dismiss:hover { background: #f7f7f7; }

.create-clip-popup .ccp-styles-label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.create-clip-popup .ccp-styles { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }

.ccp-style-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 4px; border: 2px solid transparent; border-radius: 4px;
  background: none; cursor: pointer; transition: border-color 0.15s;
}
.ccp-style-btn:hover { border-color: #d4d4d4; }
.ccp-style-btn--active { border-color: #0a0a0a; }

.ccp-style-swatch {
  width: 28px; height: 20px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,0.1);
}
.ccp-style-name { font-size: 9px; color: var(--text-muted); }

.create-clip-popup .ccp-nudge-row {
  display: flex;
  gap: 12px;
  padding: 6px 0 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.create-clip-popup .ccp-nudge-group {
  display: flex;
  align-items: center;
  gap: 4px;
}
.create-clip-popup .ccp-nudge-label {
  font-size: 10px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  min-width: 28px;
}
.create-clip-popup .ccp-nudge-btn {
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
  font-family: monospace;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #fafafa;
  color: #525252;
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1;
}
.create-clip-popup .ccp-nudge-btn:hover {
  background: #ebebeb;
  border-color: #0a0a0a;
  color: #0a0a0a;
}
.create-clip-popup .ccp-nudge-btn:active {
  transform: scale(0.95);
}

.create-clip-popup .ccp-actions { display: flex; gap: 6px; }

.create-clip-popup .ccp-preview-btn,
.create-clip-popup .ccp-create-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s;
}

.create-clip-popup .ccp-preview-btn {
  background: #f7f7f7; color: var(--text);
  border: 1.5px solid #d4d4d4;
}
.create-clip-popup .ccp-preview-btn:hover { background: #ebebeb; border-color: #0a0a0a; }

.create-clip-popup .ccp-create-btn {
  background: #0a0a0a; color: white;
  border: 1.5px solid #0a0a0a;
  box-shadow: 1px 1px 0 #525252;
}
.create-clip-popup .ccp-create-btn:hover { background: #262626; box-shadow: 2px 2px 0 #525252; }

.create-clip-popup .ccp-stitch-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}
.create-clip-popup .ccp-stitch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.create-clip-popup .ccp-stitch-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.create-clip-popup .ccp-stitch-btn svg { stroke: #fff; }
.create-clip-popup .ccp-stitch-hint {
  font-size: 10px;
  color: #999;
  text-align: center;
  line-height: 1.3;
}

.ccp-seg-list { display: flex; flex-wrap: wrap; gap: 4px; }

.ccp-seg-badge {
  display: inline-block; padding: 2px 6px;
  background: #f7f7f7; border-radius: 4px;
  font-size: 11px; font-weight: 600; color: #0a0a0a;
  border: 1px solid #d4d4d4;
}

.create-clip-popup-inner {
  background: white; border-radius: var(--radius-sm);
  padding: 12px 14px; border: 2px solid #0a0a0a;
  display: flex; flex-direction: column; gap: 8px; min-width: 200px;
}

.create-clip-time { font-size: 12px; font-family: monospace; color: var(--text-muted); }

.btn-create-clip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: #0a0a0a; color: white;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  border: none; cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.btn-create-clip:hover { box-shadow: var(--shadow-md); transform: translate(-1px,-1px); }

/* ─── Style Picker ────────────────────────────────────────────────────────── */
.overlay-style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 4px;
}

@media (max-width: 600px) {
  .overlay-style-grid { grid-template-columns: repeat(2, 1fr); }
}

.style-card {
  display: flex; flex-direction: column;
  cursor: pointer; border-radius: var(--radius-sm);
  overflow: hidden; border: 2px solid #d4d4d4;
  transition: all 0.2s ease;
}

.style-card:hover {
  transform: translate(-2px, -2px);
  border-color: #0a0a0a;
  box-shadow: var(--shadow-sm);
}

.style-card--selected {
  border-color: #0a0a0a;
  box-shadow: var(--shadow-md);
}

.style-preview {
  position: relative; width: 100%;
  padding-bottom: 60%; overflow: hidden; border-radius: 2px 2px 0 0;
}

.style-preview-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; text-align: center; padding: 4px; letter-spacing: 0.3px;
}

.style-selected-check {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; background: #0a0a0a;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.style-card-name {
  padding: 5px 6px 2px; font-size: 11px; font-weight: 700;
  color: var(--text); background: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.style-card-desc {
  padding: 0 6px 6px; font-size: 10px; color: var(--text-muted); background: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 0 0 2px 2px;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .editor-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto;
    overflow-y: auto;
  }
  .editor-panel--center { min-height: 220px; }
  .editor-panel--right { max-height: 300px; }
}

@media (max-width: 768px) {
  #view-dashboard { flex-direction: column; }

  .dashboard-sidebar {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%; height: 60px;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 2px solid #0a0a0a;
    padding: 0 16px;
    overflow: hidden;
    z-index: 200;
  }

  .sidebar-logo { border-bottom: none; padding: 0; }
  .sidebar-nav  { display: none; }
  .sidebar-user { border-top: none; padding: 0; margin-left: auto; }
  .user-info    { display: none; }
  #user-name, #user-email { display: none; }

  .dashboard-main { margin-left: 0; padding-top: 60px; }
  .dashboard-topbar { padding: 16px; }
  .dashboard-content { padding: 16px; }
  #job-grid { grid-template-columns: 1fr 1fr; }
  .login-card { padding: 40px 28px; }
  .editor-topbar { padding: 10px 16px; }
  .editor-job-name { max-width: 150px; }
  .form-row { grid-template-columns: 1fr; }
  #toast-container { bottom: 16px; right: 16px; left: 16px; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  #job-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 20px; border-radius: var(--radius-lg); }
}

/* ══════════════════════════════════════════════���═══════════════════════════
   ONBOARDING — Welcome splash & Driver.js tour overrides
   ══════��═════════════════════���═════════════════════════════════════════════ */

/* ── Welcome Splash ──────────────────────────────────────────────────────── */
.welcome-splash-card {
  max-width: 440px;
  padding: 48px 40px 36px;
  text-align: center;
}

.welcome-splash-icon {
  margin-bottom: 20px;
}

.welcome-splash-icon img {
  width: 64px; height: 64px;
  border-radius: 14px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.welcome-splash-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0a0a0a;
  margin-bottom: 16px;
}

.welcome-splash-body {
  font-size: 15px;
  color: #525252;
  line-height: 1.7;
  margin-bottom: 20px;
}

.welcome-splash-support {
  font-size: 13px;
  color: #a3a3a3;
  margin-bottom: 28px;
}

.welcome-splash-support a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: none;
}

.welcome-splash-support a:hover {
  text-decoration: underline;
}

.welcome-splash-btn {
  font-size: 15px;
  padding: 12px 36px;
  box-shadow: var(--shadow-md);
}

/* ── Driver.js Tour Overrides ────────────────────────────────────────────── */
.driver-popover.vbc-tour-popover {
  font-family: var(--font);
  border: 2px solid #0a0a0a;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #0a0a0a;
  padding: 0;
  max-width: 340px;
}

.driver-popover.vbc-tour-popover .driver-popover-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0a0a0a;
  padding: 16px 20px 4px;
}

.driver-popover.vbc-tour-popover .driver-popover-description {
  font-size: 13px;
  color: #525252;
  line-height: 1.65;
  padding: 4px 20px 16px;
}

.driver-popover.vbc-tour-popover .driver-popover-progress-text {
  font-size: 11px;
  color: #a3a3a3;
  font-weight: 600;
}

.driver-popover.vbc-tour-popover .driver-popover-footer {
  padding: 0 20px 16px;
}

.driver-popover.vbc-tour-popover .driver-popover-navigation-btns button {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  padding: 6px 16px;
  border: 2px solid #0a0a0a;
  cursor: pointer;
  transition: all 0.12s;
}

.driver-popover.vbc-tour-popover .driver-popover-prev-btn {
  background: #ffffff;
  color: #0a0a0a;
}

.driver-popover.vbc-tour-popover .driver-popover-prev-btn:hover {
  background: #f5f5f5;
}

.driver-popover.vbc-tour-popover .driver-popover-next-btn {
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
}

.driver-popover.vbc-tour-popover .driver-popover-next-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

/* ── Contact Modal ───────────────────────────────────────────────────────── */
.contact-modal-card {
  max-width: 460px;
  padding: 28px 32px;
}

.contact-modal-sub {
  font-size: 14px;
  color: #525252;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-modal-card .form-group {
  margin-bottom: 14px;
}

.contact-modal-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0a0a0a;
  margin-bottom: 5px;
}

.contact-modal-card .form-input {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #d4d4d4;
  border-radius: 3px;
  font-size: 14px;
  transition: border-color 0.15s;
}

.contact-modal-card .form-input:focus {
  outline: none;
  border-color: #0a0a0a;
}

.contact-modal-card textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.contact-modal-card .form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* ── Auth Modal ────────────────────────────────────────────────────────── */

.auth-modal-card {
  max-width: 400px;
  width: 92%;
  padding: 32px 28px 24px;
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.auth-modal-header .modal-close-btn {
  position: absolute;
  top: -8px;
  right: -8px;
}

.auth-modal-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25);
}

.auth-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #dadce0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
}

.auth-google-btn:hover {
  background: #f7f8f8;
  border-color: #c6c9cc;
}

.auth-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #999;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

#auth-email-form .form-group {
  margin-bottom: 14px;
}

#auth-email-form .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

#auth-email-form .form-input {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  color: var(--text);
  transition: border-color 0.15s;
  box-sizing: border-box;
}

#auth-email-form .form-input:focus {
  border-color: #0a0a0a;
  background: #fff;
  outline: none;
}

.auth-error {
  background: #fff0f0;
  color: #cc3333;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ffcccc;
  margin-bottom: 14px;
}

.auth-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: #0a0a0a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 2px 2px 0 #0a0a0a;
}

.auth-submit-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #0a0a0a;
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 13px;
}

.auth-footer-sep {
  color: #ccc;
}

.auth-link-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.15s;
}

.auth-link-btn:hover {
  color: #0a0a0a;
  text-decoration-color: #0a0a0a;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Landing-page playground (#try-it) — embeds the real editor look in-page
   ═══════════════════════════════════════════════════════════════════════════ */

.lp-tryit { padding-top: 64px; padding-bottom: 32px; background: #ffffff; }
.lp-tryit .lp-overline,
.lp-tryit .lp-section-title,
.lp-tryit .lp-section-sub { text-align: center; }
.lp-tryit .lp-section-sub { max-width: 720px; margin-left: auto; margin-right: auto; }

.lp-playground-frame {
  position: relative;
  margin: 32px auto 0;
  max-width: 1100px;
  height: 640px;
  border: 2px solid #0a0a0a;
  border-radius: 6px;
  box-shadow: 6px 6px 0 #0a0a0a;
  overflow: hidden;
  background: #ffffff;
}

/* Force the editor to fit the frame instead of full viewport */
.lp-playground-frame .pg-editor-layout { height: 100%; }

/* Slimmer topbar — no back button, just title + demo tag */
.lp-playground-frame .pg-editor-topbar {
  padding: 8px 16px;
  background: #0a0a0a;
}

.pg-editor-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Inline status badge in topbar (light variant) */
.lp-playground-frame .editor-job-status.status-done {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.2);
}

/* Slightly tighter grid inside the frame */
.lp-playground-frame .pg-editor-body { grid-template-columns: 1fr 280px 320px; }

/* Video sized to its frame */
.lp-playground-frame .pg-video {
  width: 100%;
  height: 100%;
  max-height: none;
  background: #000;
  object-fit: contain;
}

/* Hide the in-frame time display (we use the native controls instead) */
.lp-playground-frame .video-time-display { display: none; }

/* Clip card style row + mini swatch (playground-only) */
.pg-clip-style-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 6px;
  flex-wrap: wrap;
}
.pg-clip-style-row .btn-sm { flex: 0 0 auto; }
.pg-style-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid #d4d4d4;
}
.pg-style-name {
  font-size: 11px;
  color: #525252;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Style picker modal — sized for the marketing grid (10 cards) */
.pg-style-modal-card {
  max-width: 720px;
  width: 92vw;
  padding: 20px;
}
.pg-style-modal-card .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pg-style-modal-card .modal-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Fallback */
.pg-fallback {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255,255,255,0.95);
  text-align: center;
  padding: 40px;
  color: #525252;
}

/* Footer hint under the playground */
.lp-tryit-foot {
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #525252;
}

/* ── Tablet / mobile ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-playground-frame {
    height: auto;
    box-shadow: 4px 4px 0 #0a0a0a;
  }
  .lp-playground-frame .pg-editor-body {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .lp-playground-frame .editor-panel {
    border-right: none;
    border-bottom: 2px solid #0a0a0a;
  }
  .lp-playground-frame .editor-panel--right { border-bottom: none; }
  .lp-playground-frame .editor-panel--left  { max-height: 280px; }
  .lp-playground-frame .editor-panel--center { min-height: 240px; }
  .lp-playground-frame .editor-panel--right { max-height: 360px; }
  .pg-editor-tag { display: none; }
}

@media (max-width: 600px) {
  .lp-playground-frame { border-width: 1px; box-shadow: 3px 3px 0 #0a0a0a; }
  .lp-playground-frame .editor-job-name { font-size: 12px; max-width: 60vw; }
  .lp-tryit { padding-top: 48px; }
}

/* ─── Pricing Modal (Upgrade flow) ─────────────────────────────────────────── */

.pricing-modal-box {
  max-width: 920px;
}

.pricing-modal-sub {
  font-size: 14px;
  color: #555;
  margin: 4px 0 20px;
  line-height: 1.5;
}

.pricing-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.pricing-modal-plan {
  position: relative;
  border: 2px solid #0a0a0a;
  border-radius: 12px;
  padding: 18px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-modal-plan--popular {
  background: #0a0a0a;
  color: #fff;
}

.pricing-modal-plan--popular .lp-check {
  filter: invert(1);
}

.pricing-modal-plan--current {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

.pricing-modal-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-modal-plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-modal-plan-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.pricing-modal-plan-price span {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.7;
  margin-left: 2px;
}

.pricing-modal-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.35;
  flex: 1;
}

.pricing-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.pricing-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid #0a0a0a;
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.pricing-modal-cta:hover { transform: translateY(-1px); }
.pricing-modal-cta:disabled { opacity: 0.55; cursor: default; transform: none; }

.pricing-modal-cta--popular {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pricing-modal-cta--current {
  background: #f3f3f3;
  color: #555;
}

.pricing-modal-footnote {
  font-size: 12px;
  color: #777;
  text-align: center;
  margin: 4px 0 0;
}

.pricing-modal-footnote a {
  color: var(--primary);
  text-decoration: none;
}

@media (max-width: 880px) {
  .pricing-modal-box { max-width: 560px; }
  .pricing-modal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .pricing-modal-grid { grid-template-columns: 1fr; }
}

/* ─── Review Modal (post-first-render) ────────────────────────────────────── */

.review-modal-card {
  max-width: 440px;
  text-align: center;
}

.review-modal-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 8px;
}

.review-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
}

.review-modal-body {
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  margin: 0 0 20px;
}

.review-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.review-modal-actions .btn-primary,
.review-modal-actions .btn-secondary {
  flex: 1;
  justify-content: center;
}

/* ── Auth-spinner logo: airy pastel glow that drifts through hues ──────── */
@keyframes auth-spinner-glow {
  0%   { box-shadow: 0 0 28px 6px rgba(255, 196, 224, 0.55), 0 0 56px 14px rgba(196, 220, 255, 0.32); }
  25%  { box-shadow: 0 0 28px 6px rgba(218, 200, 255, 0.55), 0 0 56px 14px rgba(255, 220, 198, 0.32); }
  50%  { box-shadow: 0 0 28px 6px rgba(196, 234, 220, 0.55), 0 0 56px 14px rgba(255, 232, 200, 0.32); }
  75%  { box-shadow: 0 0 28px 6px rgba(255, 230, 200, 0.55), 0 0 56px 14px rgba(214, 200, 255, 0.32); }
  100% { box-shadow: 0 0 28px 6px rgba(255, 196, 224, 0.55), 0 0 56px 14px rgba(196, 220, 255, 0.32); }
}

.auth-spinner-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
  animation: auth-spinner-glow 7s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner-logo { animation: none; box-shadow: 0 0 28px 6px rgba(218, 200, 255, 0.45); }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE PASS — landing page polish (hamburger nav, playground video swap,
   tighter typography, editor block card). Anything app-wide already lives
   above; this section is scoped to phone-sized viewports.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Hamburger nav (hidden on desktop) ─────────────────────────────────── */
.lp-nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.lp-nav-hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #0a0a0a;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.lp-nav--open .lp-nav-hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-nav--open .lp-nav-hamburger-bar:nth-child(2) { opacity: 0; }
.lp-nav--open .lp-nav-hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile-only video demo (replaces 3-panel playground) ──────────────── */
.lp-tryit-mobile { display: none; }

.lp-tryit-mobile-video {
  width: 100%;
  max-width: 100%;
  border: 2px solid #0a0a0a;
  border-radius: 10px;
  box-shadow: 4px 4px 0 #0a0a0a;
  background: #000;
  display: block;
}

.lp-tryit-mobile-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #525252;
  text-align: center;
}

/* ── Editor mobile block card ──────────────────────────────────────────── */
.editor-mobile-block {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #fafafa;
}

.editor-mobile-block-card {
  max-width: 360px;
  background: #fff;
  border: 2px solid #0a0a0a;
  border-radius: 14px;
  box-shadow: 5px 5px 0 #0a0a0a;
  padding: 32px 24px;
  text-align: center;
}

.editor-mobile-block-card svg { display: block; margin: 0 auto 12px; }

.editor-mobile-block-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.editor-mobile-block-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #444;
  margin: 0 0 20px;
}

.editor-mobile-block-card .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ── Phone breakpoint — landing nav, hero, sections, FAB ────────────────── */
@media (max-width: 768px) {

  /* Nav: collapse to hamburger + dropdown */
  .lp-nav { padding: 0 16px; }
  .lp-nav-inner { height: 56px; }
  .lp-nav-hamburger { display: inline-flex; }

  .lp-nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-bottom: 2px solid #0a0a0a;
    padding: 8px 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .lp-nav--open .lp-nav-actions { display: flex; }

  .lp-nav-actions .lp-nav-link {
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid #eee;
    color: #0a0a0a;
  }
  .lp-nav-actions .lp-nav-link:last-of-type { border-bottom: 0; }
  .lp-nav-actions .lp-btn-primary {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 14px;
  }

  /* Section padding: 96px is too much on a phone */
  .lp-section { padding: 56px 0; }
  .lp-section-inner { padding-left: 20px; padding-right: 20px; }

  .lp-section-sub { font-size: 15px; margin-bottom: 32px; }

  /* Hero: tighten copy and make CTAs full-width */
  .lp-hero-subtitle { font-size: 15px; margin-bottom: 28px; }
  .lp-hero-actions { gap: 10px; margin-bottom: 32px; }
  .lp-hero-actions .lp-btn-primary,
  .lp-hero-actions .lp-btn-secondary { width: 100%; justify-content: center; }

  /* Contact FAB: smaller and out of the way of thumbs */
  #vbc-fab-contact {
    bottom: 14px !important;
    right: 14px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
}

/* ── Below 900px: swap playground frame for mobile video demo ──────────── */
@media (max-width: 900px) {
  .lp-playground-frame { display: none !important; }
  .lp-tryit-mobile { display: block; }
  .lp-tryit-foot { display: none; }
}
