/* =====================================================
   LINGO+ CURSOS — Brand CSS compartilhado
   Extraído dos mockups de marketing (home, cursos, quiz, resultado, precos)
   CSS específico de cada página fica inline em <style> na própria view
   ===================================================== */

:root {
  --p: #7C3AED;
  --p-tint: #EDE9FE;
  --cy: #00B4CC;
  --cy-tint: #E0F7FA;
  --go: #C9971A;
  --go-tint: #FEF3C7;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --gray: #64748B;
  --gray-2: #94A3B8;
  --white: #FFFFFF;
  --surface: #F8FAFC;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --fm: 'JetBrains Mono', monospace;
  --flogo: 'Comfortaa', sans-serif;
  --rs: 8px;
  --rs2: 14px;
  --rs3: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
button { font-family: inherit; cursor: pointer; }

/* TOP-BAR — assinatura da marca */
.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--p), var(--cy), var(--go));
  position: sticky; top: 0; z-index: 101;
}

/* NAV principal */
nav.nav {
  position: sticky; top: 4px; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 5vw;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem;
}
.nav-left { display: flex; align-items: center; gap: 3rem; }
.brand {
  font-family: var(--flogo);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex; align-items: baseline; gap: 0.55rem;
}
.brand .sub {
  font-family: var(--fm);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--p);
  padding: 0.28rem 0.55rem;
  background: var(--p-tint);
  border-radius: 40px;
}
.nav-links { display: flex; gap: 2rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--p); }
.nav-links a.active { color: var(--p); font-weight: 600; }
.nav-cta {
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-family: var(--fb);
  font-size: 0.88rem; font-weight: 600;
  transition: background .2s;
}
.nav-cta:hover { background: var(--p); }

/* WRAP */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 5vw; }

/* BUTTONS */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.8rem;
  border-radius: 40px;
  font-family: var(--fb);
  font-size: 0.98rem;
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--p); color: var(--white); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--p);
  padding: 1rem 1.5rem;
  border: 1.5px solid var(--p);
  border-radius: 40px;
  font-family: var(--fb);
  font-size: 0.98rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--p); color: var(--white); }

/* SECTION SHARED */
section.block { padding: 5rem 5vw; max-width: 1140px; margin: 0 auto; }
.sec-eyebrow {
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p);
  background: var(--p-tint);
  padding: 0.4rem 0.85rem;
  border-radius: 40px;
  display: inline-block;
  margin-bottom: 1.3rem;
}
h2.sec-h {
  font-family: var(--fd);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 22ch;
}
h2.sec-h .accent { color: var(--p); }
p.sec-lede {
  max-width: 55ch;
  margin-top: 1.2rem;
  color: var(--ink-2);
  font-size: 1.05rem;
  font-weight: 400;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--fm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p);
  background: var(--p-tint);
  padding: 0.4rem 0.85rem;
  border-radius: 40px;
  margin-bottom: 1.8rem;
}

/* FOOTER completo */
footer {
  background: var(--ink-2);
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 5vw 2rem;
  font-size: 0.88rem;
}
footer .wrap {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  padding: 0 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer .brand-block { color: var(--white); }
footer .brand-block .brand { color: var(--white); }
footer .brand-block p { margin-top: 1rem; color: rgba(255,255,255,0.6); max-width: 30ch; line-height: 1.6; }
footer h4 {
  font-family: var(--fm);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
footer ul a:hover { color: var(--white); }
footer .fine {
  max-width: 1140px; margin: 2rem auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--fm);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* Footer simples (resultado, quiz) */
footer.simple {
  text-align: center;
}
footer.simple .wrap {
  display: block;
  padding: 0;
  border-bottom: none;
}
footer.simple p { margin-top: 0.8rem; }
footer.simple .fine {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .brand .sub { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
  footer .fine { flex-direction: column; gap: 0.6rem; align-items: flex-start; }
}
