/* Gabarito — estilo Limpo: Início (abertura em vídeo + página de boas-vindas). Carregado depois de limpo.css.
   Prefixo lh- (Limpo · Home). As fases da abertura ficam como classes no #main: lh-f0 (vídeo), lh-f1 (frase), lh-f2 (botão), lh-f3 (faixa fina + página). */

/* ---------- abertura ---------- */
body.ts.ts #main.lh-op { padding: 0; min-height: 0 }
body.ts.ts #main.lh-op:not(.lh-f3) { overflow: hidden }
body.ts.ts #main.lh-op:not(.lh-f3) > .wrap, body.ts.ts #main.lh-op:not(.lh-f3) > #view { display: none }
.lh-ab { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; height: max(26em, calc(100vh - var(--lm-barra) - 48px)); padding: 0 1.2em; background: var(--tinta); color: #fff; overflow: hidden; font-size: 17px; transition: height .9s cubic-bezier(.65,0,.35,1), padding .9s cubic-bezier(.65,0,.35,1) }
.lh-ab[hidden] { display: none }
.lh-bg { position: absolute; inset: 0; z-index: 0; background: var(--tinta) }
.lh-bg::after { content: ""; position: absolute; inset: 0; background: rgba(var(--tinta-rgb), 0); transition: background-color .9s }
.lh-vw { position: absolute; inset: 0 }
.lh-vw[hidden] { display: none }
.lh-v { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity .6s }
.lh-v.ok { opacity: 1 }
.lh-sc { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 85% 75% at 50% 50%, rgba(var(--tinta-rgb), .76) 0%, rgba(var(--tinta-rgb), .62) 50%, rgba(var(--tinta-rgb), .36) 100%), linear-gradient(to top, rgba(var(--tinta-rgb), .5) 0%, rgba(var(--tinta-rgb), 0) 45%); opacity: .1; transition: opacity 1.8s ease }
.lh-f1 .lh-sc, .lh-f2 .lh-sc { opacity: 1 }
/* plano B sem vídeo: um livro desenhado em CSS que se fecha */
.lh-bkw { position: absolute; left: calc(50% - 11em); top: calc(44% - 7em); z-index: 1; width: 22em; height: 14em; font-size: clamp(13px, 2.7vh, 22px); perspective: 80em; perspective-origin: 50% 35%; transition: opacity .5s }
.lh-bkw[hidden] { display: none }
.lh-vf .lh-ab { justify-content: flex-end; padding-bottom: 3em }
.lh-vf .lh-bkw { top: 3.4em }
.lh-bk { position: relative; width: 100%; height: 100%; transform-style: preserve-3d }
.lh-bk::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -1.1em; height: 1em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), transparent); transform: translateZ(-8px) }
.lh-pp { position: absolute; inset: 0; background: #fff }
.lh-pp::before { content: ""; position: absolute; top: 2.6em; bottom: 2.4em; background: repeating-linear-gradient(180deg, var(--suave) 0 .13em, transparent .13em 1.2em) }
.lh-pp::after { content: ""; position: absolute; top: 1.2em; height: .55em; width: 36%; border-radius: .2em; background: var(--texto-3) }
.lh-pp.pe { border-radius: .35em 0 0 .35em; background: linear-gradient(to left, var(--suave) 0, var(--mesa) 9%, #fff 34%) }
.lh-pp.pd { border-radius: 0 .35em .35em 0; background: linear-gradient(to right, var(--suave) 0, var(--mesa) 9%, #fff 34%) }
.lh-pp.pe::before { left: 1.6em; right: 2.4em } .lh-pp.pe::after { left: 1.6em }
.lh-pp.pd::before { left: 2.4em; right: 1.6em } .lh-pp.pd::after { left: 2.4em }
.lh-pgR { left: 50%; width: 50%; right: auto; transform: translateZ(-4px); box-shadow: .15em .15em 0 var(--fino), .3em .3em 0 var(--suave) }
.lh-bub { position: absolute; left: 2.4em; right: 1.6em; bottom: .9em; display: flex; gap: .55em; z-index: 1 }
.lh-bub i { width: 1.05em; height: 1.05em; border-radius: 50%; border: .12em solid var(--texto-3); background: #fff }
.lh-bub i.on { background: var(--azul); border-color: var(--azul) }
.lh-lf { position: absolute; left: 0; top: 0; width: 50%; height: 100%; transform-origin: 100% 50%; transform-style: preserve-3d; transform: rotateY(0deg) translateZ(var(--z)) }
.lh-lf.l2 { --z: 2px } .lh-lf.l1 { --z: 1px } .lh-lf.lc { --z: 0px }
.lh-fc { backface-visibility: hidden; -webkit-backface-visibility: hidden }
.lh-fc.bk { transform: rotateY(180deg) }
.lh-cv { position: absolute; inset: 0; border-radius: 0 .35em .35em 0; background: linear-gradient(135deg, var(--azul-2), var(--azul)); box-shadow: inset 0 0 0 .3em var(--azul), inset 0 0 0 .38em rgba(255,255,255,.35) }
.lh-cv::before { content: ""; position: absolute; right: 16%; top: 0; width: .9em; height: 44%; background: var(--erro); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%) }
.lh-cv::after { content: ""; position: absolute; left: 50%; top: 60%; width: 2.7em; height: 2.7em; border-radius: 50%; background: var(--sel); box-shadow: 0 0 0 .3em var(--azul), 0 0 0 .4em rgba(255,255,255,.35); transform: translate(-50%, -50%) }
@keyframes lhShift { to { transform: translateX(-25%) } }
@keyframes lhLf { to { transform: rotateY(180deg) translateZ(var(--z)) } }
.lh-bk1 .lh-bk { animation: lhShift 1.6s cubic-bezier(.65,0,.35,1) forwards }
.lh-bk2 .lh-bk { transform: translateX(-25%) }
.lh-bk1 .lh-lf { animation: lhLf 1.25s cubic-bezier(.45,0,.2,1) forwards }
.lh-bk1 .lh-lf.l1 { animation-delay: .12s } .lh-bk1 .lh-lf.lc { animation-delay: .3s; animation-duration: 1.3s }
.lh-bk2 .lh-lf { transform: rotateY(180deg) translateZ(var(--z)) }
/* a mensagem */
.lh-msg { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .9em; max-width: min(60em, 100%); text-align: center }
.lh-fr { margin: 0; min-height: 1.1em; font: 300 clamp(1.85em, 4.5vw, 3.4em)/1.14 var(--f-sans); letter-spacing: -.015em; text-align: center; text-wrap: balance; color: #fff; text-shadow: 0 .05em .7em rgba(var(--tinta-rgb), .45); opacity: 0 }
.lh-l2 { display: block; font-style: normal }
.lh-vc { font-weight: 500; color: #9CC4FF; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100%/100% .05em no-repeat }
@keyframes lhUl { from { background-size: 0 .05em } to { background-size: 100% .05em } }
@keyframes lhFade { from { opacity: 0; transform: translateY(.5em); filter: blur(.35em) } to { opacity: 1; transform: none; filter: none } }
@keyframes lhFio { from { transform: scaleX(0); opacity: 0 } to { transform: scaleX(1); opacity: 1 } }
.lh-fio { display: block; width: 3.2em; height: 1px; background: rgba(255,255,255,.6); transform: scaleX(0); opacity: 0 }
.lh-f1 .lh-fr, .lh-f2 .lh-fr, .lh-f3 .lh-fr { opacity: 1 }
.lh-f1 .lh-fr { animation: lhFade 1.7s cubic-bezier(.2,.7,.2,1) both }
.lh-f1 .lh-vc, .lh-f2 .lh-vc { animation: lhUl 1s cubic-bezier(.2,.7,.2,1) 1.2s backwards }
.lh-p2 .lh-fio { opacity: 1; transform: none; animation: lhFio 1.2s cubic-bezier(.2,.7,.2,1) both }
body.ts.ts .lh-go { display: inline-flex; align-items: center; justify-content: center; gap: 1em; min-height: 3.5em; margin-top: .6em; padding: 0 .7em 0 2em; border: 0; border-radius: 999px; background: #fff; color: var(--tinta); font: 600 1.1em var(--f-sans); letter-spacing: .02em; cursor: pointer; box-shadow: 0 .7em 2.4em rgba(5,14,35,.45), 0 0 0 .5em rgba(255,255,255,.16); visibility: hidden; opacity: 0; transition: background-color .25s, color .25s }
body.ts.ts .lh-go svg { box-sizing: content-box; width: 1.1em; height: 1.1em; padding: .55em; border-radius: 50%; background: var(--tinta); color: #fff; transition: background-color .25s, color .25s }
body.ts.ts .lh-go:hover { background: var(--azul); color: #fff } body.ts.ts .lh-go:hover svg { background: #fff; color: var(--tinta) }
body.ts.ts .lh-go:focus-visible { outline: 3px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 7px var(--tinta) }
body.ts.ts .lh-f2 .lh-go { visibility: visible; opacity: 1; animation: lhFade 1.5s cubic-bezier(.2,.7,.2,1) .9s both }
body.ts.ts .lh-skip, body.ts.ts .lh-re { position: absolute; z-index: 3; display: inline-flex; align-items: center; justify-content: center; min-height: 2.4em; padding: 0 1.1em; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(var(--tinta-rgb), .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 500 .82em var(--f-sans); letter-spacing: .03em; cursor: pointer }
body.ts.ts .lh-skip { top: 1em; right: 1.2em }
body.ts.ts .lh-re { right: 1.2em; top: 50%; transform: translateY(-50%) }
body.ts.ts .lh-skip[hidden], body.ts.ts .lh-re[hidden] { display: none }
body.ts.ts .lh-skip:hover, body.ts.ts .lh-re:hover { background: rgba(255,255,255,.2) }
body.ts.ts .lh-skip:focus-visible, body.ts.ts .lh-re:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--tinta) }
/* faixa fina, com a página embaixo */
.lh-f3 .lh-ab { height: 4.8em; padding: 0 1.4em; justify-content: center }
.lh-f3 .lh-bkw { opacity: 0; visibility: hidden }
.lh-f3 .lh-sc { opacity: 0; transition: opacity .6s }
.lh-f3 .lh-bg::after { background: rgba(var(--tinta-rgb), .62) }
.lh-f3 .lh-msg { gap: 0 }
.lh-f3 .lh-fr { font-size: 1.2em; font-weight: 400; min-height: 0; text-shadow: none }
.lh-f3 .lh-fio, body.ts.ts .lh-f3 .lh-go { display: none }
.lh-f3 .lh-l2 { display: inline }
.lh-sk .lh-ab, .lh-sk .lh-bkw, .lh-sk .lh-vw, .lh-sk .lh-v, .lh-sk .lh-go, .lh-sk .lh-fr, .lh-sk .lh-vc, .lh-sk .lh-fio, .lh-sk .lh-sc, .lh-sk .lh-bg::after, .lh-sk .lh-bk, .lh-sk .lh-lf { animation: none !important; transition: none !important }
@media (prefers-reduced-motion: reduce) {
  .lh-ab, .lh-bkw, .lh-vw, .lh-v, .lh-go, .lh-fr, .lh-vc, .lh-fio, .lh-sc, .lh-bg::after, .lh-bk, .lh-lf { animation: none !important; transition: none !important }
}

/* ---------- página ---------- */
body.ts.ts #main.lh-op > #view { padding-top: 1.4em }
.lh-hm { --fs: 17px; width: 100%; max-width: 74em; margin: 0 auto; padding: 0 max(16px, 2.2vw) 2.2em; display: flex; flex-direction: column; gap: 1.6em; font-size: var(--fs); line-height: 1.5; color: var(--tinta) }
body.lm-letra .lh-hm { --fs: 21px }
.lh-hm :focus-visible { outline: 3px solid var(--azul); outline-offset: 3px }
body.ts.ts .lh-btn { display: inline-flex; align-items: center; justify-content: flex-start; gap: .6em; min-height: 2.7em; padding: .3em 1.1em; border: 1.5px solid var(--texto-3); border-radius: .6em; background: #fff; color: var(--tinta); font: 600 1em/1.25 var(--f-sans); text-align: left; max-width: 100%; white-space: normal; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s }
body.ts.ts .lh-btn:hover { background: var(--mesa); border-color: var(--azul) }
body.ts.ts .lh-btn.big { min-height: 3.2em; padding: .4em 1.2em }
body.ts.ts .lh-btn.pri { background: var(--azul); border-color: var(--azul); color: #fff }
body.ts.ts .lh-btn.pri:hover { background: var(--tinta); border-color: var(--tinta); color: #fff }
.lh-btn .ic { flex: none; width: 1.15em; height: 1.15em }
.lh-bt { display: flex; flex-direction: column; min-width: 0 } .lh-bt b { font-weight: 700 } .lh-bt small { font-size: .8em; font-weight: 500; opacity: .85 }
.lh-hero { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .8em 1.5em }
.lh-hi { min-width: 0 }
.lh-eyb { margin: 0; font: 700 .72em/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2) }
.lh-eyb .ts-tag { margin-left: .6em; font-size: 12px; text-transform: none; letter-spacing: 0 }
body.ts.ts .lh-h1 { margin: .1em 0 0; font: 700 clamp(1.6em, 2.4vw, 2.1em)/1.15 var(--f-sans); letter-spacing: -.025em; color: var(--tinta) }
.lh-lead { margin: .2em 0 0; font-size: 1em; color: var(--texto-2) }
.lh-tools { display: flex; gap: .5em; flex-wrap: wrap }
body.ts.ts .lh-tool { display: inline-flex; align-items: center; gap: .5em; min-height: 2.6em; padding: 0 .9em; border: 1.5px solid var(--texto-3); border-radius: .6em; background: #fff; font: 600 .85em var(--f-sans); color: var(--tinta); cursor: pointer }
body.ts.ts .lh-tool:hover { background: var(--mesa) }
body.ts.ts .lh-tool.on { background: var(--sel); border-color: var(--azul) }
.lh-tool b { font-size: 1.05em; letter-spacing: -.02em }
.lh-tool .ic { width: 1.1em; height: 1.1em }
.lh-sec { display: flex; flex-direction: column; gap: .7em; min-width: 0 }
body.ts.ts .lh-h2 { margin: 0; font: 700 1.15em/1.25 var(--f-sans); letter-spacing: -.01em; color: var(--tinta) }
body.ts.ts .lh-h3 { margin: 0; font: 700 1.1em/1.25 var(--f-sans); color: var(--tinta) }
.lh-tx { margin: 0; color: var(--tinta) } .lh-sm { font-size: .85em; color: var(--texto-2) }
.lh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em }
body.ts.ts .lh-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .4em; min-height: 8.2em; padding: 1em 1.1em; border: 1.5px solid var(--suave); border-radius: .8em; background: #fff; text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, background .12s }
body.ts.ts .lh-tile:hover { border-color: var(--azul); background: var(--sel) }
body.ts.ts .lh-tile.on { border-color: var(--azul); background: var(--sel); box-shadow: 0 0 0 2px var(--azul) }
.lh-ti { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .6em; background: var(--sel); color: var(--azul) }
.lh-ti .ic { width: 1.4em; height: 1.4em }
.lh-tile.on .lh-ti { background: var(--azul); color: #fff }
.lh-tt { font: 700 1.15em/1.2 var(--f-sans); color: var(--tinta) }
.lh-td { font-size: .82em; line-height: 1.4; color: var(--texto-2) }
.lh-panel { border: 2px solid var(--azul); border-radius: .8em; background: #fff }
.lh-pn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15em, 22em); gap: 1.2em 1.8em; padding: 1.2em 1.4em }
.lh-pn[hidden] { display: none }
.lh-pl { display: flex; flex-direction: column; gap: .7em; min-width: 0 }
.lh-ac { display: flex; flex-direction: column; gap: .6em; align-self: center; min-width: 0 }
.lh-ac .lh-btn { width: 100% }
.lh-passos { display: flex; flex-wrap: wrap; gap: .5em 1.2em; margin: 0; padding: 0; list-style: none }
.lh-passos li { display: flex; align-items: center; gap: .5em; font-weight: 600; color: var(--tinta) }
.lh-pn1 { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; border: 2px solid var(--azul); background: #fff; font: 700 .85em/1 var(--f-sans); color: var(--azul) }
.lh-chips { display: flex; flex-wrap: wrap; gap: .5em }
body.ts.ts .lh-chip { min-height: 2.7em; padding: 0 1em; border: 1.5px solid var(--texto-3); border-radius: .6em; background: #fff; font: 600 .9em var(--f-sans); color: var(--tinta); cursor: pointer }
body.ts.ts .lh-chip:hover { background: var(--mesa); border-color: var(--azul) }
body.ts.ts .lh-chip.on { background: var(--azul); border-color: var(--azul); color: #fff }
.lh-res { margin: 0; font-size: 1.05em; color: var(--tinta) }
.lh-rows { display: flex; flex-direction: column; gap: .5em; margin: 0; padding: 0; list-style: none }
.lh-rows li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 2.2em; align-items: center; gap: .7em }
.lh-rn { font-weight: 600; color: var(--tinta); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lh-rb { display: block; height: .9em; border-radius: 99px; background: var(--fino); overflow: hidden } .lh-rb i { display: block; height: 100%; border-radius: 99px; background: var(--azul-2) }
.lh-rv { text-align: right; font-variant-numeric: tabular-nums }
/* faixas de rendimento (cores provisórias, centralizadas aqui; cada faixa também tem texto e número) */
.lh-hm { --fx-alto: #14854A; --fx-mod: #1F4296; --fx-baixo: #E2A72E; --fx-crit: #C81E1E; --fx-crit2: #A31515 }
.lh-sb { display: flex; height: 2.4em; border-radius: .5em; overflow: hidden; border: 1px solid var(--suave); background: var(--mesa) }
.lh-sg { display: grid; place-items: center; min-width: 0; overflow: hidden; font-style: normal; transition: width .3s }
.lh-sg b { font: 700 .9em/1 var(--f-sans) }
.lh-b1 { background: var(--fx-alto); color: #fff } .lh-b2 { background: var(--fx-mod); color: #fff } .lh-b3 { background: var(--fx-baixo); color: var(--tinta) }
.lh-b4 { background: repeating-linear-gradient(135deg, var(--fx-crit) 0 .45em, var(--fx-crit2) .45em .9em); color: #fff }
.lh-leg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em .8em; margin: .6em 0 0; padding: 0; list-style: none }
.lh-leg li { display: flex; align-items: flex-start; gap: .45em; min-width: 0; font-size: .82em; line-height: 1.3 }
.lh-leg .lh-dot { flex: none; width: .9em; height: .9em; margin-top: .2em; border-radius: .2em }
.lh-ln { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; color: var(--tinta) } .lh-ln small { font-weight: 500; font-size: .9em; color: var(--texto-2) }
.lh-leg b { font-variant-numeric: tabular-nums }
.lh-cont { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18em), 1fr)); gap: .9em }
.lh-cd { display: flex; flex-direction: column; align-items: flex-start; gap: .5em; padding: 1.1em 1.2em; border: 1px solid var(--suave); border-radius: .8em; background: #fff; min-width: 0 }
.lh-cd .lh-btn { margin-top: auto }
.lh-ck { margin: 0; font: 700 .72em/1.3 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--texto-2) }
.lh-pb { display: block; width: 100%; height: .7em; border-radius: 99px; background: var(--fino); overflow: hidden } .lh-pb i { display: block; height: 100%; border-radius: 99px; background: var(--azul) }
.lh-duo { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: .9em; align-items: stretch }
.lh-card { gap: .8em; padding: 1.2em 1.4em; border: 1px solid var(--suave); border-radius: .8em; background: #fff }
.lh-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em }
.lh-stt { display: flex; flex-direction: column; gap: .1em; padding: .6em .9em; border-radius: .6em; background: var(--mesa) }
.lh-sk { font: 600 .78em/1.3 var(--f-sans); color: var(--texto-2) } .lh-sv { font: 700 1.7em/1.1 var(--f-sans); letter-spacing: -.02em; color: var(--tinta); font-variant-numeric: tabular-nums }
.lh-tip { display: flex; gap: .7em; align-items: flex-start; margin: 0; font-size: 1em; line-height: 1.5; color: var(--tinta) }
.lh-tip .ic { flex: none; margin-top: .2em; color: var(--azul) }
.lh-tipb { display: flex; align-items: center; justify-content: space-between; gap: .6em; flex-wrap: wrap; margin-top: auto }
.lh-ex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6em 1em; padding: .9em 1.2em; border: 1px solid var(--suave); border-radius: .8em; background: var(--mesa) }
.lh-ex p { margin: 0; font-size: .9em; color: var(--tinta) }
@media (max-width: 1100px) {
  .lh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .lh-cont { grid-template-columns: minmax(0, 1fr) }
  .lh-duo { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 900px) {
  .lh-ab { height: max(24em, calc(100vh - 150px)); font-size: 16px }
  .lh-bkw { font-size: clamp(12px, 2.2vh, 14px) }
  .lh-pn { grid-template-columns: minmax(0, 1fr) }
  .lh-leg { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .lh-hm { --fs: 16px } body.lm-letra .lh-hm { --fs: 19px }
}
@media (max-width: 700px) {
  body.ts.ts .lh-go { padding: 0 .6em 0 1.5em }
  .lh-f3 .lh-ab { height: auto; min-height: 6.4em; gap: .5em; padding: .8em 1em }
  body.ts.ts .lh-f3 .lh-re { position: static; transform: none }
}
@media (max-width: 560px) {
  .lh-ab { height: max(24em, calc(100vh - 180px)) }
  .lh-bkw { font-size: 13px }
  .lh-tiles { grid-template-columns: minmax(0, 1fr) }
  body.ts.ts .lh-tile { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: .8em; row-gap: .1em }
  .lh-ti { grid-row: 1 / 3 }
  .lh-pn, .lh-card { padding: 1em }
  .lh-stt { padding: .5em .6em }
  .lh-rows li { grid-template-columns: minmax(0, 7em) minmax(0, 1fr) 2em }
  .lh-tools { width: 100% } body.ts.ts .lh-tool { flex: 1 1 auto; justify-content: center }
}

/* ---------- abertura nova: o nome escrito devagar, em itálico, no branco (Rafael, 20/11/2026) ---------- */
.lh-escrita { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #FFFFFF; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), visibility .8s }
.lh-f3 .lh-escrita, .lh-escrita[hidden] { opacity: 0; visibility: hidden; pointer-events: none }
.lh-es { display: grid; justify-items: center; gap: 10px; width: min(720px, 100%) }
.lh-es-svg { width: 100%; height: auto; overflow: visible }
/* a mão: o traço desenha as letras enquanto a "ponta da caneta" (o recorte) anda da esquerda para a direita; depois a tinta assenta */
.lh-es-t { font: italic 400 124px/1 'Instrument Sans', 'Inter', system-ui, sans-serif; letter-spacing: -.035em; fill: transparent; stroke: #0B1F44; stroke-width: 1.3; stroke-dasharray: 1100; stroke-dashoffset: 1100; stroke-linejoin: round }
.lh-es-o { stroke: #C81E1E }
.lh-es-mao { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0) }
.lh-es-cap { opacity: 0; transform-box: fill-box; transform-origin: 50% 60% }
.lh-es-fr { margin: 0; font: italic 300 clamp(17px, 2.2vw, 22px)/1.4 'Instrument Sans', 'Inter', system-ui, sans-serif; color: #43526F; letter-spacing: .01em; opacity: 0; transform: translateY(8px) }
.lh-es-skip { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: calc(18px + env(safe-area-inset-top, 0px)); background: transparent !important; color: #5E6D88 !important; border: 1px solid #D5DCE8 !important }
.lh-escrita.vai .lh-es-mao { animation: lhEsMao 3.6s cubic-bezier(.37, .1, .45, .95) .2s forwards }
.lh-escrita.vai .lh-es-t { animation: lhEsTraco 3.8s cubic-bezier(.37, .1, .45, .95) .2s forwards, lhEsTinta 1.1s ease 3.7s forwards }
.lh-escrita.vai .lh-es-o { animation: lhEsTraco 3.8s cubic-bezier(.37, .1, .45, .95) .2s forwards, lhEsTintaO 1.1s ease 3.7s forwards }
.lh-escrita.vai .lh-es-cap { animation: lhEsCap 1s cubic-bezier(.34, 1.4, .5, 1) 3.9s forwards }
.lh-escrita.vai .lh-es-fr { animation: lhEsFrase 1s cubic-bezier(.16, 1, .3, 1) 4.4s forwards }
@keyframes lhEsMao { to { transform: scaleX(1) } }
@keyframes lhEsTraco { to { stroke-dashoffset: 0 } }
@keyframes lhEsTinta { to { fill: #0B1F44; stroke-width: 0 } }
@keyframes lhEsTintaO { to { fill: #C81E1E; stroke-width: 0 } }
@keyframes lhEsCap { from { opacity: 0; transform: translateY(-10px) rotate(-8deg) scale(.86) } to { opacity: 1; transform: none } }
@keyframes lhEsFrase { to { opacity: 1; transform: none } }
@media (max-width: 600px) { .lh-es-svg { width: 112% } }
@media (prefers-reduced-motion: reduce) { .lh-escrita { display: none } }

/* Início › "Como está a sua disciplina": disciplinas numa linha só, sem caixas (Rafael, 20/11/2026: "mais organizado, sem poluição visual") */
html:not(.nativo) .lh-chips { flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 24px 2px 0; margin-right: -4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent) }
html:not(.nativo) .lh-chips::-webkit-scrollbar { display: none }
html:not(.nativo) body.ts.ts .lh-chip { flex: none; max-width: 15em; min-height: 2.25em; padding: 0 .9em; border: 0; border-radius: 99px; background: transparent; color: var(--texto-2); font: 500 .88em/1 var(--f-sans); transition: background .18s ease, color .18s ease }
html:not(.nativo) body.ts.ts .lh-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
html:not(.nativo) body.ts.ts .lh-chip:hover { background: var(--mesa); color: var(--tinta) }
html:not(.nativo) body.ts.ts .lh-chip.on { background: var(--tinta); color: #fff; font-weight: 600 }
html:not(.nativo) body.ts.ts .lh-chip:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px }
/* blocos do Início só com o nome (20/11/2026): mais baixos */
html:not(.nativo) body.ts.ts .lh-tile { min-height: 0; gap: .7em; padding: 1.1em 1.2em }
/* números da disciplina sem caixas, separados por linhas finas (Rafael, 20/11/2026: "o início é poluído") */
html:not(.nativo) .lh-stats { gap: 0; margin-top: .2em }
html:not(.nativo) .lh-stt { padding: .1em 1.2em; border-radius: 0; background: none; border-left: 1px solid var(--fino) }
html:not(.nativo) .lh-stt:first-child { padding-left: 0; border-left: 0 }
html:not(.nativo) .lh-stats .lh-sk { font: 500 .78em/1.3 var(--f-sans); letter-spacing: .02em; color: var(--texto-2) }
html:not(.nativo) .lh-stats .lh-sv { font-size: 1.9em; font-weight: 600 }

/* Início com a foto do professor e a lente dos alunos (21/11/2026) */
.lh-hm2 .lh-hero2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2em 4em; padding: 1.6em 0 1.2em }
.lh-hm2 .lh-h1 { font-size: clamp(2.4em, 3.4vw + 1em, 4.2em); line-height: 1.02; letter-spacing: -.03em; margin: .15em 0 .3em; text-wrap: balance }
.lh-hm2 .lh-eyb { display: flex; align-items: center; gap: .6em; text-transform: none; letter-spacing: 0; font-size: 1em; color: var(--texto-2) }
.lh-hm2 .lh-lead { font-size: 1.12em; color: var(--texto-2); margin: 0 0 1.4em }
.lh-hm2 .lh-tools { display: flex; gap: .5em; flex-wrap: wrap }
.lh-hm2 .lh-tool { min-height: 38px; padding: 0 .9em; font-size: .9em }
.lh-retrato { position: relative; width: 300px; height: 340px; flex: none; margin-right: 40px }
.lh-eu { position: absolute; inset: 0; border: 0; padding: 0; border-radius: 28px; cursor: pointer; overflow: hidden; background: linear-gradient(160deg, #1F4296, #0B1F44) center / cover no-repeat; color: #fff; box-shadow: 0 30px 60px -30px rgba(11, 31, 68, .55), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .3s cubic-bezier(.16, 1, .3, 1) }
.lh-eu-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 600 5.4em/1 var(--f-sans, inherit); letter-spacing: -.02em; opacity: .9 }
.lh-eu-bt { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .45em; height: 36px; padding: 0 .85em; border-radius: 999px; background: rgba(255, 255, 255, .86); color: #0B1F44; font: 600 .86em var(--f-sans, inherit); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -6px rgba(11, 31, 68, .4); transition: opacity .25s, transform .25s }
.lh-eu-bt svg { width: 16px; height: 16px }
.lh-eu.com-foto .lh-eu-bt { opacity: 0; transform: translateY(6px) }
@media (hover: hover) { .lh-eu:hover { transform: translateY(-2px) } .lh-eu.com-foto:hover .lh-eu-bt, .lh-eu:focus-visible .lh-eu-bt { opacity: 1; transform: none } }
.lh-eu:focus-visible { outline: 3px solid #1F4296; outline-offset: 4px }
.lh-lente { position: absolute; left: -64px; bottom: -26px; width: 150px; height: 150px; border-radius: 50%; overflow: hidden; background: #0B1F44; border: 6px solid #fff; box-shadow: 0 0 0 1px rgba(11, 31, 68, .12), 0 18px 40px -16px rgba(11, 31, 68, .6), inset 0 0 0 2px rgba(11, 31, 68, .5); z-index: 2 }
.lh-lfx { position: absolute; inset: 0 }
.lh-rosto { position: absolute; inset: 0; display: grid; place-items: center; background: #1F4296 center / cover no-repeat; color: #fff; opacity: 0; transform: scale(1.08) }
.lh-rosto b { font: 600 2.4em/1 var(--f-sans, inherit) }
.lh-rosto[style*="background-image"] b { visibility: hidden }
.lh-rosto:nth-child(3n+2) { background-color: #8A2C9E } .lh-rosto:nth-child(3n+3) { background-color: #14854A }
.lh-rosto.on { opacity: 1; transform: scale(1); transition: transform 1.9s linear }
.lh-reflexo { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(60% 45% at 30% 22%, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 60%), radial-gradient(80% 80% at 50% 50%, transparent 62%, rgba(0, 0, 0, .35)) }
.lh-piscada { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none }
.lh-lente.pisca .lh-piscada { animation: lhPisca .24s ease }
@keyframes lhPisca { 0% { opacity: 0 } 45% { opacity: 1 } 100% { opacity: 0 } }
.lh-lente-leg { position: absolute; left: -64px; bottom: -64px; width: 150px; margin: 0; display: grid; text-align: center; font-size: .82em; line-height: 1.25; color: var(--texto-2) }
.lh-lente-leg b { color: var(--tinta); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.lh-hm2 .lh-sec { margin-top: 3.4em }
@media (max-width: 860px) {
  .lh-hm2 .lh-hero2 { grid-template-columns: 1fr; gap: 1.4em }
  .lh-retrato { width: min(260px, 70vw); height: min(300px, 80vw); margin: 0 auto 70px; order: -1 }
  .lh-lente { width: 112px; height: 112px; left: -36px; bottom: -22px; border-width: 5px }
  .lh-lente-leg { left: -36px; width: 112px; bottom: -58px }
}
@media (prefers-reduced-motion: reduce) { .lh-rosto.on { transition: none } .lh-lente.pisca .lh-piscada { animation: none } }
/* ícone do alto e Meus dados com a foto */
#meBtn.com-foto { background-size: cover; background-position: center; color: transparent }
.pf-foto { display: flex; align-items: center; gap: 14px; margin: 0 0 14px }
.pf-foto > div { display: grid; gap: 2px }
.pf-av { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: #0B1F44 center / cover no-repeat; color: #fff; font: 600 24px/1 inherit; display: grid; place-items: center }
.pf-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0B1F44; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(11, 31, 68, .3) }

/* ABERTURA BRANCA QUE SE DESFAZ (Rafael, 21/11/2026: "quando abre o app deve ser uma página branca, escrito no meio gabarito com logo.
   Ela vai desaparecendo e chega a essa página"; "pode ser algo parecido" com a abertura em blocos da referência): página BRANCA, o nome
   "gabarito" escrito no meio com o logo; no fim o branco se desfaz em quadrados, do meio para as bordas, e a página aparece por trás.
   O branco é uma grade de quadrados (.lh-es-bl, feita no abHtml); cada um some com o atraso --d. O nome inclina de leve com o mouse
   (--px/--py, T.aberturaLuz). Vale para a entrada do site (landing-abertura.js) e para a que toca depois de entrar. SUBSTITUI a abertura
   em vidro e cor de horas antes. Só no site. */
html:not(.nativo) .lh-escrita { --px: 0; --py: 0; background: transparent; overflow: hidden; opacity: 1; transition: none }
html:not(.nativo) .lh-es-bl { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--c, 14), 1fr); grid-template-rows: repeat(var(--r, 8), 1fr); pointer-events: none }
html:not(.nativo) .lh-es-bl i { background: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1); transition-delay: calc(var(--d, 0) * 1ms) }
html:not(.nativo) .lh-escrita .lh-es { position: relative; z-index: 1; transform: perspective(1100px) rotateX(calc(var(--py) * -4deg)) rotateY(calc(var(--px) * 6deg)); transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .45s ease }
html:not(.nativo) .lh-escrita .lh-es-skip { z-index: 2; transition: opacity .3s }
/* mais rápida (Rafael: "uma rápida interatividade e depois já entra"): o nome em ~2,4 s, o símbolo e a frase logo depois */
html:not(.nativo) .lh-escrita.vai .lh-es-mao { animation: lhEsMao 2.4s cubic-bezier(.37, .1, .45, .95) .15s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-t { animation: lhEsTraco 2.6s cubic-bezier(.37, .1, .45, .95) .15s forwards, lhEsTinta .8s ease 2.4s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-o { animation: lhEsTraco 2.6s cubic-bezier(.37, .1, .45, .95) .15s forwards, lhEsTintaO .8s ease 2.4s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-cap { animation: lhEsCap .8s cubic-bezier(.34, 1.4, .5, 1) 2.5s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-fr { animation: lhEsFrase .8s cubic-bezier(.16, 1, .3, 1) 2.9s forwards }
/* saída: o nome some e o branco se desfaz em quadrados; só depois a camada deixa de existir */
html:not(.nativo) .lh-f3 .lh-escrita.vai, html:not(.nativo) .lh-escrita.vai.sai { opacity: 1; visibility: hidden; pointer-events: none; transition: visibility 0s 1.5s }
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es, html:not(.nativo) .lh-escrita.vai.sai .lh-es,
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es-skip, html:not(.nativo) .lh-escrita.vai.sai .lh-es-skip { opacity: 0 }
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es-bl i, html:not(.nativo) .lh-escrita.vai.sai .lh-es-bl i { opacity: 0; transform: scale(.35) }
/* quando a abertura NÃO toca (voltar ao Início pelo menu), a camada some na hora, sem se desfazer */
html:not(.nativo) .lh-f3 .lh-escrita:not(.vai) { opacity: 0; visibility: hidden; pointer-events: none; transition: none }
@media (max-width: 600px) { html:not(.nativo) .lh-escrita .lh-es-svg { width: 108% } }
