/* Lingo4All — home v3, abaixo do banner (2026-10-12): mosaico "em resumo",
   "como funciona", faixa gratuita e ajuda/contato refinados. Reaproveita os
   tokens de site.css e as peças de hero.css (chat, .h3-btn, .live). */

body[data-page="home"] .section { padding-block: clamp(72px, 9vw, 120px); }
body[data-page="home"] .section-head { max-width: 720px; }
body[data-page="home"] .section-head h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; line-height: 1.05; }
body[data-page="home"] .section-head p { font-size: clamp(16.5px, 1.4vw, 19px); }

/* ---------- mosaico ---------- */
.bento-sec { background: linear-gradient(180deg, #F5F7FB 0%, #FFFFFF 100%); }
.bento {
  list-style: none; padding: 0; margin: clamp(32px, 4vw, 52px) 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: 18px;
}
.bx {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 2.6vw, 32px);
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 1px 2px rgba(15, 33, 54, .04), 0 18px 40px -28px rgba(15, 33, 54, .25);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bx:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(15, 33, 54, .04), 0 30px 60px -30px rgba(15, 33, 54, .35); }
.bx h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.02em; color: var(--navy); margin-top: 14px; }
.bx p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.bx .pillar-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-text); }
.bx .pillar-icon .icon { width: 22px; height: 22px; }

.bx-path { grid-column: 1 / span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: center;
  background: radial-gradient(600px 300px at 100% 0%, var(--blue-50), transparent 70%), #fff; }
.path { list-style: none; padding: 0; margin: 22px 0 0; display: flex; align-items: center; gap: 0; }
.path li { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; position: relative; }
.path li + li { margin-left: 26px; }
.path li + li::before { content: ""; position: absolute; right: 100%; top: 50%; width: 26px; height: 3px; background: var(--line); }
.path .a1 { background: #C0492C; } .path .a2 { background: #DE8A2E; } .path .b1 { background: #E1B52C; color: #2A2205; } .path .b2 { background: #27795F; }
.bx-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15, 33, 54, .45); transform: rotate(-2deg) translateX(10%); }
.bx-shot img { display: block; width: 100%; height: auto; }

.bx-practice { grid-column: 3; grid-row: 1 / span 2; color: #fff; border: 0;
  background: radial-gradient(500px 300px at 100% 0%, rgba(59, 143, 229, .45), transparent 70%), linear-gradient(170deg, var(--navy) 0%, var(--navy-900) 100%); }
.bx-practice h3 { color: #fff; } .bx-practice p { color: #C9D7E8; }
.bx-practice .pillar-icon { background: rgba(255, 255, 255, .1); color: #8FC2F7; }
.mini-chat { margin-top: 24px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); }
.mini-games { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mini-games span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: #E4EDF8; }
.mini-games .icon { width: 16px; height: 16px; color: #FF8A80; }

.bx-pace .devices { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.devices span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); color: var(--navy); }
.devices .icon { width: 22px; height: 22px; }
.devices .prog { width: auto; padding: 0 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; background: var(--teal-50); color: var(--teal); }
.devices .prog b { font-size: 16px; line-height: 1.1; } .devices .prog em { font-style: normal; font-size: 12px; color: var(--ink-3); }

.bx-stats { background: linear-gradient(135deg, #FFF4F3 0%, #FFFFFF 60%); }
.bx-stats h3 { margin-top: 0; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.nums b { display: block; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.nums span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* ---------- como funciona ---------- */
.how-sec { background: #fff; }
.how { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.how::before { content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; background: linear-gradient(90deg, var(--red), var(--blue), var(--teal)); opacity: .35; }
.how li { position: relative; padding: 26px; border-radius: 24px; background: var(--bg); }
.how-n { position: absolute; right: 20px; top: 12px; font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--line); }
.how-ico { position: relative; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(15, 33, 54, .35); }
.how-ico .icon { width: 26px; height: 26px; }
.how li:nth-child(1) .how-ico { color: var(--red-text); } .how li:nth-child(2) .how-ico { color: var(--blue-text); } .how li:nth-child(3) .how-ico { color: var(--teal); }
.how h3 { margin-top: 18px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.how p { margin-top: 6px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- faixa gratuita ---------- */
.free-band {
  position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(40px, 5vw, 64px); border-radius: 32px;
  padding: clamp(28px, 4vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff;
  background: radial-gradient(500px 300px at 0% 100%, rgba(217, 52, 43, .45), transparent 70%), linear-gradient(120deg, var(--navy-900), var(--navy) 60%, #2B5C93);
}
.free-band .hero-orb { right: -160px; top: -200px; opacity: .45; }
.fb-txt h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.fb-txt p { margin-top: 8px; color: #C9D7E8; font-size: 17px; max-width: 46ch; }
.fb-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- ajuda e contato ---------- */
body[data-page="home"] .help { background: linear-gradient(180deg, #F5F7FB, #EEF3FA); }
body[data-page="home"] .help-h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.035em; }
body[data-page="home"] .help-link { border-radius: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 12px 28px -22px rgba(15, 33, 54, .35); transition: transform var(--t) var(--ease), border-color var(--t); }
body[data-page="home"] .help-link:hover { transform: translateX(4px); border-color: var(--blue-100); }
body[data-page="home"] .hl-icon { border-radius: 12px; }
body[data-page="home"] .form-card { border-radius: 28px; background: #fff; border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(15, 33, 54, .04), 0 30px 60px -34px rgba(15, 33, 54, .4); padding: clamp(22px, 3vw, 36px); }
body[data-page="home"] .form-card h3 { font-size: 24px; letter-spacing: -.02em; color: var(--navy); }
body[data-page="home"] .form-card input, body[data-page="home"] .form-card select, body[data-page="home"] .form-card textarea {
  border-radius: 12px; min-height: 48px; background: #FBFCFE; transition: border-color var(--t), box-shadow var(--t), background var(--t); }
body[data-page="home"] .form-card input:focus, body[data-page="home"] .form-card select:focus, body[data-page="home"] .form-card textarea:focus {
  background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); outline: none; }
body[data-page="home"] #cf-submit { border-radius: 14px; min-height: 52px; padding-inline: 26px; box-shadow: 0 14px 30px -12px rgba(217, 52, 43, .6); }

/* ---------- rodapé ---------- */
body[data-page="home"] .site-footer { position: relative; }
body[data-page="home"] .site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--red), var(--blue), var(--teal)); }

/* ---------- entrada ao rolar (estado de repouso é visível) ---------- */
.rv-on .rv.rv-pre { opacity: 0; transform: translateY(18px); }
.rv-on .rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx-path { grid-column: 1 / -1; }
  .bx-practice { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 760px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bx-path { grid-template-columns: minmax(0, 1fr); }
  .bx-shot { transform: none; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how::before { display: none; }
  .fb-actions { width: 100%; }
  .fb-actions .h3-btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv.rv-pre { opacity: 1; transform: none; }
  .bx:hover, body[data-page="home"] .help-link:hover { transform: none; }
}
@media (hover: none) { .bx:hover { transform: none; } }

/* ajustes pós-QA */
.nums { gap: 18px; }
.nums b { font-size: clamp(26px, 2.4vw, 36px); white-space: nowrap; }
.bx-practice .mini-chat p { max-width: 92%; }
.bx-practice .bub-in { color: var(--ink); }
.bx-practice .bub-out { color: #fff; }
.free-band .fb-txt h3 { color: #fff; }

/* card de números (v3): linhas em vez de colunas apertadas + barra A1→B2 */
.bx-stats { display: flex; flex-direction: column; }
.nums2 { list-style: none; padding: 0; margin: 14px 0 0; display: grid; }
.nums2 li { display: grid; grid-template-columns: 7.2ch minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid #F3E1DF; }
.nums2 li:last-child { border-bottom: 0; }
.nums2 b { font-size: clamp(30px, 2.8vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nums2 span { font-size: 15.5px; font-weight: 600; color: var(--ink-2); }
.lvbar { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.lvbar span { height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 800; color: #fff; }
.lvbar .a1 { background: #C0492C; } .lvbar .a2 { background: #DE8A2E; } .lvbar .b1 { background: #E1B52C; color: #2A2205; } .lvbar .b2 { background: #27795F; }
.nums2 li { grid-template-columns: auto minmax(0, 1fr); }
.nums2 b { min-width: 3em; }

/* janela de agradecimento */
.thanks { border: 0; padding: 0; border-radius: 28px; max-width: min(440px, calc(100vw - 32px)); width: 100%; background: #fff; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(15, 33, 54, .55); }
.thanks::backdrop { background: rgba(15, 33, 54, .55); backdrop-filter: blur(4px); }
.thanks-box { padding: 36px 32px 30px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.thanks-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #E7F7EE; color: #15803D;
  box-shadow: 0 0 0 10px #F2FBF6; margin-bottom: 8px; }
.thanks-ico .icon { width: 36px; height: 36px; stroke-width: 2.6; }
.thanks h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: #15803D; }
.thanks p { color: #166534; font-size: 16px; max-width: 34ch; }
.thanks-btn { margin-top: 14px; background: #15803D; color: #fff; min-height: 50px; padding: 0 30px; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.thanks-btn:hover { background: #126B33; color: #fff; }
.thanks-btn:focus-visible { outline: 3px solid #86EFAC; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .thanks[open] { animation: ty-in .35s var(--ease); }
  @keyframes ty-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
}
