:root {
  --brand: #6d5ef8;
  --brand-dark: #4b3fd6;
  --ink: #1b1b2a;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--ink);
}

.bg-app { background: #f6f6fb; }

/* Navbar */
.site-navbar {
  background: linear-gradient(120deg, var(--ink), #2c2450);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.site-navbar .navbar-brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-dot {
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #ff7ac6);
  display: inline-block;
}
.site-navbar .nav-link { font-weight: 500; opacity: 0.85; transition: opacity .2s ease; }
.site-navbar .nav-link:hover { opacity: 1; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  transform: translateY(-1px);
}
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }

/* Wizard stepper */
.wizard-strip { padding: 1.1rem 0; }
.wizard-steps { display: flex; list-style: none; margin: 0; padding: 0; gap: 0.5rem; overflow-x: auto; }
.wizard-step { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.wizard-step:not(:last-child)::after {
  content: "";
  width: 28px; height: 2px;
  background: #e2e2ea;
  margin: 0 0.35rem;
}
.wizard-step-dot {
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ecebf7; color: #8b88a8;
  font-size: 0.8rem; font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.wizard-step.is-active .wizard-step-dot { background: var(--brand); color: #fff; }
.wizard-step.is-done .wizard-step-dot { background: #d7f5e3; color: #1a9b56; }
.wizard-step-label { font-size: 0.82rem; color: #9997ad; white-space: nowrap; }
.wizard-step.is-active .wizard-step-label { color: var(--ink); font-weight: 600; }
.wizard-step.is-done .wizard-step-label { color: #6b6980; }

/* Choice / template cards */
.method-card {
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  border: 2px solid #ebebf3;
  border-radius: 1rem;
}
.method-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(30, 20, 80, 0.2); }
.method-card.selected { border-color: var(--brand); box-shadow: 0 12px 28px -14px rgba(109, 94, 248, 0.35); }

.template-card {
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
  border: 2px solid transparent;
}
.template-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(30, 20, 80, 0.2); }
.template-card.selected { border-color: var(--brand) !important; }

/* Landing hero */
.landing-hero {
  background: radial-gradient(circle at 15% 20%, rgba(109,94,248,0.35), transparent 45%),
              radial-gradient(circle at 85% 15%, rgba(255,122,198,0.25), transparent 40%),
              linear-gradient(135deg, var(--ink), #2c2450);
  color: #fff;
}
.landing-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
.landing-feature-icon {
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ecebff, #fdeefc);
  color: var(--brand);
  font-size: 1.4rem;
  margin: 0 auto;
}

.pricing-card { border-radius: 1rem; transition: transform .2s ease, box-shadow .2s ease; border: 1px solid #ebebf3; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -16px rgba(30,20,80,0.2); }

/* Landing inline "get my website" form */
.landing-form-card {
  max-width: 520px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.25rem;
  padding: 1.75rem;
  backdrop-filter: blur(6px);
}
.landing-form-card .form-control {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 0.75rem;
}
.landing-cta {
  background: linear-gradient(135deg, var(--brand), #ff5fa8);
  color: #fff;
  border: none;
  border-radius: 0.85rem;
  font-weight: 600;
  padding: 0.9rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.landing-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(255, 95, 168, 0.5); color: #fff; }

/* Generating / progress screen */
.generating-backdrop {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 20% 20%, rgba(109,94,248,0.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,95,168,0.10), transparent 40%),
              #f6f6fb;
  padding: 2rem 1rem;
}
.generating-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 24px 60px -24px rgba(30,20,80,0.28);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.generating-progress { position: relative; width: 130px; height: 130px; }
.generating-progress svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.generating-progress-track { fill: none; stroke: #ecebf7; stroke-width: 8; }
.generating-progress-bar {
  fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 339.3; stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 0.4s ease;
}
.generating-progress-number {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 700; color: var(--ink);
}
.generating-illustration { font-size: 3rem; color: var(--brand); }
.generating-panel { animation: fadeInPanel 0.4s ease; }
@keyframes fadeInPanel { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Design selection switcher */
#designPanels { padding-bottom: 160px; }
.design-switch-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  background: #fff; border-top: 1px solid #ebebf3;
  box-shadow: 0 -8px 24px -12px rgba(30,20,80,0.15);
  padding: 0.75rem 1rem 1rem;
}
.design-switch-tabs {
  display: flex; align-items: center; gap: 0.4rem;
  overflow-x: auto; padding-bottom: 0.6rem;
}
.design-switch-tab {
  flex-shrink: 0;
  border: 1px solid #ddd; background: #fff; border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: #6b6980;
  transition: all .2s ease;
}
.design-switch-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.design-switch-arrow {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  border: 1px solid #ddd; background: #fff; color: #6b6980;
  display: flex; align-items: center; justify-content: center;
}

/* Checkout page */
.billing-option { cursor: pointer; }
.billing-option.selected { border-color: var(--brand); box-shadow: 0 12px 28px -14px rgba(109,94,248,0.35); }
.plan-card { cursor: pointer; padding: 0.85rem !important; }
.plan-card.selected { border-color: var(--brand); box-shadow: 0 12px 28px -14px rgba(109,94,248,0.35); }
.addon-toggle-active { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }

.checkout-total-bar {
  position: sticky; bottom: 1rem; z-index: 15;
  background: #1b1b2a; color: #fff;
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.4);
}

.trust-badge-row {
  display: flex; align-items: center; gap: 1rem;
  background: #f1f0ff; border: 1px solid #e2e0ff;
  border-radius: 1rem; padding: 1rem 1.25rem;
}
.trust-badge-row i { font-size: 1.75rem; color: var(--brand); }

/* Bottom sheet */
.checkout-sheet-backdrop {
  position: fixed; inset: 0; background: rgba(20,15,40,0.5); z-index: 40;
}
.checkout-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  background: #fff; border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.4);
  max-width: 520px; margin: 0 auto;
  animation: slideUpSheet 0.3s ease;
}
@keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
.checkout-sheet-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid #eee;
}
.checkout-sheet-body { padding: 1.25rem; }

/* Site-wide "Talk to Expert — Free" floating button (itrifid's own pages, not generated customer sites) */
.talk-expert-fab {
  position: fixed; top: 90px; right: 1rem; z-index: 25;
  display: flex; align-items: center; gap: 0.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 10px 24px -8px rgba(109,94,248,0.5);
  transition: transform 0.2s ease;
}
.talk-expert-fab:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 14px 28px -10px rgba(109,94,248,0.6); }
.talk-expert-fab i { font-size: 1.1rem; }
@media (max-width: 480px) {
  .talk-expert-fab { top: auto; bottom: 1rem; left: 1rem; right: auto; padding: 0.65rem; }
}
