/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: #4f46e5; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
h1, h2, h3 { line-height: 1.2; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; color: #1a1a2e; }
.logo:hover { text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.header-nav { display: flex; gap: 24px; }
.header-nav a { color: #64748b; font-size: 0.9rem; font-weight: 500; }
.header-nav a:hover { color: #4f46e5; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 10px; font-weight: 600;
  font-size: 1rem; border: none; transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); }
.btn-ghost {
  background: transparent; color: #64748b; border: 1px solid #e5e7eb;
}
.btn-ghost:hover { background: #f1f5f9; color: #1a1a2e; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; border-radius: 12px; }

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 80px 0 60px;
  background: linear-gradient(180deg, #f0f0ff 0%, #fafafa 100%);
}
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.03em; }
.gradient-text {
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: #64748b; margin-bottom: 32px; line-height: 1.7; }
.hero-trust { font-size: 0.85rem; color: #94a3b8; margin-top: 20px; }

/* ===== Wizard ===== */
.calculator-section { padding: 40px 0 80px; }
.wizard {
  background: #fff; border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  padding: 40px; border: 1px solid #e5e7eb;
}
.progress-bar {
  height: 6px; background: #e5e7eb; border-radius: 3px; margin-bottom: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 25%; border-radius: 3px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  transition: width 0.4s ease;
}
.step-indicator {
  font-size: 0.8rem; color: #94a3b8; text-align: right; margin-bottom: 32px; font-weight: 500;
}
.wizard-step h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { color: #64748b; margin-bottom: 28px; }

/* ===== Select Cards ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.select-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 24px 16px; border-radius: 14px; border: 2px solid #e5e7eb;
  background: #fff; transition: all 0.2s; gap: 6px;
}
.select-card:hover { border-color: #c7d2fe; background: #f5f3ff; }
.select-card.selected { border-color: #4f46e5; background: #ede9fe; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }
.card-icon { font-size: 2rem; }
.card-title { font-weight: 600; font-size: 0.95rem; color: #1a1a2e; }
.card-desc { font-size: 0.8rem; color: #94a3b8; }
.select-card.small { padding: 16px 12px; }
.select-card.small .card-icon { font-size: 1.5rem; }

/* ===== Features Grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 28px; }
.feature-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px; border: 2px solid #e5e7eb;
  background: #fff; transition: all 0.2s; cursor: pointer;
}
.feature-card:hover { border-color: #c7d2fe; }
.feature-card.selected { border-color: #4f46e5; background: #ede9fe; }
.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature-info { flex: 1; }
.feature-name { font-weight: 600; font-size: 0.9rem; }
.feature-hours { font-size: 0.75rem; color: #94a3b8; }
.feature-check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid #d1d5db;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: transparent; transition: all 0.2s; flex-shrink: 0;
}
.feature-card.selected .feature-check {
  background: #4f46e5; border-color: #4f46e5; color: #fff;
}

/* ===== Detail Groups ===== */
.detail-group { margin-bottom: 28px; }
.detail-label { display: block; font-weight: 600; margin-bottom: 12px; font-size: 0.95rem; }

/* ===== Wizard Nav ===== */
.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f1f5f9; }

/* ===== Results ===== */
.results-card {
  background: linear-gradient(135deg, #f5f3ff, #eff6ff);
  border-radius: 16px; padding: 32px; border: 1px solid #e0e7ff; margin-bottom: 28px;
}
.results-header { text-align: center; margin-bottom: 32px; }
.result-type {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  background: #4f46e5; color: #fff; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em;
}
.result-range { font-size: 2.4rem; font-weight: 800; color: #1a1a2e; margin-top: 4px; }
.result-label { font-size: 0.85rem; color: #64748b; font-weight: 500; }
.result-value { font-weight: 700; font-size: 1.1rem; }
.result-timeline { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }

.results-breakdown, .results-stack, .results-notes { margin-top: 28px; }
.results-breakdown h3, .results-stack h3, .results-notes h3 { font-size: 1rem; margin-bottom: 14px; }

.breakdown-list { display: flex; flex-direction: column; gap: 8px; }
.breakdown-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: rgba(255,255,255,0.7); border-radius: 10px;
}
.breakdown-name { font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.breakdown-cost { font-weight: 700; color: #4f46e5; font-size: 0.9rem; }
.breakdown-hours { font-size: 0.75rem; color: #94a3b8; margin-left: 4px; }

.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tag {
  padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,0.8);
  font-size: 0.85rem; font-weight: 500; border: 1px solid #e0e7ff;
}

.results-notes ul { list-style: none; padding: 0; }
.results-notes li {
  padding: 6px 0; font-size: 0.9rem; color: #64748b;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.results-notes li::before { content: "⚡ "; }

/* ===== CTA Box ===== */
.cta-box {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border-radius: 16px; padding: 32px; text-align: center; margin-bottom: 28px;
}
.cta-box h3 { font-size: 1.2rem; margin-bottom: 8px; }
.cta-box p { opacity: 0.9; font-size: 0.95rem; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.cta-input {
  padding: 12px 18px; border-radius: 10px; border: none; font-size: 1rem;
  width: 280px; outline: none;
}
.cta-box .btn-primary {
  background: #fff; color: #4f46e5; box-shadow: none;
}
.cta-disclaimer { font-size: 0.75rem; opacity: 0.7; margin-top: 10px; }

/* ===== Results Actions ===== */
.results-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

/* ===== Ad Slot ===== */
.ad-slot { margin-bottom: 28px; }
.ad-placeholder {
  background: #f1f5f9; border: 2px dashed #d1d5db; border-radius: 10px;
  padding: 20px; text-align: center; color: #94a3b8; font-size: 0.85rem;
}

/* ===== Affiliate Box ===== */
.affiliate-box {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 16px;
  padding: 24px; margin-bottom: 28px;
}
.affiliate-box h3 { font-size: 1rem; margin-bottom: 8px; }
.affiliate-box > p { color: #92400e; font-size: 0.9rem; margin-bottom: 14px; }
.affiliate-links { display: flex; flex-direction: column; gap: 8px; }
.affiliate-link {
  padding: 10px 14px; background: #fff; border-radius: 10px;
  border: 1px solid #fde68a; font-size: 0.9rem; color: #1a1a2e;
  display: block;
}
.affiliate-link:hover { background: #fef3c7; text-decoration: none; }

/* ===== How It Works ===== */
.how-section { padding: 80px 0; background: #fff; }
.how-section h2 { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 48px; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how-card { text-align: center; }
.how-num {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.how-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.how-card p { color: #64748b; font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq-section { padding: 80px 0; }
.faq-section h2 { text-align: center; font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #e5e7eb; padding: 18px 0;
}
.faq-item summary {
  font-weight: 600; cursor: pointer; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: #94a3b8; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin-top: 10px; color: #64748b; font-size: 0.95rem; line-height: 1.7; }

/* ===== Footer ===== */
.footer {
  background: #1a1a2e; color: #94a3b8; padding: 48px 0 32px; text-align: center;
}
.footer-brand { margin-bottom: 16px; font-size: 1.1rem; }
.footer-brand strong { color: #fff; }
.footer-brand .logo-icon { font-size: 1.3rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 4px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; opacity: 0.6; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 24px; }
  .wizard { padding: 24px; }
  .cta-form { flex-direction: column; align-items: center; }
  .cta-input { width: 100%; }
  .results-actions { flex-direction: column; }
  .results-actions .btn { width: 100%; }
  .result-range { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 0.8rem; }
}
