/* CSS próprio do site: só o que fica dentro das imagens de produto e o que o kit pede como "page CSS". */

html[data-ground="sky"] { --ground-bg: #d9e5f6; --ground-surface: #eef3fb; --ground-ink: #0b1a33; --ground-muted: #51607a; --ground-accent: #0047ab; }

.hero__proof { font-size: var(--t-small); color: var(--ink); }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
@media (max-width: 1023px) { .hero__art > .ly-piece--note { left: var(--s-4); bottom: var(--s-4); width: 270px; } }

.menu-card .panel { --p-h: 200px; background: var(--ground-surface); }

/* A receita do app-frame */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.ui-win__row.is-sel { box-shadow: inset 2px 0 0 var(--p-action); }
.ui-win__row .ui-avatar { font-size: 11px; background: var(--cobalto-50); color: var(--cobalto-700); }
.ui-win__row .ui-avatar[data-tone="3"] { background: #fdf3d8; color: #8a5a00; }
.ui-win__row .ui-avatar[data-tone="4"] { background: var(--menta-200); color: var(--menta-800); }
.ui-win__age { display: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* A interface do Ininvest desenhada em HTML */
.mk-win, .mk-card, .mk-painel, .mk-nota { --mk-linha: color-mix(in oklab, var(--p-ink) 9%, transparent); color: var(--p-ink); font: 400 14px/1.4 var(--font-text); text-align: left; }
.mk-win, .mk-card, .mk-painel { background: #fff; box-shadow: 0 0 0 1px rgb(11 26 51 / .07), 0 24px 56px -28px rgb(6 34 90 / .5); }
.mk-win { border-radius: 12px; overflow: hidden; container-type: inline-size; }
.mk-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--mk-linha); font-size: 13px; color: var(--p-muted); }
.mk-win__dots { display: flex; gap: 6px; }
.mk-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ee; }
.mk-win__body { display: grid; grid-template-columns: 128px minmax(0, 1fr); min-height: 420px; }
.mk-lado { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--mk-linha); font-size: 13px; color: var(--p-muted); }
.mk-lado span { display: flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 7px; }
.mk-lado .is-on { background: var(--cobalto-50); color: var(--p-action); font-weight: 500; }
.mk-corpo { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px 18px; padding-right: var(--ly-cut-room, 18px); }
.mk-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mk-cabeca h4, .mk-painel h4 { margin: 0; font: 500 16px/1.25 var(--font-text); letter-spacing: -0.01em; color: inherit; }
.mk-cabeca small, .mk-painel small, .mk-oferta small { display: block; color: var(--p-muted); font-size: 13px; }
.mk-cabeca b { font-weight: 500; font-size: 16px; }
.mk-abas { display: flex; gap: 4px; font-size: 13px; color: var(--p-muted); }
.mk-abas span { padding: 4px 10px; border-radius: 99px; }
.mk-abas .is-on { background: var(--cobalto-50); color: var(--p-action); font-weight: 500; }
.mk-linhas { display: grid; border-top: 1px solid var(--mk-linha); }
.mk-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) 72px 104px; align-items: center; gap: 12px; padding: 8px 2px; border-bottom: 1px solid var(--mk-linha); font-size: 13px; }
.mk-item b { display: block; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.mk-item small { color: var(--p-muted); font-size: 13px; }
.mk-item .num { text-align: right; }
@container (max-width: 559px) {
  .mk-win__body { grid-template-columns: minmax(0, 1fr); }
  .mk-lado { display: none; }
  .mk-item { grid-template-columns: 36px minmax(0, 1fr) 76px; }
  .mk-item .mk-chip { display: none; }
}
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-ic { display: grid; width: 36px; height: 36px; border-radius: 10px; background: var(--cobalto-50); }
.mk-ic::before { content: ""; margin: auto; width: 18px; height: 18px; background: var(--p-action); -webkit-mask: var(--mk-svg) center / contain no-repeat; mask: var(--mk-svg) center / contain no-repeat; }
.mk-chip { justify-self: end; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 13px; font-weight: 500; white-space: nowrap; background: var(--cobalto-50); color: var(--cobalto-700); }
.mk-chip--nao { background: var(--menta-200); color: var(--menta-800); }
.mk-chip--alerta { background: #fdecea; color: #b42318; }
.mk-chip--atencao { background: #fdf3d8; color: #8a5a00; }

.mk-card { border-radius: 12px; padding: 14px 16px; }
.mk-card h5 { margin: 0; font: 500 14px/1.3 var(--font-text); }
.mk-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mk-forte { margin: 8px 0 0; font-weight: 500; font-size: 14px; }
.mk-valor { margin: 6px 0 2px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.mk-nota-linha { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--mk-linha); font-size: 13px; color: var(--p-muted); }
.mk-nota-linha:first-of-type { margin-top: 8px; }
.mk-nota-linha b { font-weight: 500; color: var(--p-ink); }
.mk-mono { font-family: var(--font-mono); font-size: 13px; }

/* Nota aberta no app-frame */
.mk-nota { display: grid; align-content: start; gap: 10px; padding: 16px 20px; }
.mk-segmentos { display: flex; gap: 2px; height: 10px; }
.mk-segmentos i:first-child { border-radius: 99px 0 0 99px; }
.mk-segmentos i:last-child { border-radius: 0 99px 99px 0; }
.mk-e { background: #1a5cc2; }
.mk-n { background: #2fb98f; }
.mk-divisao { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; color: var(--p-muted); }
.mk-divisao b { font-weight: 500; color: var(--p-ink); }
.mk-itens { display: grid; border-top: 1px solid var(--mk-linha); }
.mk-l { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--mk-linha); font-size: 14px; }
.mk-l > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-l .num { text-align: right; }
@media (max-width: 479px) { .mk-l { grid-template-columns: minmax(0, 1fr) 76px; } .mk-l .mk-chip { display: none; } }

/* Painéis das duas seções divididas */
.mk-painel { display: grid; align-content: start; gap: 14px; width: calc(100% - 2 * var(--ax, 48px)); padding: 22px 24px 72px; border-radius: 14px; }
.mk-separa { margin-top: 8px !important; }
.mk-alerta .mk-chip, .mk-oferta .mk-chip { justify-self: start; }
.mk-alerta { display: grid; justify-items: start; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--mk-linha); }
.mk-alerta b, .mk-oferta b { font-weight: 500; font-size: 14px; }
.mk-oferta { display: grid; justify-items: start; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--mk-linha); }
.mk-barra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 13px; }
.mk-barra i { grid-column: 1 / -1; height: 8px; border-radius: 0 4px 4px 0; }

.mk-fatos { display: grid; gap: var(--s-2); padding: 0; list-style: none; }
.mk-fatos li { padding-top: var(--s-2); border-top: 1px solid var(--line); }

/* Três cartões de documentos */
.open-cards .panel { --p-h: 330px; }
.open-cards > .card { grid-column: 1 / -1; }
@media (min-width: 1024px) { .open-cards > .card { grid-column: auto / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) {
  .open-cards > .card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-auto-rows: min-content; column-gap: var(--s-6); align-content: start; }
  .open-cards > .card > :not(.panel) { grid-column: 1; }
  .open-cards > .card > .panel { grid-column: 2; grid-row: 1 / span 4; --p-h: clamp(208px, calc((100svh - 400px) / 3), 260px); margin: 0; }
}
@media (max-width: 639px) { .open-cards .panel { --p-h: 148px; } .stage > .at-rise { --ay-sm: 20px; } .open-cards > .card > .panel { margin-top: var(--s-5); } }

.footer__legal { flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* O nome de ponta a ponta e a frase em tamanho de cartaz */
.close__word { font-size: calc(min(100vw - 2 * var(--gut), 1280px) * .296); overflow: visible; }
@media (max-width: 639px) { .mk-painel { width: calc(100% - 32px); padding: 16px 16px 56px; } }
.ui-win__st.is-done { color: var(--u-text-2); }

/* O quadro ao lado das perguntas */
.mk-quadro { padding: var(--s-6); border-radius: var(--r-lg); background: var(--ground-bg); }
.mk-quadro .mk-card { max-width: 400px; }
.mk-sim { color: var(--menta-800); font-weight: 500; }
.mk-nao { color: #b42318; font-weight: 500; }

/* Perguntas: lado a lado do tablet para cima; no celular, duas telas (.g2m) */
@media (min-width: 640px) and (max-width: 1023px) {
  #faq .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  #faq .group { grid-column: 1 / span 6; }
  #faq .faq { grid-column: 7 / span 6; }
  #faq .faq > .faq__item { padding-block: clamp(16px, calc((100svh - 900px) / 8), 40px); }
  #faq .faq > .faq__item:first-child { padding-top: 0; }
  .mk-quadro { padding: var(--s-4); }
}

/* Celular: cortes limpos nos cartões e telas baixas crescem em vez de sobrepor */
@media (max-width: 639px) {
  #faq .grid { display: contents; }
  #faq .faq > .faq__item { padding-block: 12px; }
  #faq .faq > .faq__item:first-child { padding-top: 0; }
  .close--word .t-lead { display: none; }
  .open-cards .mk-nota-linha:last-child { display: none; }
  .open-cards > .card:not(:first-child) > .panel { display: none; }
  footer.closing .closing__links { gap: var(--s-5); }
  footer.closing > .wrap { row-gap: var(--s-6); }
  footer.closing .closing__cta { gap: var(--s-5); }
}
@media (max-width: 639px) and (max-height: 760px) {
  #alertas .grid.fill, #ofertas .grid.fill { flex: 0 0 auto; min-height: auto; }
  #alertas .frame--fill, #ofertas .frame--fill { flex: none; height: 300px; }
}
#frase .mo-wh__text { max-width: none; font-size: clamp(34px, 5.2vw, 76px); line-height: 1.12; }

/* Ícones da lista (lucide, ISC) */
.mk-ic--basket { --mk-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m15%2011-1%209%27%2F%3E%3Cpath%20d%3D%27m19%2011-4-7%27%2F%3E%3Cpath%20d%3D%27M2%2011h20%27%2F%3E%3Cpath%20d%3D%27m3.5%2011%201.6%207.4a2%202%200%200%200%202%201.6h9.8a2%202%200%200%200%202-1.6l1.7-7.4%27%2F%3E%3Cpath%20d%3D%27M4.5%2015.5h15%27%2F%3E%3Cpath%20d%3D%27m5%2011%204-7%27%2F%3E%3Cpath%20d%3D%27m9%2011%201%209%27%2F%3E%3C%2Fsvg%3E"); }
.mk-ic--wine { --mk-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M8%2022h8%27%2F%3E%3Cpath%20d%3D%27M7%2010h10%27%2F%3E%3Cpath%20d%3D%27M12%2015v7%27%2F%3E%3Cpath%20d%3D%27M12%2015a5%205%200%200%200%205-5c0-2-.5-4-2-8H9c-1.5%204-2%206-2%208a5%205%200%200%200%205%205Z%27%2F%3E%3C%2Fsvg%3E"); }
.mk-ic--cookie { --mk-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M11%2017h.01%27%2F%3E%3Cpath%20d%3D%27M11.496%202c.324-.016.558.292.529.615a4%204%200%20004.235%204.368.713.713%200%2001.758.757%204%204%200%20004.366%204.237c.323-.03.63.204.614.527a10%2010%200%2001-2.915%206.566A1%201%200%20114.93%204.918%2010%2010%200%200111.496%202%27%2F%3E%3Cpath%20d%3D%27M12%2012h.01%27%2F%3E%3Cpath%20d%3D%27M16%2016h.01%27%2F%3E%3Cpath%20d%3D%27M16%203h.01%27%2F%3E%3Cpath%20d%3D%27M21%204h.01%27%2F%3E%3Cpath%20d%3D%27M21%208h.01%27%2F%3E%3Cpath%20d%3D%27M7%2014h.01%27%2F%3E%3Cpath%20d%3D%27M9%208h.01%27%2F%3E%3C%2Fsvg%3E"); }
.mk-ic--spray { --mk-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M3%203h.01%27%2F%3E%3Cpath%20d%3D%27M7%205h.01%27%2F%3E%3Cpath%20d%3D%27M11%207h.01%27%2F%3E%3Cpath%20d%3D%27M3%207h.01%27%2F%3E%3Cpath%20d%3D%27M7%209h.01%27%2F%3E%3Cpath%20d%3D%27M3%2011h.01%27%2F%3E%3Crect%20width%3D%274%27%20height%3D%274%27%20x%3D%2715%27%20y%3D%275%27%2F%3E%3Cpath%20d%3D%27m19%209%202%202v10c0%20.6-.4%201-1%201h-6c-.6%200-1-.4-1-1V11l2-2%27%2F%3E%3Cpath%20d%3D%27m13%2014%208-2%27%2F%3E%3Cpath%20d%3D%27m13%2019%208-2%27%2F%3E%3C%2Fsvg%3E"); }
.mk-ic--sparkles { --mk-svg: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M11.017%202.814a1%201%200%200%201%201.966%200l1.051%205.558a2%202%200%200%200%201.594%201.594l5.558%201.051a1%201%200%200%201%200%201.966l-5.558%201.051a2%202%200%200%200-1.594%201.594l-1.051%205.558a1%201%200%200%201-1.966%200l-1.051-5.558a2%202%200%200%200-1.594-1.594l-5.558-1.051a1%201%200%200%201%200-1.966l5.558-1.051a2%202%200%200%200%201.594-1.594z%27%2F%3E%3Cpath%20d%3D%27M20%202v4%27%2F%3E%3Cpath%20d%3D%27M22%204h-4%27%2F%3E%3Ccircle%20cx%3D%274%27%20cy%3D%2720%27%20r%3D%272%27%2F%3E%3C%2Fsvg%3E"); }
