:root {
  --bg-1: #0f172a;
  --bg-2: #111827;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --accent: #facc15;
  --danger: #dc2626;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, .25), transparent 32%),
    radial-gradient(circle at bottom right, rgba(22, 163, 74, .32), transparent 36%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px;
}

.app-shell {
  width: min(100%, 620px);
}

.card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .32);
}

.hidden { display: none; }

.hero,
.result-hero {
  text-align: center;
}

.mascote {
  width: 118px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, .22));
}

.mascote-mini {
  width: 54px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, .18));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

h1, h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1 { font-size: clamp(28px, 7vw, 42px); }
h2 { font-size: clamp(27px, 6vw, 38px); }

.subtitle,
.result-description {
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
  margin: 14px auto 0;
  max-width: 500px;
}

.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
  transition: border .2s, box-shadow .2s, transform .2s;
  background: #fff;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

button,
a.send-btn {
  border: 0;
  border-radius: 18px;
  min-height: 54px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s, box-shadow .18s, background .18s;
}

button:hover,
a.send-btn:hover { transform: translateY(-1px); }

.primary-btn,
.send-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .25);
}

.ghost-btn {
  background: #f1f5f9;
  color: #334155;
}

.ghost-btn.full {
  width: 100%;
  margin-top: 12px;
}

.topbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.progress-wrap { flex: 1; }

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width .28s ease;
}

.question-box {
  min-height: 300px;
}

.question-number {
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .05em;
}

.question-title {
  font-size: clamp(23px, 6vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.35;
  transition: border .18s, box-shadow .18s, transform .18s, background .18s;
}

.option:hover {
  transform: translateY(-1px);
  border-color: #86efac;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.option input {
  width: 20px;
  height: 20px;
  padding: 0;
  accent-color: var(--primary);
}

.option.selected {
  border-color: var(--primary);
  background: #f0fdf4;
}

.nav-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 22px;
}

.score-card {
  margin: 24px 0 18px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f8fafc, #ecfdf5);
  border: 1px solid #dcfce7;
  text-align: center;
}

.score-number {
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.06em;
}

.score-total {
  font-size: 26px;
  font-weight: 900;
  color: #475569;
}

.score-card p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-weight: 800;
}

.score-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #dbeafe;
  overflow: hidden;
}

.score-bar div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
  transition: width .28s ease;
}

.strategic-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}

.strategic-box h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.strategic-box p {
  margin: 0 0 14px;
  color: #334155;
  line-height: 1.5;
  font-size: 14px;
}

.strategic-box p:last-child { margin-bottom: 0; }

.send-text {
  text-align: center;
  color: #334155;
  font-weight: 900;
  margin: 22px 0 12px;
}

.send-btn {
  width: 100%;
}

@media (max-width: 460px) {
  body { padding: 14px; align-items: flex-start; }
  .card { padding: 22px 18px; border-radius: 24px; }
  .mascote { width: 96px; }
  .question-box { min-height: 330px; }
  .nav-actions { grid-template-columns: 1fr; }
}
