:root {
  --ink: #0e1b3d;
  --slate: #3a4563;
  --mist: #f6f8fc;
  --line: #e3e8f2;
  --blue: #2452c9;
  --blue-dark: #1b3fa8;
  --green: #0b7f6b;
  --gold: #f2b330;
  --red: #d7262e;
  --purple: #6a3fd8;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 69px; } /* sticky nav height (68px + 1px border): section top lands flush under it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.6 Figtree, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2 { font-family: Outfit, Figtree, sans-serif; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-align: center; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 17px;
  text-decoration: none; border: 1.5px solid transparent; transition: background .2s, border-color .2s, transform .1s;
}
.btn:active { transform: scale(.98); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid rgba(36, 82, 201, .45); outline-offset: 2px; }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 15px; white-space: nowrap; }
@media (max-width: 400px) { .hide-xs { display: none; } }
.btn-block { width: 100%; }
.btn-primary, .btn-engly { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-engly:hover { background: var(--blue-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2c57; }
.btn-ghost { background: #fff; border-color: #d5dcec; }
.btn-ghost:hover { border-color: var(--blue); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: var(--mist); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) { .nav { background: rgba(246, 248, 252, .82); backdrop-filter: saturate(180%) blur(20px); } }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { mix-blend-mode: multiply; }
.brand span { font: 800 22px/1 Outfit, sans-serif; letter-spacing: .08em; }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--slate); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* Hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow { margin: 0; padding: 7px 16px; border-radius: 999px; background: #e8eefb; color: var(--blue-dark); font-weight: 600; font-size: 15px; }
.hero h1 { font-size: clamp(38px, 9vw, 80px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 span { color: var(--blue); }
.lead { margin: 0; max-width: 640px; font-size: clamp(18px, 2.2vw, 21px); color: var(--slate); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.rainbow { display: flex; gap: 8px; margin-top: 6px; }
.rainbow i { width: 46px; height: 5px; border-radius: 3px; }
.rainbow i:nth-child(1) { background: var(--blue); }
.rainbow i:nth-child(2) { background: #2f9e5a; }
.rainbow i:nth-child(3) { background: var(--gold); }
.rainbow i:nth-child(4) { background: var(--red); }
.rainbow i:nth-child(5) { background: var(--purple); }
.hero-img { margin-top: 18px; border-radius: 28px; box-shadow: 0 24px 48px -24px rgba(14, 27, 61, .25); }

/* Sections */
.section { padding: 40px 0; }
@media (min-width: 900px) { .section { padding: 52px 0; } }
/* Two sections in a row on the same background (plans, then "O que vem por aí") would stack both paddings. */
.section:not(.section-white):not(.mission) + .section:not(.section-white):not(.mission) { padding-top: 0; }
/* The products right after the hero picture: no double gap (hero bottom + section top). */
.hero + .section { padding-top: 32px; }
@media (min-width: 900px) { .hero + .section { padding-top: 48px; } }
.section-white { background: #fff; }
.section-lead { max-width: 620px; margin: 14px auto 32px; text-align: center; color: var(--slate); font-size: 18px; }

/* Product cards */
.products { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, 1fr); } }
.product {
  display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--accent); box-shadow: 0 1px 2px rgba(14, 27, 61, .04);
  transition: box-shadow .25s, transform .25s;
}
@media (hover: hover) { .product:hover { box-shadow: 0 16px 32px -16px rgba(14, 27, 61, .18); transform: translateY(-2px); } }
/* Logos sized so the four names share the same cap height (each image has its own proportions);
   a fixed-height row keeps the text below aligned across cards. */
.product-logo { display: flex; align-items: center; height: calc(90px * var(--s, 1)); margin-bottom: 8px; }
.product-logo img { height: calc(var(--h) * var(--s, 1)); width: auto; max-width: 100%; mix-blend-mode: multiply; }
@media (min-width: 1024px) and (max-width: 1279px) { .products { --s: 0.8; } }
.product-lang { margin: 0; color: var(--slate); }
.product-lang strong { display: block; color: var(--accent); }
.product-tag { margin: 12px 0 14px; font-family: Outfit, sans-serif; font-weight: 600; font-size: 16px; line-height: 1.35; }
.product-tag span { display: block; }
.product .btn { margin-top: auto; }
.product .badge { margin-bottom: 8px; }
.p-engly { --accent: var(--blue); }
.p-listo { --accent: var(--red); }
.p-pronto { --accent: #17803d; }
.p-pret { --accent: var(--purple); }
.p-portugues { --accent: #a35f00; }
.product.p-portugues { border-color: #f3d58c; border-top-color: var(--gold); background: linear-gradient(100deg, #fffaf0 0%, #fff 60%); }
/* Português isn't in the hero art: a "Novo" badge and a filled button point it out. */
.badges { display: flex; gap: 8px; }
.badge.badge-new { background: var(--gold); color: var(--ink); }
.btn-gold { background: var(--gold); color: var(--ink); border: 1px solid var(--gold); }
.btn-gold:hover { background: #e5a51d; border-color: #e5a51d; }

/* Portuguese: one wide card under the four languages, one "Avise-me" per audience. */
.product-wide { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 900px) { .product-wide { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; } }
.product-wide .badge { margin-bottom: 4px; }
.product-wide h3 { margin: 0 0 4px; font-family: Outfit, sans-serif; font-size: 30px; line-height: 1.1; color: var(--accent); }
.product-wide .product-lang strong { display: inline; }
.pw-side { display: flex; flex-direction: column; gap: 4px; }
.pw-side .product-tag { margin: 0 0 10px; }
@media (min-width: 900px) {
  .pw-side { flex-direction: row; align-items: center; justify-content: flex-end; gap: 32px; }
  .pw-side .product-tag { margin: 0; }
  .pw-side .btn { width: auto; min-width: 220px; }
}

/* Português: optional "who do you teach" on the waitlist form. */
.waitlist-audience { border: 0; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 15px; color: var(--slate); }
.waitlist-audience[hidden] { display: none; }
.waitlist-audience legend { width: 100%; margin-bottom: 6px; padding: 0; text-align: center; font-weight: 600; color: var(--ink); }
.waitlist-audience legend span { font-weight: 400; color: var(--slate); }
.waitlist-audience label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }

.badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #eef1f7; color: var(--slate); }
.badge-live { background: #e4f6f1; color: #0b6e5c; }

/* Engly spotlight */
/* minmax(0, …) lets the columns shrink below the image's natural width on phones */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: center; }
@media (min-width: 900px) { .spotlight { grid-template-columns: 420px minmax(0, 1fr); gap: 64px; } }
.spotlight-img { width: 100%; border-radius: 28px; box-shadow: 0 24px 48px -24px rgba(14, 27, 61, .3); max-width: 420px; margin: 0 auto; }
.spotlight-text { display: flex; flex-direction: column; gap: 22px; }
.spotlight-text h2 { text-align: left; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px;
  background: #e8eefb; color: var(--blue); font: 800 20px/44px Outfit, sans-serif; text-align: center;
}
.steps strong { font-size: 19px; }
.steps span { color: var(--slate); }
.spotlight .cta-row { justify-content: flex-start; }
.fine { color: var(--slate); font-size: 15px; }

/* Coming soon */
.coming { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .coming { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .coming { grid-template-columns: repeat(4, 1fr); } }
.coming figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.coming > figure > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.coming figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; color: var(--slate); }
.coming-logo { height: 40px; width: auto; mix-blend-mode: multiply; }
/* Portuguese has no logo yet: its name in the card colour, at the logos' height. */
.coming-name { display: flex; align-items: center; height: 40px; font-family: Outfit, sans-serif; font-size: 24px; color: #a35f00; }

/* Mission */
.mission { background: var(--ink); color: #fff; }
.mission .section-lead { color: #c3cbe0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(4, 1fr); } }
.values li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.values span { color: #c3cbe0; font-size: 16px; }
.dot { width: 28px; height: 5px; border-radius: 3px; margin-bottom: 6px; }
.d1 { background: #5b86f0; } .d2 { background: #3cc07a; } .d3 { background: var(--gold); } .d4 { background: #b48cff; }

/* Footer */
/* Footer: brand | Suporte | Legal, then a thin bottom bar. */
.footer { background: #0a1430; color: #c3cbe0; font-size: 15px; }
.footer-grid { max-width: 1040px; display: grid; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } .footer-brand { grid-column: auto; } }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-quote { margin: 0; max-width: 32ch; color: #c3cbe0; }
.footer-h { margin: 0 0 10px; font: 700 12px/1.4 Figtree, system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #8f9ab8; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { display: inline-block; padding: 4px 0; color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-col a:hover { text-decoration-color: currentColor; }
.footer-col a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.footer-note { font-size: 13.5px; color: #8f9ab8; }
.footer-note:empty { display: none; }
.footer-bottom { max-width: 1040px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #8f9ab8; }
.copy, .footer-intl { margin: 0; }
/* Room for the floating WhatsApp button on phones, so it never covers the footer text. */
@media (max-width: 639px) { body:has(.wa-float) .footer-bottom { padding-bottom: 92px; } }
.brand-light span { color: #fff; font-size: 18px; }
.brand-light img { mix-blend-mode: normal; background: #fff; border-radius: 8px; padding: 3px; }

/* Waitlist */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.waitlist { margin-top: 40px; padding: 32px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; scroll-margin-top: 90px; }
.waitlist h3 { margin: 0; font: 700 26px/1.2 Outfit, sans-serif; }
.waitlist > p { margin: 8px auto 20px; max-width: 520px; color: var(--slate); }
.waitlist-row { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; }
@media (min-width: 720px) { .waitlist-row { flex-direction: row; } }
.waitlist select, .waitlist input {
  flex: 1; min-width: 0; min-height: 48px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid transparent;
  font: inherit; color: var(--ink); background: var(--mist);
}
.waitlist select { flex: 0 0 auto; }
.waitlist input:focus, .waitlist select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(36, 82, 201, .25); background: #fff; }
.waitlist button:disabled { opacity: .6; }
.waitlist-msg { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.waitlist-msg[data-state="ok"] { color: var(--green); }
.waitlist-msg[data-state="error"] { color: var(--red); }

/* WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }

/* BNCC note in the Engly section */
.bncc-note { margin: 0; padding: 14px 18px; border-radius: 14px; background: #e4f6f1; color: #0b4f43; }
.bncc-note strong { color: #0b6e5c; }

/* Brand pages (/listo/, /pronto/, /pret/): body.p-* sets --accent. */
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); }
.brand-hero { display: grid; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 900px) { .brand-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.brand-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.brand-hero-logo { height: 72px; width: auto; mix-blend-mode: multiply; }
.brand-hero h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.08; font-weight: 800; }
.brand-hero-lead { margin: 0; font-size: 18px; color: var(--slate); }
.brand-slogan { margin: 0; font: 700 22px/1.3 Outfit, sans-serif; color: var(--accent); }
.brand-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-note { margin: 0; font-size: 14px; color: var(--slate); }
.brand-hero-img { width: 100%; max-width: 560px; justify-self: center; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(14, 27, 61, .35); }
.brand-steps { max-width: 720px; margin: 0 auto; }
.brand-steps li::before { background: var(--accent); color: #fff; }
.brand-back { margin: 24px 0 0; text-align: center; }
.brand-back a { color: var(--slate); }
.product-more { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--accent); }
.brand-wordmark { margin: 0; font: 800 56px/1 Outfit, sans-serif; color: var(--accent); }
.audiences { display: grid; gap: 20px; max-width: 920px; margin: 0 auto; }
@media (min-width: 760px) { .audiences { grid-template-columns: 1fr 1fr; } }
.audience { padding: 24px; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); background: #fff; }
.audience h3 { margin: 0 0 6px; font: 700 24px/1.2 Outfit, sans-serif; color: var(--accent); }
.audience p { margin: 0 0 12px; color: var(--slate); }
.audience ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.intl-summary h2 { font-size: clamp(26px, 3.6vw, 36px); }
.intl-list { max-width: 720px; margin: 0 auto; padding-left: 20px; display: grid; gap: 10px; color: var(--slate); }
.intl-note { max-width: 720px; margin: 24px auto 0; color: var(--slate); font-size: 15px; }

/* Hero note under the buttons */
.hero-note { margin: -6px 0 0; font-size: 15px; color: var(--slate); }
.hero-note a { color: var(--blue-dark); font-weight: 600; }

/* Mobile menu: the section links used to disappear below 820px */
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 4px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn:hover { background: #e8eefb; }
.menu-mobile { display: flex; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.menu-mobile[hidden] { display: none; }
.menu-mobile a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .menu-btn, .menu-mobile { display: none; } }
@media (max-width: 819px) { .nav-login { display: none; } }
@media (max-width: 400px) { .nav-inner { gap: 8px; } .brand span { font-size: 18px; } }

/* Plans */
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.plan h3 { margin: 0; font: 700 24px/1.2 Outfit, sans-serif; }
.plan-main { border: 2px solid var(--blue); box-shadow: 0 16px 32px -20px rgba(36, 82, 201, .45); }
.plan-price { margin: 0; color: var(--slate); }
.plan-price span { font: 800 38px/1.1 Outfit, sans-serif; color: var(--ink); }
.plan-year { margin: -6px 0 0; font-size: 15px; color: var(--slate); }
.plan ul { margin: 6px 0 12px; padding-left: 20px; display: grid; gap: 6px; color: var(--slate); }
.plan .btn { margin-top: auto; }
.plans-fine { text-align: center; margin: 20px 0 0; }
.bf-banner { max-width: 760px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 14px; background: #fff4d6; color: #5c4200; text-align: center; }
.bf-banner[hidden] { display: none; }
/* The waitlist now sits on a white section */
.section-white .waitlist { background: var(--mist); }

/* Pix first: most teachers pay with it */
.pix-tag { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: #00a99d; color: #fff; font: 800 13px/1.6 Outfit, sans-serif; letter-spacing: .04em; }
.pix-banner { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 auto 28px; padding: 16px 20px; border-radius: 16px; background: #e3f7f4; border: 1.5px solid #00a99d; color: #04504a; }
.pix-banner .pix-tag { flex: none; font-size: 16px; padding: 4px 14px; }
.plan-pix { margin: -4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #04504a; }
