/* ── Slapie Intelligence — Brand Styles ─────────────────────────────────── */

:root {
  --navy:   #0F172A;
  --orange: #FF6B35;
  --green:  #00C97B;
  --blue:   #389CFF;
  --white:  #FFFFFF;
  --lgray:  #94A3B8;
  --bgray:  #1E293B;
  --input-bg: #F8FAFC;
  --border:   #E2E8F0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--navy);
  color: #334155;
  line-height: 1.6;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--bgray) 100%);
  color: var(--white);
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(255,107,53,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(0,201,123,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.logo-dot {
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  display: inline-block;
}

.logo-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--orange); }

.hero .subtitle {
  font-size: clamp(15px, 2.5vw, 18px);
  color: var(--lgray);
  max-width: 520px;
  margin: 0 auto 40px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 0;
}

.badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

/* ── Form card ────────────────────────────────────────────────────────────── */

.form-section {
  background: #F1F5F9;
  padding: 48px 24px 64px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 40px 36px;
}

@media (max-width: 520px) {
  .card { padding: 28px 20px 24px; }
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--lgray);
  margin-bottom: 28px;
}

/* ── Form elements ────────────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

label .required {
  color: var(--orange);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--navy);
  background: var(--input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}

input.error { border-color: #EF4444; }

.field-hint {
  font-size: 12px;
  color: var(--lgray);
  margin-top: 5px;
}

/* ── Section divider ─────────────────────────────────────────────────────── */

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 28px 0 14px;
}

/* ── Competitor list ─────────────────────────────────────────────────────── */

#competitors-list { display: flex; flex-direction: column; gap: 10px; }

.comp-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-row input { flex: 1; }

.comp-row .comp-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--lgray);
  min-width: 20px;
  text-align: right;
}

.btn-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #CBD5E1;
  font-size: 18px;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}

.btn-remove:hover { color: #EF4444; }

.btn-add-comp {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  width: 100%;
  padding: 10px;
  font-size: 13px;
  color: var(--lgray);
  cursor: pointer;
  margin-top: 6px;
  transition: border-color 0.2s, color 0.2s;
}

.btn-add-comp:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Submit button ───────────────────────────────────────────────────────── */

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}

.btn-submit:hover:not(:disabled) { background: #E85C25; }
.btn-submit:active:not(:disabled) { transform: scale(0.99); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.form-disclaimer {
  font-size: 12px;
  color: var(--lgray);
  text-align: center;
  margin-top: 14px;
}

/* ── Progress / result states ────────────────────────────────────────────── */

#status-panel {
  display: none;
  max-width: 680px;
  margin: 32px auto 0;
}

.status-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 36px 40px;
  text-align: center;
}

.spinner {
  display: inline-block;
  width: 44px; height: 44px;
  border: 4px solid #E2E8F0;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 20px;
}

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

.status-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.status-sub {
  font-size: 14px;
  color: var(--lgray);
}

.icon-done  { font-size: 44px; margin-bottom: 16px; }
.icon-error { font-size: 44px; margin-bottom: 16px; }

.btn-wa {
  display: inline-block;
  margin-top: 20px;
  padding: 13px 28px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}

.btn-wa:hover { background: #00b06a; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #475569;
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

.site-footer a { color: var(--lgray); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
