:root {
  --bg: #ffffff;
  --bg-hero: #f4f6fb;
  --bg-muted: #f4f6fa;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-soft: #eef0f5;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --blue: #0066ff;
  --blue-hover: #0052d6;
  --blue-soft: #eff6ff;
  --dark: #0b0f19;
  --success: #059669;
  --success-soft: #ecfdf5;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --radius-md: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: inherit; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--dark);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--dark);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-sub { font-size: 0.74rem; color: var(--text-subtle); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: #f1f5f9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-github:hover { border-color: #cbd5e1; background: #f8fafc; }

.star-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-nav-dark {
  border: none;
  background: var(--dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-nav-dark:hover { opacity: 0.88; }

/* ── Hero Band ──────────────────────────────────────────────────────────── */
.hero-band {
  background: linear-gradient(180deg, #f8fafd 0%, #eef2f8 100%);
  padding: 54px 24px 64px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-band h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 14px;
}

.hero-subtitle {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Segmented Image / Video Pill Toggle */
.studio-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.18s;
}

.tab-btn.active {
  background: var(--dark);
  color: #ffffff;
}

.tab-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
}

.tab-btn.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Hero Upload Stage with Tilted Art Cards */
.hero-stage {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.deco-card {
  position: absolute;
  top: -18px;
  width: 190px;
  height: 150px;
  border-radius: 14px;
  border: 5px solid #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  z-index: 1;
  pointer-events: none;
}

.deco-left {
  left: -128px;
  transform: rotate(-7deg);
  background: radial-gradient(circle at 30% 30%, #f9a8d4 0%, #93c5fd 48%, #c4b5fd 100%);
}

.deco-right {
  right: -136px;
  top: -24px;
  width: 210px;
  height: 165px;
  transform: rotate(7deg);
  background: radial-gradient(circle at 70% 35%, #fb7185 0%, #38bdf8 55%, #0f172a 100%);
}

.hero-upload-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.drop-zone {
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 56px 24px;
  text-align: center;
  background: #fcfdff;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--blue);
  background: #f5f9ff;
}

.drop-hint {
  margin-top: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.drop-meta {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Primary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s;
}

.btn-blue-cta, .btn-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.24);
}

.btn-blue-cta:hover, .btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: #ffffff;
}

.btn-success:hover { background: #047857; }

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: #f8fafc; }

.btn-dark-pill {
  border: none;
  background: var(--dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-dark-pill:hover { opacity: 0.88; }

/* Workspace Cards (Results, Config, Progress, Batch) */
.workspace-card, .card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px auto 0;
  max-width: 880px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.card-header h2 { font-size: 1.15rem; font-weight: 700; }

.video-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-muted);
}

/* Compat Banner */
.compat-banner {
  max-width: 880px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid var(--border);
  text-align: left;
}

.compat-banner.compat-ok { background: var(--success-soft); border-color: #a7f3d0; color: #065f46; }
.compat-banner.compat-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.compat-banner.compat-err { background: var(--danger-soft); border-color: #fecaca; color: #991b1b; }

/* Before/After Slider */
.compare-wrapper {
  position: relative;
  width: 100%;
  max-height: 520px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.compare-wrapper img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.compare-before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--blue);
  pointer-events: none;
}

.compare-range { width: 100%; margin-top: 12px; accent-color: var(--blue); cursor: ew-resize; }
.compare-labels { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-subtle); margin-top: 4px; }

/* ── 3 Laurel Trust Badges ──────────────────────────────────────────────── */
.section-white { background: #ffffff; }

.trust-section { padding: 48px 0; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #1e293b;
}

.laurel { color: #94a3b8; flex-shrink: 0; }
.laurel-r { transform: scaleX(-1); }

.trust-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: #334155;
}

/* ── Pixel-Accurate Showcase ────────────────────────────────────────────── */
.showcase-section { padding: 36px 0 76px; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.showcase-visual {
  background: #eef3fb;
  border-radius: 22px;
  padding: 28px;
}

.window-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sample-art {
  position: relative;
  height: 150px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 55% 48%, rgba(56, 189, 248, 0.9) 0%, rgba(16, 185, 129, 0.55) 30%, rgba(30, 41, 59, 0.95) 75%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.sample-sparkle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5));
}

.sample-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
}

.caption-muted { color: var(--text-subtle); font-weight: 500; }

.caption-ok {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--success);
}

.showcase-copy h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.showcase-copy p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

/* ── How-To Steps Band ──────────────────────────────────────────────────── */
.steps-band {
  background: var(--bg-muted);
  padding: 68px 0;
}

.section-title-center {
  text-align: center;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 34px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.step-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ── Toolkit 3x3 Grid ───────────────────────────────────────────────────── */
.toolkit-section { padding: 72px 0; }

.section-head-center {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head-center h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin-bottom: 10px;
}

.section-head-center p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 28px;
}

.toolkit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.toolkit-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f5f9;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toolkit-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.toolkit-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Workflow Split Band ────────────────────────────────────────────────── */
.workflow-band {
  background: #fafbfe;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 64px 0;
}

.workflow-split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  align-items: center;
}

.workflow-intro h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.workflow-intro p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.workflow-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.workflow-link:hover { text-decoration: underline; }

.workflow-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.mini-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.mini-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.mini-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.mini-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-band { padding: 76px 0; }

.faq-split {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.faq-left h2 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.faq-row { border-bottom: 1px solid var(--border-soft); }

.faq-trigger {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.16s, opacity 0.16s;
}

.faq-row.is-open .faq-toggle-icon {
  background: var(--dark);
  color: #ffffff;
}

.faq-row.is-open .faq-toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-panel {
  display: none;
  padding-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.faq-row.is-open .faq-panel { display: block; }
.faq-panel a { color: var(--blue); font-weight: 600; }

/* ── Bottom Gradient CTA Banner ─────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(180deg, #0a1935 0%, #1d4e89 65%, #8ec5fc 100%);
  color: #ffffff;
  text-align: center;
  padding: 76px 24px 84px;
}

.cta-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.cta-buttons {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-cta-white {
  border: none;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 10px;
  cursor: pointer;
}

.btn-cta-glass {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  padding: 24px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 4px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); }

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── AdSense CLS-Safe Container ─────────────────────────────────────────── */
.ad-slot {
  min-height: 90px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  font-size: 0.78rem;
}

/* ── Video Config / ROI / Progress / Batch / Editorial Subpages ─────────── */
.main-container { max-width: 980px; margin: 0 auto; padding: 32px 24px 64px; }
.section-block { margin-bottom: 24px; }
.block-title { display: block; font-size: 0.94rem; font-weight: 700; margin-bottom: 10px; }

.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.mode-card {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
}
.mode-card.selected { background: var(--blue-soft); border-color: var(--blue); }
.mode-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--blue); }
.mode-tag { font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; }
.mode-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.mode-card p { font-size: 0.82rem; color: var(--text-muted); }

.roi-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.roi-help { font-size: 0.82rem; color: var(--text-subtle); }
.roi-controls, .mode-pills, .upscale-options { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-pill, .option-pill {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-pill.active, .btn-pill.selected, .option-pill.selected {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue);
}
.option-pill input { display: none; }

.canvas-wrapper { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; justify-content: center; }
.canvas-container { position: relative; display: inline-block; max-width: 100%; }
.canvas-container img { display: block; max-width: 100%; max-height: 460px; border-radius: 8px; }
.canvas-container canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.coords-bar { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-subtle); }

.spinner { width: 32px; height: 32px; border: 3px solid #e2e8f0; border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.progress-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.progress-subtext { font-size: 0.84rem; color: var(--text-subtle); }
.progress-bar-container { width: 100%; height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.progress-bar { height: 100%; background: var(--blue); transition: width 0.25s ease; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat-card { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.stat-label { display: block; font-size: 0.72rem; color: var(--text-subtle); }
.stat-value { font-family: 'JetBrains Mono', monospace; font-size: 0.96rem; font-weight: 700; }

.video-player-wrapper { background: #0f172a; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.video-player-wrapper video { display: block; width: 100%; max-height: 480px; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.batch-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.batch-subtext { font-size: 0.84rem; color: var(--text-subtle); }
.batch-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.batch-count-badge { font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.batch-settings-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; }
.batch-settings-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.batch-list { display: flex; flex-direction: column; gap: 10px; }
.batch-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; }
.batch-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.batch-item-name { font-weight: 700; font-size: 0.9rem; }
.batch-item-meta { font-size: 0.78rem; color: var(--text-subtle); }
.batch-item-status { font-size: 0.78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #f1f5f9; color: var(--text-muted); }
.batch-item-status.done { background: var(--success-soft); color: var(--success); }
.batch-item-status.processing { background: var(--blue-soft); color: var(--blue); }
.batch-item-status.error { background: var(--danger-soft); color: var(--danger); }

.editorial-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.editorial-page h2 { font-size: 1.25rem; font-weight: 700; margin: 22px 0 8px; }
.editorial-page p, .editorial-page li { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 10px; }
.editorial-page ul { padding-left: 20px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .deco-card { display: none; }
  .trust-grid, .showcase-grid, .steps-grid, .toolkit-grid, .workflow-split, .workflow-cards, .faq-split {
    grid-template-columns: 1fr;
  }
  .showcase-grid { gap: 28px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .header-inner { padding: 10px 16px; gap: 8px; }
  .brand { font-size: 0.88rem; gap: 7px; }
  .brand-mark { width: 25px; height: 25px; }
  .btn-github { padding: 5px 9px; font-size: 0.75rem; }
  .btn-nav-dark { display: none; }

  .hero-band { padding: 34px 16px 44px; }
  .hero-band h1 { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.9rem; margin-bottom: 20px; }
  .studio-tabs { max-width: 100%; }
  .tab-btn { padding: 7px 13px; font-size: 0.82rem; }
  .hero-upload-card { padding: 14px; border-radius: 18px; }
  .drop-zone { padding: 36px 16px; }

  .workspace-card, .card { padding: 18px 16px; margin-top: 18px; }
  .card-header, .batch-header, .roi-header { flex-direction: column; align-items: flex-start; }
  .batch-actions { width: 100%; }
  .batch-actions .btn, .result-actions .btn { flex: 1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .trust-section { padding: 34px 0; }
  .showcase-section { padding: 20px 0 48px; }
  .showcase-visual { padding: 16px; }
  .window-panels { grid-template-columns: 1fr; }
  .showcase-copy h2, .section-title-center, .section-head-center h2, .faq-left h2 { font-size: 1.55rem; }

  .steps-band, .toolkit-section, .workflow-band, .faq-band { padding: 46px 0; }
  .cta-band { padding: 54px 16px 60px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Zarc Trim Studio Extensions ────────────────────────────────────────── */
.url-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.url-input {
  flex: 1;
  min-width: 220px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}

.url-input:focus { border-color: var(--blue); }

.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.yt-embed-wrap iframe { width: 100%; height: 100%; border: 0; }

.trim-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.time-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.time-box label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.time-row { display: flex; align-items: center; gap: 10px; }

.time-input {
  width: 96px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  background: #ffffff;
}

.time-range { flex: 1; accent-color: var(--blue); cursor: pointer; }

.cmd-box {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  overflow-x: auto;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cmd-box code { white-space: nowrap; }

.rpc-status {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.os-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #f8fafc;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s, background 0.15s;
}

.os-card.is-detected { background: var(--blue-soft); border-color: var(--blue); }
.os-card:hover { border-color: var(--blue); }
.os-card strong { font-size: 0.9rem; color: var(--text); }
.os-card span { font-size: 0.76rem; color: var(--text-subtle); }

@media (max-width: 640px) {
  .trim-controls-grid { grid-template-columns: 1fr; }
  .os-grid { grid-template-columns: repeat(2, 1fr); }
}
