@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #6366f1;
  --accent-light: #e0e7ff;
  --blue: #3b82f6;
  --blue-light: #dbeafe;
  --ring: #2dd4bf;
  --border: #e2e8f0;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 6px -1px rgba(15,23,42,.07), 0 10px 30px -5px rgba(15,23,42,.1);
  --shadow-lg: 0 20px 50px -12px rgba(15,23,42,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(13,148,136,.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 10%, rgba(99,102,241,.08) 0%, transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ===== LANDING TOPBAR ===== */
.landing-topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(226,232,240,.7);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.landing-topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.landing-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  color: var(--muted);
  transition: color .2s;
}
.landing-back:hover { color: var(--text); }
.landing-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}
.landing-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-logo-icon svg { width: 18px; height: 18px; }

.page {
  min-height: 100dvh;
  padding: 32px 14px 48px;
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  border: 1px solid rgba(45, 212, 191, .3);
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.12);
}

/* ===== CARD ===== */
.card {
  margin-top: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ===== HERO ===== */
.hero-surface {
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.08) 0%,
    rgba(99, 102, 241, 0.06) 42%,
    rgba(14, 165, 233, 0.04) 100%
  );
  padding: 2px;
}

.hero {
  padding: 32px 28px 24px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
}

h1 {
  margin: 8px 0 12px;
  line-height: 1.15;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 900;
  letter-spacing: -.02em;
}

.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  font-size: .95rem;
  line-height: 1.5;
}
.points li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary-light);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ===== BUTTONS ===== */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0d8a80);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 148, 136, .3);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(13, 148, 136, .4);
}

.btn-soft {
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-soft:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== FORM ===== */
.form-wrap {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 28px 28px 32px;
}

.form-wrap h2.form-title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.form-lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.6;
}

/* Wizard */
.wizard-head {
  margin-bottom: 22px;
}

.wizard-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}

.wizard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.wizard-step {
  animation: wizardFade 0.4s ease;
}

@keyframes wizardFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  justify-content: flex-end;
}

.wizard-actions .wizard-prev {
  margin-right: auto;
}

.input-invalid {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}

.field-check input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.field-check a {
  color: var(--primary-dark);
  font-weight: 700;
}

.form-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.form-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(45, 212, 191, .25);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.grid > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.full {
  grid-column: 1 / -1;
}

label {
  font-size: .9rem;
  font-weight: 700;
  color: #334155;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 13px 14px;
  font-size: .98rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #94a3b8;
}

input::placeholder { color: #94a3b8; }

.small {
  margin-top: 10px;
  color: var(--muted);
  font-size: .85rem;
}

.success {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #6ee7b7;
  font-weight: 700;
  font-size: .94rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-error {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-weight: 600;
  font-size: .94rem;
}
.form-error a { color: #b91c1c; font-weight: 700; }
.wizard-actions:has(.wizard-submit:not([hidden])) .wizard-next {
  display: none !important;
}

/* ===== FAQ on landing ===== */
.form-wrap h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 14px;
}
.form-wrap .points {
  margin: 0;
}

/* ===== LANDING FOOTER ===== */
.landing-footer {
  max-width: 980px;
  margin: 32px auto 0;
  padding: 20px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: .84rem;
  color: var(--muted);
}
.landing-footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.landing-footer a:hover { color: var(--primary); }
.landing-footer-legal {
  width: 100%;
  text-align: center;
  font-size: .72rem;
  color: var(--muted);
  opacity: .8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page { padding: 20px 10px 32px; }
  .hero, .form-wrap { padding-left: 18px; padding-right: 18px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .btn { width: 100%; }
  .form-trust-row { grid-template-columns: 1fr; }
  .landing-topbar-inner { padding: 0 10px; }
}

/* ===== LEAD INSIGHTS ===== */
.lead-insights { margin-top: 18px; }
.lead-insights-inner {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow);
}
.lead-insights-head h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lead-insights-sub { margin: 0; color: var(--muted); font-size: 0.92rem; }
.lead-score-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 16px 0; }
.lead-score-badge { display: inline-flex; align-items: baseline; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 800; }
.lead-score-badge.is-hot { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #6ee7b7; color: #065f46; }
.lead-score-badge.is-warm { background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #93c5fd; color: #1e40af; }
.lead-score-badge.is-cold { background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; }
.lead-score-num { font-size: 1.6rem; }
.lead-score-label { font-size: 0.95rem; font-weight: 700; }
.lead-id { margin: 0; font-size: 0.85rem; color: var(--muted); }
.lead-offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 768px) { .lead-offers { grid-template-columns: 1fr; } }
.lead-offer { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.lead-offer.is-best { border-color: #2dd4bf; box-shadow: 0 8px 20px rgba(45, 212, 191, 0.2); }
.lead-offer-top { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.lead-offer-price { font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.lead-offer-price small { font-weight: 600; color: var(--muted); font-size: 0.75rem; }
.lead-offer ul { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }
.lead-insights-foot { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }
