/* Shared base — each option overrides what it needs */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0f1115;
  background: #fafaf7;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ---------- Page switcher (fixed top) ---------- */
.switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgba(20, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
}
.switcher button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.switcher button:hover { color: white; }
.switcher button.active {
  background: #f59e0b;
  color: #1a1410;
  font-weight: 600;
}
.switcher .label {
  padding: 8px 12px 8px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  border-right: 1px solid rgba(255,255,255,0.1);
  margin-right: 4px;
  display: flex;
  align-items: center;
}

/* ---------- Tweaks panel ---------- */
.tweaks-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1a1410;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.tweaks-fab.visible { display: flex; }
.tweaks-fab:hover { transform: scale(1.05); }
.tweaks-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 100;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.06);
  padding: 20px;
  display: none;
  font-size: 13px;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.tweaks-panel .sub {
  color: #6b6862;
  font-size: 12px;
  margin-bottom: 16px;
}
.tweaks-panel .field {
  margin-bottom: 14px;
}
.tweaks-panel label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6862;
  margin-bottom: 6px;
}
.tweaks-panel .swatches {
  display: flex;
  gap: 8px;
}
.tweaks-panel .swatches button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: transform 0.1s ease;
}
.tweaks-panel .swatches button.active {
  border-color: #0f1115;
  transform: scale(1.08);
}
.tweaks-panel input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e3dd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: inherit;
}
.tweaks-panel input[type="text"]:focus {
  outline: none;
  border-color: #f59e0b;
}
.tweaks-panel .toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tweaks-panel .toggle-switch {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #e5e3dd;
  position: relative;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.tweaks-panel .toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tweaks-panel .toggle.on .toggle-switch { background: #f59e0b; }
.tweaks-panel .toggle.on .toggle-switch::after { transform: translateX(16px); }

/* ---------- Shared chatbot mockup fragments used across options ---------- */
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

/* Page containers — one visible at a time */
.page { display: none; }
.page.active { display: block; }

/* Placeholder imagery */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #ede7dc, #e2d9c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #8a7f6e;
  text-transform: uppercase;
}
