/* ContextArch — Light Glass Design */

:root {
  --bg: #fafaf9;
  --bg-white: #ffffff;
  --bg-elevated: rgba(255,255,255,0.95);
  --bg-card: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(250,250,249,0.7) 100%);
  --bg-input: #ffffff;
  --border: rgba(0,0,0,0.06);
  --border-focus: #52525b;
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --accent: #52525b;
  --accent-hover: #3f3f46;
  --accent-glow: rgba(82, 82, 91, 0.15);
  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-width: 720px;
  --font: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Ambient background effects */
body::before {
  content: '';
  position: fixed;
  top: -300px;
  right: -300px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(120,120,130,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: -400px;
  left: -400px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(100,100,110,0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

#app {
  min-height: 100vh;
}

/* ===== LOADING ===== */
.loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 249, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: calc(var(--max-width) + 48px);
  padding: 0 24px;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  font-weight: 300;
}

/* ===== HOME PAGE ===== */
.home {
  padding: 48px 0 80px;
}

.home-intro {
  text-align: center;
  margin-bottom: 48px;
}

.home-intro h1 {
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.home-intro h1 strong {
  font-weight: 600;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-intro p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: linear-gradient(180deg, #4a4a52 0%, #27272a 40%, #18181b 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 1px 3px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.start-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  pointer-events: none;
}

.start-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 1px 0 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 2px 6px rgba(0,0,0,0.16),
    0 4px 12px rgba(0,0,0,0.08);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 4px 16px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04);
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 300;
}

/* ===== QUESTIONNAIRE ===== */
.questionnaire {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.05);
  border-radius: 2px;
  margin-bottom: 48px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  transition: width 0.4s ease;
}

.question-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.question-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.question-number {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.question-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.question-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.answer-option {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  text-align: left;
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.answer-option:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.answer-option.selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(250,250,249,0.8) 100%);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 2px 8px rgba(82,82,91,0.08);
}

.text-input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 120px;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.text-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 
    0 2px 8px rgba(82,82,91,0.08),
    0 0 0 3px var(--accent-glow);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.checkbox-item:hover {
  background: rgba(255,255,255,0.5);
}

.checkbox-item input[type="checkbox"] {
  margin: 4px 0 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.checkbox-item label {
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
  font-weight: 400;
}

.question-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}

.btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.8) inset,
    0 1px 2px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.8) inset,
    0 2px 6px rgba(0,0,0,0.08);
}

.btn-primary {
  background: linear-gradient(180deg, #4a4a52 0%, #27272a 40%, #18181b 100%);
  color: white;
  border: none;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 0 rgba(255,255,255,0.1) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 1px 3px rgba(0,0,0,0.12);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  pointer-events: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 1px 0 0 rgba(255,255,255,0.12) inset,
    0 -1px 0 0 rgba(0,0,0,0.2) inset,
    0 2px 6px rgba(0,0,0,0.16),
    0 4px 12px rgba(0,0,0,0.08);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.skip-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.skip-link:hover {
  color: var(--text);
}

/* ===== RESULT PAGE ===== */
.result-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.result-header {
  text-align: center;
  margin-bottom: 48px;
}

.result-header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.result-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.result-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.result-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.result-content pre {
  background: #18181b;
  color: #f4f4f5;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 1px 0 0 rgba(255,255,255,0.04) inset,
    0 2px 12px rgba(0,0,0,0.2);
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: #f4f4f5;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-button:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.1);
}

.copy-button.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.result-tips {
  margin-top: 32px;
  padding: 24px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.result-tips h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.result-tips ul {
  list-style: none;
  padding-left: 0;
}

.result-tips li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.result-tips li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ===== EMAIL GATE ===== */
.email-gate {
  max-width: 480px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.email-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.email-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.email-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.email-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.email-input {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.email-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 
    0 2px 8px rgba(82,82,91,0.08),
    0 0 0 3px var(--accent-glow);
}

/* ===== UPGRADE WALL ===== */
.upgrade-wall {
  max-width: 600px;
  margin: 80px auto;
  padding: 0 24px;
  text-align: center;
}

.upgrade-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 1px 3px rgba(0,0,0,0.04);
  position: relative;
}

.upgrade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0.6;
}

.upgrade-card h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.upgrade-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 300;
}

.features-list {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.features-list li {
  padding: 12px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 600;
}

/* ===== DOMAIN CATEGORIES ===== */
.domain-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.domain-category {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.domain-category:hover {
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.domain-category.selected {
  border-color: var(--accent);
  background: rgba(82,82,91,0.05);
}

/* ===== HERO ===== */
.hero {
  padding: 48px 0 24px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
  max-width: 560px;
}

/* ===== HEADER TAG (beta badge) ===== */
.header-tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(0,0,0,0.06);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== DOMAIN CARDS ===== */
.domain-category {
  margin-bottom: 40px;
}

.category-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.domains-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.domain-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.7) inset,
    0 2px 8px rgba(0,0,0,0.04);
  position: relative;
}

.domain-card:hover {
  border-color: rgba(0,0,0,0.15);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.9) inset,
    0 4px 16px rgba(0,0,0,0.08),
    0 0 0 3px rgba(82,82,91,0.06);
}

.domain-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-faint);
  font-family: var(--font-mono);
  min-width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.domain-info {
  flex: 1;
}

.domain-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.domain-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

.domain-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.domain-arrow {
  color: var(--text-faint);
  font-size: 1.1rem;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.domain-card:hover .domain-arrow {
  color: var(--text-secondary);
  transform: translateX(3px);
}

/* ===== PROGRESS BAR (home page variant) ===== */
.progress-bar-container {
  margin-bottom: 32px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== QUESTION STYLES (app.js classes) ===== */
.question-container {
  margin-bottom: 32px;
}

.question-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.question-helper {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 24px;
}

/* ===== INPUT VARIANTS (app.js classes) ===== */
.input-text,
.input-textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-input);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all var(--transition);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.input-textarea {
  resize: vertical;
  min-height: 120px;
}

.input-text:focus,
.input-textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 
    0 2px 8px rgba(82,82,91,0.08),
    0 0 0 3px var(--accent-glow);
}

/* ===== SELECT OPTIONS (app.js) ===== */
.select-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.select-option {
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  font-size: 0.95rem;
}

.select-option:hover {
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.select-option.selected {
  border-color: var(--accent);
  background: rgba(82,82,91,0.04);
}

/* ===== MULTISELECT (app.js) ===== */
.multiselect-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.95rem;
  color: var(--text);
}

.multiselect-option:hover {
  border-color: rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.8);
}

.multiselect-option.selected {
  border-color: var(--accent);
  background: rgba(82,82,91,0.04);
}

.multiselect-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.multiselect-option.selected .multiselect-check {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ===== RESULT OUTPUT (app.js) ===== */
.result-output {
  position: relative;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.result-toolbar-left {
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-btn {
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  border-color: rgba(0,0,0,0.12);
  color: var(--text);
}

/* ===== VERSION TOGGLE ===== */
.version-toggle {
  display: flex;
  gap: 4px;
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.version-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.version-btn.active {
  background: var(--bg-white);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ===== PRICING INLINE ===== */
.pricing-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.pricing-inline-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.pricing-inline-card:hover {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pricing-inline-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.pricing-inline-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-inline-features {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== AI LABEL ===== */
.ai-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 3px 8px;
  background: rgba(82,82,91,0.06);
  border-radius: 4px;
}

/* ===== QUALITY BADGE ===== */
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(180deg, rgba(34,197,94,0.1) 0%, rgba(34,197,94,0.05) 100%);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: #16a34a;
}

/* ===== EMAIL GATE (app.js variant) ===== */
.gate-content {
  text-align: center;
  max-width: 420px;
  margin: 80px auto;
}

.gate-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.gate-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .home-intro h1 {
    font-size: 2rem;
  }
  
  .tool-grid {
    grid-template-columns: 1fr;
  }
  
  .question-card {
    padding: 24px 20px;
  }
  
  .question-title {
    font-size: 1.25rem;
  }
  
  .question-actions {
    flex-direction: column-reverse;
    gap: 12px;
  }
  
  .result-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .email-card, .upgrade-card {
    padding: 32px 24px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.15);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,0.6) inset,
    0 4px 16px rgba(0,0,0,0.06);
  display: none;
}

.toast.visible {
  display: block;
}

.toast.success {
  border-color: var(--success);
  background: linear-gradient(180deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
}

.toast.error {
  border-color: var(--error);
  background: linear-gradient(180deg, rgba(239,68,68,0.1), rgba(239,68,68,0.05));
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}