:root {
  --bg: #141e32;
  --bg-soft: #1a2740;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9eafc7;
  --accent: #3ec6ff;
  --cta: #ff8a3d;
  --cta-2: #ffb347;
  --ok: #3fd68b;
  --mid: #f0c14b;
  --bad: #ff6b6b;
  --wa: #25d366;
  --safe-l: max(16px, env(safe-area-inset-left));
  --safe-r: max(16px, env(safe-area-inset-right));
  --safe-t: max(16px, env(safe-area-inset-top));
  --safe-b: max(20px, env(safe-area-inset-bottom));
  --touch: 52px;
  --radius: 20px;
  --font: "Manrope", "Nunito", sans-serif;
  --display: "Nunito", "Manrope", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  color: var(--text);
}

html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Soft atmosphere without top/bottom color bands */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(62, 198, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 40% at 100% 30%, rgba(255, 138, 61, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 35% at 0% 80%, rgba(62, 198, 255, 0.07), transparent 50%);
}

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--safe-t) var(--safe-l) var(--safe-b) var(--safe-r);
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  animation: rise 0.45s ease both;
}

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

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 10px 28px rgba(255, 138, 61, 0.28); }
  50% { box-shadow: 0 12px 36px rgba(255, 138, 61, 0.48); }
}

@keyframes bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* —— Landing —— */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
}

.hero,
.hero-screen {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: 8px 0 28px;
  min-height: calc(100dvh - var(--safe-t) - var(--safe-b));
}

.hero-logo {
  width: clamp(72px, 20vw, 96px);
  height: clamp(72px, 20vw, 96px);
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: rise 0.55s ease both;
}

.hero-brand {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  animation: rise 0.55s ease 0.05s both;
}

.hero-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: rise 0.55s ease 0.1s both;
}

.hero-sub {
  margin: 14px auto 0;
  max-width: 34em;
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
  animation: rise 0.55s ease 0.15s both;
}

.hero-cta {
  margin-top: 28px;
  width: min(420px, 100%);
  margin-left: auto;
  margin-right: auto;
  animation: rise 0.55s ease 0.22s both;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.9;
  animation: rise 0.55s ease 0.28s both;
}

.landing-below {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 8px 0 36px;
  text-align: left;
}

.landing-section-title {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  text-align: center;
  color: var(--text);
}

.path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.path-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 15px;
  color: #0d1524;
  background: linear-gradient(135deg, var(--accent), #7adfff);
}

.path-steps strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 2px;
}

.path-steps span:not(.path-num) {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.trial-promise {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.trial-promise h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  color: var(--cta-2);
}

.trial-promise p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--muted);
}

.landing-below-cta {
  margin-top: 24px;
}

/* —— Shared chrome —— */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-width: 0;
}

.topbar-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  padding: 5px;
}

.topbar-brand {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topbar-brand-only .topbar-brand {
  font-size: clamp(16px, 4.4vw, 20px);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.topbar-title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  line-height: 1.15;
}

.shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lead {
  margin: 0 0 18px;
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
}

.field {
  display: block;
  margin-top: 14px;
}

.field label,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field-hint {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.35;
}

.grade-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.grade-chip {
  appearance: none;
  min-height: var(--touch);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.grade-chip:active {
  transform: scale(0.97);
}

.grade-chip.is-active {
  border-color: rgba(62, 198, 255, 0.65);
  background: rgba(62, 198, 255, 0.16);
  box-shadow: 0 0 0 3px rgba(62, 198, 255, 0.16);
  color: #e8f7ff;
}

.start-note {
  margin: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: var(--touch);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(62, 198, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(62, 198, 255, 0.18);
}

.error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: #ffb4b4;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--touch);
  border: none;
  border-radius: 16px;
  padding: 15px 18px;
  font: inherit;
  font-size: clamp(16px, 4.3vw, 18px);
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  user-select: none;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: wait; }

.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--cta-2));
  color: #1a1208;
  animation: pulse-cta 2.4s ease-in-out infinite;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1db954, var(--wa));
  color: #fff;
  min-height: 56px;
  font-size: clamp(16px, 4.4vw, 18px);
  line-height: 1.25;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28);
  gap: 10px;
}

.btn-whatsapp-soft {
  background: linear-gradient(135deg, #2a8f55, #34a35f);
  color: rgba(255, 255, 255, 0.94);
  min-height: 50px;
  font-size: clamp(15px, 4vw, 16px);
  border: 1px solid rgba(126, 220, 160, 0.28);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.14);
  animation: pulse-wa-soft 2.4s ease-in-out infinite;
  transition: none;
  will-change: transform, box-shadow;
}

.btn-whatsapp-soft:active {
  transform: scale(0.98);
  animation: none;
}

.wa-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-whatsapp-soft .wa-icon {
  width: 18px;
  height: 18px;
  opacity: 0.88;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  animation: none;
}

.btn-soft {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  animation: none;
}

/* —— Quiz —— */
.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--cta));
  transform-origin: left center;
  animation: bar 0.35s ease both;
}

.quiz-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quiz-meta-strong {
  color: var(--text);
  font-weight: 800;
}

.quiz-meta-soft {
  font-weight: 650;
  opacity: 0.85;
}

.quiz-meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.quiz-timer {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
}

.scope-note {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

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

.option {
  display: block;
  width: 100%;
  min-height: 56px;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px;
  font: inherit;
  font-size: clamp(16px, 4.2vw, 17px);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.option:hover {
  border-color: rgba(62, 198, 255, 0.35);
}

.option:active {
  transform: scale(0.985);
  border-color: rgba(62, 198, 255, 0.65);
  background: #223352;
  box-shadow: 0 0 0 3px rgba(62, 198, 255, 0.18);
}

.report-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.report-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.report-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.report-block h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 900;
}

.report-list,
.report-route {
  margin: 0;
  padding-left: 18px;
}

.report-list li,
.report-route li {
  margin: 8px 0;
  line-height: 1.35;
}

.report-list span,
.report-route span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  margin-top: 2px;
}

.topic {
  display: inline-block;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(62, 198, 255, 0.1);
  border: 1px solid rgba(62, 198, 255, 0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.prompt {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(20px, 5.6vw, 28px);
  font-weight: 900;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.option.skip {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  text-align: center;
  background: transparent;
  border-style: dashed;
  min-height: var(--touch);
  box-shadow: none;
}

/* —— Result —— */
.result-identity {
  text-align: center;
  margin-bottom: 4px;
}

.result-name {
  font-family: var(--display);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 900;
  line-height: 1.2;
}

.result-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.result-score {
  text-align: center;
  padding: 8px 0 6px;
}

.result-score .label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-score .value {
  margin-top: 6px;
  font-family: var(--display);
  font-size: clamp(56px, 18vw, 72px);
  font-weight: 950;
  line-height: 1;
}

.result-score .value.good { color: var(--ok); }
.result-score .value.mid { color: var(--mid); }
.result-score .value.bad { color: var(--bad); }

.result-score .sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.gap-line {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 138, 61, 0.1);
  border: 1px solid rgba(255, 138, 61, 0.28);
}

.gap-line h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 900;
  color: var(--cta-2);
}

.gap-line p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 650;
  color: var(--text);
}

.gap-topic {
  margin: 0 0 8px !important;
  font-family: var(--display);
  font-size: clamp(17px, 4.6vw, 20px) !important;
  font-weight: 900 !important;
  color: var(--text) !important;
}

.offer-block {
  margin-top: 18px;
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(37, 211, 102, 0.14), rgba(26, 39, 64, 0.55) 55%),
    var(--bg-soft);
  border: 1px solid rgba(37, 211, 102, 0.32);
}

.offer-block h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 900;
  color: #b8f5cf;
}

.offer-list {
  margin: 0 0 12px;
  padding: 0 0 0 18px;
}

.offer-list li {
  margin: 6px 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.offer-note {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}

.offer-block .btn-whatsapp {
  animation: pulse-wa 2.6s ease-in-out infinite;
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.28); }
  50% { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.46); }
}

@keyframes pulse-wa-soft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.12);
    border-color: rgba(126, 220, 160, 0.22);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.28);
    border-color: rgba(168, 240, 190, 0.55);
  }
}

.actions-secondary {
  margin-top: 18px;
  padding-top: 8px;
}

.has-sticky-cta {
  padding-bottom: 88px;
}

.sticky-wa {
  position: fixed;
  left: var(--safe-l);
  right: var(--safe-r);
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sticky-wa.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-wa .btn-whatsapp {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 12px 28px rgba(37, 211, 102, 0.3);
}

.sticky-wa-soft .btn-whatsapp-soft {
  /* keep soft pulse visible on sticky bar */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28), 0 6px 14px rgba(37, 211, 102, 0.14);
}

.zones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.zone {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  min-width: 0;
}

.zone h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.zone.good h3 { color: var(--ok); }
.zone.warn h3 { color: var(--mid); }
.zone.bad h3 { color: var(--bad); }

.zone-item {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}

.zone-empty {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.loading {
  margin: auto;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  padding: 40px 16px;
}

.mistakes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mistake-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}

.mistake-card-focus {
  margin-top: 4px;
}

.mistake-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mistake-nav .btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.mistake-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 10px;
}

.mistake-num {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bad);
}

.mistake-topic {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mistake-prompt {
  font-family: var(--display);
  font-size: clamp(17px, 4.8vw, 22px);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.mistake-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.mistake-answer {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  min-width: 0;
}

.mistake-answer.wrong {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.35);
}

.mistake-answer.right {
  background: rgba(63, 214, 139, 0.1);
  border-color: rgba(63, 214, 139, 0.35);
}

.mistake-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.mistake-value {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mistake-explain {
  border-radius: 14px;
  padding: 12px;
  background: rgba(62, 198, 255, 0.08);
  border: 1px solid rgba(62, 198, 255, 0.22);
}

.mistake-explain p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
  color: var(--text);
}

@media (max-width: 420px) {
  .mistake-answers { grid-template-columns: 1fr; }
}

/* Phones stay full-bleed; tablet+ uses a comfortable content width inside full screen */
@media (min-width: 720px) {
  :root {
    --safe-l: max(28px, env(safe-area-inset-left));
    --safe-r: max(28px, env(safe-area-inset-right));
    --safe-t: max(24px, env(safe-area-inset-top));
    --safe-b: max(28px, env(safe-area-inset-bottom));
  }

  .view.shell {
    width: min(1080px, 100%);
  }

  .view.hero,
  .view.landing {
    width: min(920px, 100%);
  }

  .landing-below {
    width: min(640px, 100%);
  }

  .hero-logo {
    width: 112px;
    height: 112px;
  }

  .hero-brand {
    font-size: 18px;
  }

  .hero-title {
    font-size: clamp(40px, 4.5vw, 56px);
  }

  .hero-sub {
    font-size: 19px;
    max-width: 28em;
  }

  .hero-cta {
    width: min(460px, 100%);
  }

  .field,
  .grade-chips {
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .grade-chips {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .lead {
    font-size: 18px;
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .actions {
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .mistake-nav {
    max-width: 560px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .mistake-card-focus {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .offer-block,
  .sticky-wa {
    max-width: 560px;
  }

  .offer-block {
    margin-left: auto;
    margin-right: auto;
  }

  .topbar {
    margin-bottom: 22px;
    width: 100%;
  }

  .progress,
  .quiz-meta,
  .topic,
  .prompt,
  .options,
  .result-score,
  .result-identity,
  .gap-line,
  .zones,
  .mistakes {
    width: 100%;
  }

  .topbar-logo {
    width: 52px;
    height: 52px;
  }

  .topbar-title {
    font-size: 26px;
  }

  .topbar-brand-only .topbar-brand {
    font-size: 22px;
  }

  .result-score .value {
    font-size: 84px;
  }

  .zones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .options {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .prompt {
    font-size: clamp(24px, 2.4vw, 32px);
    max-width: 48em;
  }

  .mistakes {
    display: block;
  }

  .mistake-prompt {
    font-size: 22px;
  }
}

@media (min-width: 1100px) {
  .view.shell {
    width: min(1200px, 100%);
  }

  .view.hero,
  .view.landing {
    width: min(1000px, 100%);
  }
}

@media (max-width: 360px) {
  .hero-title { font-size: 26px; }
  .prompt { font-size: 18px; }
}

/* Math */
.math-inline {
  display: inline;
  max-width: 100%;
  font-family: "Cambria Math", "STIX Two Math", Georgia, "Times New Roman", serif;
  font-size: 1em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.math-ml,
.math-inline math,
button math {
  font-size: 1em !important;
  max-width: 100%;
}

.math-inline .math-sup,
.math-inline .math-sub {
  display: inline-block;
  font-size: 0.62em;
  line-height: 1;
  font-weight: 900;
  margin-left: 0.02em;
}

.math-inline .math-sup {
  vertical-align: super;
  position: relative;
  top: -0.12em;
}

.math-inline .math-sub {
  vertical-align: sub;
  position: relative;
  top: 0.08em;
}

.math-fraction {
  display: inline-flex;
  vertical-align: middle;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  line-height: 1.15;
  margin: 0 3px;
  white-space: nowrap;
  font-size: 0.95em;
}

.math-fraction-num {
  display: block;
  padding: 0 5px 2px;
  border-bottom: 1.5px solid currentColor;
}

.math-fraction-den {
  display: block;
  padding: 2px 5px 0;
}

.math-formula-chip {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 2px;
  background: rgba(62, 198, 255, 0.12);
  border: 1px solid rgba(62, 198, 255, 0.28);
  border-radius: 10px;
  color: #dff6ff;
  font-weight: 900;
  max-width: 100%;
}

button .math-inline {
  text-align: left;
  font-weight: inherit;
  line-height: 1.4;
}

.math-system {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
}

.math-system-rows {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12em;
}

.math-system-row {
  display: flex;
  align-items: center;
  gap: 0.2em;
  white-space: nowrap;
}

.math-system-brace-char {
  min-width: 0.62em;
  font-size: 1.45em;
  line-height: 0.92;
}

.math-integral {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.math-integral-limits {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.math-integral-sign { font-size: 1.42em; line-height: 0.82; }
.math-integral-upper,
.math-integral-lower { font-size: 0.58em; }
