/* ==========================================================================
   Quiz de nível de proficiência — Juliana de Camargo
   Tema branco / preto / laranja (#FF4E00). Fonte Inter.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #000000;
  --ink-soft: #1a1a1a;
  --dark: #000305;
  --orange: #FF4E00;
  --orange-tint: #fff2ec;
  --green: #00bf63;
  --green-hover: #00a856;
  --muted: #555555;
  --border: #e6e2dd;

  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --maxw: 1120px;
}

/* --- Base --------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  line-height: 1.5; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3, p, figure, blockquote, form { margin: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hl { color: var(--orange); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--orange);
}

/* --- CTA ---------------------------------------------------------------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--green); color: #fff; font-weight: 700; font-size: 16px;
  letter-spacing: 0.01em; padding: 16px 34px; border: 0; border-radius: 10px;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 22px rgba(0,191,99,.28); text-align: center;
}
.cta:hover { background: var(--green-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,191,99,.34); }
.cta:active { transform: translateY(0); }
.cta--start { font-size: 17px; padding: 18px 40px; }

.ghost-btn {
  background: none; border: 0; color: var(--muted); font-family: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 4px;
}
.ghost-btn:hover { color: var(--orange); }

/* --- Header / Footer ---------------------------------------------------- */
.site-header { padding: 22px 0; border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header__inner { display: flex; align-items: center; }
.site-header__logo { height: 30px; width: auto; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; margin-top: 40px; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer__copy { font-size: 13px; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer__links a { font-size: 13px; color: var(--muted); }
.site-footer__links a:hover { color: var(--orange); }

/* --- Intro -------------------------------------------------------------- */
.intro { padding: clamp(56px,10vw,120px) 24px; }
.intro__inner { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; text-align: center; }
.intro__title {
  font-weight: 700; font-size: clamp(30px,5vw,52px); line-height: 1.06;
  letter-spacing: -0.02em; max-width: 20ch; text-wrap: balance;
}
.intro__lead { font-size: clamp(17px,2.2vw,20px); color: var(--ink-soft); max-width: 44ch; line-height: 1.55; }
.intro__hint { font-size: 13px; color: var(--muted); }
.intro .cta--start { margin-top: 6px; }

/* --- Quiz --------------------------------------------------------------- */
.quiz { padding: clamp(40px,7vw,80px) 24px; }
.quiz__inner { max-width: 720px; margin: 0 auto; }
.quiz__bar { display: grid; gap: 10px; margin-bottom: clamp(28px,5vw,44px); }
.quiz__count { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.progress { height: 6px; border-radius: 99px; background: #eceae6; overflow: hidden; }
.progress__fill { display: block; height: 100%; width: 12.5%; border-radius: 99px; background: var(--orange); transition: width .35s cubic-bezier(.4,0,.2,1); }

.quiz__stage { display: grid; gap: clamp(20px,3vw,28px); }
.question__prompt {
  font-weight: 700; font-size: clamp(20px,3vw,27px); line-height: 1.22;
  letter-spacing: -0.01em; text-wrap: pretty;
}
.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  text-align: left; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; cursor: pointer; font-family: inherit;
  font-size: 15.5px; line-height: 1.45; color: var(--ink-soft);
  transition: border-color .15s ease, background .15s ease, transform .08s ease;
}
.option:hover { border-color: var(--orange); background: var(--orange-tint); }
.option:active { transform: scale(.995); }
.option.is-selected { border-color: var(--orange); background: var(--orange-tint); color: var(--ink); box-shadow: 0 0 0 1px var(--orange) inset; }
.option__marker {
  flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  border: 2px solid #cfcac3; position: relative; transition: border-color .15s ease;
}
.option:hover .option__marker { border-color: var(--orange); }
.option.is-selected .option__marker { border-color: var(--orange); }
.option.is-selected .option__marker::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange);
}
.quiz__nav { margin-top: clamp(22px,4vw,32px); min-height: 24px; }

/* --- Captura ------------------------------------------------------------ */
.capture { padding: clamp(48px,8vw,96px) 24px; }
.capture__inner { max-width: 520px; margin: 0 auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.capture__title { font-weight: 700; font-size: clamp(26px,3.6vw,38px); line-height: 1.1; letter-spacing: -0.02em; }
.capture__lead { font-size: 16px; color: var(--ink-soft); max-width: 42ch; line-height: 1.55; margin-bottom: 8px; }

.form { width: 100%; display: grid; gap: 16px; text-align: left; margin-top: 8px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,78,0,.12); }
.check { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; color: var(--muted); line-height: 1.45; cursor: pointer; }
.check input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--orange); flex: none; }
.check a { color: var(--orange); text-decoration: underline; }
.form .cta { width: 100%; margin-top: 4px; }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; }
.form__note.is-error { color: #c0341d; }

/* --- Responsivo --------------------------------------------------------- */
@media (max-width: 560px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .option { font-size: 15px; padding: 15px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .option, .progress__fill { transition: none; }
}
