:root {
  --navy: #0B1733;
  --navy-soft: #22304F;
  --ink: #0B1733;
  --ink-2: #5C6784;
  --ink-3: #8590A8;
  --bg: #F7F8FB;
  --card: #ffffff;
  --line: #ECEFF6;
  --accent: #5B7CFF;
  --accent-soft: #EAEFFE;
  --teal: #21D4B4;
  --warn: #E66A4F;
  --radius: 14px;
  --shadow-card: 0 1px 2px rgba(11,23,51,0.04), 0 8px 24px rgba(11,23,51,0.06);
  --shadow-sm: 0 1px 2px rgba(11,23,51,0.06);
  --max: 760px;
  --max-wide: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main#app {
  flex: 1;
  padding: 0 20px 60px;
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
  width: 100%;
}
.brand { display: inline-flex; color: var(--navy); text-decoration: none; }
.brand img { height: 36px; width: auto; display: block; }
.event-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--navy-soft);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.event-chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(33,212,180,0.18);
}
@media (max-width: 540px) {
  .event-chip { display: none; }
  .topbar { padding: 16px 20px 8px; }
}

/* ---------- common stage layout ---------- */
.stage {
  max-width: var(--max);
  margin: 16px auto 0;
  animation: fadeIn 240ms ease-out both;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.kicker {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin: 0 0 14px;
}
.kicker.warn { color: var(--warn); }

h1 {
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.2;
}
h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lede {
  font-size: 17px;
  color: var(--navy-soft);
  max-width: 56ch;
  margin: 0 0 24px;
}
.lede.small { font-size: 15px; }
.hint { color: var(--ink-3); font-size: 13px; margin: 14px 0 0; }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-warn {
  background: linear-gradient(90deg, var(--warn), #C7423D);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, background 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.cta.primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 22px rgba(11,23,51,0.18);
}
.cta.primary:hover { background: #142348; transform: translateY(-1px); }
.cta.primary:active { transform: none; }
.cta.primary[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.cta.ghost {
  background: transparent;
  color: var(--navy-soft);
  border-color: var(--line);
}
.cta.ghost:hover { background: var(--card); border-color: #D6DCE9; }

/* ---------- intro ---------- */
.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 38px 40px;
  box-shadow: var(--shadow-card);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 22px 0 0;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.pillar p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
}
.pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
@media (max-width: 640px) {
  .hero { padding: 32px 24px; }
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- progress ---------- */
.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 4px 14px;
}
.progress-track {
  flex: 1;
  background: var(--line);
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  width: 0%;
  transition: width 220ms ease;
}
.progress-text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- question ---------- */
.question-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 32px 24px;
  box-shadow: var(--shadow-card);
}
.section-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
}
.options {
  list-style: none;
  margin: 18px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 80ms ease;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .option:hover {
    border-color: var(--accent);
    background: #FBFCFF;
  }
}
.option:active { transform: scale(0.998); }
.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.option .letter {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  background: var(--line);
  color: var(--navy-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.option.selected .letter {
  background: var(--accent);
  color: #fff;
}
.option .text { font-size: 15.5px; line-height: 1.45; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}
.nav .spacer { flex: 1; }
.answer-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 540px) {
  .question-card { padding: 24px 20px; }
  .answer-hint { display: none; }
}

/* ---------- contact form ---------- */
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  box-shadow: var(--shadow-card);
}
.row { display: flex; gap: 12px; }
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row + .row { margin-top: 12px; }
label {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}
label > span { display: block; margin: 0 0 6px; }
input[type="text"], input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 120ms ease, background 120ms ease;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  background: #FBFCFF;
}
input.invalid { border-color: var(--warn); background: #FFF5F2; }
label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 6px;
  font-weight: 500;
  color: var(--navy-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
label.check input { margin-top: 3px; }
.form-error {
  background: #FFF5F2;
  color: #B23F32;
  border: 1px solid #F9D4CB;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin: 12px 0 0;
}
@media (max-width: 540px) {
  .contact-card { padding: 28px 22px; }
  .row.two { grid-template-columns: 1fr; }
}

/* ---------- loading ---------- */
.loading-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.spinner {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  margin: 0 auto 18px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- result ---------- */
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.score {
  margin: -8px 0 18px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.score strong {
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin: 0 4px 0 6px;
}
.score-max { color: var(--ink-3); font-weight: 500; }

.ladder {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 22px 0 24px;
}
.ladder .rung {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FBFCFE;
}
.ladder .rung.active {
  background: linear-gradient(90deg, var(--accent-soft), #EAFBF6);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(91,124,255,0.14);
}
.ladder .rung .num {
  width: 30px; height: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
}
.ladder .rung.active .num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ladder .rung .name { font-weight: 700; font-size: 15px; color: var(--navy); }
.ladder .rung .tag { font-size: 13px; color: var(--ink-2); margin-left: auto; }
@media (max-width: 540px) {
  .ladder .rung .tag { display: none; }
  .result-card { padding: 32px 22px 26px; }
}

.result-cta {
  background: linear-gradient(135deg, #0F1F44, #142348);
  color: #fff;
  border-radius: 12px;
  padding: 38px 22px 20px;
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 22px;
  position: relative;
}
.result-cta::before {
  content: 'MVNO World 2026';
  position: absolute;
  top: 14px;
  left: 22px;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px 28px;
  max-width: var(--max-wide);
  margin: 32px auto 0;
  width: 100%;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}
.footer a { color: var(--navy-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer a:hover { color: var(--accent); border-color: var(--accent); }
.footer .sep { color: var(--ink-3); }
