/* ============================================
   CREATE v2 — Split hero with mode toggle
   Based on /design/MakeThisVid.html "split + toggle" variant.
   Reuses tokens from variables.css (ETP design system).
   ============================================ */

.c2 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 120px;
  position: relative;
  z-index: 1;
}

/* ---------- Header row ---------- */
.c2-head {
  text-align: center;
  margin-bottom: 36px;
}
.c2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--tone-violet-50);
  color: var(--tone-violet-700);
  border: 1px solid color-mix(in srgb, var(--tone-violet) 18%, transparent);
  border-radius: var(--r-pill, 9999px);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  margin-bottom: 20px;
}
.c2-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tone-violet);
  animation: c2Pulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes c2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.c2-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 12px;
  color: var(--text);
  text-wrap: balance;
}
.c2-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--tone-violet) 0%, var(--tone-violet-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.c2-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- Split body ---------- */
.c2-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .c2 { padding: 32px 20px 100px; }
  .c2-split { grid-template-columns: 1fr; gap: 32px; }
  .c2-head { margin-bottom: 24px; }
}

.c2-left, .c2-right { min-width: 0; }

/* ---------- Mode toggle pill ---------- */
/* Layout-only overrides — chrome delegated to .mtv-segmented in mtv.css */
.c2-mode-toggle {
  /* inherits all toggle chrome from .mtv-segmented */
  margin-bottom: 16px;
}
/* Alias: JS still toggles .active on .c2-mode-btn — forward to shared class */
.c2-mode-btn.active { color: var(--text); }

/* ---------- Prompt card ---------- */
.c2-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg, 20px);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.c2-card::before {
  content: ""; position: absolute; top: -1px; left: 22px; right: 22px; height: 2px;
  background: linear-gradient(90deg, var(--tone-violet), transparent);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.c2-card.is-focused::before { opacity: 1; }
.c2-card.is-focused {
  border-color: color-mix(in srgb, var(--tone-violet) 35%, transparent);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet);
}
.c2-card.is-dragging {
  border-color: var(--tone-violet);
  background: var(--tone-violet-50);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}

.c2-card-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ---------- Photo attachment strip (inside card, photo mode) ---------- */
.c2-attach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md, 14px);
  margin-bottom: 14px;
}
.c2-attach[hidden] { display: none; }
.c2-attach-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-sm, 10px);
  object-fit: cover;
  background: var(--bg-secondary);
  border: 1px solid var(--hairline);
}
.c2-attach-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.c2-attach-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  font-family: var(--font-mono, ui-monospace, monospace);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c2-attach-meta {
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono, ui-monospace, monospace);
  margin-top: 2px;
}
.c2-attach-remove {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.c2-attach-remove:hover {
  border-color: var(--tone-rose, #FB7185);
  color: var(--tone-rose-700, #B91D40);
  background: var(--tone-rose-50, #FFE6EA);
}

/* ---------- Dropzone (photo mode, empty state) ---------- */
.c2-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md, 14px);
  background: var(--bg-subtle);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 14px;
}
.c2-drop[hidden] { display: none; }
.c2-drop:hover {
  border-color: color-mix(in srgb, var(--tone-violet) 50%, transparent);
  background: color-mix(in srgb, var(--tone-violet) 4%, var(--bg-subtle));
}
.c2-drop-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: var(--r-sm, 10px);
  background: var(--card);
  border: 1px solid var(--hairline);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
}
.c2-drop-copy {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
  min-width: 0;
}
.c2-drop-copy strong { color: var(--text); font-weight: 600; }
.c2-drop-copy span { color: var(--text-muted); font-size: 12px; }
.c2-drop-pick {
  padding: 8px 14px;
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-pill, 9999px);
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.c2-drop-pick:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---------- Prompt textarea ---------- */
.c2-prompt {
  width: 100%;
  min-height: 108px;
  padding: 2px 0 0;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 16px;
  line-height: 1.5;
  background: transparent;
  border: none;
  resize: none;
  color: var(--text);
}
.c2-prompt:focus { outline: none; }
.c2-prompt::placeholder { color: var(--text-dimmed, rgba(26,26,46,0.38)); }

/* ---------- Samples (below card) ---------- */
.c2-samples {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
/* CSS display: flex overrides HTML hidden (see CLAUDE.md pitfall). Motion
   chips are hidden by default and revealed on prompt focus / photo upload. */
.c2-samples[hidden] { display: none; }
.c2-sample {
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill, 9999px);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.c2-sample:hover {
  border-color: color-mix(in srgb, var(--tone-violet) 35%, transparent);
  background: var(--tone-violet-50);
  color: var(--tone-violet-700);
  transform: translateY(-1px);
}

/* ---------- Settings row ---------- */
.c2-settings {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.c2-seg {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.05));
  border-radius: var(--r-pill, 9999px);
  padding: 3px;
  gap: 2px;
}
.c2-seg-opt {
  padding: 6px 12px;
  background: none;
  border: none;
  border-radius: var(--r-pill, 9999px);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.c2-seg-opt:hover { color: var(--text); }
.c2-seg-opt.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Generate row ---------- */
.c2-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.c2-cost {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-mono, ui-monospace, monospace);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c2-cost .num {
  color: var(--tone-violet-700);
  font-weight: 700;
}
.c2-generate {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill, 9999px);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
  letter-spacing: 0.005em;
}
.c2-generate:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}
.c2-generate:disabled { opacity: 0.5; cursor: not-allowed; }
.c2-generate kbd {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  padding: 2px 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 4px;
  font-weight: 500;
}

/* ---------- Right: preview frame ---------- */
.c2-frame {
  background: #0c0d14;
  border-radius: var(--r-xl, 28px);
  padding: 10px 10px 0;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.30),
    0 12px 24px -10px rgba(0,0,0,0.20);
  border: 1px solid rgba(0,0,0,0.20);
}
.c2-frame-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  font-family: var(--font-mono, ui-monospace, monospace);
}
.c2-dot { width: 10px; height: 10px; border-radius: 50%; }
.c2-dot.red { background: #ff5f57; }
.c2-dot.yellow { background: #febc2e; }
.c2-dot.green { background: #28c840; }
.c2-frame-title { margin-left: 8px; }

.c2-stage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #000;
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  isolation: isolate;
}
.c2-stage[data-aspect="9:16"] {
  aspect-ratio: 9 / 16;
  /* 9:16 wants to be tall — but on a half-width column it blows past the
     viewport. Cap vertical extent and let width shrink to fit. */
  max-height: clamp(420px, 70vh, 640px);
  width: auto;
  margin-inline: auto;
}
.c2-stage[data-aspect="16:9"] { aspect-ratio: 16 / 9; }

/* Ambient backgrounds that show when idle */
.c2-stage-bg {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.c2-stage-bg.active { opacity: 1; }
.c2-stage-bg-text {
  background:
    radial-gradient(circle at 30% 40%, rgba(167,139,252,0.7), transparent 60%),
    linear-gradient(135deg, #1a1a2e 0%, #6b4fa0 60%, #ff9a8b 100%);
}
.c2-stage-bg-photo {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 220, 180, 0.35), transparent 50%),
    linear-gradient(180deg, #f8b195 0%, #c06c84 40%, #355c7d 100%);
}
.c2-stage-bg-photo::before {
  content: ""; position: absolute; inset: 25% 30%;
  background: radial-gradient(ellipse at center, rgba(40,25,15,0.55), rgba(40,25,15,0.15) 55%, transparent 75%);
  border-radius: 50%;
}

/* Scanline animation (idle flavor) */
.c2-stage-scan {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: c2Scan 3.2s linear infinite;
  pointer-events: none; z-index: 2;
}
@keyframes c2Scan { 0% { top: -2px; } 100% { top: 102%; } }

/* Grain */
.c2-stage::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}

.c2-stage-chip {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
}
.c2-stage-chip[hidden] { display: none; }
.c2-stage-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7C5CFC; box-shadow: 0 0 8px #7C5CFC;
}
.c2-stage-chip-dot.live {
  background: #ff5e62;
  box-shadow: 0 0 8px #ff5e62;
  animation: c2Pulse 1.2s ease-in-out infinite;
}

.c2-stage-status {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  display: none;
  align-items: center; gap: 8px;
  padding: 7px 13px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill, 9999px);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
}
.c2-stage-status.visible { display: inline-flex; }
.c2-stage-status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tone-violet, #7C5CFC);
  animation: c2Pulse 1.2s infinite;
}

.c2-stage-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  z-index: 3;
  display: none;
}
.c2-stage-video.visible { display: block; }

.c2-stage-teaser {
  position: absolute; inset: 0;
  display: none;
  background:
    radial-gradient(circle at 30% 40%, rgba(124, 92, 252, 0.6), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(255, 107, 157, 0.4), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(52, 211, 153, 0.3), transparent 45%),
    linear-gradient(135deg, #1a1a2e 0%, #2d1b5a 100%);
  animation: c2Drift 8s ease-in-out infinite;
  z-index: 2;
}
.c2-stage-teaser.visible { display: block; }
@keyframes c2Drift {
  0%, 100% { transform: scale(1) rotate(0deg); filter: hue-rotate(0deg); }
  50% { transform: scale(1.15) rotate(2deg); filter: hue-rotate(20deg); }
}

.c2-frame-meta {
  display: flex; justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.c2-live {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff5e62;
}
.c2-live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff5e62;
  animation: c2Pulse 1.2s ease-in-out infinite;
}

/* ---------- Progress stepper (below frame, shown during gen) ---------- */
.c2-stepper {
  margin-top: 20px;
  display: flex;
  gap: 6px;
}
.c2-stepper[hidden] { display: none; }
.c2-step { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.c2-step-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
  position: relative;
}
.c2-step.active .c2-step-bar { background: color-mix(in srgb, var(--tone-violet) 18%, transparent); }
.c2-step.done .c2-step-bar { background: var(--tone-violet); }
.c2-step.active .c2-step-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 40%;
  background: var(--tone-violet);
  border-radius: 2px;
  animation: c2Indeterminate 1.8s ease-in-out infinite;
}
@keyframes c2Indeterminate {
  0% { left: -40%; }
  100% { left: 100%; }
}
.c2-step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dimmed, rgba(26,26,46,0.38));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.c2-step.active .c2-step-label,
.c2-step.done .c2-step-label { color: var(--text); }

/* ---------- Result toolbar (replaces generate row post-success) ---------- */
.c2-result-bar {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.c2-result-bar[hidden] { display: none; }
.c2-toolbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--r-pill, 9999px);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.c2-toolbtn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.c2-toolbtn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
}
.c2-toolbtn.primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}

/* ---------- Inline error ---------- */
.c2-err {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--tone-rose-50, #FFE6EA);
  border: 1px solid color-mix(in srgb, var(--tone-rose, #FB7185) 25%, transparent);
  border-radius: var(--r-md, 14px);
  color: var(--tone-rose-700, #B91D40);
  font-size: 13.5px;
  line-height: 1.45;
}
.c2-err[hidden] { display: none; }

/* ---------- Meta / helper text under card ---------- */
.c2-helper {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Auth card (reused) ---------- */
.c2-auth {
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl, 28px);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.c2-auth-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.c2-auth-sub {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0 0 20px;
  line-height: 1.5;
}
.c2-auth-form { display: flex; flex-direction: column; gap: 10px; }
.c2-input {
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
  background: var(--bg-subtle);
  color: var(--text);
}
.c2-input:focus {
  outline: none;
  border-color: var(--tone-violet);
  background: var(--card);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone-violet) 15%, transparent);
}
.c2-auth-submit {
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill, 9999px);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet);
}
.c2-auth-submit:hover {
  transform: translateY(-1px);
  background: var(--primary-hover);
  box-shadow: var(--shadow-lg), var(--shadow-tonal-violet-lg);
}
.c2-auth-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 1.2em;
}
.c2-auth-status.is-success { color: var(--tone-emerald-700, #047857); }
.c2-auth-status.is-error { color: var(--tone-rose-700, #B91D40); }

/* ---------- Mobile keyboard handling ----------
   When iOS Safari opens the keyboard, body.keyboard-open is toggled by JS
   and --keyboard-inset is set to the keyboard's height. On narrow screens
   we hide the right-side preview frame so the composer fills the viewport,
   and pad the foot row above the keyboard so the Generate button stays
   tappable. */
@media (max-width: 880px) {
  body.keyboard-open .c2-right { display: none; }
  body.keyboard-open .c2-foot {
    padding-bottom: calc(12px + var(--keyboard-inset, 0px));
    transition: padding-bottom 200ms var(--ease-standard, cubic-bezier(0.4, 0, 0.2, 1));
  }
}

/* ============================================================== */
/* v2 (2026-05-20) — simplified anonymous composer.
   Adds: numbered step headers, hero example, secondary examples row,
   "More options" disclosure, "no photo? text" link, trust line. */

/* Step numbering — small eyebrow above each composer block */
.c2-step-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 18px 0 8px;
}
.c2-step-num:first-child { margin-top: 0; }

/* "No photo? Start from text instead." */
.c2-drop-skip {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}
.c2-drop-skip a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.c2-drop-skip a:hover { color: var(--primary); }

/* Trust line under primary CTA */
.c2-trust {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

/* More-options disclosure */
.c2-more {
  margin-top: 18px;
  border-top: 1px solid var(--hairline);
  padding-top: 14px;
}
.c2-more > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  list-style: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c2-more > summary::-webkit-details-marker { display: none; }
.c2-more > summary::before {
  content: "+";
  display: inline-block;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-weight: 600;
  color: var(--text-muted);
}
.c2-more[open] > summary::before { content: "−"; }
.c2-more > summary:hover { color: var(--text); }
.c2-more > .c2-settings { margin-top: 14px; }
.c2-more > .c2-helper { margin-top: 12px; font-size: 12px; }

/* Hero example layer (idle state on the stage). Sits on top of the
   gradient bgs but under #resultVideo. Toggled off by JS when the user
   either uploads a photo or kicks off a real generation. */
.c2-stage-example {
  position: absolute; inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: hidden;
  background: var(--bg-subtle);
  transition: opacity 0.25s ease;
}
.c2-stage-example.is-hidden { opacity: 0; pointer-events: none; }
.c2-stage-example-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.c2-stage-example-thumb {
  position: absolute;
  left: 14px;
  bottom: 38px;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.c2-stage-example-tag {
  position: absolute;
  left: 22px;
  bottom: 14px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Examples row under the hero — 3 secondary i2v pairs */
.c2-examples-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.c2-example-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.c2-example-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.c2-example-card-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.c2-example-card-thumb {
  position: absolute;
  left: 6px; bottom: 6px;
  width: 26px; height: 26px;
  object-fit: cover;
  border-radius: 5px;
  border: 1.5px solid rgba(255,255,255,0.9);
}

/* ---------- Post-purchase upgrade banner ----------
   Shown after a one-time pack claim completes on ?checkout=success&type=onetime.
   CRITICAL: the [hidden] companion rule below must stay — CSS display:flex
   would otherwise override the HTML hidden attribute (see CLAUDE.md pitfall). */
.c2-upsell-banner {
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, var(--tone-violet-50, #F3EEFF) 0%, #F0F9FF 100%);
  border: 1px solid color-mix(in srgb, var(--tone-violet) 25%, transparent);
  border-radius: var(--r-lg, 20px);
  padding: 16px 20px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}
.c2-upsell-banner[hidden] { display: none; }
.c2-upsell-banner-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  flex-wrap: wrap;
}
.c2-upsell-banner-text {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.c2-upsell-banner-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--tone-violet-700, #5B33C9);
}
.c2-upsell-banner-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.c2-upsell-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.c2-upsell-cta {
  padding: 9px 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-pill, 9999px);
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm), var(--shadow-tonal-violet);
}
.c2-upsell-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-tonal-violet-lg);
}
.c2-upsell-dismiss {
  padding: 6px 10px;
  font-family: inherit;
  font-size: 14px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill, 9999px);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}
.c2-upsell-dismiss:hover {
  border-color: var(--border);
  color: var(--text);
  background: var(--bg-subtle);
}
@media (max-width: 600px) {
  .c2-upsell-banner { padding: 14px 16px; }
  .c2-upsell-banner-inner { gap: 12px; }
  .c2-upsell-cta { padding: 8px 14px; font-size: 13px; }
}

/* Hide "Beta" badge on /create to stop weakening trust at point-of-sale */
.c2-wrap ~ .mtv-topbar .mtv-brand-beta,
.mtv-topbar:has(+ .c2 .c2-wrap) .mtv-brand-beta { display: none; }
/* Fallback: hide on body class set by app.js for browsers without :has */
body.is-create-v2 .mtv-brand-beta { display: none; }
