/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --bg:            #120c16;
  --surface:       #1b1220;
  --card:          #221729;
  --card-hover:    #2b1e34;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --primary:       #ff5d8f;
  --primary-dark:  #e83572;
  --primary-glow:  rgba(255,93,143,0.28);
  --accent:        #ffb347;
  --accent-glow:   rgba(255,179,71,0.22);
  --danger:        #f97316;

  --text:          #f9f4f7;
  --text-muted:    #b7a8c2;
  --text-subtle:   #6e5d78;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);

  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
fieldset { border: none; }

/* ============================================================
   Typography
   ============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ============================================================
   Layout
   ============================================================ */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-medium { max-width: 860px;  margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 680px;  margin: 0 auto; padding: 0 24px; }

.section { padding: 56px 0; }

.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin-bottom: 12px; }
.section-subtitle { font-size: 1.0625rem; max-width: 540px; margin: 0 auto; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(18, 12, 22, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

/* Pre-beta notice — thin bar pinned under the fixed .nav (64px tall), so it
   stays visible while scrolling. Non-dismissible on purpose: it exists to
   stop someone from hitting a dead checkout button and assuming the site is
   broken, so it shouldn't be easy to lose track of. Remove this whole block
   (plus the .has-pre-beta-banner hooks) once real Stripe payments are live. */
.pre-beta-banner {
  position: fixed; top: 64px; left: 0; right: 0;
  z-index: 99;
  background: rgba(255, 179, 71, 0.12);
  border-bottom: 1px solid rgba(255, 179, 71, 0.35);
  color: var(--text);
  font-size: 0.8125rem;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}
.pre-beta-banner strong { color: var(--accent); }

body.has-pre-beta-banner .hero { padding-top: 116px; }
@media (max-width: 768px) {
  body.has-pre-beta-banner .hero { padding-top: 112px; }
  .pre-beta-banner { font-size: 0.75rem; padding: 8px 12px; }
}

/* Pre-beta welcome modal — shown once per browser via localStorage, mirrors
   the cookie-consent notice's dismissal pattern but as a centered dialog
   since it's meant to be read before someone goes looking for a paid plan. */
.pre-beta-modal-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(9, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pre-beta-modal {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  padding: 28px;
  text-align: left;
}
.pre-beta-modal h2 { font-size: 1.125rem; margin: 0 0 12px; }
.pre-beta-modal p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 20px; }
.pre-beta-modal a { color: var(--primary); }
.pre-beta-modal .btn { width: 100%; }

.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.logo-mark {
  color: var(--primary);
  font-size: 1rem;
}

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 0.9rem; font-weight: 500;
}
.nav-links a:not(.btn) { color: var(--text-muted); transition: color var(--transition); }
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Language switcher — CSS-only dropdown (no client-side JS needed), same
   hover/focus-reveal pattern as .info-tooltip elsewhere in this file. */
.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}
.lang-switcher-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 30;
}
.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-switcher-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.lang-switcher-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem; font-weight: 600;
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 0 0 0 var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: transparent;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); }

.btn-sm  { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }
.btn-xl  { padding: 15px 32px; font-size: 1.0625rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn-arrow { transition: transform var(--transition); }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 72px 0 32px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.18;
  animation: pulse 6s ease-in-out infinite;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary), transparent);
  top: -200px; left: calc(50% - 400px);
  animation-delay: 0s;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -100px; right: calc(50% - 400px);
  animation-delay: 3s;
}
@keyframes pulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50%       { opacity: 0.28; transform: scale(1.05); }
}

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

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 16px;
  background: rgba(255,255,255,0.03);
}

.hero h1 { max-width: 820px; margin: 0 auto 20px; }

.hero-subtitle {
  font-size: 1.125rem; max-width: 560px; margin: 0 auto 40px;
  color: var(--text-muted); line-height: 1.7;
}

.hero-cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 0.875rem; color: var(--text-muted);
}
.hero-stats strong { color: var(--text); }
.stat-divider { color: var(--text-subtle); }

/* Two-column layout: heading left, before/after demo right — used on the
   homepage hero only (other landing pages keep the single-column hero above) */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  text-align: left;
}
.hero-grid .hero-badge { margin-bottom: 18px; font-size: 0.8125rem; padding: 6px 15px; }
.hero-grid h1 { max-width: none; margin: 0 0 14px; font-size: clamp(2rem, 3.2vw, 2.75rem); }
.hero-grid .hero-subtitle { margin: 0; font-size: 1.1875rem; line-height: 1.6; }
.hero-right .comparison-wrapper { margin: 0; max-width: none; width: 100%; }

/* ============================================================
   Demo tabs — switch the before/after comparison between
   audience/use-case examples
   ============================================================ */
.demo-tabs {
  display: flex; flex-wrap: nowrap; gap: 14px;
  width: fit-content; max-width: 100%;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  font: inherit;
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap; flex: 0 0 auto;
  color: var(--text-subtle);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 8px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.demo-tab:hover { color: var(--text-muted); }
.demo-tab.active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

/* ============================================================
   Before / After Comparison
   ============================================================ */
.comparison-wrapper { max-width: 340px; margin: 0 auto; }

.comparison-container {
  position: relative;
  height: 310px; /* fixed — keeps hero height constant across demo tabs regardless of each gif's aspect ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  cursor: col-resize;
  user-select: none;
  /* Checkered pattern reveals transparency on the "after" side */
  background-image:
    linear-gradient(45deg, #2b1e34 25%, transparent 25%),
    linear-gradient(-45deg, #2b1e34 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2b1e34 75%),
    linear-gradient(-45deg, transparent 75%, #2b1e34 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #1b1220;
}

.comparison-before {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-after-clip {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  /* Checkered pattern for transparency */
  background-image:
    linear-gradient(45deg, #1e2940 25%, transparent 25%),
    linear-gradient(-45deg, #1e2940 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e2940 75%),
    linear-gradient(-45deg, transparent 75%, #1e2940 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #141c36;
}

.comparison-after {
  position: absolute;
  top: 0; left: 0;
  width: 340px; /* matches container width; overridden by JS to stay pixel-aligned with .comparison-before */
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.comparison-handle {
  position: absolute;
  top: 0; left: 50%;
  width: 24px; height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 4;
  display: flex; align-items: center; justify-content: center;
}

.handle-line {
  position: absolute;
  top: 0; left: 50%;
  width: 2px; height: 100%;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.handle-circle {
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a2e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  flex-shrink: 0;
  z-index: 1;
}

.comparison-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 10;
  cursor: col-resize;
  margin: 0; padding: 0;
  -webkit-appearance: none;
}

.comp-label {
  position: absolute;
  top: 14px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem; font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  pointer-events: none;
  z-index: 5;
}
.comp-label-left  { left: 14px; }
.comp-label-right { right: 14px; }

.comparison-caption { text-align: center; font-size: 0.75rem; margin-top: 8px; }

/* ============================================================
   Upload Section
   ============================================================ */
.upload-section {
  position: relative;
  padding-top: 8px;
  overflow: hidden;
  /* Continues the hero's warm glow (anchored above the section so only its
     fading tail shows) so the two sections read as one continuous band
     instead of a hard color seam */
  background-image:
    radial-gradient(ellipse 900px 480px at 26% -160px, rgba(255,93,143,0.07), transparent 70%),
    radial-gradient(ellipse 700px 420px at 76% -160px, rgba(255,179,71,0.055), transparent 70%);
  background-repeat: no-repeat;
}
.upload-section .container { position: relative; z-index: 1; }

.upload-section-caption {
  text-align: left;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.upload-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Drop zone */
.dropzone {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 36px 32px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  margin: 20px;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: var(--primary-glow);
}
.dropzone:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.dropzone.locked { cursor: not-allowed; opacity: 0.55; pointer-events: none; }
.file-queue.locked { opacity: 0.7; }
.file-queue.locked .file-card-remove { cursor: not-allowed; }

/* Constrained + centered so the text lines below the icon read as one tidy
   block instead of ragged full-width lines of very different length. */
.dropzone-content { pointer-events: none; max-width: 340px; margin: 0 auto; }

.dz-icon { color: var(--text-muted); margin: 0 auto 16px; width: 52px; height: 52px; transition: color var(--transition); }
.dropzone:hover .dz-icon { color: var(--primary); }

.dz-text { font-size: 1.0625rem; color: var(--text); margin-bottom: 14px; }

/* The "Choose File" button used to be the raw, unstyled native
   <input type="file"> — visible by default (only aria-hidden/tabindex were
   set, neither of which hides it visually), flush against the dropzone's
   left edge with no spacing of its own. It's now .sr-only (see fileInput)
   and this styled button, its own centered row under the heading, is the
   real, deliberate visual affordance. */
.dz-browse-btn { display: inline-block; pointer-events: none; margin-bottom: 14px; }

.dz-hint { font-size: 0.8125rem; color: var(--text-subtle); letter-spacing: 0.02em; }

/* File info */
.file-info {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  margin: 0 20px 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}
.file-info-icon { font-size: 1.75rem; flex-shrink: 0; }
.file-info-text { flex: 1; overflow: hidden; }
.file-info-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.file-info-text span { font-size: 0.8125rem; }

/* Prominent standalone CTA directly under the drop panel — previously
   "Process File" lived inside the options panel below a whole separate
   section, easy to miss as the actual next step. */
.remove-bg-btn {
  align-self: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  margin-top: 8px;
}

/* Surfaces what unlocking actually requires (email/card verification, or
   credits) before the click, not only after a wait + a watermarked preview
   — a user deciding whether to upload at all should see this, not discover
   it as a surprise once they've already invested the wait. */
.unlock-cost-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 6px;
}

/* Format row — always-visible GIF/APNG toggle below the Remove Background button */
.format-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.format-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.format-pills {
  display: flex;
  gap: 4px;
}
.format-pill {
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.format-pill:hover { border-color: var(--primary); color: var(--primary); }
.format-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.format-pill-rec {
  color: #fbbf24;
  font-size: 0.7rem;
}
.format-pill.active .format-pill-rec { color: #fde68a; }
.format-row-hint {
  font-size: 0.72rem;
  color: var(--text-subtle);
}
.format-row-hint.is-recommended {
  color: #a78bfa;
}

/* Options panel — collapsible <details>, lives in the narrow workspace-left
   column (not full container width anymore), collapsed by default so the
   "Remove Background" button reads as the obvious next step, not this. */
.options-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px 20px 18px;
  margin-top: 12px;
}
.options-panel[open] { padding-top: 16px; }
.options-summary {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.options-summary::-webkit-details-marker { display: none; }
.options-summary::after {
  content: '▾';
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  transition: transform var(--transition);
}
.options-panel[open] .options-summary::after { transform: rotate(180deg); }
.options-summary:hover { color: var(--text); }

.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}
.option-group { grid-column: span 1; min-width: 0; }
.option-group--wide { grid-column: span 2; min-width: 0; }

/* Horizontal sub-row inside a group (e.g. checkbox beside its slider) */
.option-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.option-group legend,
.option-label {
  display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text); margin-bottom: 6px;
}
.option-value { color: var(--primary); font-weight: 600; margin-left: 6px; }

/* Small info-icon tooltip — used to attach a hint to an option-label without
   taking up its own line of vertical space */
.info-tooltip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 0.6875rem; font-weight: 600; font-style: normal;
  color: var(--text-subtle);
  vertical-align: middle;
  margin-left: 4px;
  cursor: help;
  position: relative;
}
.info-tooltip:hover,
.info-tooltip:focus-visible {
  color: var(--text);
  border-color: var(--primary);
  outline: none;
}
.info-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 280px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 0.75rem; font-weight: 400; line-height: 1.5;
  text-align: left;
  padding: 8px 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition);
  pointer-events: none;
  z-index: 20;
}
.info-tooltip:hover::after,
.info-tooltip:focus-visible::after {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 480px) {
  .info-tooltip::after { left: 0; transform: none; }
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }

.radio-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.radio-opt:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.03); }
.radio-opt input { margin-top: 2px; accent-color: var(--primary); }
.radio-opt input:checked + .radio-label { color: var(--text); }

.radio-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-glow); }

.radio-label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; color: var(--text-muted); font-size: 0.9rem; }

.tag {
  font-size: 0.7rem; font-weight: 500; font-style: normal;
  color: var(--text-subtle); background: rgba(255,255,255,0.05);
  border-radius: 4px; padding: 2px 6px; display: inline-block; width: fit-content;
}

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  border-radius: 4px;
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--primary-dark);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--primary-dark);
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%; cursor: pointer; border: none;
}

.checkbox-opt {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.8125rem; color: var(--text-muted);
}
.checkbox-opt input { accent-color: var(--primary); width: 14px; height: 14px; }

/* Payment gate */
.paygate {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.paygate-icon { font-size: 2rem; margin-bottom: 12px; }
.paygate h3 { color: var(--text); margin-bottom: 8px; }
.paygate p { max-width: 400px; margin: 0 auto 24px; font-size: 0.9rem; }

.paygate-plans {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  max-width: 280px; margin: 0 auto 16px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  position: relative;
}
.plan-card-featured {
  border-color: var(--primary);
  background: var(--primary-glow);
}

.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary-dark); color: white;
  font-size: 0.6875rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px;
}
.plan-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.plan-price { font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan-desc { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 14px; }
.plan-desc p { font-size: 0.75rem; }

.paygate-notice { font-size: 0.8125rem; }

.expiry-notice {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-subtle);
  margin-bottom: 16px; justify-content: center;
}

/* ============================================================
   Pricing section
   ============================================================ */
/* Free sits alone in its own compact row; the 3 paid tiers share a row below */
.pricing-free-row {
  display: flex; justify-content: center;
  margin: 0 auto 18px;
  max-width: 960px;
}

.pricing-group { max-width: 960px; margin: 0 auto; }
.pricing-group + .pricing-group { margin-top: 36px; }

.pricing-group-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 960px; margin: 0 auto;
}

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  position: relative;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.pricing-card-featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(255,93,143,0.08), var(--card));
}

.featured-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}

.tier-note { font-size: 0.8125rem; color: var(--text-subtle); margin: 4px 0 14px; }
.tier-per-file { font-size: 0.8125rem; font-weight: 700; color: var(--accent); margin: 0 0 4px; }
.tier-billed-note { font-size: 0.75rem; color: var(--text-subtle); margin: 0 0 8px; }

.tier-name  { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 8px; }
.tier-price { font-size: 2.5rem; font-weight: 800; color: var(--text); margin-bottom: 4px; line-height: 1; }
.tier-period { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

.tier-features {
  flex: 1 1 auto;
  margin: 14px 0 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.9rem; color: var(--text-muted);
}
.tier-features li { display: flex; align-items: center; gap: 8px; }
.tier-features span { color: var(--accent); font-weight: 700; }

/* Compact, wide Free card — banner layout instead of a tall stacked card */
.pricing-card-compact {
  width: 100%;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 18px 28px;
}
.pricing-card-compact .pricing-compact-info { flex-shrink: 0; }
.pricing-card-compact .tier-name  { margin-bottom: 2px; }
.pricing-card-compact .tier-price { font-size: 1.75rem; margin-bottom: 0; }
.pricing-card-compact .tier-features {
  flex: 1 1 320px;
  flex-direction: column;
  margin: 0; gap: 8px;
}
.pricing-card-compact .btn { flex-shrink: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: rgba(255,255,255,0.01); }

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--border-strong); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; margin: 0;
  padding: 16px 20px;
  font: inherit; font-size: 0.95rem; font-weight: 500; color: var(--text);
  text-align: left; cursor: pointer;
}
.faq-question:hover { color: var(--primary); }

.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }

.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  margin: 0; padding: 0 20px 18px;
  font-size: 0.9rem; line-height: 1.65; color: var(--text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1.125rem; margin-bottom: 12px;
}

.footer-tagline { font-size: 0.9375rem; margin-bottom: 8px; }
.footer-legal   { font-size: 0.8125rem; color: var(--text-subtle); margin-bottom: 24px; }

.footer-links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  row-gap: 10px; column-gap: 20px;
  max-width: 760px; margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}
.footer-links a { color: var(--text-muted); transition: color var(--transition); white-space: nowrap; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .footer-links { column-gap: 14px; row-gap: 8px; }
}

/* ============================================================
   Utilities
   ============================================================ */
[hidden] { display: none !important; }

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

/* ============================================================
   File queue (batch upload)
   ============================================================ */
.file-queue { padding: 16px 20px 4px; }

.file-queue-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.file-queue-count { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }

.file-cards { display: flex; flex-direction: column; gap: 8px; }

.file-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.file-card:hover { border-color: var(--border-strong); }

.file-card-icon { font-size: 1.25rem; flex-shrink: 0; }
.file-card-name {
  flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.875rem; color: var(--text);
}
.file-card-dims { font-size: 0.8125rem; color: var(--text-subtle); flex-shrink: 0; }
.file-card-size { font-size: 0.8125rem; color: var(--text-subtle); flex-shrink: 0; }
.file-card-remove {
  background: none; border: none; color: var(--text-subtle); cursor: pointer;
  padding: 4px; border-radius: 4px; font-size: 1.1rem; line-height: 1;
  transition: color var(--transition);
}
.file-card-remove:hover { color: #f97316; }

/* ============================================================
   Canvas / scale options
   ============================================================ */
.canvas-presets {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-bottom: 12px;
}
.canvas-presets .canvas-opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  text-align: center; height: 100%;
}

.canvas-opt {
  cursor: pointer;
}
.canvas-opt input { display: none; }
.canvas-opt span {
  display: inline-block;
  padding: 6px 4px;
  font-size: 0.75rem; font-weight: 500;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
}
.canvas-opt:hover span { border-color: var(--primary); color: var(--text); }
.canvas-opt input:checked + span {
  border-color: var(--primary);
  background: var(--primary-glow);
  color: var(--text);
}
.canvas-opt input:disabled { cursor: not-allowed; }
.canvas-opt input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}
.canvas-opt:has(input:disabled) { cursor: not-allowed; }
.canvas-opt:has(input:disabled):hover span { border-color: var(--border-strong); color: var(--text-muted); }

.canvas-custom { display: flex; flex-direction: column; gap: 8px; }
.canvas-inputs {
  display: flex; align-items: center; gap: 8px;
}
.canvas-inputs input[type="number"] {
  width: 80px; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text); font-size: 0.875rem;
  outline: none;
}
.canvas-inputs input[type="number"]:focus { border-color: var(--primary); }
.canvas-inputs span { color: var(--text-muted); font-size: 0.875rem; }

.anchor-opts { display: flex; gap: 8px; margin-top: 8px; }
.sub-label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 6px; }

/* Crop padding sub-group — sits beside the checkbox in .option-row, not below it */
.crop-padding { display: flex; flex-direction: column; min-width: 200px; }
.crop-padding input[type="range"] { width: 160px; }

/* Canvas size <select> (replaces old radio pills) */
.canvas-select {
  width: 220px; max-width: 100%; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); color: var(--text); font-size: 0.8125rem;
  outline: none; cursor: pointer;
}
.canvas-select:focus { border-color: var(--primary); }

/* Background color picker (pre-processing option) */
.bg-color-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bg-swatch-transparent {
  background-image:
    linear-gradient(45deg, #94a3b8 25%, transparent 25%),
    linear-gradient(-45deg, #94a3b8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #94a3b8 75%),
    linear-gradient(-45deg, transparent 75%, #94a3b8 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  background-color: #e2e8f0;
}

/* ============================================================
   Workspace — side-by-side upload (left) + live preview (right)
   ============================================================ */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.workspace-left, .workspace-right { display: flex; flex-direction: column; }
/* Not flex:1 — the dropzone/file-queue should stay content-sized so the
   "Remove Background" button sits right after it, not pushed down by
   .upload-card stretching to match the (usually taller) preview column. */
.upload-card { display: flex; flex-direction: column; }

.preview-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  min-height: 260px;
  flex: 1;
  display: flex; flex-direction: column;
}

.preview-placeholder {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px;
  padding: 28px 20px;
  color: var(--text-muted);
}
.preview-placeholder-icon { color: var(--text-subtle); margin-bottom: 10px; }
.preview-placeholder p { margin: 0; }
.preview-placeholder strong { color: var(--text); font-weight: 600; }
.preview-placeholder .btn { margin-top: 14px; }

.btn:disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
  transform: none; box-shadow: none;
}

#previewMeta { margin-bottom: 16px; }

.preview-list.results-grid { margin-bottom: 0; }

/* ============================================================
   Results (batch) — cards are reused for both the queued/processing
   state and the done state inside #previewList (see workspace below)
   ============================================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.result-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition);
}
.result-card:hover { border-color: var(--border-strong); }

.result-card-preview {
  flex: 1;
  min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  /* Checkered background */
  background-image:
    linear-gradient(45deg, #1e2940 25%, transparent 25%),
    linear-gradient(-45deg, #1e2940 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1e2940 75%),
    linear-gradient(-45deg, transparent 75%, #1e2940 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: #141c36;
  padding: 12px;
}
.result-card-preview img,
.result-card-preview video {
  max-width: 100%; max-height: 200px;
  border-radius: calc(var(--radius-xl) - 4px);
  display: block; margin: 0 auto;
}
.result-card-preview .result-pending {
  color: var(--text-subtle); font-size: 0.875rem; text-align: center;
  padding: 24px;
}

/* Sparse-frame filmstrip preview (split-pass jobs) — fixed 3-per-row grid so
   each still is large enough to actually judge the removal quality, instead
   of the old 48px thumbs that left most of the card's empty space unused. */
.result-card-preview-wrap { width: 100%; }
.result-card-preview-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.result-card-preview-filmstrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.result-card-preview-filmstrip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 0;
  display: block;
}

.result-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.result-card-name {
  font-size: 0.8125rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.result-card-meta {
  font-size: 0.75rem; color: var(--text-subtle);
}
.result-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-card-info {
  font-size: 0.75rem; color: var(--text-subtle); line-height: 1.5;
}
.result-card-info:empty { display: none; }

/* Custom background (image/gif/video) add-on panel — see ensureBgPanel in
   public/js/app.js. Kept deliberately minimal (no tabs/swatches/fit picker)
   compared to the removed pre-redesign version. */
.bg-panel {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.bg-panel-drop {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.bg-panel-drop:hover { border-color: var(--primary); color: var(--text); }
.bg-panel-status {
  font-size: 0.75rem; color: var(--text-subtle);
}
.bg-panel-status:empty { display: none; }
.bg-panel-result { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bg-panel-result img {
  max-width: 100%; max-height: 160px;
  border-radius: var(--radius-sm);
}

/* Email-capture soft gate (free download unlock) */
.email-gate-form {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; width: 100%;
}
.email-gate-input {
  flex: 1; min-width: 160px; padding: 6px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.8125rem;
}
.email-gate-input:focus { outline: none; border-color: var(--primary); }

/* Free-tier unlock funnel — batch-level wrapper mirrors a card's footer */
.unlock-panel { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* Progressively-disclosed secondary panel (email/card verification) shown
   only after tapping the locked download button */
.unlock-options {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border);
}
.unlock-options .email-gate-form { width: auto; flex: 1 1 220px; }

/* Background color picker (pre-processing options panel — the only
   background-color control; see BG_SWATCHES in app.js) */
.bg-swatches {
  display: flex; gap: 6px; flex-wrap: nowrap;
}
.bg-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}
.bg-swatch:hover { transform: scale(1.15); }
.bg-swatch.active { border-color: var(--primary); }
.bg-hex-row {
  display: flex; gap: 6px; align-items: center;
  flex: 1 1 auto; min-width: 120px;
}
.bg-hex-row input[type="color"] {
  width: 32px; height: 32px; padding: 0; border: none;
  background: none; cursor: pointer; border-radius: var(--radius-sm);
}
.bg-hex-input {
  flex: 1; padding: 5px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.75rem; font-family: monospace;
}
.bg-hex-input:focus { outline: none; border-color: var(--primary); }

/* Batch download strip */
.batch-download-wrap { margin-bottom: 24px; }
.batch-divider {
  height: 1px; background: var(--border);
  margin-bottom: 24px;
}


/* ============================================================
   Game Exports Demo
   ============================================================ */
.game-exports-section { background: var(--surface); }

.game-exports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.game-export-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-export-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,93,143,0.12);
  border: 1px solid rgba(255,93,143,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  align-self: flex-start;
}

.game-export-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

.game-export-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.game-export-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.spritesheet-display {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: repeating-conic-gradient(#2a2a3a 0% 25%, #1e1e2e 0% 50%) 0 0 / 16px 16px;
  margin-top: 4px;
}

.spritesheet-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}

.travel-table-code {
  background: #0d0d14;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #a5b4fc;
  overflow-x: auto;
  margin: 4px 0 0;
  flex: 1;
}

.travel-table-code code {
  color: inherit;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

@media (max-width: 768px) {
  .game-exports-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Why RemoveGifBG — animated-first competitive section
   ============================================================ */
.why-section { background: var(--surface); }

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.why-card-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
.why-card-link:hover { text-decoration: underline; }

.why-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.why-card-content { flex: 1 1 auto; min-width: 0; }

/* Static (non-interactive) before/after split — a lighter-weight sibling of
   .comparison-container for the "why" cards; uses clip-path instead of a
   JS-measured clip width, so no slider/JS wiring is needed per card.
   object-fit: cover — fills the box edge-to-edge (no letterbox checker
   padding). Re-checked 2026-07-18 against all 6 source images at the current
   120x176 box: center-crop keeps every subject's head/body fully readable,
   so cover no longer loses subjects the way an earlier attempt did. */
.why-card-demo {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 176px;
  border-radius: var(--radius);
  overflow: hidden;
  background-image:
    linear-gradient(45deg, #2b1e34 25%, transparent 25%),
    linear-gradient(-45deg, #2b1e34 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #2b1e34 75%),
    linear-gradient(-45deg, transparent 75%, #2b1e34 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  background-color: #1b1220;
}
.why-card-demo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* "after" is the full-width base layer (its transparency reveals the
   checker pattern on .why-card-demo behind it); "before" stacks on top but
   is clipped to the left half, so the right half shows the removal result
   instead of the original opaque photo bleeding through. */
.why-card-demo-before { clip-path: inset(0 50% 0 0); }
.why-card-demo-divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.85);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  transform: translateX(-50%);
}

.why-card-highlight {
  border-color: rgba(255,93,143,0.45);
  background: linear-gradient(135deg, rgba(255,93,143,0.06) 0%, var(--card) 100%);
}

.why-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,93,143,0.12);
  border: 1px solid rgba(255,93,143,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.why-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 12px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.why-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Competitor comparison table — styled to match .why-card so the section reads as one system */
.comp-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 8px;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.comp-table-note {
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin: 12px 0 0;
  text-align: left;
}

.comp-table-heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(255,93,143,0.12);
  border: 1px solid rgba(255,93,143,0.25);
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 18px;
}

/* Comparison table — fluid (fr) column widths, no fixed px + overflow-x
   scroll. A scrollable table just means the user never scrolls and sees a
   cut-off column instead; fr units always sum to the container's exact
   width, so columns compress proportionally and text wraps instead. */
.comp-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.comp-row {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, 1fr) 1.1fr;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child { border-bottom: none; }

.comp-cell {
  padding: 14px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.comp-header {
  background: var(--surface);
}

.comp-header .comp-cell {
  font-weight: 600;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.comp-feat {
  color: var(--text);
  font-weight: 500;
  text-align: left;
  background: var(--card);
  border-right: 1px solid var(--border);
}

.comp-header .comp-feat { background: var(--surface); }
.comp-price-row .comp-feat { background: var(--surface); }

.comp-them {
  color: var(--text-muted);
  text-align: center;
}
.comp-them a { transition: color var(--transition); }
.comp-them a:hover { color: var(--text); text-decoration: underline; }

.comp-us {
  background: rgba(255,93,143,0.06);
  color: var(--primary);
  font-weight: 600;
  text-align: center;
}

.comp-price-row {
  background: var(--surface);
}

.comp-price-row .comp-feat {
  font-weight: 700;
}

@media (max-width: 768px) {
  .why-cards { grid-template-columns: 1fr; }
  .why-card { flex-direction: column; }
  .why-card-demo { width: 100%; height: 160px; }
  .comp-row { grid-template-columns: 1fr repeat(6, 0.85fr) 1fr; }
  .comp-cell { padding: 10px 6px; font-size: 0.6875rem; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 64px 0 24px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 12px; }
  .section { padding: 40px 0; }
  .section-header { margin-bottom: 28px; }
  .comparison-wrapper { padding: 0 16px; }
  .comparison-after { width: 100%; }
  .upload-card { border-radius: var(--radius-lg); }
  .dropzone { padding: 40px 20px; margin: 12px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .pricing-card-compact { flex-direction: column; align-items: stretch; text-align: center; max-width: 360px; }
  .pricing-card-compact .tier-features { flex-direction: column; align-items: center; }
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  .hero-stats .stat-divider { display: none; }
  .hero-stats { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
}

/* ============================================================
   Cookie consent notice — top-right (below the fixed .nav, which is 64px
   tall), shown once on first real product interaction (see
   maybeShowCookieConsent in app.js), dismissed permanently via localStorage.
   Deliberately NOT bottom-right: the toast container (showToast in app.js)
   is fixed at bottom:24px/right:24px/z-index:9999, one pixel-for-pixel
   corner and one z-index away from where this used to sit at
   bottom:20px/right:20px/z-index:9998 — any toast still visible when this
   banner fired rendered on top of it, and the same corner is also where
   the download-unlock panel's own explanatory copy lands. Moving this
   banner to a different screen zone entirely (rather than nudging pixels
   within the same corner) rules out that whole class of collision instead
   of just moving it around.
   ============================================================ */
.cookie-consent {
  position: fixed;
  right: 20px; top: 80px;
  z-index: 9998;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  animation: cookieSlideIn 0.25s ease;
}
.cookie-consent p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; margin: 0; }
.cookie-consent a { color: var(--primary); text-decoration: underline; }
.cookie-consent .btn { align-self: flex-end; }
@keyframes cookieSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .cookie-consent { left: 12px; right: 12px; top: 76px; max-width: none; }
}
