/* ============================================================
   AI Website Builder — page styles
   Matches the design language of creator-studio.css (Inter + Instrument
   Serif, indigo→purple primary, light/dark themable).
   ============================================================ */

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

:root {
  --bg: #ffffff;
  --bg-soft: #fafbff;
  --bg-card: #ffffff;
  --line: #e8eaf3;
  --line-2: #d8dbe8;
  --text: #0e1020;
  --text-2: #4a4f63;
  --muted: #7c8194;
  --muted-2: #a3a8bb;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-3: #a855f7;
  --grad-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --grad-purple-soft: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
  --shadow-card: 0 1px 2px rgba(15, 18, 36, 0.04), 0 1px 0 rgba(15, 18, 36, 0.03);
  --shadow-pop: 0 20px 50px -20px rgba(99, 102, 241, 0.45);
  --shadow-soft: 0 8px 30px -10px rgba(15, 18, 36, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --serif: 'Instrument Serif', Georgia, serif;
}

html[data-theme="dark"] {
  --bg: #0b0c14;
  --bg-soft: #0f111c;
  --bg-card: #14162280;
  --line: #21243a;
  --line-2: #2a2e48;
  --text: #f1f3ff;
  --text-2: #c2c6db;
  --muted: #8a8fa8;
  --muted-2: #5d6178;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ============== HERO ============== */
.wb-hero {
  position: relative;
  padding: 140px 0 70px;
  overflow: hidden;
  isolation: isolate;
}
.wb-hero-bg {
  position: absolute; inset: -10% -10% 0 -10%;
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(99,102,241,.18), transparent 70%),
    radial-gradient(50% 60% at 80% 30%, rgba(168,85,247,.18), transparent 70%),
    linear-gradient(180deg, #f4f6ff 0%, #ffffff 80%);
  z-index: -1;
}
html[data-theme="dark"] .wb-hero-bg {
  background:
    radial-gradient(60% 60% at 30% 20%, rgba(99,102,241,.30), transparent 70%),
    radial-gradient(50% 60% at 80% 30%, rgba(168,85,247,.25), transparent 70%),
    linear-gradient(180deg, #0f1124 0%, #0b0c14 80%);
}
.wb-hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.wb-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-2);
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}
.wb-pill-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
  animation: wbPulse 2s ease-in-out infinite;
}
@keyframes wbPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.wb-hero-title {
  font-size: clamp(34px, 5.8vw, 64px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 22px;
}
.wb-hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  max-width: 660px;
  margin: 0 auto 28px;
}
.wb-hero-trust {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-size: 13.5px; color: var(--muted);
}
.wb-hero-trust span { white-space: nowrap; }

/* ============== BUILDER ============== */
.wb-builder { padding: 50px 0 80px; }
.wb-h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin-bottom: 14px;
}
.wb-h2-sub { color: var(--muted); font-weight: 500; font-size: 14px; }
.wb-h2-center { text-align: center; margin-bottom: 30px; }

/* ============== PREMIUM FOUNDATION GRID ============== */
.wb-foundations { margin-bottom: 28px; }
.wb-foundations-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.wb-foundations-head .wb-h2 { margin-bottom: 0; }
.wb-foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.wb-foundation {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.wb-foundation:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 16px 40px -16px rgba(99,102,241,.4);
}
.wb-foundation.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 16px 40px -16px rgba(99,102,241,.55);
}
.wb-foundation-preview {
  height: 88px;
  position: relative;
  overflow: hidden;
}
.wb-foundation-preview::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.1) 100%);
}
.wb-foundation.is-active .wb-foundation-preview::before {
  content: '✓';
  position: absolute; top: 8px; right: 10px;
  width: 22px; height: 22px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px -2px rgba(99,102,241,.6);
}
.wb-foundation-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.wb-foundation-name {
  font-weight: 700; font-size: 14.5px; color: var(--text);
  letter-spacing: -0.005em;
}
.wb-foundation-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  flex: 1;
}
.wb-foundation-traits {
  display: flex; gap: 5px; flex-wrap: wrap;
  margin-top: 4px;
}
.wb-foundation-trait {
  font-size: 10.5px; font-weight: 600;
  padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.wb-foundation.is-active .wb-foundation-trait {
  background: rgba(99,102,241,.10);
  color: var(--primary);
}

/* When a foundation is active, the granular style/palette controls
   feel less important — dim them visually but keep them functional. */
.wb-form-card.is-foundation-locked .wb-grid > .wb-field:not(:has(textarea)):not(.wb-checks):not(.wb-patterns):not(.wb-pattern-knobs) {
  opacity: 0.6;
  pointer-events: none;
  transition: opacity .15s;
}
.wb-form-card.is-foundation-locked .wb-grid > .wb-field:not(:has(textarea)):not(.wb-checks):not(.wb-patterns):not(.wb-pattern-knobs)::after {
  content: 'controlled by foundation';
  position: absolute;
  font-size: 10.5px;
  color: var(--primary);
  background: rgba(99,102,241,.1);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: -2px;
}

/* Starter chips */
.wb-starters { margin-bottom: 32px; }
.wb-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.wb-chip {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.wb-chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-pop);
}
.wb-chip-emoji { font-size: 22px; line-height: 1; }
.wb-chip-name { font-weight: 600; font-size: 14px; color: var(--text); }
.wb-chip-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Form card */
.wb-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.wb-form-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.wb-form-head .wb-h2 { margin-bottom: 0; }
.wb-link {
  font-size: 13px; color: var(--muted); cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
}
.wb-link:hover { color: var(--text); background: var(--bg-soft); }

.wb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.wb-col-2 { grid-column: 1 / -1; }
.wb-field { display: flex; flex-direction: column; gap: 6px; }
.wb-label {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -0.005em;
}
.wb-label em {
  font-family: inherit; font-style: normal; font-weight: 400;
  color: var(--muted); font-size: 12.5px; margin-left: 4px;
}
.wb-field input[type="text"],
.wb-field textarea,
.wb-field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.wb-field input[type="text"]:focus,
.wb-field textarea:focus,
.wb-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.wb-field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }

.wb-checks { border: 1px dashed var(--line-2); border-radius: 12px; padding: 14px 16px; }
.wb-checks legend { padding: 0 8px; }
.wb-checks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 14px; margin-top: 10px;
}
.wb-checks-grid label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-2); cursor: pointer;
  padding: 4px 0;
}
.wb-checks-grid input { accent-color: var(--primary); }

/* Actions row */
.wb-actions {
  margin-top: 22px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.wb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
  white-space: nowrap;
}
.wb-btn-primary {
  background: var(--grad-purple); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(99,102,241,.55);
  padding: 13px 26px; font-size: 15px;
}
.wb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(99,102,241,.7); }
.wb-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.wb-btn-ghost {
  background: var(--bg); color: var(--text);
  border-color: var(--line-2);
}
.wb-btn-ghost:hover { border-color: var(--text); }
.wb-btn-icon { font-size: 16px; }
.wb-time-hint { color: var(--muted); font-size: 13px; }

/* ============== ADVANCED PATTERN PICKER ============== */
.wb-patterns {
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
}
.wb-patterns legend { padding: 0 8px; }
.wb-pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.wb-pattern-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.wb-pattern-opt:hover { border-color: var(--line-2); background: var(--bg-soft); }
.wb-pattern-opt input[type="radio"] { margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.wb-pattern-opt:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99,102,241,.06), transparent);
  box-shadow: 0 0 0 1px rgba(99,102,241,.2);
}
.wb-pattern-body { flex: 1; min-width: 0; }
.wb-pattern-name {
  font-weight: 600; font-size: 13.5px; color: var(--text);
  margin-bottom: 2px; line-height: 1.3;
}
.wb-pattern-desc {
  font-size: 12px; color: var(--muted); line-height: 1.45;
}

/* Pattern-specific knobs panel */
.wb-pattern-knobs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: -4px;
}
.wb-pattern-knobs[hidden] { display: none; }
.wb-pattern-knobs .wb-col-2 { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .wb-pattern-knobs { grid-template-columns: 1fr; }
}

/* ============== LOADING ============== */
.wb-loading {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: center;
}
.wb-loading-bar {
  width: 100%; height: 6px; border-radius: 999px;
  background: var(--bg-soft); overflow: hidden;
  margin-bottom: 14px;
}
.wb-loading-fill {
  width: 30%; height: 100%; border-radius: 999px;
  background: var(--grad-purple);
  animation: wbSlide 1.6s ease-in-out infinite;
}
@keyframes wbSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(180%); }
  100% { transform: translateX(380%); }
}
.wb-loading-text { font-size: 14px; color: var(--text-2); font-weight: 500; }

/* ============== RESULT ============== */
.wb-result {
  margin-top: 30px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.wb-result-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.wb-result-tabs { display: flex; gap: 4px; }
.wb-tab {
  padding: 8px 16px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600;
  color: var(--muted); transition: background .15s, color .15s;
}
.wb-tab:hover { color: var(--text); }
.wb-tab.is-active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-card); }
.wb-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wb-result-actions .wb-btn { padding: 8px 14px; font-size: 13px; }

.wb-pane { display: none; }
.wb-pane.is-active { display: block; }

.wb-viewport-toolbar {
  display: flex; gap: 6px; align-items: center;
  padding: 10px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.wb-vp {
  padding: 6px 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.wb-vp:hover { color: var(--text); }
.wb-vp-active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-card); }
.wb-vp-open {
  margin-left: auto; font-size: 12.5px; color: var(--primary); font-weight: 600;
  padding: 6px 10px;
}
.wb-vp-open:hover { text-decoration: underline; }

.wb-iframe-stage {
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 10px, transparent 10px 20px),
    var(--bg-soft);
  padding: 18px;
  display: flex; justify-content: center;
  min-height: 600px;
}
.wb-iframe-stage iframe {
  width: 100%; max-width: 100%;
  height: 720px;
  border: 0; border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 40px -10px rgba(15,18,36,.18);
  transition: max-width .25s ease;
}
.wb-iframe-stage[data-vp="tablet"] iframe { max-width: 820px; height: 1100px; }
.wb-iframe-stage[data-vp="mobile"] iframe { max-width: 390px; height: 780px; }

/* ============== LIVE TWEAK PANEL ============== */
.wb-pane-tweak { padding: 24px; }
.wb-tweak { display: flex; flex-direction: column; gap: 28px; }
.wb-tweak-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}
.wb-tweak-label h4 {
  font-size: 15px; font-weight: 700; color: var(--text);
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.wb-tweak-label p {
  font-size: 13px; color: var(--muted); line-height: 1.5;
}
.wb-tweak-label code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px; background: var(--bg-soft); padding: 1px 5px; border-radius: 4px;
}

/* Variant buttons */
.wb-variant-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.wb-variant {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.wb-variant:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(99,102,241,.35);
}
.wb-variant.is-active {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(99,102,241,.08), transparent);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 22px -10px rgba(99,102,241,.4);
}
.wb-variant-name { font-weight: 600; font-size: 14px; color: var(--text); }
.wb-variant-desc { font-size: 12px; color: var(--muted); }

/* Slider grid */
.wb-slider-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}
.wb-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}
.wb-slider-name {
  grid-column: 1 / -1;
  font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.wb-slider-name code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  background: var(--bg-soft);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}
.wb-slider input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  background: var(--line);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.wb-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-purple);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 8px -2px rgba(99,102,241,.6);
  transition: transform .12s;
}
.wb-slider input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.wb-slider input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 2px solid var(--bg);
}
.wb-slider input[type="color"] {
  width: 40px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  cursor: pointer;
  background: transparent;
}
.wb-slider-val {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text);
  min-width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.wb-slider-color { grid-template-columns: 1fr auto auto; }

.wb-tweak-foot {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.wb-tweak-hint { font-size: 12.5px; color: var(--muted); }

@media (max-width: 880px) {
  .wb-tweak-row { grid-template-columns: 1fr; }
  .wb-slider-grid { grid-template-columns: 1fr; }
}

.wb-pane-code { padding: 0; }
.wb-code {
  margin: 0;
  background: #0e1020;
  color: #d5d8f0;
  padding: 22px 24px;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre;
  overflow: auto;
  max-height: 720px;
}

/* ============== HOW IT WORKS ============== */
.wb-how { padding: 60px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.wb-how-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.wb-how-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.wb-how-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-purple); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 12px;
}
.wb-how-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.wb-how-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.wb-how-card code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12.5px; background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }

/* ============== FAQ ============== */
.wb-faq { padding: 70px 0 90px; }
.wb-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.wb-faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color .15s;
}
.wb-faq details:hover { border-color: var(--line-2); }
.wb-faq summary {
  font-weight: 600; font-size: 15px; color: var(--text);
  cursor: pointer; list-style: none; position: relative; padding-right: 28px;
}
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq summary::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--muted); transition: transform .15s;
}
.wb-faq details[open] summary::after { content: '−'; }
.wb-faq details p { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ============== TOAST ============== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0e1020; color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============== FOOTER (reused style names from creator-studio) ============== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 50px 0 24px;
  color: var(--text-2);
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}
.f-brand .logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-weight: 700; color: var(--text); font-size: 17px; }
.f-tag { margin-bottom: 10px; }
.f-yc { font-size: 13px; color: var(--muted); }
.f-col h3, .f-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.f-col a { display: block; padding: 4px 0; color: var(--text-2); transition: color .15s; }
.f-col a:hover { color: var(--text); }
.f-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; border-top: 1px solid var(--line);
  flex-wrap: wrap; gap: 14px;
}
.f-bot-l, .f-bot-r { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.f-theme { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.th-opt {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); font-size: 12px;
  display: grid; place-items: center; color: var(--text-2);
}
.th-opt.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.s-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.f-bot-r a { color: var(--text-2); padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.f-bot-r a:hover { background: var(--bg-card); }
.copy { color: var(--muted); font-size: 12.5px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 760px) {
  .wb-hero { padding: 110px 0 50px; }
  .wb-grid { grid-template-columns: 1fr; }
  .wb-col-2 { grid-column: 1; }
  .wb-result-head { flex-direction: column; align-items: stretch; }
  .wb-iframe-stage { padding: 8px; min-height: 500px; }
  .wb-iframe-stage iframe { height: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
