/* Área do aluno (demo) */
body { background: var(--osso); }
@media (min-width: 1500px) { html { font-size: 109%; } }

.al-topo { background: var(--espresso); color: var(--branco); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; }
.al-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.05rem; min-height: 44px; }
.al-sair { font-size: 1rem; text-underline-offset: 4px; padding: 10px 0; }

.al { max-width: 35rem; margin: 0 auto; padding: 22px 20px 80px; }
.al-demo { background: var(--fachada-claro); color: var(--fachada-escuro); border-radius: 12px; padding: 10px 14px; font-size: .95rem; line-height: 1.4; }
.al-ola { margin: 30px 0 22px; }
.al-ola h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.5rem, 11vw, 3.4rem); line-height: 1.02; letter-spacing: -.015em; }
.al-ola p { color: var(--tinta-suave); margin-top: 8px; }

.al-mensal { background: var(--espresso); color: var(--branco); border-radius: var(--r-l); padding: 24px 22px 22px; min-height: 212px; }
.al-esqueleto { color: rgba(251, 248, 242, .6); }
.al-mensal h2 { font-size: 1.05rem; font-weight: 400; color: rgba(251, 248, 242, .78); }
.al-valor { font-family: var(--serif); font-size: 3.6rem; line-height: 1.05; margin: 4px 0 2px; }
.al-estado { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.al-estado::before { content: ''; width: 18px; height: 8px; border-radius: 4px; background: var(--latao-claro); flex: none; }
.al-estado.pago::before { background: #8fcaa6; }
.al-estado.atraso::before { background: #e79a85; }
.al-mensal .btn { width: 100%; }
.al-mensal .al-seguinte { margin-top: 12px; width: 100%; text-align: center; color: rgba(251, 248, 242, .8); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }

.al-bloco { margin-top: 44px; }
.al-bloco h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin-bottom: 8px; }
.al-aulas li, .al-hist li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--linha); }
.al-aulas li:first-child, .al-hist li:first-child { border-top: 1px solid var(--linha); }
.al-aulas strong, .al-hist strong { font-weight: 500; font-size: 1.1rem; }
.al-aulas .al-hora { font-family: var(--serif); font-size: 1.5rem; grid-row: span 2; align-self: center; }
.al-sub { color: var(--tinta-suave); font-size: .98rem; grid-column: 1; }
.al-hist .al-q { grid-row: span 2; align-self: center; text-align: right; font-size: 1.1rem; }
.al-hist .al-q small { display: block; font-size: .9rem; color: var(--tinta-suave); }
.al-hist .porpagar small { color: var(--latao-escuro); font-weight: 500; }

/* payment sheet */
.pg { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: var(--r-l) var(--r-l) 0 0; background: var(--osso); color: var(--tinta); }
.pg::backdrop { background: rgba(30, 20, 14, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.pg[open] { animation: pg-sobe .4s var(--ease); }
@keyframes pg-sobe { from { transform: translateY(60px); opacity: 0; } }
.pg-caixa { padding: 14px 20px calc(26px + env(safe-area-inset-bottom)); max-width: 30rem; margin: 0 auto; }
.pg-topo { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--linha); margin-bottom: 22px; }
.pg-valor { display: grid; line-height: 1.25; }
.pg-valor span { color: var(--tinta-suave); font-size: .98rem; }
.pg-valor strong { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.pg-fechar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; flex: none; }
.pg-fechar:hover { background: var(--linho); }
.pg-passo h2 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; line-height: 1.12; margin-bottom: 18px; }
.pg-passo h2:focus { outline: none; }
.pg-metodos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--linho); padding: 4px; border-radius: 999px; margin-bottom: 22px; }
.pg-metodos button { min-height: 48px; border-radius: 999px; font-weight: 500; transition: background-color .2s, color .2s; }
.pg-metodos button[aria-selected='true'] { background: var(--espresso); color: var(--branco); }
.campo { margin-bottom: 16px; }
.campo label { display: block; font-weight: 500; margin-bottom: 7px; }
.campo input { width: 100%; min-height: 56px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid rgba(42, 29, 22, .32); background: var(--branco); font-size: 1.2rem; letter-spacing: .04em; }
.campo input:focus { outline: none; border-color: var(--fachada-escuro); box-shadow: 0 0 0 3px var(--fachada-claro); }
.campo input[aria-invalid='true'] { border-color: var(--erro); }
.erro { color: var(--erro); margin-top: 6px; font-size: .98rem; }
.pg-erro { background: #f6e2dc; padding: 12px 14px; border-radius: 12px; margin-top: 14px; }
.pg-btn { width: 100%; }
.pg-btn.ocupado { opacity: .7; pointer-events: none; }
.pg-nota { color: var(--tinta-suave); font-size: .95rem; text-align: center; margin-top: 12px; line-height: 1.45; }
.pg-nota a { color: inherit; }
.pg-cartao { aspect-ratio: 1.586; max-width: 320px; margin: 0 auto; border-radius: 16px; background: linear-gradient(135deg, var(--nogueira), var(--espresso)); color: var(--branco); padding: 20px 22px; display: grid; align-content: space-between; }
.pg-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, var(--latao-claro), var(--latao)); }
.pg-num { font-size: 1.25rem; letter-spacing: .1em; }
.pg-linha { display: flex; justify-content: space-between; font-size: .95rem; color: rgba(251, 248, 242, .8); }
.pg-nota-cartao { margin: 14px 0 18px; }
.pg-espera, .pg-feito { text-align: center; }
.pg-anel { position: relative; width: 120px; margin: 4px auto 22px; }
.pg-anel circle { fill: none; stroke: var(--linho); stroke-width: 6; }
.pg-anel .pg-anel-arco { stroke: var(--latao); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .3s linear; }
.pg-anel span { position: absolute; inset: 34px; border-radius: 22px; border: 3px solid var(--espresso); }
.pg-anel span::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 14px; height: 3px; margin-left: -7px; border-radius: 2px; background: var(--espresso); }
.feito-coluna { display: grid; justify-items: center; gap: 5px; margin: 6px auto 22px; width: 80px; }
.feito-coluna i { display: block; height: 13px; border-radius: 6.5px; background: var(--latao); animation: alinha .9s var(--ease) both; }
.feito-coluna i:nth-child(1) { width: 34px; --de: translateX(-16px) rotate(-18deg); animation-delay: .05s; }
.feito-coluna i:nth-child(2) { width: 40px; --de: translateX(14px) rotate(14deg); animation-delay: .13s; }
.feito-coluna i:nth-child(3) { width: 46px; --de: translateX(-12px) rotate(-12deg); animation-delay: .21s; }
.feito-coluna i:nth-child(4) { width: 52px; --de: translateX(16px) rotate(16deg); animation-delay: .29s; }
.feito-coluna i:nth-child(5) { width: 58px; --de: translateX(-10px) rotate(-10deg); animation-delay: .37s; }
@keyframes alinha { from { transform: var(--de); opacity: .35; } }
.pg-recibo { text-align: left; margin: 0 0 22px; border-top: 1px solid var(--linha); }
.pg-recibo div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--linha); }
.pg-recibo dt { color: var(--tinta-suave); }
.pg-recibo dd { font-weight: 500; text-align: right; }

@media (min-width: 720px) {
  .al-topo { padding: 14px 40px; }
  .al { padding-top: 34px; }
  .pg { width: min(480px, 92vw); margin: auto; border-radius: var(--r-l); }
  .pg-caixa { padding: 18px 30px 30px; }
}
