/* AskQuiz — Homepage styles */

/* Header overrides for homepage */
header {
  position: sticky;
  top: 0;
  background: rgba(15, 14, 23, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

/* Hero */
.hero {
  padding: 3.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  width: 80%;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(108,92,231,0.18) 0%, rgba(108,92,231,0) 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; position: sticky; top: 5rem; }
.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.badge-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.badge {
  background: rgba(108,92,231,0.15);
  color: var(--primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.hero-preview-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-align: center;
}

/* Generator card (now inside hero-left) */
.gen-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

/* ── Form Separator ──────────────────────────────────────── */
.gen-separator {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 20px 0;
}
.input-group { margin-bottom: 1rem; }
.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.row { display: flex; gap: 1rem; }
.row > * { flex: 1; }
.checkbox-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}
.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}
.btn-primary.gen-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
}
.usage-bar {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.usage-bar strong { color: var(--primary-light); }

/* Quiz Result */
.quiz-result {
  display: none;
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.quiz-result.visible { display: block; }
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.quiz-header h2 { font-size: 1.5rem; }
.quiz-actions { display: flex; gap: 0.5rem; }
/* Current plan button (pricing) */
.btn-current {
  background: rgba(0,184,148,0.15);
  color: var(--success);
  border: 1px solid var(--success);
  cursor: default;
  opacity: 0.9;
}
.btn-current:hover {
  transform: none;
  box-shadow: none;
}

/* Question/option/score styles → quiz-shared.css */

/* Features */
.features {
  max-width: 1000px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(108,92,231,0.05));
  color: var(--primary-light);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Plan icon (pricing h3) + button icon + cross-venture icon */
.plan-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  vertical-align: -3px;
  margin-right: 4px;
}
.btn-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.cross-icon {
  width: 18px;
  height: 18px;
  color: var(--primary-light);
  vertical-align: -3px;
  margin-right: 6px;
}
.cross-card-logo { display: inline-flex; align-items: center; gap: 0; }

/* Pricing */
.pricing {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.pricing h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.pricing .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.price-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.price-card.featured {
  border-color: var(--primary);
  position: relative;
}
.price-card.featured::before {
  content: 'POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.2rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}
.price-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.price-card h3 .plan-icon {
  width: 22px;
  height: 22px;
  vertical-align: 0;
  margin: 0;
}
.price { font-size: 2.5rem; font-weight: 800; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-features {
  list-style: none;
  margin: 1.5rem 0;
}
.price-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.price-features li::before {
  content: '✓ ';
  color: var(--success);
  font-weight: 700;
}
.price-features li.no::before {
  content: '✗ ';
  color: var(--error);
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.faq h2 { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}
.faq-q {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--primary-light); }
.faq-q.open::after { content: '−'; }
.faq-a {
  display: none;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-a.visible { display: block; }

/* ── Section lede (shared sub-heading under h2) ─────────── */
.section-lede {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: -1rem auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.how-it-works h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
}
.steps-grid li {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.06);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.steps-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.steps-grid p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Product mockup (now inside hero) ───────────────────── */

/* Browser-chrome frame */
.mockup-frame {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 1px rgba(108,92,231,0.15),
    0 20px 80px -10px rgba(108,92,231,0.2);
}
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mockup-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mockup-url {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: rgba(255,255,255,0.04);
  padding: 0.2rem 0.75rem;
  border-radius: 6px;
  flex: 1;
}
.mockup-body {
  padding: 1.75rem 1.75rem 1.5rem;
}
.mockup-head { margin-bottom: 1.25rem; }
.mockup-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.mockup-progress {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.mockup-progress-bar {
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 999px;
}
.mockup-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mockup-q {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 1rem;
}
.mockup-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.mockup-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-input);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
}
.mockup-option.is-selected {
  border-color: var(--success);
  background: rgba(0,184,148,0.12);
}
.mockup-letter {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  flex: 0 0 auto;
}
.is-selected .mockup-letter {
  background: var(--success);
  color: #fff;
}
.mockup-tick {
  margin-left: auto;
  color: var(--success);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.mockup-tick svg { width: 16px; height: 16px; }
.mockup-explain {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 0.75rem 0.9rem;
  background: rgba(108,92,231,0.08);
  border-left: 2px solid var(--primary-light);
  border-radius: 6px;
  margin-bottom: 1.2rem;
}
.mockup-explain strong { color: var(--text); }
.mockup-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}
.mockup-btn-ghost,
.mockup-btn-primary {
  padding: 0.55rem 1.1rem;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: default;
  border: none;
}
.mockup-btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}
.mockup-btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}
@media (max-width: 600px) {
  .mockup-body { padding: 1.25rem 1rem 1rem; }
  .mockup-url { font-size: 0.7rem; }
}

/* ── Comparison table ────────────────────────────────────── */
.comparison {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 1.5rem;
}
.comparison h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.comparison-table-wrap {
  overflow-x: auto;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.75rem 0.9rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.comparison-table thead th {
  background: var(--bg-card);
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.comparison-table tbody th[scope="row"] {
  text-align: left;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
  background: transparent;
}
.comparison-table td {
  color: var(--text-muted);
}
.comparison-table .col-highlight {
  background: rgba(108,92,231,0.08);
  color: var(--text);
  font-weight: 600;
}
.comparison-table thead th.col-highlight {
  background: rgba(108,92,231,0.18);
  color: var(--primary-light);
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1.25rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Lock badges */
.lock-badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.4rem;
  cursor: pointer;
  user-select: none;
}
.lock-free {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.lock-pro {
  background: rgba(108,92,231,0.2);
  color: var(--primary-light);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print — quiz component styles in quiz-shared.css */
@media print {
  body { background: white; color: #111; }
  header, .hero, .features, .pricing, .faq, .how-it-works, .comparison, .cross-ventures, footer, .quiz-actions, .score-card, .skip-link { display: none !important; }
  .quiz-result { display: block !important; max-width: 100%; padding: 0; }
  .quiz-result .quiz-header { justify-content: center; }
}

/* Responsive overrides */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-right {
    position: static;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-left { max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .row { flex-direction: column; }
  header { padding: 0.75rem 1rem; }
  .gen-card { padding: 1.25rem; }
}
