/* CasusLab — mockups conceituais (marca fictícia, dados fictícios) */
.partner-mark {
  display: inline-grid; place-items: center; flex: none;
  width: 2.1em; height: 2.1em; border-radius: .55em;
  background: var(--partner); color: #fff; font-weight: 800; font-size: 1em; letter-spacing: -.02em;
  transition: background-color .35s var(--ease);
}
.partner-mark.big { width: 48px; height: 48px; border-radius: 12px; font-size: 1.05rem; }
[data-partner-name] { transition: color .2s; }
.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

/* ---------- Hero: desktop + celular ---------- */
.hero-visual { container-type: inline-size; }
.device-desktop {
  container-type: inline-size; position: relative;
  width: 92%; border-radius: 14px; background: var(--surface); overflow: hidden;
  border: 1px solid #DCE5EA; box-shadow: var(--shadow-2);
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) { .device-desktop { transform: none; } }
.win-bar { display: flex; align-items: center; gap: 1cqw; padding: 1.6cqw 2cqw; background: #F1F4F6; border-bottom: 1px solid #E3EAEE; }
.win-bar i { width: 1.3cqw; height: 1.3cqw; min-width: 6px; min-height: 6px; border-radius: 50%; background: #D3DCE2; }
.win-url { margin-left: 2cqw; flex: 1; max-width: 55%; font-size: clamp(7px, 1.7cqw, 12px); color: var(--text-muted); background: #fff; border-radius: 6px; padding: .5cqw 1.4cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-url b { color: var(--text); font-weight: 600; }
.app { display: grid; grid-template-columns: 26% 1fr; font-size: clamp(6.5px, 2.05cqw, 14px); min-height: 52cqw; }
.app-side { background: color-mix(in srgb, var(--partner) 6%, #FAFBFC); border-right: 1px solid #EAEFF2; padding: 1.8em 1.1em; display: flex; flex-direction: column; transition: background-color .35s; }
.partner-logo { display: flex; align-items: center; gap: .6em; margin-bottom: 1.8em; min-width: 0; }
.partner-logo .partner-mark { font-size: .82em; }
.partner-name { font-weight: 800; font-size: .92em; line-height: 1.15; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .3em; font-size: .9em; color: var(--text-muted); font-weight: 600; }
.side-nav li { padding: .55em .7em; border-radius: .5em; }
.side-nav li.on { background: var(--partner); color: #fff; transition: background-color .35s; }
.powered { margin-top: auto; font-size: .66em; color: #8A9AAB; padding-top: 1.5em; }
.app-main { padding: 1.8em 1.8em 1.6em; display: grid; gap: 1.2em; align-content: start; background: #fff; }
.app-hello { font-weight: 800; font-size: 1.25em; letter-spacing: -.02em; }
.app-hello span { display: block; font-weight: 500; font-size: .66em; color: var(--text-muted); letter-spacing: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8em; }
.kpi { border: 1px solid #E6ECF0; border-radius: .8em; padding: .9em; display: grid; gap: .15em; }
.kpi span { font-size: .72em; color: var(--text-muted); font-weight: 600; }
.kpi b { font-size: 1.45em; letter-spacing: -.03em; }
.kpi small { font-size: .64em; color: var(--teal-ink); font-weight: 600; }
.kpi-accent { background: var(--partner); border-color: transparent; color: #fff; transition: background-color .35s; }
.kpi-accent span, .kpi-accent small { color: rgba(255,255,255,.85); }
.chart-card { border: 1px solid #E6ECF0; border-radius: .8em; padding: 1em 1em .8em; }
.card-t { font-weight: 700; font-size: .8em; margin-bottom: .9em; color: var(--text); text-align: left; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9em; align-items: end; height: 8.5em; }
.bars div { position: relative; height: 100%; display: flex; align-items: flex-end; }
.bars div::before { content: ""; width: 100%; height: var(--v); border-radius: .35em .35em .15em .15em; background: linear-gradient(to top, var(--partner), color-mix(in srgb, var(--partner) 55%, white)); transition: background .35s; }
.bars span { position: absolute; bottom: -1.6em; left: 50%; transform: translateX(-50%); font-size: .62em; color: var(--text-muted); white-space: nowrap; }
.chart-card { padding-bottom: 2em; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-visual .bars div::before { transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms + 300ms); }
  .js .hero-visual.in .bars div::before { transform: scaleY(1); }
}

.device-phone {
  position: absolute; right: 0; bottom: 0; width: 34cqw; aspect-ratio: 9 / 18.5;
  border-radius: 4.6cqw; background: #fff; border: 1.2cqw solid var(--navy);
  box-shadow: var(--shadow-2); overflow: hidden; font-size: clamp(6px, 2.05cqw, 13px);
  padding: 2.6em .9em 1em; display: flex; flex-direction: column; gap: .9em;
}
.phone-notch { position: absolute; top: .6em; left: 50%; transform: translateX(-50%); width: 34%; height: 1.1em; border-radius: 1em; background: var(--navy); }
.phone-head { display: flex; align-items: center; gap: .5em; font-size: .95em; min-width: 0; }
.phone-head .partner-mark { font-size: .75em; }
.phone-head b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-q { border: 1px solid #E6ECF0; border-radius: .8em; padding: .8em; display: grid; grid-template-columns: repeat(4, 1fr); gap: .45em; }
.phone-q small, .phone-q p { grid-column: 1 / -1; }
.phone-q small { font-size: .66em; color: var(--text-muted); font-weight: 600; }
.phone-q p { font-size: .8em; font-weight: 700; line-height: 1.3; }
.phone-q .opt { display: grid; place-items: center; height: 2.2em; border: 1px solid #DCE4EA; border-radius: .5em; font-size: .75em; font-weight: 700; color: var(--text-muted); }
.phone-q .opt.sel { background: var(--partner); border-color: var(--partner); color: #fff; transition: background-color .35s; }
.phone-ai { margin-top: auto; display: flex; gap: .5em; align-items: center; font-size: .7em; font-weight: 600; background: var(--teal-soft); color: var(--teal-ink); border-radius: .6em; padding: .7em; line-height: 1.3; }
.phone-ai .dot { width: .7em; height: .7em; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 0 rgba(31,176,143,.6); }
@media (prefers-reduced-motion: no-preference) { .phone-ai .dot { animation: pulse 2s infinite; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6em rgba(31,176,143,0); } 100% { box-shadow: 0 0 0 0 rgba(31,176,143,0); } }

.concept-tag { position: absolute; left: 0; bottom: 0; font-family: var(--mono); font-size: .72rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; max-width: 62%; line-height: 1.35; }
.concept-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); flex: none; }
@media (min-width: 1024px) { .concept-tag { font-size: .76rem; } }

/* ---------- Telas das abas ---------- */
.screen { position: relative; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-2); overflow: hidden; font-size: .92rem; }
.concept-chip { position: absolute; top: 12px; right: 12px; z-index: 2; font-family: var(--mono); font-size: .72rem; background: var(--navy); color: #fff; padding: 5px 10px; border-radius: 6px; }
.screen-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; padding-right: 150px; border-bottom: 1px solid #E8EEF1; background: color-mix(in srgb, var(--partner) 5%, #FBFCFC); transition: background-color .35s; min-width: 0; }
.screen-top .partner-mark { font-size: .82rem; }
.screen-top b { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-user { margin-left: auto; color: var(--text-muted); font-size: .82rem; white-space: nowrap; display: none; }
@media (min-width: 720px) { .screen-user { display: block; } .screen-top { padding-right: 18px; } .concept-chip { top: auto; bottom: 12px; } }
.screen-body { padding: 20px 18px; display: grid; gap: 16px; }
@media (min-width: 720px) { .screen-body { padding: 28px; gap: 22px; } }

.s-aluno { grid-template-columns: 1fr; }
@media (min-width: 720px) { .s-aluno { grid-template-columns: auto 1fr; } .s-aluno .hist { grid-column: 1 / -1; } }
.ring { --size: 132px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-content: center; text-align: center; margin-inline: auto; background: radial-gradient(closest-side, #fff 78%, transparent 79%), conic-gradient(var(--partner) calc(var(--p) * 1%), #E8EEF1 0); transition: background .35s; }
.ring b { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1; }
.ring span { font-size: .72rem; color: var(--text-muted); line-height: 1.25; margin-top: 4px; }
.next { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.next li { border: 1px solid #E6ECF0; border-left: 4px solid var(--partner); border-radius: 10px; padding: 10px 14px; display: grid; transition: border-color .35s; }
.next b { font-size: .95rem; }
.next span { font-size: .82rem; color: var(--text-muted); }
.hist { border: 1px solid #E6ECF0; border-radius: 12px; padding: 14px 16px; }
.hist svg { width: 100%; height: 70px; }
.hist polyline { fill: none; stroke: var(--partner); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.hist small, .tiny { font-size: .74rem; color: var(--text-muted); }

.s-peca { grid-template-columns: 1fr; }
@media (min-width: 720px) { .s-peca { grid-template-columns: 1.15fr 1fr; } }
.doc { background: #FBFBF9; border: 1px solid #ECEEE8; border-radius: 12px; padding: 18px; font-family: Georgia, "Times New Roman", serif; font-size: .9rem; line-height: 1.65; color: #2A3B50; display: grid; gap: 10px; }
.doc-t { font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--text-muted); }
.doc mark { background: color-mix(in srgb, var(--teal) 25%, white); padding: 0 2px; border-radius: 3px; color: inherit; }
.doc mark.m2 { background: color-mix(in srgb, var(--partner) 18%, white); }
.doc-fade { -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.criteria ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.criteria li { display: flex; gap: 10px; align-items: center; font-size: .9rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: #F6F8F9; }
.criteria li span { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; flex: none; }
.criteria .ok span { background: var(--teal); color: var(--navy); }
.criteria .warn span { background: #FFE7B3; color: var(--warning); }
.ai-note { border-radius: 12px; padding: 14px; background: var(--navy); color: #E7EEF5; font-size: .86rem; line-height: 1.5; }
.ai-note b { display: block; color: var(--teal); font-size: .78rem; margin-bottom: 4px; font-family: var(--mono); font-weight: 500; }
.ai-note em { color: #A9BACB; }

.s-parceiro { grid-template-columns: 1fr; }
@media (min-width: 720px) { .s-parceiro { grid-template-columns: 1.4fr 1fr; } }
.mini-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mini-table caption { text-align: left; }
.mini-table th { text-align: left; font-size: .74rem; color: var(--text-muted); font-weight: 600; padding: 0 8px 8px 0; }
.mini-table td { padding: 11px 8px 11px 0; border-top: 1px solid #EDF1F3; font-weight: 600; }
.mini-table td:nth-child(2) { color: var(--text-muted); }
.meter { display: block; width: 100%; min-width: 60px; height: 8px; border-radius: 8px; background: #EAEFF2; position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--partner); border-radius: 8px; transition: background .35s; }
.brand-box { border: 1px solid #E6ECF0; border-radius: 12px; padding: 16px; }
.brand-prev { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; min-width: 0; }
.brand-prev div { min-width: 0; }
.brand-prev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-prev small { color: var(--text-muted); font-size: .8rem; }

@media (prefers-reduced-motion: no-preference) {
  .tabpanel:not([hidden]) .screen { animation: panelIn .32s var(--ease); }
}
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

.phone-prog, .phone-next { border: 1px solid #E6ECF0; border-radius: .8em; padding: .8em; display: grid; gap: .35em; }
.phone-prog small, .phone-next small { font-size: .62em; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.phone-prog p { font-size: .7em; color: var(--text-muted); }
.phone-prog p b { color: var(--text); }
.phone-bar { height: .55em; border-radius: 1em; background: #EAEFF2; overflow: hidden; }
.phone-bar span { display: block; height: 100%; background: var(--partner); border-radius: 1em; transition: background-color .35s; }
.phone-next { border-left: .3em solid var(--partner); transition: border-color .35s; }
.phone-next b { font-size: .8em; }
.phone-next span { font-size: .66em; color: var(--text-muted); }
