/* Lingo4All — site institucional (lingo4all.com)
   Sem build, sem framework. Tokens de marca: azul profundo #1E3A5C, azul #3B8FE5, vermelho #D9342B, Inter. */

:root {
  --navy-900: #0F2136;
  --navy-800: #16304C;
  --navy: #1E3A5C;
  --navy-600: #2B4C73;
  --blue: #3B8FE5;
  --blue-text: #1F6CC4;       /* azul com contraste AA sobre branco */
  --blue-50: #EDF4FD;
  --blue-100: #D8E8FB;
  --red: #D9342B;
  --red-text: #C02A22;
  --red-50: #FDEEED;
  --teal: #0E8A86;
  --teal-50: #E6F5F4;
  --amber: #B86E00;
  --amber-50: #FFF4E0;
  --ink: #0F1B2D;
  --ink-2: #33415A;
  --ink-3: #5B6880;
  --line: #DCE3EE;
  --line-2: #E9EEF5;
  --bg: #F5F7FB;
  --surface: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 54, .06), 0 1px 3px rgba(15, 33, 54, .06);
  --shadow: 0 4px 10px -2px rgba(15, 33, 54, .07), 0 12px 28px -8px rgba(15, 33, 54, .12);
  --shadow-lg: 0 10px 24px -6px rgba(15, 33, 54, .12), 0 28px 60px -18px rgba(15, 33, 54, .28);
  --ring: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--blue);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t: 260ms;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip; /* clip (não hidden) para não quebrar o header sticky */
}
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid #2F7FD6; outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #9CC8F5; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--navy); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; box-shadow: var(--shadow); transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 16px -6px rgba(30, 58, 92, .55); }
.btn-primary:hover { background: var(--navy-800); color: #fff; }
.btn-accent { background: var(--red); color: #fff; box-shadow: 0 6px 16px -6px rgba(217, 52, 43, .55); }
.btn-accent:hover { background: var(--red-text); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--navy-600); color: var(--navy); }
.btn[aria-disabled="true"], .btn:disabled {
  background: var(--line-2); color: var(--ink-3); border-color: transparent; box-shadow: none; cursor: not-allowed;
}
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none;
  color: var(--blue-text); min-height: 44px;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; min-height: 44px; }
.brand img { height: 34px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink-2); font-weight: 500; font-size: 15px; text-decoration: none;
}
.main-nav a:hover { color: var(--navy); background: var(--blue-50); }
.main-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.signin-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--navy); font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1.5px solid var(--line);
}
.signin-link:hover { border-color: var(--navy-600); color: var(--navy); background: #fff; }

/* Seletor de idioma */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--navy);
}
.lang-btn:hover { border-color: var(--navy-600); }
.lang-btn .icon-chev { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.lang-btn[aria-expanded="true"] .icon-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--blue-50); }
.lang-menu a .code { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; }
.lang-menu a[aria-current="true"] { color: var(--navy); font-weight: 700; }
.lang-menu a[aria-current="true"] .icon { color: var(--blue-text); }

.menu-btn {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--navy);
}
.mobile-nav { display: none; }

/* ---------- Seções ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue-text);
}
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(59, 143, 229, .45), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(217, 52, 43, .22), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%);
}
.hero::before { /* grade sutil de pontos — textura, sem animação */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; }
.hero-inner { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13.5px; font-weight: 600; color: #DCE9FA;
}
.hero-kicker .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.hero-kicker .dot .icon { width: 13px; height: 13px; color: #fff; stroke-width: 2.6; }
.hero h1 {
  margin-top: 20px; color: #fff; font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.03; max-width: 14ch;
}
.hero h1 .accent { color: #8FC2F7; }
.hero-lead { margin-top: 20px; max-width: 60ch; font-size: clamp(16.5px, 1.6vw, 19.5px); color: #D3E1F2; }
.hero-cami { width: clamp(150px, 16vw, 210px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }

.choice { margin-top: clamp(36px, 5vw, 56px); }
.choice-q { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: #fff; letter-spacing: -.015em; }
.choice-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.choice-card {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius-lg); text-decoration: none; color: var(--ink);
  background: #fff; box-shadow: var(--shadow-lg); border: 2px solid transparent; min-height: 100%;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.choice-card:hover { transform: translateY(-4px); color: var(--ink); border-color: var(--blue); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.choice-card.is-teacher:hover { border-color: var(--red); }
.choice-card:focus-visible { outline: 3px solid #9CC8F5; outline-offset: 4px; }
.choice-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-text);
}
.choice-card.is-teacher .choice-icon { background: var(--red-50); color: var(--red-text); }
.choice-icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.choice-card h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 800; }
.choice-card p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }
.choice-cta {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px;
  color: var(--blue-text);
}
.choice-card.is-teacher .choice-cta { color: var(--red-text); }
.choice-cta .icon { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.choice-card:hover .choice-cta .icon { transform: translateX(4px); }
.choice-card .ext-note { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-top: 4px; }
.choice-foot {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: #C9D8EC; font-size: 15px;
}
.choice-foot a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.choice-foot a:hover { color: #BFDBFB; }

/* ---------- Resumo institucional (home) ---------- */
.pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.pillar {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px); box-shadow: var(--shadow-sm);
}
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-text); }
.pillar:nth-child(2) .pillar-icon { background: var(--teal-50); color: var(--teal); }
.pillar:nth-child(3) .pillar-icon { background: var(--red-50); color: var(--red-text); }
.pillar h3 { margin-top: 18px; font-size: 19px; font-weight: 700; }
.pillar p { margin-top: 8px; color: var(--ink-2); }

.free-strip {
  margin-top: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px;
  padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--blue-50), #fff 70%); border: 1px solid var(--blue-100);
}
.free-strip h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 700; }
.free-strip p { margin-top: 6px; color: var(--ink-2); }
.free-strip .actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ajuda / contato ---------- */
.help { background: var(--surface); border-top: 1px solid var(--line-2); }
.help-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.help-h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-top: 10px; }
.help-lead { margin-top: 12px; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 18px); }
.help-links { display: grid; gap: 12px; margin-top: 24px; list-style: none; }
.choice-card .ext-note { display: block; }
.help-link {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  background: #fff; transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.help-link:hover { border-color: var(--navy-600); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.help-link .hl-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-text); }
.help-link strong { display: block; font-weight: 650; }
.help-link span.sub { display: block; font-size: 14px; color: var(--ink-3); }
.help-link > .icon { color: var(--ink-3); }

.form-card { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.form-card h3 { font-size: 21px; font-weight: 700; }
.form-card > p { margin-top: 6px; color: var(--ink-2); }
.form-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid #C9D3E1; background: #fff;
  font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-text); box-shadow: 0 0 0 3px rgba(59, 143, 229, .25); }
.field [aria-invalid="true"] { border-color: var(--red-text); }
.field .err { font-size: 13.5px; color: var(--red-text); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.form-actions .legal { font-size: 13px; color: var(--ink-3); max-width: 44ch; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.ok { display: block; background: var(--teal-50); color: #0B5F5C; }
.form-status.fail { display: block; background: var(--red-50); color: var(--red-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #C2D0E3; padding: clamp(48px, 6vw, 72px) 0 28px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; max-width: 32ch; color: #AFC0D6; }
.socials { display: flex; gap: 8px; margin-top: 18px; list-style: none; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #DCE6F3;
  border: 1px solid rgba(255, 255, 255, .14);
}
.socials a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.footer-col h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #8FA6C3; font-weight: 700; }
.footer-col ul { list-style: none; margin-top: 12px; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: #DCE6F3; text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; color: #8FA6C3;
}

/* ---------- Página /aprender ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(800px 360px at 100% 0%, rgba(59, 143, 229, .16), transparent 65%),
    radial-gradient(600px 300px at 0% 100%, rgba(217, 52, 43, .07), transparent 65%),
    var(--bg);
  padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 32px);
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; color: var(--ink-3); list-style: none; }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 500; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs .sep { color: #A9B4C6; }
.page-hero h1 { margin-top: 12px; font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; }
.page-hero .lead { margin-top: 14px; max-width: 60ch; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); }
.legend { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink-3); list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

.xp-section { padding: clamp(20px, 3vw, 32px) 0 clamp(56px, 7vw, 96px); }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); list-style: none; }
.xp-grid > li { display: flex; min-width: 0; }
.xp-grid > li.is-featured { grid-column: 1 / -1; }
.more-head { margin: clamp(40px, 5vw, 64px) 0 20px; }
.more-head h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.more-head p { margin-top: 6px; color: var(--ink-2); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); list-style: none; }

/* Status */
.status {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em; line-height: 1.2; white-space: nowrap;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-available { background: #E3F4EA; color: #146C3A; }
.status-waitlist { background: var(--blue-50); color: var(--blue-text); }
.status-invite { background: var(--amber-50); color: #8A5200; }
.status-soon { background: #EEF0F4; color: #4A5568; }
.status-soon::before { background: transparent; border: 2px dashed currentColor; width: 9px; height: 9px; }

/* Card de experiência */
.xp {
  --accent: var(--blue);
  --accent-text: var(--blue-text);
  --accent-soft: var(--blue-50);
  --media-h: 248px;
  position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.xp.is-active { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.xp[data-key="virtual"] { --accent: var(--teal); --accent-text: var(--teal); --accent-soft: var(--teal-50); }
.xp[data-key="app"] { --accent: var(--blue); }
.xp[data-key="teachers"] { --accent: var(--red); --accent-text: var(--red-text); --accent-soft: var(--red-50); }
.xp[data-key="play"] { --accent: #E58A00; --accent-text: var(--amber); --accent-soft: var(--amber-50); }
.xp[data-key="level"] { --accent: var(--navy); --accent-text: var(--navy); --accent-soft: var(--blue-50); }

.xp.is-soon {
  background: linear-gradient(180deg, #fff, #FBFCFE);
  border: 2px dashed #B8C3D4; box-shadow: none;
}
.xp.is-soon.is-active { border-color: color-mix(in srgb, var(--accent) 60%, #B8C3D4); box-shadow: var(--shadow); }

.xp-media {
  position: relative; height: var(--media-h); overflow: hidden;
  background: radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--accent) 22%, #fff), var(--accent-soft) 60%);
  border-bottom: 1px solid var(--line-2);
}
.xp.is-soon .xp-media { border-bottom-style: dashed; }
.xp-visual { position: absolute; inset: 0; transition: transform 500ms var(--ease), opacity var(--t) var(--ease); }
.xp.is-active .xp-visual { transform: scale(1.03); }

.xp-body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 28px); }
.xp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.xp-tag {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-text);
}
.xp-tag .tag-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); }
.xp-tag .tag-icon .icon { width: 17px; height: 17px; }
.xp h3 { margin-top: 14px; font-size: clamp(23px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.xp .xp-desc { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.xp .xp-note { margin-top: 10px; font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: flex-start; }
.xp .xp-note .icon { width: 16px; height: 16px; margin-top: 3px; }
.xp-actions { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.xp-actions .btn-cta { background: var(--navy); color: #fff; }
.xp[data-key="virtual"] .btn-cta { background: #0B6E6B; }
.xp[data-key="virtual"] .btn-cta:hover { background: #095957; }
.xp[data-key="play"] .btn-cta { background: var(--navy); }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.more-btn:hover { border-color: var(--accent); color: var(--ink); }
.more-btn .icon { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.more-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.more-btn[aria-expanded="true"] .icon { transform: rotate(45deg); }

/* Painel de detalhes: sobrepõe a área visual (mesma caixa → sem salto de layout) */
.xp-details {
  position: absolute; left: 0; right: 0; top: 0; bottom: var(--actions-h, 92px); z-index: 2; padding: 24px 26px; overflow: auto;
  background: #fff; border-bottom: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.xp.is-open .xp-details { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.xp.is-soon .xp-details { background: #FBFCFE; }
.xp-details h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); font-weight: 700; }
.xp-details p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.xp-details ul { margin-top: 12px; display: grid; gap: 8px; list-style: none; }
.xp-details li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.xp-details li .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); stroke-width: 2.4; }

/* Destaque: Academy */
.xp.is-featured { flex-direction: row-reverse; border-width: 1.5px; border-color: #C7D6EA; }
.xp.is-featured .xp-media { flex: 0 0 56%; height: auto; min-height: 400px; border-bottom: 0; border-left: 1px solid var(--line-2);
  background: radial-gradient(120% 100% at 85% 0%, #CFE3FA, var(--blue-50) 55%, #F3F7FD); }
.xp.is-featured .xp-body { padding: clamp(26px, 3.4vw, 44px); }
.xp.is-featured h3 { font-size: clamp(30px, 3.4vw, 44px); }
.xp.is-featured .xp-desc { font-size: 17.5px; max-width: 46ch; }
.xp.is-featured .xp-details { padding: clamp(24px, 3vw, 36px); left: auto; width: 56%; bottom: 0; border-bottom: 0; border-left: 1px solid var(--line-2); }
.xp.is-featured .xp-details ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; }
.priority-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
}
.priority-badge .icon { width: 14px; height: 14px; }
.facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.facts li {
  padding: 7px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.facts li strong { color: var(--ink); font-weight: 700; }

/* Mini cards (Play, teste de nível) */
.xp.is-mini { flex-direction: row; border-radius: var(--radius-lg); }
.xp.is-mini .xp-media { flex: 0 0 38%; height: auto; min-height: 220px; border-bottom: 0; border-right: 1px solid var(--line-2); }
.xp.is-mini h3 { font-size: 22px; margin-top: 10px; }
.xp.is-mini .xp-desc { font-size: 15.5px; }

/* ---------- Visuais (desenhados em HTML/CSS, sem imagens genéricas) ---------- */
/* Academy: tela real em moldura de navegador + celular */
.v-academy .browser {
  position: absolute; left: 7%; top: 13%; width: 96%; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 24px 50px -18px rgba(15, 33, 54, .45), 0 0 0 1px rgba(15, 33, 54, .08);
}
.v-academy .browser-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #EEF2F7; border-bottom: 1px solid #DDE4ED; }
.v-academy .browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9D2DE; }
.v-academy .browser-bar span { margin-left: 10px; font-size: 10.5px; color: var(--ink-3); background: #fff; border-radius: 6px; padding: 1px 10px; font-style: normal; }
.v-academy .phone {
  position: absolute; left: 3%; bottom: -6%; width: 25%; max-width: 150px; border-radius: 22px; padding: 6px; background: var(--navy-900);
  box-shadow: 0 24px 40px -14px rgba(15, 33, 54, .55);
}
.v-academy .phone img { border-radius: 16px; }
.v-academy .chip {
  position: absolute; right: 5%; bottom: 7%; display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; color: var(--ink);
}
.v-academy .chip .levels { display: flex; gap: 4px; }
.v-academy .chip .levels b { font-size: 11px; padding: 3px 6px; border-radius: 6px; background: var(--blue-50); color: var(--blue-text); }
.v-academy .chip .levels b.on { background: var(--navy); color: #fff; }

/* Virtual: avatar de IA + conversa */
.v-virtual .avatar {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%); width: 190px; height: 190px; border-radius: 50%;
  overflow: hidden; border: 5px solid #fff; box-shadow: 0 20px 40px -16px rgba(11, 110, 107, .55);
}
.v-virtual .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.v-virtual .ai-badge {
  position: absolute; left: calc(50% + 40px); top: 22px; display: inline-flex; align-items: center; gap: 6px;
  background: #0B6E6B; color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; box-shadow: var(--shadow);
}
.v-virtual .ai-badge .icon { width: 13px; height: 13px; }
.v-virtual .bubble {
  position: absolute; max-width: 62%; padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.35; box-shadow: var(--shadow);
}
.v-virtual .bubble.ai { left: 6%; bottom: 52px; background: #fff; color: var(--ink); border-bottom-left-radius: 4px; }
.v-virtual .bubble.me { right: 6%; bottom: 14px; background: #0B6E6B; color: #fff; border-bottom-right-radius: 4px; }
.v-virtual .wave { position: absolute; right: 8%; top: 40%; display: flex; gap: 3px; align-items: center; height: 28px; }
.v-virtual .wave i { width: 4px; border-radius: 2px; background: #0B6E6B; opacity: .75; }

/* App: celular com a Cami e uma microlição */
.v-app .device {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%) rotate(-4deg); width: 150px; height: 290px;
  border-radius: 28px; background: var(--navy-900); padding: 8px; box-shadow: 0 26px 46px -18px rgba(15, 33, 54, .6);
}
.v-app .screen { width: 100%; height: 100%; border-radius: 21px; background: linear-gradient(180deg, #fff, #EEF5FE); overflow: hidden; padding: 12px 10px; }
.v-app .screen .bar { height: 6px; border-radius: 3px; background: var(--blue-100); overflow: hidden; }
.v-app .screen .bar i { display: block; width: 62%; height: 100%; background: var(--blue); }
.v-app .screen img { width: 74px; margin: 10px auto 6px; }
.v-app .screen .q { font-size: 10.5px; font-weight: 700; text-align: center; color: var(--ink); }
.v-app .screen .opt { margin-top: 6px; font-size: 10px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); }
.v-app .screen .opt.ok { border-color: #2E9E5B; background: #E3F4EA; color: #146C3A; font-weight: 700; }
.v-app .float {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 12px; padding: 7px 11px;
  font-size: 12px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow);
}
.v-app .float .icon { width: 15px; height: 15px; color: var(--blue-text); }
.v-app .float.f1 { left: 7%; top: 34%; }
.v-app .float.f2 { right: 7%; top: 58%; }

/* Professores: chamada de vídeo ilustrada */
.v-teachers .call {
  position: absolute; left: 50%; top: 26px; transform: translateX(-50%); width: 78%; max-width: 300px; aspect-ratio: 16 / 10;
  border-radius: 16px; background: #fff; border: 2px dashed #E3A9A5; padding: 10px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px;
}
.v-teachers .tile { border-radius: 10px; position: relative; overflow: hidden; }
.v-teachers .tile.big { background: linear-gradient(160deg, #FBE3E1, #F6CFCB); grid-row: span 2; }
.v-teachers .tile.small { background: linear-gradient(160deg, var(--blue-50), var(--blue-100)); }
.v-teachers .tile.board { background: #F6F8FB; border: 1px solid var(--line-2); padding: 8px; display: grid; gap: 5px; align-content: start; }
.v-teachers .tile.board i { height: 5px; border-radius: 3px; background: #D5DCE7; }
.v-teachers .tile.board i:nth-child(2) { width: 70%; }
.v-teachers .tile.board i:nth-child(3) { width: 45%; background: #F2B8B3; }
.v-teachers .person { position: absolute; left: 50%; bottom: -8%; transform: translateX(-50%); width: 58%; }
.v-teachers .tile.small .person { width: 62%; }
.v-teachers .cal {
  position: absolute; right: 9%; bottom: 18px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow); border: 1.5px dashed #E3A9A5;
}
.v-teachers .cal .icon { width: 15px; height: 15px; color: var(--red-text); }

/* Play */
.v-play { display: grid; place-items: center; }
.v-play .pad {
  width: 120px; height: 120px; border-radius: 30px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #F2A31B, #E26A12); box-shadow: 0 20px 36px -16px rgba(226, 106, 18, .7); transform: rotate(-6deg);
}
.v-play .pad .icon { width: 58px; height: 58px; stroke-width: 1.7; }
.v-play .tok { position: absolute; padding: 5px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; background: #fff; box-shadow: var(--shadow-sm); }
.v-play .tok.t1 { left: 12%; top: 18%; color: var(--blue-text); }
.v-play .tok.t2 { right: 12%; top: 26%; color: var(--red-text); }
.v-play .tok.t3 { left: 18%; bottom: 16%; color: #146C3A; }

/* Teste de nível: escala CEFR */
.v-level { display: grid; place-items: center; padding: 18px; }
.v-level .scale { display: flex; align-items: flex-end; gap: 7px; height: 120px; }
.v-level .scale span { width: 26px; border-radius: 7px 7px 4px 4px; background: #C7D6EA; position: relative; }
.v-level .scale span b { position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink-3); font-weight: 700; }
.v-level .scale span.on { background: var(--navy); }
.v-level .scale span.you { background: var(--blue); }
.v-level .pin {
  position: absolute; top: 18%; right: 14%; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--navy);
  box-shadow: var(--shadow);
}

/* Entrada suave (respeita movimento reduzido) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .6s var(--ease) both; }
  .reveal-2 { animation-delay: .08s; }
  .reveal-3 { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .xp.is-active, .choice-card:hover, .help-link:hover { transform: none !important; }
  .xp.is-active .xp-visual { transform: none !important; }
  .xp-details { transform: none; }
}
/* Toque: sem efeitos de hover que ficam "presos" depois do toque */
@media (hover: none) {
  .choice-card:hover, .help-link:hover { transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xp.is-featured .xp-media { flex-basis: 50%; }
  .xp.is-featured .xp-details { width: 50%; }
}
@media (max-width: 960px) {
  .main-nav, .header-actions .signin-link { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: block; border-top: 1px solid var(--line-2); background: #fff; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav ul { list-style: none; padding: 10px 0 16px; display: grid; gap: 2px; }
  .mobile-nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
  .mobile-nav a .icon { color: var(--blue-text); }
  .hero-intro { grid-template-columns: minmax(0, 1fr); }
  .hero-cami { display: none; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .xp.is-featured { flex-direction: column; }
  .xp.is-featured { --media-h: 320px; }
  .xp.is-featured .xp-media { flex: none; height: var(--media-h); min-height: 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .xp.is-featured .xp-details { left: 0; width: auto; bottom: var(--actions-h, 92px); border-left: 0; border-bottom: 1px solid var(--line-2); }
  .xp.is-featured .xp-details ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .free-strip { grid-template-columns: minmax(0, 1fr); }
  .xp-grid, .mini-grid { grid-template-columns: minmax(0, 1fr); }
  .xp.is-mini { flex-direction: column; }
  .xp.is-mini .xp-media { flex: none; height: 170px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Celular: detalhes abrem embaixo da descrição (expansão pedida por toque), sem sobrepor a imagem */
@media (max-width: 640px) {
  .xp { --media-h: 210px; }
  .xp.is-featured { --media-h: 250px; }
  .xp .xp-details, .xp.is-featured .xp-details {
    position: static; inset: auto; width: auto; height: auto; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    display: grid; grid-template-rows: 0fr; opacity: 1; visibility: visible; transform: none; overflow: hidden;
    transition: grid-template-rows var(--t) var(--ease);
  }
  .xp-details > .xp-details-inner { min-height: 0; overflow: hidden; }
  .xp.is-open .xp-details { grid-template-rows: 1fr; }
  .xp.is-open .xp-details > .xp-details-inner { padding: 16px 0 4px; border-top: 1px solid var(--line-2); margin-top: 16px; }
  .xp:not(.is-open) .xp-details > .xp-details-inner { visibility: hidden; }
  .xp.is-active { transform: none; }
  .choice-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .choice-icon { width: 52px; height: 52px; border-radius: 15px; }
  .brand img { height: 30px; }
  .lang-btn .lang-label { display: none; }
  .xp-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .v-academy .chip { display: none; }
}

/* Complementos */
.xp-status-row { margin-top: 10px; }
.learn-foot { margin-top: clamp(40px, 5vw, 64px); }
.learn-foot h3 { font-size: clamp(19px, 2vw, 23px); }
