:root {
  --navy: #1A2B5F;
  --navy-600: #24397a;
  --teal: #00C5A1;
  --teal-dark: #00a98a;
  --bg: #F8F9FA;
  --ink: #1f2430;
  --muted: #667085;
  --line: #e6e8ee;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(26, 43, 95, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--teal-dark); }

/* Header */
.site-header {
  background: var(--navy);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 12px; max-width: 1040px; margin: 0 auto; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--teal); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 17px;
  letter-spacing: -0.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: #fff; font-weight: 700; font-size: 17px; }
.brand-tag { color: #9fb0d8; font-size: 12px; font-weight: 500; }

/* Layout */
.app { max-width: 780px; margin: 0 auto; padding: 26px 18px 60px; }

/* Progress */
.progress-wrap { margin-bottom: 18px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.progress-track { height: 9px; background: #e9ecf3; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 3%; background: linear-gradient(90deg, var(--teal), var(--teal-dark)); border-radius: 999px; transition: width .4s ease; }

/* Cards + screens */
.screen { display: none; animation: fade .45s ease; }
.screen.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

.pill {
  display: inline-block; background: #eef7f4; color: var(--teal-dark);
  font-size: 12.5px; font-weight: 700; padding: 6px 13px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: .2px;
}
.pill-teal { background: var(--teal); color: #05372e; }

h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 14px; color: var(--navy); }
h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; color: var(--navy); }
h3 { color: var(--navy); }
.lead { color: var(--muted); font-size: 15.5px; margin: 0 0 22px; }

/* Registration form */
.reg-form { display: flex; flex-direction: column; gap: 18px; margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 600; font-size: 14px; }
.req { color: #e05656; }
.field input[type="text"], .field input[type="email"] {
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; font-family: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0,197,161,.14); }
.err { color: #e05656; font-size: 12.5px; min-height: 4px; }

.consent .checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent input { position: absolute; opacity: 0; height: 0; width: 0; }
.checkmark {
  flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid #c7cdda; border-radius: 6px;
  margin-top: 2px; display: grid; place-items: center; transition: .18s;
}
.consent input:checked + .checkmark { background: var(--teal); border-color: var(--teal); }
.consent input:checked + .checkmark::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }
.consent input:focus + .checkmark { box-shadow: 0 0 0 4px rgba(0,197,161,.14); }
.consent-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Buttons */
.btn {
  font-family: inherit; font-weight: 700; font-size: 15px; border: none;
  border-radius: 12px; padding: 13px 22px; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, opacity .2s;
}
.btn-primary { background: var(--teal); color: #05372e; }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.btn-primary:disabled { background: #d3d8e2; color: #8b93a4; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--muted); padding: 10px 14px; }
.btn-ghost:hover { color: var(--navy); }
.btn-ghost:disabled { opacity: .35; cursor: not-allowed; }

/* Question */
.q-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal-dark);
  background: #eef7f4; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.q-text { margin: 0 0 22px; line-height: 1.4; }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-size: 15px; font-family: inherit; cursor: pointer; color: var(--ink);
  display: flex; gap: 14px; align-items: flex-start; transition: border-color .18s, background .18s, transform .1s;
}
.opt:hover { border-color: var(--teal); background: #f6fefb; }
.opt.selected { border-color: var(--teal); background: #eafaf5; box-shadow: 0 0 0 3px rgba(0,197,161,.12); }
.opt .letter {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: #eef1f7; color: var(--navy);
  font-weight: 800; display: grid; place-items: center; font-size: 14px;
}
.opt.selected .letter { background: var(--teal); color: #fff; }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.q-counter { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Results */
.results-head { text-align: center; margin-bottom: 10px; }
.results-head .lead { max-width: 560px; margin: 0 auto 8px; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 26px 0; }
.chart-box { background: #fbfcfe; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.chart-box h3 { margin: 0 0 14px; font-size: 15.5px; }
.radar-wrap { display: grid; place-items: center; }
.radar-wrap svg { width: 100%; height: auto; max-width: 340px; }

.domain-bars { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.dbar-row .dbar-label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.dbar-track { height: 14px; background: #e9ecf3; border-radius: 999px; overflow: hidden; }
.dbar-fill { height: 100%; border-radius: 999px; transition: width .8s ease; }

.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 8px 0 26px; }
.insight-title { font-size: 16px; margin: 0 0 14px; }
.insight-list { display: flex; flex-direction: column; gap: 12px; }
.insight-item { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; background: #fff; }
.insight-item .ii-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.insight-item .ii-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.insight-item .ii-score { font-weight: 800; font-size: 14px; }
.ii-score.strong { color: var(--teal-dark); }
.ii-score.develop { color: #d98a2b; }
.insight-item .ii-tip { font-size: 13.5px; color: var(--muted); margin: 0; }

.cta-box { background: var(--navy); border-radius: 16px; padding: 30px; text-align: center; color: #fff; }
.cta-box h3 { color: #fff; margin: 0 0 10px; font-size: 20px; }
.cta-box p { color: #b9c4e0; font-size: 14.5px; max-width: 480px; margin: 0 auto 20px; }
.submit-status { margin-top: 16px; font-size: 14px; font-weight: 600; min-height: 20px; }
.submit-status.ok { color: var(--teal); }
.submit-status.error { color: #ff9b9b; }
.submit-status.pending { color: #c7d0e8; }

.site-footer { text-align: center; padding: 28px 18px; color: var(--muted); font-size: 12.5px; }
.site-footer a { color: var(--muted); }

/* Spinner */
.spinner {
  display: inline-block; width: 15px; height: 15px; border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Radar labels */
.radar-label { font-size: 10px; font-weight: 600; fill: var(--navy); }
.radar-value { font-size: 9px; font-weight: 700; fill: var(--teal-dark); }

@media (max-width: 640px) {
  .card { padding: 24px 20px; }
  h1 { font-size: 23px; }
  .chart-grid, .insight-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 24px 18px; }
}
