/* ============================================================
   SITEBRAND design system — mobile-first, premium SaaS feel
   ============================================================ */
:root {
  --bg: #0b0e14;
  --bg-soft: #11151d;
  --bg-card: #151b26;
  --bg-card-2: #1a2230;
  --border: #232c3d;
  --border-soft: #1b2331;
  --text: #eef2f8;
  --text-dim: #a7b2c5;
  --text-faint: #6b7690;
  --accent: #5B74FF;
  --accent-2: #2F4BFF;
  --accent-grad: linear-gradient(135deg, #5B74FF 0%, #2F4BFF 100%);
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --maxw: 1120px;
  --maxw-read: 760px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
::selection { background: rgba(91, 116, 255, .35); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-read { max-width: var(--maxw-read); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 20, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.main-nav { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: var(--text-dim); font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.main-nav a.active { color: var(--text); background: var(--bg-card-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 10px 16px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }
}

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.12; letter-spacing: -.03em; margin: 0 0 14px;
  font-weight: 800;
}
.hero h1 .grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { color: var(--text-dim); font-size: clamp(1rem, 2.4vw, 1.2rem); max-width: 640px; margin: 0 auto 8px; }
.privacy-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 16px; border-radius: 999px;
  background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35);
  color: var(--success); font-size: .88rem; font-weight: 600;
}

/* ---------- tool ---------- */
.tool-shell {
  max-width: 880px; margin: 26px auto 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); overflow: hidden;
}
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  margin: 22px; padding: 52px 20px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-soft);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: rgba(91, 116, 255, .06); }
.dropzone:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dropzone .dz-icon { font-size: 2.4rem; margin-bottom: 10px; }
.dropzone h2 { margin: 0 0 6px; font-size: 1.25rem; }
.dropzone p { margin: 0; color: var(--text-dim); font-size: .94rem; }
.dz-formats { margin-top: 12px !important; font-size: .8rem !important; color: var(--text-faint) !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent-grad); color: #fff; border: none; cursor: pointer;
  font-weight: 700; font-size: 1rem; padding: 14px 28px; border-radius: 12px;
  transition: transform .12s, box-shadow .12s, filter .12s;
  box-shadow: 0 8px 24px rgba(91, 116, 255, .35);
}
.btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  box-shadow: none; font-weight: 600;
}
.btn-ghost:hover { background: var(--bg-card-2); filter: none; }
.btn-sm { padding: 9px 18px; font-size: .9rem; border-radius: 9px; }

.tool-status { margin: 0 22px 22px; }
.status-line {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 14px 16px; font-size: .93rem; color: var(--text-dim);
}
.status-line .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-faint); flex: none; }
.status-line.working .dot { background: var(--accent); animation: pulse 1.1s infinite; }
.status-line.done .dot { background: var(--success); }
.status-line.error .dot { background: var(--danger); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.progress-track { height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; width: 0%; background: var(--accent-grad); border-radius: 99px; transition: width .25s; }
.progress-note { font-size: .8rem; color: var(--text-faint); margin-top: 8px; }

.stage { display: none; margin: 0 22px 22px; }
.stage.visible { display: block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .compare { grid-template-columns: 1fr; } }
.pane {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.pane-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); padding: 10px 14px; border-bottom: 1px solid var(--border-soft);
}
.pane canvas, .pane img { width: 100%; display: block; }
.checker {
  background-image:
    linear-gradient(45deg, #202634 25%, transparent 25%),
    linear-gradient(-45deg, #202634 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #202634 75%),
    linear-gradient(-45deg, transparent 75%, #202634 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
  background-color: #161c28;
}
.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.processing-note { font-size: .85rem; color: var(--text-faint); margin-top: 12px; }
.local-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--success);
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .3);
  padding: 5px 12px; border-radius: 999px; margin-top: 10px;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- content sections ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.02em; margin: 0 0 10px; }
.section .sub { color: var(--text-dim); max-width: 640px; margin: 0 0 28px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .93rem; }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent-grad);
  color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--text-dim); font-size: .94rem; }

.faq details {
  background: var(--bg-card); border: 1px solid var(--border-soft);
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 20px 18px; color: var(--text-dim); font-size: .95rem; }

/* ---------- article typography ---------- */
.article { padding: 40px 0 64px; }
.article h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); letter-spacing: -.025em; line-height: 1.15; margin: 0 0 12px; }
.article .article-lede { color: var(--text-dim); font-size: 1.1rem; margin: 0 0 30px; }
.article h2 { font-size: 1.5rem; margin: 38px 0 12px; letter-spacing: -.015em; }
.article h3 { font-size: 1.15rem; margin: 26px 0 8px; }
.article p, .article li { color: #c9d2e2; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .92rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-scroll table { margin: 0; min-width: 620px; }
.article th, .article td { text-align: left; padding: 10px 12px; border: 1px solid var(--border-soft); }
.article th { background: var(--bg-card); font-weight: 700; }
.article td { color: var(--text-dim); }
.article blockquote {
  border-left: 3px solid var(--accent); margin: 20px 0; padding: 6px 0 6px 18px;
  color: var(--text-dim); font-style: italic;
}
.article code { font-family: var(--mono); font-size: .88em; background: var(--bg-card-2); padding: 2px 7px; border-radius: 6px; }
.article .toc { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.article .toc strong { display: block; margin-bottom: 8px; }
.article .toc ul { margin: 0; padding-left: 18px; }
.updated { font-size: .82rem; color: var(--text-faint); margin-bottom: 18px; }
.cta-box {
  background: linear-gradient(135deg, rgba(91,116,255,.14), rgba(47, 75, 255,.14));
  border: 1px solid rgba(91,116,255,.35); border-radius: 16px;
  padding: 28px; margin: 34px 0; text-align: center;
}
.cta-box h2, .cta-box h3 { margin-top: 0; }
.cta-box p { color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-soft); padding: 44px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--text-dim); font-size: .92rem; }
.footer-bottom { border-top: 1px solid var(--border-soft); padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--text-faint); }

/* ---------- misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.pill { font-size: .8rem; font-weight: 600; color: var(--text-dim); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; background: var(--bg-card); }
.kbd { font-family: var(--mono); background: var(--bg-card-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: .85em; }
.notice {
  border-radius: var(--radius-sm); padding: 14px 18px; margin: 18px 0; font-size: .93rem;
  background: rgba(91,116,255,.08); border: 1px solid rgba(91,116,255,.3); color: #c9d6f2;
}
.notice.warn { background: rgba(251,191,36,.07); border-color: rgba(251,191,36,.3); color: #f3dfae; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .site-header, .site-footer, .tool-shell, .cta-box { display: none; } body { background: #fff; color: #000; } }

/* ---------- P0-1: busy state ---------- */
.dropzone.busy { opacity: .55; cursor: wait; }
.dropzone.busy:hover, .dropzone.busy.dragover { border-color: var(--border); background: var(--bg-soft); }

/* ---------- P1: sample picker ---------- */
.sample-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 22px 0;
}
.sample-label { font-size: .88rem; color: var(--text-dim); }
.sample-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 6px; cursor: pointer; color: var(--text-dim);
  font-size: .72rem; font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.sample-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.sample-btn:disabled { opacity: .5; cursor: wait; transform: none; }
.sample-btn img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; display: block; }

/* ---------- P1/P2: result options (background colors, presets) ---------- */
.result-options {
  margin-top: 18px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius);
  display: grid; gap: 12px;
}
.opt-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.opt-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-faint); min-width: 110px;
}
.opt-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opt-btn.is-active { border-color: var(--accent); color: var(--accent); background: rgba(91,116,255,.08); }
.opt-custom {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text-dim); cursor: pointer;
  border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px;
}
.opt-custom input[type="color"] {
  width: 34px; height: 26px; padding: 0; border: 1px solid var(--border);
  border-radius: 6px; background: none; cursor: pointer;
}

/* ---------- P2: touch-up brush ---------- */
#brushToggle.is-on { border-color: var(--accent); color: var(--accent); }
.brush-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 12px; padding: 12px 16px;
  background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius);
}
.brush-bar[hidden] { display: none; }
.brush-size { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--text-dim); font-weight: 600; }
.brush-size input[type="range"] { width: 130px; accent-color: var(--accent); }
.brush-hint { font-size: .8rem; color: var(--text-faint); }
canvas.brushing { cursor: crosshair; touch-action: none; }

/* ---------- P1: before/after demo slider ---------- */
.demo { max-width: 880px; margin: 34px auto 0; padding: 0 22px; text-align: center; }
.demo h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 0 0 8px; }
.demo .sub { color: var(--text-dim); margin: 0 0 22px; }
.ba-slider {
  position: relative; max-width: 640px; margin: 0 auto;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  user-select: none; -webkit-user-select: none;
  background-color: #161c28;
  background-image:
    linear-gradient(45deg, #202634 25%, transparent 25%),
    linear-gradient(-45deg, #202634 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #202634 75%),
    linear-gradient(-45deg, transparent 75%, #202634 75%);
  background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0;
}
.ba-img { display: block; width: 100%; height: auto; pointer-events: none; }
.ba-before {
  position: absolute; top: 0; left: 0; bottom: 0; overflow: hidden;
  width: 50%; z-index: 1;
}
.ba-before .ba-img {
  position: absolute; top: 0; left: 0; height: 100%; width: auto; max-width: none;
}
.ba-slider > .ba-after { width: 100%; position: relative; z-index: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 2;
  pointer-events: none;
}
.ba-handle span {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
}
.ba-handle span::before {
  content: "◀ ▶"; font-size: .7rem; color: #333; letter-spacing: 2px;
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0; z-index: 3;
}
/* ---------- Seller Studio tab ---------- */
.studio-tabs {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin: 26px 0 0; position: relative; z-index: 1;
}
.studio-tab {
  appearance: none; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-dim); font: inherit; font-weight: 700; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; cursor: pointer; min-height: 48px;
  transition: border-color .15s, background .15s, color .15s;
}
.studio-tab:hover { color: var(--text); border-color: var(--accent); }
.studio-tab.is-active {
  color: #fff; border-color: var(--accent); background: rgba(91, 116, 255, .14);
  box-shadow: 0 8px 24px rgba(91, 116, 255, .22);
}
.studio-tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.tab-tag {
  font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--success); border: 1px solid rgba(52, 211, 153, .45);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px;
}
#panelRemove[hidden], #panelStudio[hidden] { display: none; }
#panelRemove .tool-shell { margin-top: 18px; }
#panelStudio .tool-shell { margin-top: 18px; }

.studio-shell { padding: 28px 22px; }
.studio-head h2 { margin: 0 0 6px; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -.02em; }
.studio-head p { margin: 0 0 22px; color: var(--text-dim); max-width: 620px; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .studio-grid { grid-template-columns: 1fr; } }

.studio-dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 36px 18px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-soft);
}
.studio-dropzone:hover, .studio-dropzone.dragover { border-color: var(--accent); background: rgba(91, 116, 255, .06); }
.studio-dropzone:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.studio-dropzone .dz-icon { font-size: 2.2rem; margin-bottom: 8px; }
.studio-dropzone h3 { margin: 0 0 6px; font-size: 1.1rem; }
.studio-dropzone p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.studio-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--text-faint); font-size: .82rem; }
.studio-or::before, .studio-or::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }
#useLastResult { width: 100%; }
#useLastResult:disabled { opacity: .45; }
.studio-status { min-height: 1.6em; font-size: .9rem; margin: 10px 0 0; color: var(--text-dim); }
.studio-status.working { color: var(--accent); }
.studio-status.done { color: var(--success); }
.studio-status.error { color: var(--danger); }

.scene-block { margin-top: 18px; }
.scene-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.scene-btn {
  background: var(--bg-soft); border: 2px solid var(--border-soft);
  border-radius: 12px; padding: 6px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  color: var(--text-dim); font: inherit; font-size: .78rem; font-weight: 600;
  min-width: 92px; min-height: 48px;
  transition: border-color .15s, color .15s, transform .15s;
}
.scene-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.scene-btn.is-active { border-color: var(--accent); color: var(--text); background: rgba(91, 116, 255, .08); }
.scene-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.scene-btn img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; display: block; }
.shadow-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font-size: .92rem; color: var(--text-dim); font-weight: 600; cursor: pointer; min-height: 44px;
}
.shadow-toggle input { width: 22px; height: 22px; accent-color: var(--accent); cursor: pointer; }

.studio-preview-wrap {
  background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
}
.studio-preview-wrap canvas { width: 100%; display: block; }
.studio-empty { padding: 70px 20px; text-align: center; color: var(--text-faint); font-size: .92rem; }
.studio-empty[hidden], #studioCanvas[hidden] { display: none; }

/* coming-soon cards */
.coming-soon-block { margin-top: 32px; border-top: 1px solid var(--border-soft); padding-top: 26px; }
.coming-soon-block h3 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.015em; }
.soon-sub { color: var(--text-dim); margin: 0 0 6px; font-size: .95rem; }
.soon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.soon-card {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 20px; background: rgba(91, 116, 255, .03);
}
.soon-card h4 { margin: 0 0 6px; font-size: 1.02rem; }
.soon-card > p { color: var(--text-dim); font-size: .9rem; margin: 0 0 14px; }
.soon-icon { font-size: 1.5rem; margin-bottom: 8px; }
/* One SVG icon set (2026-09-17): replaces emoji iconography. All icons share
   the same 24px stroke style; sizing below, color via currentColor. */
.icon svg, .soon-icon svg { width: 30px; height: 30px; color: var(--accent); display: block; }
.dz-icon svg { width: 52px; height: 52px; display: block; margin: 0 auto; }
.btn svg.ic, .studio-tab svg.ic, .privacy-badge svg.ic {
  width: 1.15em; height: 1.15em; vertical-align: -0.2em;
}
/* First-run download disclosure (2026-09-17): the ~44MB model fetch is
   gated behind explicit consent with a cellular-data warning. */
.consent-panel {
  margin-top: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(91, 116, 255, .07); border: 1px solid rgba(91, 116, 255, .35);
  text-align: left; max-width: 560px;
}
.consent-panel p { margin: 0 0 10px; font-size: .92rem; }
.consent-panel p:last-child { margin-bottom: 0; }
.consent-warn { color: #f3dfae; }
.consent-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.retry-row { margin-top: 12px; }
.waitlist { display: flex; gap: 8px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); padding: 10px 12px;
  font: inherit; font-size: .9rem; min-height: 44px;
}
.waitlist input[type="email"]:focus { border-color: var(--accent); outline: none; }
.waitlist-done { color: var(--success); font-size: .9rem; font-weight: 600; margin: 0; min-height: 44px; display: flex; align-items: center; }
.waitlist-done[hidden] { display: none; }
.waitlist-error { color: var(--danger); font-size: .9rem; font-weight: 600; margin: 8px 0 0; min-height: 44px; display: flex; align-items: center; }
.waitlist-error[hidden] { display: none; }
.waitlist-error a { color: var(--danger); }
.btn:disabled { opacity: .55; cursor: wait; }

/* contextual upsell on the main tab */
.upsell-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(91, 116, 255, .14), rgba(47, 75, 255, .14));
  border: 1px solid rgba(91, 116, 255, .4);
}
.upsell-banner[hidden] { display: none; }
.upsell-text strong { display: block; margin-bottom: 2px; }
.upsell-text span { color: var(--text-dim); font-size: .92rem; }
.upsell-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- P1: before/after demo slider labels (restored) ---------- */
.ba-labels {
  display: flex; justify-content: space-between; max-width: 640px;
  margin: 8px auto 0; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint);
}
