/* =====================================================================
   EduDefy — Landing page (/)
   Mesmos tokens do visual "B · Institucional" (public/css/style.css).
   ===================================================================== */

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #EEF0F6;
  --surface: #FFFFFF;
  --surface-2: #F6F7FB;
  --border: #E4E6EF;
  --text: #0F1530;
  --muted: #5A6180;
  --faint: #8E94AD;
  --navy: #0F1530;
  --navy-2: #182044;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEEDFD;
  --accent: #8B85FF;
  --ok: #0E7C4A;   --ok-soft: #E3F5EC;
  --warn: #A75A06; --warn-soft: #FDF1DF;
  --bad: #C2253D;  --bad-soft: #FCEBEE;
  --fin: #0E7C4A;  --fin-soft: #E3F5EC;
  --sec: #4F46E5;  --sec-soft: #EEEDFD;
  --ped: #B45309;  --ped-soft: #FDF1DF;
  --wpp: #1A7F4B;  --wpp-chat: #E7DED4; --wpp-bolha: #FFFFFF; --wpp-minha: #D9FDD3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 21, 48, .05), 0 10px 30px rgba(15, 21, 48, .08);
  --shadow-lg: 0 30px 80px rgba(15, 21, 48, .28);
  --gutter: 24px;
  --topo-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topo-h) + 12px); }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--surface);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn i { font-size: 18px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-bloco { width: 100%; }
.btn-primario { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .32); }
.btn-primario:hover { background: var(--primary-hover); }
.btn-fantasma { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-fantasma:hover { background: rgba(255, 255, 255, .12); }
.btn-branco { background: #fff; color: var(--primary-hover); }
.btn-branco:hover { background: var(--primary-soft); }
.btn-whats { background: var(--wpp); color: #fff; }
.btn-whats:hover { background: #146B3E; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.link-btn { background: none; border: 0; color: var(--primary); font-weight: 700; cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ===== TOPO ===== */
.topo {
  position: sticky; top: 0; z-index: 50; height: var(--topo-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.topo.rolou { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(15, 21, 48, .06); }
.topo-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.marca { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.marca:hover { text-decoration: none; }
.marca img { height: 30px; width: auto; }
.marca-nome { font-weight: 800; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--border); letter-spacing: -.01em; }
.topo-nav { display: flex; gap: 4px; margin: 0 auto; }
.topo-nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.topo-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topo-entrar-mobile { display: none; }
.topo-acoes { display: flex; align-items: center; gap: 14px; flex: none; }
.link-entrar { font-weight: 700; font-size: 14.5px; color: var(--text); }
.topo-menu { display: none; width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; border-radius: 10px; font-size: 20px; cursor: pointer; align-items: center; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(139, 133, 255, .28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(79, 70, 229, .25), transparent 60%),
    var(--navy);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.selo {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(139, 133, 255, .16); border: 1px solid rgba(139, 133, 255, .35); color: #D9D6FF;
  font-size: 13px; font-weight: 700;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #B7B3FF, #8B85FF 60%, #6EE7B7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: #B4BAD0; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-pontos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: #B4BAD0; font-size: 14.5px; }
.hero-pontos li { display: flex; align-items: center; gap: 8px; }
.hero-pontos i { color: #6EE7B7; }

.hero-visual { position: relative; min-height: 440px; }
.janela {
  background: #fff; color: var(--text); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden; width: 100%; max-width: 560px; margin-left: auto; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.janela-barra { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.janela-barra span { width: 10px; height: 10px; border-radius: 50%; background: #D5D8E4; }
.janela-barra b { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.janela-corpo { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }
.kpi small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.kpi strong { font-size: 19px; letter-spacing: -.02em; }
.kpi em { font-style: normal; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 3px; }
.ok { color: var(--ok); }
.aviso { color: var(--warn); }
.grafico { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.grafico-tit { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.leg { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.leg i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.l1 { background: var(--primary); } .l2 { background: var(--accent); opacity: .5; }
.barras { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; height: 92px; align-items: end; }
.barras div { display: flex; gap: 3px; align-items: end; height: 100%; }
.barras i { flex: 1; border-radius: 4px 4px 0 0; background: var(--primary); }
.barras i + i { background: var(--accent); opacity: .5; }
.mini-lista { list-style: none; display: grid; gap: 2px; }
.mini-lista li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 8px 4px; border-bottom: 1px solid var(--border); color: var(--muted); }
.mini-lista li:last-child { border-bottom: 0; }
.mini-lista b { margin-left: auto; color: var(--text); }
.pill { font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }
.pill.pix { background: #E0F7F4; color: #0F766E; }
.pill.bol { background: var(--primary-soft); color: var(--primary-hover); }
.st { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.av { background: var(--warn-soft); color: var(--warn); }

/* Celular */
.celular {
  background: #0B1026; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2A3158;
}
.celular-tela { background: #fff; color: var(--text); border-radius: 26px; overflow: hidden; position: relative; }
.celular-tela::before { content: ""; position: absolute; top: 8px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 999px; background: #0B1026; z-index: 2; }
.celular-hero { position: absolute; left: 0; bottom: -20px; width: 210px; transform: rotate(-4deg); }
.celular-hero .celular-tela { padding: 38px 16px 16px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.app-topo { display: grid; gap: 1px; }
.app-topo small { font-size: 11px; color: var(--muted); font-weight: 600; }
.app-topo strong { font-size: 22px; letter-spacing: -.02em; }
.app-topo span { font-size: 11px; color: var(--warn); font-weight: 700; }
.app-botao { width: 100%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; border-radius: 9px; padding: 9px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.app-nota { font-size: 10.5px; color: var(--ok); font-weight: 700; display: flex; align-items: center; gap: 5px; }

/* QR ilustrativo */
.qr { display: grid; grid-template-columns: repeat(25, 1fr); width: 120px; aspect-ratio: 1; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.qr i { display: block; }
.qr i.on { background: var(--navy); }

/* ===== PÚBLICO ===== */
.publico { border-bottom: 1px solid var(--border); background: var(--surface); }
.publico-in { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }
.publico-in > span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 700; }
.publico ul { list-style: none; display: flex; gap: 12px 32px; flex-wrap: wrap; justify-content: center; }
.publico li { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--muted); }
.publico li i { font-size: 20px; color: var(--primary); }

/* ===== TÍTULOS ===== */
.titulo-secao { max-width: 720px; margin-bottom: 44px; }
.titulo-secao.centro { margin-left: auto; margin-right: auto; text-align: center; }
.titulo-secao h2, .frente h2, .familia h2, .whats h2, .cta-final h2 {
  font-size: clamp(27px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800;
}
.titulo-secao p { color: var(--muted); margin-top: 14px; }
.sobre {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}
.sobre i { font-size: 16px; }
.sobre.fin { color: var(--fin); } .sobre.sec { color: var(--sec); } .sobre.ped { color: var(--ped); }
.sobre.wpp { color: var(--wpp); } .sobre.claro { color: #B7B3FF; }

/* ===== FRENTES (cards) ===== */
.frentes-intro { padding: 96px 0 40px; }
.frentes-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.frente-card {
  display: grid; gap: 8px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.frente-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.frente-card i { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; margin-bottom: 8px; }
.frente-card strong { font-size: 20px; letter-spacing: -.01em; }
.frente-card span { color: var(--muted); font-size: 15px; }
.f-fin i { background: var(--fin-soft); color: var(--fin); } .f-fin:hover { border-color: #A7DFC3; }
.f-sec i { background: var(--sec-soft); color: var(--sec); } .f-sec:hover { border-color: #C7C4F8; }
.f-ped i { background: var(--ped-soft); color: var(--ped); } .f-ped:hover { border-color: #F3D2A6; }

/* ===== FRENTE (seção) ===== */
.frente { padding: 88px 0; }
.frente.alt { background: var(--bg); }
.frente-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.frente-in.inverso .frente-texto { order: 2; }
.frente-texto > p { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 540px; }
.recursos { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.recursos li { display: flex; gap: 12px; align-items: flex-start; }
.recursos li > i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--primary-soft); color: var(--primary); }
#financeiro .recursos li > i { background: var(--fin-soft); color: var(--fin); }
#pedagogico .recursos li > i { background: var(--ped-soft); color: var(--ped); }
.recursos strong { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 3px; }
.recursos span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

.frente-visual { position: relative; }
.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.cartao-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cartao-cab small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.cartao-cab strong { font-size: 16px; }

.chip-flutuante {
  position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 12px 14px; display: flex; gap: 10px; align-items: center;
}
.chip-flutuante b { display: block; font-size: 13px; }
.chip-flutuante span { display: block; font-size: 11.5px; color: var(--muted); }

/* Cobrança */
.cobranca-corpo { display: flex; justify-content: space-between; gap: 18px; padding: 20px; align-items: center; }
.cobranca-valor small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.cobranca-valor strong { display: block; font-size: 30px; letter-spacing: -.02em; line-height: 1.2; }
.cobranca-valor > span { display: block; font-size: 12.5px; color: var(--ok); margin-top: 2px; }
.abas-pg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; margin-top: 14px; }
.abas-pg span { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 7px; color: var(--muted); }
.abas-pg .ativa { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 21, 48, .12); }
.regua { padding: 16px 20px 20px; background: var(--surface-2); border-top: 1px solid var(--border); }
.regua small, .ficha-hist small, .chip-notas small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 10px; }
.regua ol { list-style: none; display: grid; gap: 8px; }
.regua li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.regua li > i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--faint); flex: none; }
.regua li.feito > i { background: #E3F5EC; color: var(--wpp); }
.regua li div { flex: 1; min-width: 0; }
.regua li b { display: block; font-size: 13px; }
.regua li span { display: block; font-size: 12px; color: var(--muted); }
.regua li em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--faint); }
.regua li.feito em { color: var(--ok); }
.chip-nfse { left: -28px; bottom: -34px; }
.chip-nfse > i { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); font-size: 18px; }

/* Ficha do aluno */
.ficha-cab { display: flex; align-items: center; gap: 14px; padding: 20px; }
.ficha-cab > div { flex: 1; min-width: 0; }
.ficha-cab strong { display: block; font-size: 18px; }
.ficha-cab small { font-size: 12.5px; color: var(--muted); }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; background: var(--primary-soft); color: var(--primary-hover);
}
.avatar.sm { width: 32px; height: 32px; font-size: 11.5px; }
.avatar.a1 { background: #E0F2FE; color: #0369A1; }
.avatar.a2 { background: #FCE7F3; color: #BE185D; }
.avatar.a3 { background: #E3F5EC; color: #0E7C4A; }
.avatar.a4 { background: #FDF1DF; color: #A75A06; }
.ficha-abas { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--border); overflow: hidden; }
.ficha-abas span { font-size: 13px; font-weight: 700; color: var(--muted); padding: 10px 10px; border-bottom: 2px solid transparent; }
.ficha-abas .ativa { color: var(--primary); border-bottom-color: var(--primary); }
.ficha-resp { list-style: none; padding: 10px 20px; }
.ficha-resp li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ficha-resp li:last-child { border-bottom: 0; }
.ficha-resp li div { flex: 1; min-width: 0; }
.ficha-resp b { display: block; font-size: 14px; }
.ficha-resp small { font-size: 12px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.ficha-hist { padding: 16px 20px; background: var(--surface-2); border-top: 1px solid var(--border); }
.linha-tempo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.linha-tempo div { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: grid; gap: 1px; }
.linha-tempo b { font-size: 14px; }
.linha-tempo span { font-size: 12px; color: var(--muted); }
.linha-tempo em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--primary); }
.linha-tempo em.ok { color: var(--ok); }
.linha-tempo .atual { border-color: #C7C4F8; box-shadow: 0 0 0 3px rgba(79, 70, 229, .1); }
.ficha-acoes { display: flex; gap: 10px; padding: 14px 20px 18px; background: var(--surface-2); }
.ficha-acoes span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 9px; }

/* Chamada */
.contador { font-size: 13px; font-weight: 800; color: var(--ok); background: var(--ok-soft); padding: 6px 10px; border-radius: 999px; }
.chamada-lista { list-style: none; padding: 6px 20px; }
.chamada-lista li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 600; }
.chamada-lista li:last-child { border-bottom: 0; }
.pf { margin-left: auto; display: flex; gap: 6px; }
.pf b { width: 34px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; border: 1px solid var(--border); color: var(--faint); }
.pf b.p.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.pf b.f.on { background: var(--bad); border-color: var(--bad); color: #fff; }
.chamada-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--surface-2); border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.chamada-rodape span:first-child { display: flex; align-items: center; gap: 6px; }
.btn-mock { background: var(--primary); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 9px; white-space: nowrap; }
.chip-notas { right: -22px; top: -100px; display: block; }
.notas-mini { display: flex; gap: 6px; }
.notas-mini span { font-size: 11.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; display: grid; text-align: center; }
.notas-mini span b { font-size: 15px; color: var(--text); }
.notas-mini .media { background: var(--primary-soft); border-color: #C7C4F8; color: var(--primary-hover); }
.notas-mini .media b { color: var(--primary-hover); }

/* ===== APP DA FAMÍLIA ===== */
.familia {
  color: #fff; padding: 96px 0; overflow: hidden;
  background: radial-gradient(800px 500px at 20% 50%, rgba(139, 133, 255, .22), transparent 60%), var(--navy);
}
.familia-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.familia-visual { display: flex; justify-content: center; }
.celular-grande { width: 300px; }
.app-familia { padding: 40px 16px 0; background: var(--surface-2); display: grid; gap: 10px; }
.af-topo small { font-size: 12px; color: var(--muted); font-weight: 600; }
.af-filho { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; margin-top: 6px; }
.af-filho div { flex: 1; }
.af-filho b { display: block; font-size: 13.5px; }
.af-filho span { font-size: 11.5px; color: var(--muted); }
.af-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.af-kpis div { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.af-kpis small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.af-kpis b { font-size: 22px; letter-spacing: -.02em; }
.af-card { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.af-card > i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.af-card div { flex: 1; min-width: 0; }
.af-card b { display: block; font-size: 12.5px; }
.af-card span { display: block; font-size: 11px; color: var(--muted); }
.af-pagar { flex-direction: column; align-items: stretch; border-color: #C7C4F8; }
.af-pagar b { font-size: 20px; letter-spacing: -.02em; }
.af-pagar div span { color: var(--warn); font-weight: 700; }
.af-btn { background: var(--primary); color: #fff !important; font-size: 12.5px !important; font-weight: 700; border-radius: 9px; padding: 9px; display: flex !important; justify-content: center; align-items: center; gap: 6px; }
.af-ok { font-size: 11.5px; font-weight: 800; color: var(--primary); }
.af-nav { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--border); margin: 4px -16px 0; padding: 8px 4px 12px; }
.af-nav span { display: grid; justify-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--faint); }
.af-nav i { font-size: 18px; }
.af-nav .ativa { color: var(--primary); }
.familia-texto > p { color: #B4BAD0; font-size: 17px; margin: 16px 0 26px; max-width: 540px; }
.lista-claro { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-bottom: 32px; }
.lista-claro li { display: flex; gap: 10px; align-items: flex-start; color: #DADDF0; font-size: 15px; }
.lista-claro i { color: #B7B3FF; font-size: 18px; margin-top: 2px; }

/* ===== WHATSAPP ===== */
.whats { padding: 96px 0; background: var(--bg); }
.whats-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.whats-texto > p { color: var(--muted); font-size: 17px; margin: 16px 0 28px; max-width: 540px; }
.whats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.whats-grid div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.whats-grid i { font-size: 20px; color: var(--wpp); margin-bottom: 4px; }
.whats-grid b { font-size: 15px; }
.whats-grid span { font-size: 14px; color: var(--muted); }
.chat { max-width: 380px; margin: 0 auto; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #075E54; color: #fff; }
.chat-cab b { display: block; font-size: 14.5px; }
.chat-cab small { font-size: 11.5px; opacity: .8; }
.wpp-av { background: #fff; color: #075E54; font-size: 16px; }
.chat-corpo {
  display: grid; gap: 10px; padding: 18px 14px 22px; background-color: var(--wpp-chat);
  background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1px); background-size: 14px 14px;
}
.bolha { position: relative; max-width: 86%; background: var(--wpp-bolha); padding: 8px 10px 20px; border-radius: 4px 12px 12px 12px; font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bolha u { color: #027EB5; text-decoration: none; }
.bolha.minha { justify-self: end; background: var(--wpp-minha); border-radius: 12px 4px 12px 12px; }
.hora { position: absolute; right: 8px; bottom: 4px; font-size: 10.5px; color: #667781; display: flex; align-items: center; gap: 3px; }
.hora i { color: #53BDEB; font-size: 13px; }

/* ===== PERFIS ===== */
.perfis { padding: 96px 0 40px; }
.perfis-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.perfil { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: grid; gap: 6px; align-content: start; }
.perfil i { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--primary-soft); color: var(--primary); margin-bottom: 6px; }
.perfil b { font-size: 16px; }
.perfil span { font-size: 14px; color: var(--muted); }

/* ===== POR QUE ===== */
.porque { padding: 72px 0 96px; }
.porque-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.porque-grid div { background: var(--bg); border-radius: var(--radius); padding: 24px; display: grid; gap: 6px; align-content: start; }
.porque-grid i { font-size: 24px; color: var(--primary); margin-bottom: 6px; }
.porque-grid b { font-size: 16px; }
.porque-grid span { font-size: 14px; color: var(--muted); }

/* ===== FAQ ===== */
.faq { padding: 96px 0; background: var(--bg); }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq .titulo-secao { margin-bottom: 0; position: sticky; top: calc(var(--topo-h) + 24px); }
.faq-lista { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; color: var(--primary); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ===== CTA FINAL ===== */
.cta-final { padding: 80px 0; background: linear-gradient(120deg, var(--primary-hover), var(--primary) 50%, #7C6CF6); color: #fff; text-align: center; }
.cta-in { max-width: 760px; }
.cta-final p { color: #E0DEFF; font-size: 17px; margin: 14px 0 28px; }

/* ===== RODAPÉ ===== */
.rodape { background: var(--navy); color: #8E94AD; padding: 36px 0; font-size: 14px; }
.rodape-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.rodape-marca { display: flex; align-items: center; gap: 14px; }
.rodape-marca img { height: 26px; width: auto; filter: invert(1); }
.rodape nav { display: flex; gap: 20px; }
.rodape a { color: #DADDF0; font-weight: 600; }

/* ===== MODAL ===== */
.modal {
  border: 0; padding: 0; margin: auto; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  border-radius: 20px; box-shadow: var(--shadow-lg); color: var(--text); background: #fff; overflow: auto;
}
.modal::backdrop { background: rgba(15, 21, 48, .6); backdrop-filter: blur(3px); }
.modal[open] { animation: entrar .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes entrar { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-form { padding: 28px; display: grid; gap: 18px; }
.modal-cab { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-cab h2 { font-size: 22px; letter-spacing: -.01em; }
.modal-cab p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.modal-fechar { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 18px; display: grid; place-items: center; }
.modal-fechar:hover { background: var(--surface-2); }
.alerta { display: flex; gap: 8px; align-items: center; background: var(--bad-soft); color: var(--bad); border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo { display: grid; gap: 6px; border: 0; min-width: 0; }
.campo > span, .campo legend { font-size: 13.5px; font-weight: 700; }
.campo legend { margin-bottom: 6px; }
.campo-largo { grid-column: 1 / -1; }
.campo input, .campo select {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #D5D8E4; border-radius: 10px; background: #fff;
  font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus, .campo select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .18); }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao { position: relative; cursor: pointer; }
.opcao input { position: absolute; opacity: 0; pointer-events: none; }
.opcao span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid #D5D8E4; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .15s; }
.opcao input:checked + span { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }
.opcao input:focus-visible + span { box-shadow: 0 0 0 3px rgba(79, 70, 229, .25); }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.aceite input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.campo-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== RESPONSIVO ===== */
@media (max-width: 1080px) {
  .topo-nav a { padding: 8px 9px; }
  .perfis-grid { grid-template-columns: repeat(3, 1fr); }
  .porque-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .topo-menu { display: inline-flex; }
  .link-entrar { display: none; }
  .topo-nav {
    position: absolute; top: var(--topo-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 16px 30px rgba(15, 21, 48, .1);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .topo-nav.aberto { display: flex; }
  .topo-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 16px; }
  .topo-entrar-mobile { display: block; color: var(--primary) !important; border-bottom: 0 !important; }

  .hero-in, .frente-in, .familia-in, .whats-in, .faq-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-in { padding-top: 56px; padding-bottom: 72px; }
  .hero-visual { min-height: 0; padding-left: 70px; }
  .janela { transform: none; max-width: none; }
  .celular-hero { width: 170px; bottom: -36px; }
  .frente-in.inverso .frente-texto { order: 0; }
  .frentes-cards { grid-template-columns: 1fr; }
  .familia-visual { order: 2; }
  .faq .titulo-secao { position: static; }
  .chip-nfse { left: 8px; }
  .chip-notas { right: 8px; }
  #pedagogico .frente-visual { margin-top: 56px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --topo-h: 60px; }
  body { font-size: 15.5px; }
  .marca img { height: 24px; }
  .marca-nome { display: none; }
  .topo-acoes .btn-sm { padding: 0 12px; font-size: 13px; }
  .hero h1 { margin-top: 16px; }
  .hero-sub { font-size: 16.5px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { padding-left: 0; padding-bottom: 150px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { display: none; }
  .mini-lista li:nth-child(n+3) { display: none; }
  .celular-hero { left: 50%; margin-left: -92px; width: 184px; bottom: -10px; transform: rotate(-3deg); }
  .celular-hero .celular-tela { padding: 34px 12px 14px; }
  .app-topo strong { font-size: 20px; white-space: nowrap; }
  .app-botao { font-size: 11.5px; white-space: nowrap; }
  .qr { width: 100px; }
  .frentes-intro, .perfis { padding-top: 64px; }
  .frente, .familia, .whats, .faq { padding: 64px 0; }
  .porque { padding: 48px 0 64px; }
  .recursos, .lista-claro, .whats-grid { grid-template-columns: 1fr; }
  .perfis-grid, .porque-grid { grid-template-columns: 1fr; }
  .cobranca-corpo { flex-direction: column; align-items: flex-start; }
  .chip-flutuante { position: static; margin-top: 12px; box-shadow: var(--shadow); }
  .linha-tempo { grid-template-columns: 1fr 1fr 1fr; }
  .linha-tempo div { padding: 8px; }
  .ficha-abas span { padding: 10px 6px; font-size: 12.5px; }
  .tag { display: none; }
  .chamada-rodape { flex-direction: column; align-items: stretch; text-align: center; }
  .chamada-rodape span:first-child { justify-content: center; }
  .btn-mock { text-align: center; }
  .celular-grande { width: 270px; }
  .cta-final .btn { width: 100%; }
  .rodape-in { flex-direction: column; align-items: flex-start; }
  .modal-form { padding: 20px 16px; }
  .campos { grid-template-columns: 1fr; }
}
