/* ============================================================
   InglesU · landing.css — identidade visual de 26/09/2026.
   A composição aprovada pelo dono (proposta do ChatGPT): fundo claro,
   títulos roxos pesados e apertados, o botão principal laranja, o
   Toffee sobre a órbita quente e a demonstração Good evening/Good
   night. A pele continua o Design System v5 (`design system/`).
   CSS em arquivo externo porque a política de segurança do site
   proíbe <style> e style= (netlify.toml).
   ============================================================ */

/* Manrope self-hosted: a landing é marketing, onde a identidade vende.
   O app usa fonte de sistema (ARQUITETURA §4.7). `swap` para o texto
   aparecer na hora — o LCP desta página é o título, e ele não espera fonte. */
@font-face {
  font-family: "Manrope";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2");
}

/* ---------- tokens: primitivo → semântico (DS v5 §3/§19) ---------- */
:root {
  --purple-900: #261426;
  --purple-800: #3b1f3b;
  --purple-700: #542b54;
  --purple-200: #e6e2e8;
  --purple-100: #f1edf4;
  --purple-50: #f6f5f7;
  --orange-500: #ff7029;
  --orange-400: #ff8a50;
  --orange-700: #a83a00;
  --orange-50: #fff1e5;
  --neutral-50: #ffffff;
  --neutral-300: #d1d5db;
  --neutral-600: #606572;
  --error-600: #b42332;
  --error-200: #ffb4b4;
  /* verde: papel único — feedback de acerto validado (DS v5 p. 13) */
  --green-100: #dcfce7;
  --green-800: #166534;
  --dark-border: #6f5d6f;

  color-scheme: light dark;
  --bg: var(--neutral-50);
  --canvas: var(--purple-50);
  --surface: var(--neutral-50);
  --surface-soft: var(--purple-100);
  --surface-warm: var(--orange-50);
  --text: var(--purple-800);
  --text-secondary: var(--neutral-600);
  --border: var(--purple-200);
  --action: var(--purple-800);
  --on-action: var(--neutral-50);
  --action-hover: var(--purple-700);
  /* tangerina só como recompensa/destaque, com texto roxo por cima */
  --reward: var(--orange-500);
  --reward-hover: var(--orange-400);
  --on-reward: var(--purple-800);
  --success: var(--green-800);
  --success-bg: var(--green-100);
  --error: var(--error-600);
  /* U do wordmark e o destaque do título: laranja pelo passo 700 da escala —
     #ff7029 sobre branco dá 2,76:1 (DS §3, regra de contraste) */
  --accent-u: var(--orange-700);
  --focus: var(--purple-800);
  /* superfície escura usada como seção (fechamento) */
  --deep: var(--purple-800);
  --on-deep: var(--neutral-50);
  --on-deep-secondary: var(--neutral-300);
  --on-deep-accent: var(--orange-500);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --elev-1: 0 1px 2px rgba(37, 35, 42, 0.08);
  --elev-2: 0 14px 40px rgba(59, 31, 59, 0.08);
  --dur-ui: 200ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max-content: 1240px;
  --touch-min: 44px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--purple-900);
    --canvas: var(--purple-900);
    --surface: var(--purple-800);
    --surface-soft: var(--purple-700);
    --surface-warm: var(--purple-700);
    --text: var(--neutral-50);
    --text-secondary: var(--neutral-300);
    --border: var(--dark-border);
    /* no escuro a ação é tangerina com texto roxo (DS §15) */
    --action: var(--orange-500);
    --on-action: var(--purple-800);
    --action-hover: var(--orange-400);
    --error: var(--error-200);
    --accent-u: var(--orange-500);
    --focus: var(--neutral-50);
    --deep: var(--purple-900);
    --elev-1: none;
    --elev-2: none;
  }
}

/* ---------- base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 800;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  max-width: var(--max-content);
  margin: auto;
  padding: 0 32px;
}
.pular {
  position: absolute;
  top: -90px;
  left: 16px;
  z-index: 20;
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.pular:focus {
  top: 12px;
}

/* ---------- wordmark: bloco indivisível, U tangerina (DS §1) ---------- */
.logo {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
  display: inline-block;
  white-space: nowrap;
}
.logo span {
  color: var(--accent-u);
}
.closing .logo,
.closing .logo span {
  color: var(--on-deep);
}

/* ---------- cabeçalho ---------- */
header {
  background: var(--bg);
}
.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.links > a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--text-secondary);
}
.links > a:not(.nav-cta):hover {
  color: var(--text);
}
.nav-cta {
  background: var(--action);
  color: var(--on-action);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 700;
  transition: background var(--dur-ui) var(--ease-out);
}
.nav-cta:hover {
  background: var(--action-hover);
}

/* ---------- tipografia de seção ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 18px 0 22px;
}
.destaque {
  color: var(--accent-u);
}
h2 {
  font-size: clamp(30px, 3.6vw, 40px);
  margin-bottom: 18px;
}
h3 {
  font-weight: 800;
}
.lead {
  font-size: 19px;
  line-height: 1.65;
  max-width: 470px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ---------- botões e links ---------- */
.cta {
  background: var(--action);
  color: var(--on-action);
  border: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 16px;
  min-height: 52px;
  transition:
    transform var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
}
.cta:hover {
  transform: translateY(-2px);
}
/* o botão principal da página é laranja com texto roxo: o mesmo par da
   recompensa no app, e o que a proposta usa para "Jogar" */
.cta-laranja {
  background: var(--reward);
  color: var(--on-reward);
}
.cta-laranja:hover {
  background: var(--reward-hover);
}
.link-texto {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  font-size: 15px;
  font-weight: 700;
}
.link-texto:hover {
  text-decoration: underline;
}
.acoes {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.fine {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 12px 0 0;
}

/* ---------- hero ---------- */
.hero {
  padding: 40px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 560px;
}
.hero-art {
  position: relative;
  height: 500px;
}
/* a órbita quente atrás do Toffee: decoração, atrás de tudo — o axe precisa
   medir o contraste do balão por cima dela */
.orbita {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--surface-warm);
  z-index: 0;
}
/* o Toffee filhote (27/09/2026: a imagem é quadrada e ele cresce com o nível
   no app; aqui é o filhote, que é quem recebe todo mundo), dentro da órbita.
   A inclinação de boas-vindas acontece UMA vez, ao chegar, e para. */
.toffee {
  position: absolute;
  right: 50px;
  bottom: 22px;
  width: 300px;
  height: 300px;
  object-fit: contain;
  z-index: 1;
  transform-origin: 50% 92%;
  animation: toffee-ola 1s ease-out 1 both;
}
@keyframes toffee-ola {
  0% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-4deg) translateY(-2px);
  }
  60% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0);
  }
}
/* o balão: a confusão que a demonstração resolve */
.balao {
  position: absolute;
  top: 24px;
  left: 0;
  z-index: 2;
  max-width: 270px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px 20px 5px 20px;
  box-shadow: var(--elev-2);
}
.balao .eyebrow {
  margin-bottom: 10px;
}
/* `.balao .balao-titulo`, e não só a classe: `.balao p` logo abaixo tem
   especificidade maior e apagava o tamanho do título (visto na captura) */
.balao .balao-titulo {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 12px;
}
.balao p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.balao a {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- as três promessas ---------- */
.promessas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 32px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.promessas span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-u);
}
.promessas strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.promessas p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- a demonstração ---------- */
.experimente {
  padding: 80px 0;
}
.experimente-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.experimente .lead {
  margin-bottom: 12px;
}
.quiz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--elev-2);
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.quiz .question {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}
.answer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  text-align: left;
  padding: 16px 19px;
  border-radius: var(--radius-md);
  margin: 10px 0;
  color: var(--text);
  min-height: 56px;
  font-weight: 700;
  transition:
    border-color var(--dur-ui) var(--ease-out),
    background var(--dur-ui) var(--ease-out);
}
.answer:hover:not(:disabled) {
  border-color: var(--action);
  background: var(--surface-soft);
}
.answer:disabled {
  cursor: default;
}
/* certo = fundo verde claro com texto, visto e contorno verde escuro; errado =
   tracejado na cor de erro, com X e riscado. Estado nunca só por cor (DS §8):
   o símbolo e o riscado carregam junto. */
.answer.correct {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}
.answer.wrong {
  border-style: dashed;
  border-color: var(--error);
}
.answer.wrong .texto {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.answer .marca {
  margin-left: auto;
  font-weight: 800;
  flex: none;
}
.feedback {
  font-size: 15px;
  line-height: 1.6;
  min-height: 66px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--text-secondary);
}
/* acerto: card verde claro com texto verde escuro e o "por quê" dentro dele —
   o padrão aprovado do DS v5 (p. 13) */
.feedback.success {
  background: var(--success-bg);
  color: var(--success);
  font-weight: 600;
}
.reset {
  background: none;
  border: 0;
  text-decoration: underline;
  color: var(--text);
  padding: 10px 0;
  font-size: 15px;
  min-height: var(--touch-min);
  font-weight: 600;
}
.apos-quiz {
  margin: 18px 0 0;
  font-size: 15px;
}

/* ---------- a diferença ---------- */
.diferenca {
  padding: 24px 32px 88px;
}
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin: 8px 0 40px;
}
.section-title h2 {
  margin: 0;
}
.section-title p {
  max-width: 340px;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 260px;
  overflow: hidden;
}
.feature:nth-child(2) {
  background: var(--surface-soft);
}
.feature-toffee {
  background: var(--surface-warm);
  padding-right: 120px;
}
.feature-toffee img {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.feature .icon {
  width: 46px;
  height: 46px;
  border: 2px solid currentColor;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  font-size: 19px;
  font-weight: 800;
}
.feature h3 {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-secondary);
}

/* ---------- fechamento ---------- */
.closing {
  text-align: center;
  padding: 88px 24px;
  background: var(--deep);
  color: var(--on-deep);
}
.closing .eyebrow {
  color: var(--on-deep-secondary);
}
.closing h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 12px auto 22px;
  max-width: 16ch;
}
.closing p {
  color: var(--on-deep-secondary);
  margin-bottom: 26px;
}
/* sobre a superfície escura o botão vira tangerina com texto roxo — é a regra
   do modo escuro do DS §15, e branco sobre tangerina não é aprovado */
.closing .cta {
  background: var(--reward);
  color: var(--on-reward);
}
.closing .fine {
  color: var(--on-deep-secondary);
}

/* ---------- rodapé ---------- */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font-size: 14px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  color: var(--text-secondary);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--text);
}
.footer-row > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .hero-grid {
    gap: 16px;
  }
  .toffee {
    right: 40px;
    bottom: 18px;
    width: 260px;
    height: 260px;
  }
  .orbita {
    width: 340px;
    height: 340px;
  }
  .balao {
    padding: 20px;
  }
  .balao-titulo {
    font-size: 23px;
  }
  .experimente-grid {
    gap: 40px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    min-height: 72px;
  }
  .links > a:not(.nav-cta) {
    display: none;
  }
  .logo {
    font-size: 28px;
  }
  .nav-cta {
    font-size: 13px;
    padding: 10px 14px;
  }
  .hero {
    padding: 24px 0 40px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: stretch;
    min-height: 0;
  }
  h1 {
    font-size: 46px;
    margin: 16px 0 18px;
  }
  .lead {
    font-size: 17px;
  }
  .hero .cta {
    width: 100%;
  }
  .hero-art {
    height: 330px;
    max-width: 420px;
    width: 100%;
    align-self: center;
  }
  .toffee {
    right: 30px;
    bottom: 14px;
    width: 210px;
    height: 210px;
  }
  .orbita {
    width: 270px;
    height: 270px;
  }
  .balao {
    top: 12px;
    left: 4px;
    max-width: 200px;
    padding: 16px;
  }
  .balao-titulo {
    font-size: 21px;
  }
  .balao p {
    font-size: 12px;
  }
  .promessas {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px 20px;
  }
  .promessas > div {
    position: relative;
    padding-left: 42px;
  }
  .promessas span {
    position: absolute;
    left: 0;
    top: 3px;
  }
  .experimente {
    padding: 48px 0;
  }
  .experimente-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .quiz {
    padding: 22px;
  }
  .diferenca {
    padding: 8px 20px 56px;
  }
  .section-title {
    display: block;
    margin-bottom: 28px;
  }
  .section-title p {
    margin-top: 16px;
    max-width: 100%;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature {
    min-height: auto;
  }
  .closing {
    padding: 60px 20px;
  }
  .closing .cta {
    width: 100%;
  }
  .footer-row {
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
  .toffee {
    animation: none;
  }
}
