:root {
  --navy: #172457;
  --navy-deep: #0f1a42;
  --red: #c8102e;
  --red-deep: #9e0b22;
  --red-soft: #ff8a99;
  --paper: #f8f9fc;
  --mist: #dde2ee;
  --slate: #59617f;
  --white: #ffffff;

  --sans: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat Brush", "Segoe Print", cursive;

  --topbar: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

html.quiz-open { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

button { font: inherit; color: inherit; }

a { color: inherit; }

/* âncoras não ficam escondidas atrás do cabeçalho fixo */
[id] { scroll-margin-top: calc(var(--topbar) + 8px); }

[data-focus]:focus,
#aulas-title:focus { outline: none; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wa-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--topbar);
  padding: 0 max(20px, 4vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}
.brand-word {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.brand .speak { color: var(--navy); }
.brand .up { color: var(--red); }
.brand-english {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--navy);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-test {
  border: 0;
  background: none;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
  border-radius: 10px;
}
.topbar-test:hover { background: var(--mist); }

.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  background: var(--navy);
  border-radius: 10px;
}
.topbar-wa:hover { background: var(--navy-deep); }

/* ---------- Journey (palco fixo + abertura) ---------- */

.journey {
  --shift: 17vw;
  --scene-w: min(60vw, calc((100svh - var(--topbar) - 40px) * 1.3158));
  --scene-top: calc(var(--topbar) + 12px);

  position: relative;
  height: 420vh;
}

.sticky {
  --fin: 0;
  --shrink: 0.3;

  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.trip-progress {
  position: absolute;
  top: var(--topbar);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}
.trip-progress span {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.scene {
  position: absolute;
  top: var(--scene-top);
  left: 50%;
  width: var(--scene-w);
  transform-origin: 50% 0;
  transform:
    translateX(calc(-50% + var(--shift) * (1 - var(--fin) * var(--center, 1))))
    translateY(calc(var(--lift, 0px) * var(--fin)))
    scale(calc(1 - var(--shrink) * var(--fin)));
}

.world {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* globe */
.g-sphere { fill: var(--paper); }
.g-grat { fill: none; stroke: var(--mist); stroke-width: 0.9; }
.g-land { fill: var(--navy); }
.g-route { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-dasharray: 5 7; stroke-linecap: round; }
.g-rim { fill: none; stroke: var(--navy); stroke-width: 3.5; }
.g-pin { fill: var(--red); stroke: var(--paper); stroke-width: 2.5; }
.g-pin-ring { fill: none; stroke: var(--red); stroke-width: 1.5; opacity: 0.45; }
.g-static { stroke: var(--navy); stroke-width: 3.5; }

/* landmarks: traço desenha, depois preenche */
.lm { --d: 0; --f: 1; }
/* com JavaScript, tudo começa escondido e o script monta; sem ele, a ilustração aparece pronta */
.js .lm { --d: 1; --f: 0; visibility: hidden; }
.js .bubble { --b: 0; }
.js .finale { visibility: hidden; }
.lm path { stroke-linejoin: round; stroke-linecap: round; }
.lm .s,
.lm .r,
.lm .r2,
.lm .face,
.lm .rl {
  stroke-dasharray: 1px 1px;
  stroke-dashoffset: calc(var(--d) * 1px);
}
.lm .s { fill: var(--navy); fill-opacity: var(--f); stroke: var(--navy); stroke-width: 2; }
.lm .r { fill: var(--red); fill-opacity: var(--f); stroke: var(--red); stroke-width: 2; }
.lm .r2 { fill: var(--red-deep); fill-opacity: var(--f); stroke: var(--red-deep); stroke-width: 2; }
.lm .face { fill: var(--paper); fill-opacity: var(--f); stroke: var(--navy); stroke-width: 2; }
.lm .rl { fill: none; stroke: var(--red); stroke-width: 4.5; }
.lm .rl.thin { stroke-width: 1.6; }
.lm .rl.hair { stroke-width: 1.2; }
.lm .d { fill: none; stroke: var(--paper); stroke-width: 1.4; opacity: var(--f); }
.lm .dn { fill: none; stroke: var(--navy); stroke-width: 2.6; opacity: var(--f); }

.bubble {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(var(--b, 1));
  opacity: var(--b, 1);
}
.bubble-red path { fill: var(--red); }
.bubble-navy path { fill: var(--navy); }
.bubble circle { fill: var(--white); }

/* abertura */
.hero {
  position: relative;
  z-index: 3;
  margin-top: -100svh;
  min-height: 100svh;
  padding: calc(var(--topbar) + 28px) 0 40px max(28px, 5vw);
  display: flex;
  align-items: center;
}
.hero-content {
  width: min(38vw, 520px);
  transition: opacity .28s ease;
}
.tour-out .hero-content { opacity: 0; }

.hero h1 {
  font-size: clamp(34px, min(3.9vw, 6.6vh), 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero-brand {
  margin-top: 12px;
  font-family: var(--hand);
  font-size: clamp(24px, min(2.4vw, 4.2vh), 38px);
  line-height: 1.1;
  color: var(--red);
}
.hero .lede {
  margin-top: 20px;
  max-width: 42ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--slate);
  text-wrap: pretty;
}
.intro-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.intro-actions .btn {
  min-height: 52px;
  padding: 0 20px;
  font-size: 17px;
  white-space: nowrap;
}
.intro-meta {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate);
}
.hero .hint {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--slate);
}
.hint-line {
  position: relative;
  flex: none;
  width: 2px;
  height: 44px;
  background: var(--mist);
  overflow: hidden;
  border-radius: 2px;
}
.hint-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 40%;
  background: var(--red);
  transform: translateY(-100%);
  animation: hint 1.8s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes hint { to { transform: translateY(250%); } }

/* legendas das cidades */
.captions {
  position: absolute;
  left: max(28px, 5vw);
  top: calc(50% + var(--topbar) / 2);
  width: min(34vw, 470px);
  height: 0;
}

.cap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(calc(-50% + var(--cy, 0px)));
  opacity: var(--o, 1);
}
/* durante o voo guiado de "Conhecer as aulas", os textos das cidades não piscam */
.touring .captions { opacity: 0; }
.js .cap { visibility: hidden; }
.js .cap.is-on { visibility: visible; }

.cap .city {
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cap .city span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--slate);
}
.cap .phrase {
  margin-top: 28px;
  font-size: clamp(21px, 1.75vw, 27px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.cap .trans {
  margin-top: 10px;
  font-size: 16px;
  color: var(--slate);
  max-width: 34ch;
}
.cap .note {
  margin-top: 26px;
  display: inline-block;
  font-family: var(--hand);
  font-size: 25px;
  line-height: 1.15;
  color: var(--red);
  transform: rotate(-2deg);
  transform-origin: 0 50%;
  max-width: 24ch;
}
.cap .note b {
  font-weight: 400;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--red) 18%, transparent) 62%);
}

/* finale */
.finale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(22px, 4svh);
  padding: 0 20px;
  text-align: center;
}
.finale[inert] { pointer-events: none; }

.logo { display: inline-block; }
.logo-word {
  font-size: clamp(52px, min(8.4vw, 12.5vh), 116px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--navy);
}
.logo-word .lt {
  display: inline-block;
  transform: translateY(var(--ly, 0%));
  opacity: var(--lo, 1);
}
.logo-word .up { color: var(--red); }

.logo-sub {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: clamp(16px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: var(--eo, 1);
}
.logo-sub span { margin-right: -0.42em; }
.logo-sub i {
  display: block;
  flex: 1;
  height: 2px;
  background: var(--navy);
  transform: scaleX(var(--es, 1));
}
.logo-sub i:first-child { transform-origin: 100% 50%; }
.logo-sub i:last-child { transform-origin: 0 50%; }

.finale-tag {
  margin-top: 14px;
  font-family: var(--hand);
  font-size: clamp(22px, min(2vw, 3.6vh), 30px);
  line-height: 1.1;
  color: var(--red);
  opacity: var(--to, 1);
}
.finale-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  opacity: var(--ao, 1);
  transform: translateY(calc((1 - var(--ao, 1)) * 14px));
}
.finale-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--slate);
  opacity: var(--ao, 1);
}

/* sem JavaScript (ou se ele falhar): o desenho fica pronto e as camadas animadas somem */
html:not(.js) .journey { height: auto; }
html:not(.js) .sticky { position: relative; }
html:not(.js) .captions,
html:not(.js) .finale,
html:not(.js) .trip-progress,
html:not(.js) .hero .hint,
html:not(.js) [data-open-quiz] { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary {
  border: 0;
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost {
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* ---------- Seções de conteúdo ---------- */

.aulas,
.gabi,
.teste {
  position: relative;
  background: var(--paper);
  padding: clamp(72px, 10vw, 130px) max(20px, 5vw);
}

.aulas-inner,
.gabi-inner,
.teste-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.aulas h2,
.gabi h2,
.teste h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* aulas */
.aulas-head { position: sticky; top: calc(var(--topbar) + 40px); }
.aulas-head > p:not(.aulas-note) {
  margin-top: 22px;
  max-width: 44ch;
  color: var(--slate);
}
.aulas-note {
  margin-top: 36px;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--hand);
  font-size: 28px;
  line-height: 1.1;
  color: var(--red);
  transform: rotate(-3deg);
}
.note-arrow { width: 72px; height: 36px; margin-top: 10px; }

.aulas-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aulas-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1.5px solid var(--mist);
}
.aulas-list li:last-child { border-bottom: 1.5px solid var(--mist); }
.aula-icon {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.aulas-list h3 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.aulas-list p {
  margin-top: 8px;
  color: var(--slate);
  max-width: 50ch;
}

/* gabi */
.gabi { padding-top: 0; }
.gabi-inner { align-items: center; }
/* foto com moldura branca e contorno azul deslocado */
.gabi-art {
  --offset: 18px;
  --arch: 28px;
  position: relative;
  width: calc(100% - var(--offset));
  max-width: 420px;
  margin-bottom: 36px;
}
.gabi-frame {
  position: relative;
  aspect-ratio: 3 / 4;
}
.gabi-outline {
  position: absolute;
  top: var(--offset);
  left: var(--offset);
  width: 100%;
  height: 100%;
  overflow: visible;
}
.gabi-outline path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-dasharray: 1px 1px;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.1s cubic-bezier(.65, 0, .35, 1) .1s;
}
.gabi-photo {
  position: absolute;
  inset: 0;
  padding: 8px;
  background: var(--white);
  border-radius: var(--arch);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s cubic-bezier(.65, 0, .35, 1) .2s;
}
.gabi-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--arch);
  background: var(--mist);
  transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) .2s;
}

/* selo "Hi!" no canto, no mesmo balão da marca */
.gabi-hi {
  position: absolute;
  top: -22px;
  right: -26px;
  width: 96px;
  height: auto;
  transform-origin: 30% 90%;
  transform: rotate(8deg);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) 1.2s;
}
.gabi-hi path { fill: var(--red); }
.gabi-hi text {
  font-family: var(--hand);
  font-size: 40px;
  fill: var(--white);
}

/* resposta em azul: o par de balões vermelho e azul da marca */
.gabi-reply {
  position: absolute;
  right: -34px;
  bottom: -26px;
  width: 172px;
  height: auto;
  transform-origin: 20% 90%;
  transform: rotate(-5deg);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) 1.75s;
}
.gabi-reply path { fill: var(--navy); }
.gabi-reply text {
  font-family: var(--hand);
  font-size: 27px;
  fill: var(--white);
}

/* estado antes de aparecer na tela (só com JavaScript; sem ele, a foto já vem pronta) */
.js .gabi-art:not(.is-in) .gabi-outline path { stroke-dashoffset: 1px; }
.js .gabi-art:not(.is-in) .gabi-photo { clip-path: inset(100% 0 0 0); }
.js .gabi-art:not(.is-in) .gabi-photo img { transform: scale(1.12); }
.js .gabi-art:not(.is-in) .gabi-hi { transform: rotate(-12deg) scale(0); }
.js .gabi-art:not(.is-in) .gabi-reply { transform: rotate(5deg) scale(0); }

.gabi-text p {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--slate);
}
.gabi-text h2 + p { margin-top: 24px; }
.gabi-text .btn { margin-top: 32px; }

/* teste */
.teste {
  border-top: 1.5px solid var(--mist);
  margin: 0 max(20px, 5vw);
  padding-left: 0;
  padding-right: 0;
}
.teste-head p {
  margin-top: 18px;
  max-width: 40ch;
  color: var(--slate);
}
.teste-head .btn { margin-top: 30px; }
.teste-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 48px;
}
.teste-facts dt {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.teste-facts dd {
  margin-top: 8px;
  color: var(--slate);
}

/* ---------- Closing ---------- */

.closing {
  background: var(--navy);
  color: var(--white);
  padding: clamp(80px, 11vw, 140px) max(20px, 5vw);
}
.closing-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.closing h2 {
  font-size: clamp(38px, 5.4vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.closing h2 span { display: block; }
.closing-inner > p {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 19px;
  color: color-mix(in srgb, var(--white) 78%, var(--navy));
}
.closing-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.closing-wa {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 12px;
  text-decoration: none;
  color: var(--white);
}
.closing-wa .wa-icon { width: 34px; height: 34px; grid-row: span 2; }
.closing-number {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.closing-hand {
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.1;
  color: var(--red-soft);
}
.closing-wa:hover .closing-number { text-decoration: underline; text-underline-offset: 5px; }
.closing :focus-visible { outline-color: var(--white); }

.footer {
  background: var(--navy-deep);
  color: color-mix(in srgb, var(--white) 70%, var(--navy-deep));
  padding: 28px max(20px, 5vw);
  font-size: 14px;
}

/* ---------- Página 404 ---------- */

.nf {
  min-height: 100svh;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nf .brand { margin-bottom: 56px; }
.nf-hand {
  font-family: var(--hand);
  font-size: 46px;
  line-height: 1;
  color: var(--red);
  transform: rotate(-3deg);
  transform-origin: 0 50%;
}
.nf h1 {
  margin-top: 10px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.nf h1 + p {
  margin-top: 14px;
  color: var(--slate);
}
.nf-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Quiz ---------- */

.quiz {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  color: var(--navy);
  overflow: auto;
}
.quiz::backdrop {
  background: color-mix(in srgb, var(--navy-deep) 72%, transparent);
}
.quiz[open] { animation: quiz-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes quiz-in {
  from { opacity: 0; transform: translateY(16px); }
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 14px 32px;
}
.quiz-count { font-size: 14px; color: var(--slate); }
.quiz-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.quiz-close:hover { background: var(--paper); }
.quiz-close svg { width: 22px; height: 22px; }

.quiz-bar {
  height: 4px;
  margin: 0 32px;
  background: var(--mist);
  border-radius: 4px;
  overflow: hidden;
}
.quiz-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform-origin: 0 50%;
  transform: scaleX(var(--qp, 0));
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.quiz-body { padding: 30px 32px 34px; }

.q-start h2 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.q-start p {
  margin-top: 14px;
  color: var(--slate);
  max-width: 46ch;
}
.q-start .note {
  margin-top: 22px;
  font-family: var(--hand);
  font-size: 24px;
  line-height: 1.15;
  color: var(--red);
  transform: rotate(-1.5deg);
  transform-origin: 0 50%;
}
.q-start .btn { margin-top: 30px; }

.q-prompt { font-size: 15px; color: var(--slate); }
.q-text {
  margin-top: 10px;
  font-size: clamp(25px, 4vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.blank {
  display: inline-block;
  width: 3.2em;
  height: 0.9em;
  border-bottom: 3px solid var(--red);
  vertical-align: baseline;
}

.q-options {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}
.q-opt {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 12px 18px;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  background: var(--white);
  border: 2px solid var(--mist);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .12s, background-color .12s, color .12s;
}
.q-opt:hover { border-color: var(--navy); }
.q-key {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--paper);
  color: var(--slate);
}
.q-opt[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.q-opt[aria-pressed="true"] .q-key { background: var(--red); color: var(--white); }

.q-foot {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.q-link {
  border: 0;
  background: none;
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 5px;
}
.q-link:hover { color: var(--navy); text-decoration-color: currentColor; }
.q-link[hidden] { display: none; }

/* result */
.r-label { font-size: 15px; color: var(--slate); }
.r-head {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.r-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--red);
}
.r-name {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.r-scale {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.r-scale li {
  padding-top: 10px;
  border-top: 5px solid var(--mist);
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}
.r-scale li.is-reached { border-top-color: var(--navy); color: var(--navy); }
.r-scale li.is-current { border-top-color: var(--red); color: var(--red); }

.r-score { margin-top: 24px; font-weight: 600; }
.r-desc { margin-top: 6px; color: var(--slate); max-width: 50ch; }

.r-form { margin-top: 26px; }
.r-form label {
  display: block;
  font-size: 15px;
  font-weight: 500;
}
.r-form input {
  margin-top: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: inherit;
  font-size: 17px;
  color: var(--navy);
  background: var(--paper);
  border: 2px solid var(--mist);
  border-radius: 12px;
}
.r-form input:focus-visible { outline: none; border-color: var(--navy); }
.r-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}
.r-actions .btn { flex: 1 1 auto; }
.r-disclaimer {
  margin-top: 20px;
  font-size: 14px;
  color: var(--slate);
}

/* ---------- Responsive ---------- */

/* desktop com pouca altura (notebook, zoom do Windows) */
@media (min-width: 1000px) and (max-height: 820px) {
  .hero-brand { margin-top: 8px; }
  .hero .lede { margin-top: 14px; font-size: 16px; }
  .intro-actions { margin-top: 18px; }
  .intro-actions .btn { min-height: 48px; font-size: 16px; }
  .intro-meta { margin-top: 8px; font-size: 13px; }
  .hero .hint { margin-top: 18px; }
  .cap .city { font-size: clamp(36px, 6vh, 60px); }
  .cap .phrase { margin-top: 18px; }
  .cap .note { margin-top: 16px; }
}

@media (min-width: 1000px) and (max-height: 700px) {
  .hero .hint { display: none; }
}

/* tablet e celular */
@media (max-width: 999px) {
  .journey {
    --shift: 0px;
    --scene-w: min(calc(100vw - 8px), 620px, calc((100svh - var(--topbar)) * 0.52 * 1.3158));
    --scene-top: calc(var(--topbar) + 8px);
  }

  .hero {
    display: block;
    padding: calc(var(--scene-top) + var(--scene-w) * 0.76 + 6px) 20px 40px;
  }
  .hero-content {
    position: relative;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    background: var(--paper);
    box-shadow: 0 -18px 18px var(--paper);
  }
  .hero .lede { margin-top: 14px; font-size: 16px; }
  .intro-actions { margin-top: 18px; gap: 8px; }
  .intro-actions .btn { flex: 1 1 auto; min-height: 50px; padding: 0 14px; font-size: 16px; }
  .intro-meta { font-size: 13px; }
  .hero .hint { margin-top: 24px; }

  .captions {
    left: 20px;
    right: 20px;
    width: auto;
    top: calc(var(--scene-top) + var(--scene-w) * 0.76 + 10px);
    max-width: 560px;
    margin: 0 auto;
  }
  .cap { transform: translateY(var(--cy, 0px)); }
  .cap .phrase { margin-top: 16px; }
  .cap .city span { display: inline; margin-left: 8px; }
  .cap .note { margin-top: 16px; font-size: 23px; }

  .aulas-inner,
  .gabi-inner,
  .teste-inner { grid-template-columns: 1fr; gap: 32px; }
  .aulas-head { position: static; }
  .gabi-art { max-width: 340px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar { padding: 0 16px; }
  .topbar-test {
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--red);
  }
  .topbar-test:hover { background: var(--red-deep); }
  .topbar-wa span { display: none; }
  .topbar-wa { padding: 10px; }
  .topbar-wa .wa-icon { width: 22px; height: 22px; }

  .hero h1 { font-size: 32px; }
  .cap .city { font-size: 36px; }
  .cap .city span { display: block; margin: 6px 0 0; }
  .cap .trans { font-size: 15px; }
  .finale-actions { flex-direction: column; align-items: stretch; margin-top: 18px; }
  .finale-meta { font-size: 13px; }
  .btn { min-height: 54px; font-size: 17px; }

  .teste-facts { grid-template-columns: 1fr; gap: 24px; }
  .gabi-art { --offset: 12px; max-width: 280px; margin-bottom: 30px; }
  .gabi-hi { width: 76px; top: -16px; right: -14px; }
  .gabi-reply { width: 140px; right: -14px; bottom: -20px; }

  .quiz {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
  }
  .quiz-top { padding-left: 20px; }
  .quiz-bar { margin: 0 20px; }
  .quiz-body { padding: 26px 20px 30px; }
  .r-code { font-size: 80px; }
  .aulas-list li { grid-template-columns: 44px 1fr; gap: 16px; }
  .aula-icon { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .brand-english { display: none; }
  .hero h1 { font-size: 28px; }
  .intro-actions .btn { padding: 0 12px; font-size: 15px; }
  .finale-actions .btn { padding: 0 12px; font-size: 15px; white-space: nowrap; }
}

/* celular em pé com tela baixa: globo menor e textos mais compactos */
@media (max-width: 999px) and (orientation: portrait) and (max-height: 760px) {
  .journey { --scene-w: min(calc(100vw - 8px), 620px, calc((100svh - var(--topbar)) * 0.4 * 1.3158)); }
  .hero h1 { font-size: 28px; }
  .hero-brand { margin-top: 6px; font-size: 23px; }
  .hero .lede { margin-top: 10px; font-size: 15px; line-height: 1.45; }
  .intro-actions { margin-top: 14px; }
  .intro-actions .btn { min-height: 46px; font-size: 15px; }
  .intro-meta { margin-top: 8px; font-size: 12px; }
  .hero .hint { display: none; }
  .cap .city { font-size: 30px; }
  .cap .phrase { margin-top: 10px; font-size: 18px; }
  .cap .trans { font-size: 14px; }
  .cap .note { margin-top: 10px; font-size: 20px; }
  .logo-word { font-size: 52px; }
  .finale-tag { margin-top: 8px; font-size: 22px; }
  .finale-actions { margin-top: 12px; gap: 8px; }
  .finale-actions .btn { min-height: 46px; font-size: 15px; }
  .finale-meta { margin-top: 8px; font-size: 12px; }
}

@media (max-width: 999px) and (orientation: portrait) and (max-height: 640px) {
  .journey { --scene-w: min(calc(100vw - 8px), 620px, calc((100svh - var(--topbar)) * 0.3 * 1.3158)); }
  .hero h1 { font-size: 26px; }
  .cap .city { font-size: 26px; }
  .cap .city span { margin-top: 4px; font-size: 14px; }
  .cap .phrase { font-size: 16px; }
  .cap .note { font-size: 18px; }
  .logo-word { font-size: 44px; }
}

/* celular deitado: globo à direita, textos à esquerda, como no desktop */
@media (max-width: 999px) and (orientation: landscape) and (max-height: 560px) {
  .journey {
    --shift: 21vw;
    --center: 0;
    --scene-w: min(56vw, calc((100svh - var(--topbar) - 14px) * 1.3158));
    --scene-top: calc(var(--topbar) + 6px);
  }
  .hero {
    display: flex;
    padding: calc(var(--topbar) + 14px) 0 24px max(20px, env(safe-area-inset-left));
  }
  .hero-content {
    width: 42vw;
    max-width: none;
    margin: 0;
    background: none;
    box-shadow: none;
  }
  .hero h1 { font-size: 26px; }
  .hero-brand { margin-top: 4px; font-size: 21px; }
  .hero .lede { margin-top: 8px; font-size: 14px; line-height: 1.4; }
  .intro-actions { margin-top: 12px; gap: 8px; }
  .intro-actions .btn,
  .finale-actions .btn { flex: 0 1 auto; min-height: 42px; padding: 0 14px; font-size: 14px; }
  .intro-meta { margin-top: 6px; font-size: 12px; }
  .hero .hint { margin-top: 12px; font-size: 13px; }
  .hint-line { height: 28px; }

  .captions,
  .finale {
    left: max(20px, env(safe-area-inset-left));
    right: auto;
    width: 41vw;
    max-width: none;
    margin: 0;
    top: calc(50% + var(--topbar) / 2);
  }
  .cap { transform: translateY(calc(-50% + var(--cy, 0px))); }
  .cap .city { font-size: 28px; }
  .cap .city span { display: inline; margin: 0 0 0 8px; font-size: 14px; }
  .cap .phrase { margin-top: 10px; font-size: 16px; }
  .cap .trans { margin-top: 6px; font-size: 13px; }
  .cap .note { margin-top: 8px; font-size: 18px; }

  .finale {
    bottom: auto;
    padding: 0;
    text-align: left;
    transform: translateY(-50%);
  }
  .logo-word { font-size: 46px; }
  .logo-sub { font-size: 13px; gap: 10px; }
  .finale-tag { margin-top: 6px; font-size: 20px; }
  .finale-actions { margin-top: 12px; flex-direction: row; justify-content: flex-start; gap: 8px; }
  .finale-meta { margin-top: 8px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hint-line::after { animation: none; transform: translateY(75%); }
  .quiz[open] { animation: none; }
  .quiz-bar span { transition: none; }
  .btn { transition: none; }
  .gabi-art *,
  .gabi-art *::before { transition: none !important; }
}
