
/* Home HUB da Matemática — arquitetura 2026-09-27
   Escopo exclusivo das novas seções após o banner. Cabeçalho, hero, Minuto Matemático e rodapé permanecem intactos. */

.hmx-section{padding:52px 0}
.hmx-wrap{width:min(1180px,calc(100% - 40px));margin:0 auto}
.hmx-kicker{display:inline-flex;align-items:center;gap:8px;margin:0 0 9px;color:#58708f;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.hmx-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 5px color-mix(in srgb,currentColor 12%,transparent)}
.hmx-title{margin:0;color:#071a3a;font-size:clamp(30px,4vw,46px);line-height:1;letter-spacing:-1.5px;font-weight:900;text-wrap:balance}
.hmx-subtitle{margin:10px 0 0;max-width:720px;color:#607188;font-size:14px;line-height:1.55;font-weight:700}
.hmx-section-head{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:22px}
.hmx-all-link{display:inline-flex;align-items:center;gap:8px;margin-top:18px;color:#17375e;font-size:13px;font-weight:900;text-decoration:none}
.hmx-student-all{min-height:48px;padding:0 17px;border:2px solid #246bfe;border-radius:14px;background:#fff;color:#174fba;font-size:15px;box-shadow:0 8px 22px rgba(36,107,254,.08);transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.hmx-student-all:hover,.hmx-student-all:focus-visible{transform:translateY(-2px);background:#eef4ff;box-shadow:0 12px 26px rgba(36,107,254,.14)}
.hmx-all-link i{transition:transform .18s ease}
.hmx-all-link:hover i,.hmx-all-link:focus-visible i{transform:translateX(4px)}
.hmx-card{border:1px solid rgba(7,26,58,.08);box-shadow:0 18px 44px rgba(20,44,78,.08)}

/* BUSCA */
.hmx-search{padding:26px 0 34px;background:#f7f6f0}
.hmx-search-shell{position:relative;overflow:hidden;display:grid;grid-template-columns:.75fr 1.25fr;gap:34px;align-items:center;padding:27px 30px;border-radius:26px;background:linear-gradient(135deg,#ffffff 0%,#f4f8ff 58%,#eef9f7 100%);border:1px solid #dde6f0;box-shadow:0 16px 44px rgba(7,26,58,.08)}
.hmx-search-shell:after{content:"";position:absolute;right:-90px;top:-105px;width:270px;height:270px;border-radius:50%;background:radial-gradient(circle,#7be0c7 0%,rgba(123,224,199,0) 69%);opacity:.23;pointer-events:none}
.hmx-search-copy{position:relative;z-index:1}
.hmx-search-copy .hmx-title{font-size:clamp(28px,3.1vw,40px)}
.hmx-search-copy p{margin:8px 0 0;color:#65768d;font-size:13px;line-height:1.5;font-weight:700}
.hmx-search-area{position:relative;z-index:1}
.hmx-search-label{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#17375e;font-size:12px;font-weight:900}
.hmx-search-label i{color:#1769ff}
.hmx-search-form{margin:0}
.hmx-search-control{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 9px 9px 16px;border:2px solid #8db7ef;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(23,105,255,.10),0 0 0 5px rgba(23,105,255,.04)}
.hmx-search-control>i{color:#1769ff;font-size:18px}
.hmx-search-control input{min-width:0;height:48px;border:0;outline:0;background:transparent;color:#10213d;font:800 15px "Nunito",system-ui,sans-serif}
.hmx-search-control input::placeholder{color:#6f8094;opacity:1}
.hmx-search-control button{min-height:46px;padding:0 19px;border:0;border-radius:12px;background:#1769ff;color:#fff;font:900 12px "Nunito",system-ui,sans-serif;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.hmx-search-control button:hover,.hmx-search-control button:focus-visible{transform:translateY(-1px);background:#0d56da;box-shadow:0 8px 18px rgba(23,105,255,.22)}
.hmx-search-help{margin:10px 2px 0;color:#6d7f94;font-size:10px;line-height:1.35;font-weight:800}

/* ALUNO — bento de caminhos */
.hmx-student{background:linear-gradient(180deg,#f8fbff 0%,#f2f7ff 100%)}
.hmx-student .hmx-kicker{color:#24864a}
.hmx-student-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}
.hmx-path-card{position:relative;overflow:hidden;min-height:190px;padding:22px;border-radius:24px;color:#10213d;text-decoration:none;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s ease,box-shadow .2s ease}
.hmx-path-card:hover,.hmx-path-card:focus-visible{transform:translateY(-4px);box-shadow:0 24px 48px rgba(20,44,78,.13)}
.hmx-path-card:after{content:"";position:absolute;right:-42px;bottom:-50px;width:142px;height:142px;border-radius:50%;background:rgba(255,255,255,.45)}
.hmx-path-card i{position:relative;z-index:1;width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.72);font-size:20px}
.hmx-path-card strong{position:relative;z-index:1;display:block;margin-top:20px;font-size:23px;line-height:1;font-weight:900;letter-spacing:-.6px}
.hmx-path-card span{position:relative;z-index:1;display:block;margin-top:7px;max-width:260px;font-size:11px;line-height:1.4;font-weight:800;opacity:.74}
.hmx-path-card .hmx-arrow{position:absolute;right:17px;top:17px;width:31px;height:31px;font-size:12px;background:rgba(255,255,255,.74)}
.hmx-path-route{grid-column:span 2;background:linear-gradient(145deg,#dff5e7,#c9ecd8)}
.hmx-path-percursos{grid-column:span 2;background:linear-gradient(145deg,#dce8ff,#c7d9ff)}
.hmx-path-aplicacoes{grid-column:span 2;background:linear-gradient(145deg,#fff1c8,#ffe3a1)}
.hmx-path-guide{grid-column:span 3;background:linear-gradient(145deg,#f1e5ff,#e4cffb);min-height:156px}
.hmx-path-life{grid-column:span 3;background:linear-gradient(145deg,#ffe6dc,#ffd2c3);min-height:156px}
.hmx-guide-links{position:relative;z-index:2;display:flex;gap:7px;margin-top:13px}
.hmx-guide-links a{padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.72);color:#50386b;font-size:9px;font-weight:900;text-decoration:none}
.hmx-path-guide article{position:relative;z-index:1}

/* VITRINE GRATUITA */
.hmx-free{background:#fff}
.hmx-free .hmx-kicker{color:#7047bf}
.hmx-free-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hmx-free-card{position:relative;overflow:hidden;min-height:360px;border-radius:26px;background:#071a3a;text-decoration:none;color:#fff;isolation:isolate;transition:transform .2s ease,box-shadow .2s ease}
.hmx-free-card:hover,.hmx-free-card:focus-visible{transform:translateY(-5px);box-shadow:0 26px 54px rgba(7,26,58,.2)}
.hmx-free-media{position:absolute;inset:0}
.hmx-free-media img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}
.hmx-free-card:hover .hmx-free-media img,.hmx-free-card:focus-visible .hmx-free-media img{transform:scale(1.035)}
.hmx-free-card:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(4,15,34,.05) 15%,rgba(4,15,34,.78) 70%,rgba(4,15,34,.96) 100%)}
.hmx-free-copy{position:absolute;z-index:2;left:20px;right:20px;bottom:20px}
.hmx-free-copy small{display:block;margin-bottom:5px;color:#d7e2ef;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.1em}
.hmx-free-copy strong{display:block;font-size:27px;line-height:1;font-weight:900;letter-spacing:-.7px}
.hmx-free-copy span{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:#e4edf6;font-size:11px;font-weight:800}
.hmx-free-mini .hmx-free-media{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#2c1e64}
.hmx-free-mini .hmx-free-media img:first-child{grid-row:span 2}
.hmx-free-mini .hmx-free-media img{min-width:0}
.hmx-free-ebooks .hmx-free-media{display:flex;align-items:center;justify-content:center;gap:9px;padding:26px;background:linear-gradient(145deg,#071a3a,#154f78)}
.hmx-free-ebooks .hmx-free-media img{width:31%;height:70%;object-fit:contain;border-radius:10px;box-shadow:0 13px 28px rgba(0,0,0,.28)}
.hmx-free-ebooks .hmx-free-media img:nth-child(2){transform:translateY(-12px)}
.hmx-free-ebooks:hover .hmx-free-media img,.hmx-free-ebooks:focus-visible .hmx-free-media img{transform:none}
.hmx-free-ebooks:hover .hmx-free-media img:nth-child(2),.hmx-free-ebooks:focus-visible .hmx-free-media img:nth-child(2){transform:translateY(-16px)}

/* PROFESSOR — painel de produção */
.hmx-teacher{background:linear-gradient(180deg,#eef9f7,#f7fbfa)}
.hmx-teacher .hmx-kicker{color:#177a67}
.hmx-teacher-shell{display:grid;grid-template-columns:.7fr 1.3fr;gap:16px;padding:17px;border-radius:28px;background:#fff;border:1px solid #d7eae5;box-shadow:0 18px 46px rgba(19,91,75,.08)}
.hmx-teacher-intro{padding:24px 22px;display:flex;flex-direction:column;justify-content:center;border-radius:20px;background:linear-gradient(145deg,#0d6d5a,#139176);color:#fff}
.hmx-teacher-intro .hmx-kicker{color:#bff5e5}
.hmx-teacher-intro h2{margin:0;font-size:clamp(29px,3.4vw,42px);line-height:.98;letter-spacing:-1.2px}
.hmx-teacher-intro p{margin:10px 0 0;color:#d9f4ec;font-size:12px;line-height:1.5;font-weight:700}
.hmx-teacher-intro .hmx-all-link{color:#fff}
.hmx-teacher-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hmx-teacher-action{display:grid;grid-template-columns:48px minmax(0,1fr) 30px;align-items:center;gap:12px;min-height:112px;padding:16px;border-radius:18px;background:#f8fbfa;border:1px solid #dcece8;color:#17375e;text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.hmx-teacher-action:hover,.hmx-teacher-action:focus-visible{transform:translateY(-3px);border-color:#acd5ca;box-shadow:0 13px 26px rgba(24,105,86,.09)}
.hmx-teacher-action>i:first-child{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#dff4ed;color:#0b7862;font-size:19px}
.hmx-teacher-action strong{display:block;font-size:15px;line-height:1.15;font-weight:900}
.hmx-teacher-action small{display:block;margin-top:5px;color:#718397;font-size:9px;line-height:1.35;font-weight:800}
.hmx-teacher-action>i:last-child{color:#759187;font-size:12px}

/* FAMÍLIA + ESCOLA */
.hmx-audiences{background:#fff}
.hmx-audience-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hmx-audience-card{position:relative;overflow:hidden;min-height:330px;padding:28px;border-radius:28px}
.hmx-audience-card.family{background:linear-gradient(145deg,#fff4e9,#ffe5cf);border-color:#f3d7bd}
.hmx-audience-card.school{background:linear-gradient(145deg,#171140,#3b2676);color:#fff;border-color:#3f3270}
.hmx-audience-card h2{margin:8px 0 8px;font-size:clamp(31px,3.6vw,43px);line-height:.98;letter-spacing:-1.3px;font-weight:900}
.hmx-audience-card.family h2{color:#7f3f1d}
.hmx-audience-card p{margin:0;max-width:510px;font-size:12px;line-height:1.5;font-weight:700}
.hmx-audience-card.family p{color:#815e49}
.hmx-audience-card.school p{color:#ddd7f0}
.hmx-audience-points{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:20px}
.hmx-audience-points span{display:flex;align-items:center;gap:8px;padding:10px 11px;border-radius:12px;font-size:10px;font-weight:900}
.family .hmx-audience-points span{background:rgba(255,255,255,.72);color:#784423}
.school .hmx-audience-points span{background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.1);color:#fff}
.hmx-audience-card .hmx-all-link{position:absolute;left:28px;bottom:25px}
.hmx-audience-card.family .hmx-all-link{color:#91451f}
.hmx-audience-card.school .hmx-all-link{color:#fff}

/* PRODUTOS — quatro cards simultâneos */
.hmx-products{background:linear-gradient(180deg,#f8f7fb,#f3f5fa)}
.hmx-products .hmx-kicker{color:#7444c2}
.hmx-products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.hmx-product-card{overflow:hidden;display:flex;flex-direction:column;border-radius:23px;background:#fff;color:#10213d;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.hmx-product-card:hover,.hmx-product-card:focus-visible{transform:translateY(-5px);box-shadow:0 25px 50px rgba(20,39,72,.14)}
.hmx-product-media{position:relative;display:grid;place-items:center;aspect-ratio:1.35/1;background:#0b1d3b;overflow:hidden}
.hmx-product-media img{width:100%;height:100%;display:block;object-fit:contain}
.hmx-product-media.hq{background:#f2e9df}
.hmx-product-media.aulas{background:#e7f3ef}
.hmx-product-media.aulas img{object-fit:cover;object-position:50% 19%}
.hmx-product-media .hm-product-real-badge{position:absolute;right:9px;bottom:9px;padding:5px 7px;border-radius:999px;background:rgba(7,26,58,.82);color:#fff;font-size:7px;font-weight:900}
.hmx-product-copy{display:flex;flex:1;flex-direction:column;padding:17px}
.hmx-product-copy small{color:#6f7e91;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.hmx-product-copy strong{display:block;margin-top:5px;font-size:20px;line-height:1.05;font-weight:900;letter-spacing:-.4px}
.hmx-product-copy p{margin:7px 0 0;color:#6b7b90;font-size:10px;line-height:1.4;font-weight:700}
.hmx-product-meta{display:flex;flex-wrap:wrap;gap:5px;margin-top:12px}
.hmx-product-meta span{padding:5px 7px;border-radius:999px;background:#eef3f8;color:#526880;font-size:8px;font-weight:900}
.hmx-product-action{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:15px;color:#17375e;font-size:10px;font-weight:900}

/* FECHAMENTO */
.hmx-explore{padding:22px 0;background:#fff}
.hmx-explore-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-radius:18px;background:#071a3a;color:#fff}
.hmx-explore-stats{display:flex;align-items:center;gap:15px}
.hmx-explore-stats strong{font-size:20px;line-height:1;font-weight:900}
.hmx-explore-stats span{color:#bfcde0;font-size:10px;font-weight:800}
.hmx-explore-bar a{display:inline-flex;align-items:center;gap:8px;padding:10px 13px;border-radius:11px;background:#fff;color:#071a3a;font-size:10px;font-weight:900;text-decoration:none}

/* Movimento discreto */
.hmx-reveal{opacity:0;transform:translateY(14px)}
.hmx-reveal.is-visible{opacity:1;transform:none;transition:opacity .45s ease,transform .45s ease}

@media(max-width:980px){
  .hmx-search-shell,.hmx-teacher-shell{grid-template-columns:1fr}
  .hmx-student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hmx-path-route,.hmx-path-percursos,.hmx-path-aplicacoes,.hmx-path-guide,.hmx-path-life{grid-column:span 1}
  .hmx-free-grid{grid-template-columns:1fr 1fr}
  .hmx-free-card:first-child{grid-column:1/-1}
  .hmx-products-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .hmx-section{padding:38px 0}
  .hmx-wrap{width:calc(100% - 24px)}
  .hmx-section-head{display:block}
  .hmx-search{padding:18px 0 24px}
  .hmx-search-shell{padding:20px 16px;gap:18px;border-radius:22px}
  .hmx-search-control{grid-template-columns:20px minmax(0,1fr)}
  .hmx-search-control button{grid-column:1/-1;width:100%}
  .hmx-student-grid,.hmx-free-grid,.hmx-audience-grid,.hmx-products-grid{grid-template-columns:1fr}
  .hmx-free-card:first-child{grid-column:auto}
  .hmx-path-card{min-height:160px}
  .hmx-teacher-actions{grid-template-columns:1fr}
  .hmx-audience-card{min-height:315px}
  .hmx-explore-bar{align-items:flex-start;flex-direction:column}
}
@media(max-width:430px){
  .hmx-title{font-size:30px}
  .hmx-free-card{min-height:315px}
  .hmx-free-media{flex-basis:220px}
  .hmx-product-copy strong{font-size:18px}
  .hmx-explore-stats{align-items:flex-start;flex-direction:column;gap:4px}
}
@media(prefers-reduced-motion:reduce){
  .hmx-reveal{opacity:1;transform:none}
  .hmx-reveal.is-visible{transition:none}
  .hmx-path-card,.hmx-free-card,.hmx-product-card,.hmx-teacher-action,.hmx-search-form button{transition:none!important}
}


/* Refinamento v2 — vitrine gratuita mais viva */
.hmx-free-card{
  min-height:360px;
  display:flex;
  flex-direction:column;
  background:#fff;
  color:#071a3a;
  border:1px solid #dbe5ef;
}
.hmx-free-card:after{display:none}
.hmx-free-media{
  position:relative;
  inset:auto;
  flex:0 0 262px;
  min-height:0;
  overflow:hidden;
  background:#eef4fb;
}
.hmx-free-media img{filter:saturate(1.08) brightness(1.07)}
.hmx-free-copy{
  position:relative;
  left:auto;right:auto;bottom:auto;
  flex:1;
  padding:18px 20px 19px;
  color:#071a3a;
}
.hmx-free-copy small{color:#5f6f84}
.hmx-free-copy strong{color:#071a3a}
.hmx-free-copy span{color:#52657d}
.hmx-free-mini .hmx-free-copy{background:linear-gradient(135deg,#eee4ff,#dfceff)}
.hmx-free-mini .hmx-free-media{background:#3c287d}
#jogos-home .hmx-free-copy{background:linear-gradient(135deg,#d8fbf4,#c8f3ff)}
#jogos-home .hmx-free-media{background:#dff9fb}
.hmx-free-ebooks .hmx-free-copy{background:linear-gradient(135deg,#fff4c8,#e6f2ff)}
.hmx-free-ebooks .hmx-free-media{padding:22px;background:linear-gradient(145deg,#dfefff,#fff1c7)}
.hmx-free-ebooks .hmx-free-media img{height:78%;box-shadow:0 12px 26px rgba(28,52,82,.18)}
.hmx-free-card:hover .hmx-free-media img,.hmx-free-card:focus-visible .hmx-free-media img{filter:saturate(1.14) brightness(1.1)}
.hmx-free-ebooks:hover .hmx-free-media img,.hmx-free-ebooks:focus-visible .hmx-free-media img{filter:saturate(1.14) brightness(1.08)}

/* Refinamento v2 — produtos orientados por necessidade */
.hmx-product-media{background:#f4f7fb}
.hmx-product-media.premium-crop,
.hmx-product-media.journey-crop{background:#fff}
.hmx-product-media.premium-crop img,
.hmx-product-media.journey-crop img{
  width:116%;
  max-width:none;
  height:100%;
  object-fit:cover;
  object-position:left center;
}
.hmx-product-value{
  margin-top:12px;
  padding:9px 10px;
  border-radius:11px;
  background:#f4f7fb;
  color:#334d6e;
  font-size:9px;
  line-height:1.35;
  font-weight:900;
}
.hmx-product-copy strong{font-size:18px;line-height:1.08}
.hmx-product-copy p{font-size:10px;line-height:1.5}
.hmx-product-action{font-size:10px;color:#123d74}
.hmx-product-card:hover .hmx-product-action,
.hmx-product-card:focus-visible .hmx-product-action{color:#1769ff}


/* Refinamento v3 — Jogos como uma única foto de catálogo 3x3 */
#jogos-home .hmx-games-photo{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-template-rows:repeat(3,minmax(0,1fr));
  gap:7px;
  padding:10px;
  background:linear-gradient(145deg,#78eee5,#bdf7f2);
}
#jogos-home .hmx-games-photo span{
  display:block;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.92);
  border-radius:10px;
  background:#fff;
  box-shadow:0 4px 10px rgba(18,108,115,.10);
}
#jogos-home .hmx-games-photo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(1.08) contrast(1.02) brightness(1.02);
  transform:none!important;
}
#jogos-home:hover .hmx-games-photo img,
#jogos-home:focus-visible .hmx-games-photo img{
  filter:saturate(1.13) contrast(1.03) brightness(1.04);
  transform:none!important;
}
#jogos-home .hmx-free-copy{
  background:linear-gradient(135deg,#c9fbf4 0%,#d7f8ff 100%);
}
@media(max-width:430px){
  #jogos-home .hmx-games-photo{gap:5px;padding:7px}
  #jogos-home .hmx-games-photo span{border-width:1px;border-radius:7px}
}


/* Refinamento v4 — CTA do Professor com a mesma presença do CTA do Aluno */
.hmx-teacher-all{
  min-height:48px;
  padding:0 17px;
  border:2px solid rgba(255,255,255,.92);
  border-radius:14px;
  background:#fff;
  color:#0b6f5d!important;
  font-size:15px;
  box-shadow:0 8px 22px rgba(0,0,0,.10);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.hmx-teacher-all:hover,
.hmx-teacher-all:focus-visible{
  transform:translateY(-2px);
  background:#effbf7;
  box-shadow:0 12px 26px rgba(0,0,0,.14);
}


/* Refinamento v5 — produtos: necessidade, valor e ação */
.hmx-products .hmx-section-head{margin-bottom:24px}
.hmx-products .hmx-subtitle{max-width:760px}
.hmx-product-card{
  position:relative;
  border:1px solid #dde5ee;
  box-shadow:0 14px 34px rgba(20,39,72,.08);
}
.hmx-product-card:before{
  content:"";
  position:absolute;
  z-index:3;
  left:0;right:0;top:0;
  height:5px;
  background:var(--product-accent,#1769ff);
}
.hmx-product-premium{--product-accent:#246bfe;--product-soft:#edf4ff;--product-ink:#174fae}
.hmx-product-hq{--product-accent:#d78632;--product-soft:#fff4e7;--product-ink:#9a5718}
.hmx-product-jornada{--product-accent:#7454d6;--product-soft:#f1edff;--product-ink:#543aa9}
.hmx-product-aulas{--product-accent:#16806b;--product-soft:#e9f8f3;--product-ink:#0d6755}
.hmx-product-media{aspect-ratio:1.42/1}
.hmx-product-copy{padding:18px;gap:0}
.hmx-product-need{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  margin:0 0 11px;
  padding:5px 9px;
  border-radius:999px;
  background:var(--product-soft);
  color:var(--product-ink);
  font-size:8px;
  line-height:1;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.hmx-product-copy small{
  color:#65758a;
  font-size:8px;
  letter-spacing:.11em;
}
.hmx-product-copy strong{
  min-height:58px;
  margin-top:6px;
  font-size:19px;
  line-height:1.08;
}
.hmx-product-copy p{
  min-height:61px;
  margin-top:8px;
  color:#5f7086;
  font-size:10px;
  line-height:1.5;
}
.hmx-product-meta{margin-top:13px}
.hmx-product-meta span:first-child{
  background:#071a3a;
  color:#fff;
}
.hmx-product-meta span:last-child{
  background:var(--product-soft);
  color:var(--product-ink);
}
.hmx-product-action{
  min-height:42px;
  margin-top:17px;
  padding:0 13px;
  border-radius:12px;
  background:#071a3a;
  color:#fff!important;
  font-size:10px;
  box-shadow:0 5px 0 rgba(7,26,58,.16);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.hmx-product-card:hover .hmx-product-action,
.hmx-product-card:focus-visible .hmx-product-action{
  transform:translateY(-1px);
  background:var(--product-accent);
  box-shadow:0 7px 0 color-mix(in srgb,var(--product-accent) 22%,transparent);
}
.hmx-product-media.premium-crop img{
  width:121%;
  object-position:left center;
}
.hmx-product-media.journey-crop img{
  width:121%;
  object-position:left center;
}
@media(max-width:980px){
  .hmx-product-copy strong,.hmx-product-copy p{min-height:0}
}
@media(max-width:720px){
  .hmx-product-copy{padding:17px}
  .hmx-product-action{min-height:46px;font-size:11px}
}


/* Refinamento v6 — simetria rigorosa dos quatro produtos */
@media(min-width:981px){
  .hmx-products-grid{align-items:stretch}
  .hmx-product-card{height:100%}
  .hmx-product-copy strong{
    height:46px;
    min-height:46px;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
  }
  .hmx-product-copy p{
    height:61px;
    min-height:61px;
    overflow:hidden;
  }
  .hmx-product-meta{
    min-height:28px;
    align-items:center;
  }
}
.hmx-product-media img{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  object-fit:cover!important;
}
.hmx-product-media.hq img{
  object-position:center center!important;
}
.hmx-product-media.premium-crop img{
  width:121%!important;
  object-position:left center!important;
}
.hmx-product-media.journey-crop img{
  width:121%!important;
  object-position:left center!important;
}
.hmx-product-aulas .hmx-product-media img{
  object-position:50% 19%!important;
}
.hmx-product-action{
  background:var(--product-accent)!important;
  color:#fff!important;
  box-shadow:0 5px 0 color-mix(in srgb,var(--product-accent) 28%,transparent)!important;
}
.hmx-product-card:hover .hmx-product-action,
.hmx-product-card:focus-visible .hmx-product-action{
  background:var(--product-ink)!important;
  box-shadow:0 7px 0 color-mix(in srgb,var(--product-ink) 24%,transparent)!important;
}
.hmx-product-need{
  border:1px solid color-mix(in srgb,var(--product-accent) 18%,transparent);
}


/* Refinamento v7 — Família e Escola no mobile */
@media(max-width:720px){
  .hmx-audience-grid{
    gap:18px;
  }

  .hmx-audience-card{
    min-height:0;
    padding:24px 22px 22px;
    border-radius:26px;
    overflow:visible;
  }

  .hmx-audience-card h2{
    margin:8px 0 10px;
    font-size:clamp(30px,8.6vw,40px);
    line-height:1.03;
    letter-spacing:-1px;
    text-wrap:balance;
  }

  .hmx-audience-card p{
    margin:0;
    font-size:12px;
    line-height:1.55;
  }

  .hmx-audience-points{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:18px;
  }

  .hmx-audience-points span{
    min-height:64px;
    padding:12px 13px;
    gap:9px;
    border-radius:14px;
    font-size:11px;
    line-height:1.25;
    text-align:left;
  }

  .hmx-audience-points span i{
    flex:0 0 20px;
    width:20px;
    text-align:center;
  }

  .hmx-audience-card .hmx-all-link{
    position:static;
    left:auto;
    bottom:auto;
    width:100%;
    min-height:48px;
    margin:18px 0 0;
    padding:0 16px;
    justify-content:space-between;
    border-radius:14px;
    font-size:15px;
    line-height:1.15;
    box-shadow:0 8px 20px rgba(7,26,58,.10);
  }

  .hmx-audience-card.family .hmx-all-link{
    border:2px solid #b65b27;
    background:#fff9f3;
    color:#8b451f;
  }

  .hmx-audience-card.school .hmx-all-link{
    border:2px solid rgba(255,255,255,.42);
    background:rgba(255,255,255,.12);
    color:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.14);
  }

  .hmx-audience-card.family .hmx-all-link:hover,
  .hmx-audience-card.family .hmx-all-link:focus-visible{
    background:#fff1e4;
  }

  .hmx-audience-card.school .hmx-all-link:hover,
  .hmx-audience-card.school .hmx-all-link:focus-visible{
    background:rgba(255,255,255,.18);
  }
}

@media(max-width:430px){
  .hmx-audience-card{
    padding:22px 18px 20px;
  }

  .hmx-audience-card h2{
    font-size:31px;
  }

  .hmx-audience-card p{
    font-size:11px;
  }

  .hmx-audience-points{
    grid-template-columns:1fr;
  }

  .hmx-audience-points span{
    min-height:54px;
  }

  .hmx-audience-card .hmx-all-link{
    min-height:50px;
    font-size:14px;
  }
}
