/* Shared home only. Materials, finance and login retain their own styles. */
.home-portal {
  --home-ink: #f2f5f8;
  --home-muted: #aebfd0;
  --home-accent: #75e4d9;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 29% 87%, #17484c40, transparent 49%), #0c1e36;
  color: var(--home-ink);
  isolation: isolate;
}
.home-portal::before, .home-portal::after { display: none; }
.home-portal .portal-header {
  width: min(100%, 1440px);
  padding: 31px 64px;
  max-width: none;
  margin: 0 auto;
  border-bottom: 1px solid #a5c5d61a;
}
.home-portal .brand { gap: 11px; flex-shrink: 0; }
.home-portal .brand img { width: 43px; height: 43px; }
.home-portal .brand strong { font-size: 16px; letter-spacing: .075em; }
.home-portal .brand small { margin-top: 3px; font-size: 9px; color: var(--home-muted); }
.home-account { display: flex; align-items: center; gap: 20px; min-width: 0; max-width: 50%; }
.home-greeting { color: var(--home-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-greeting strong { color: var(--home-ink); font-weight: 500; }
.home-portal .home-logout {
  color: var(--home-ink);
  border: 1px solid #b3cbd33d;
  background: transparent;
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 12px;
  box-shadow: none;
  flex-shrink: 0;
}
.home-portal .home-logout:hover { background: #e5f3f40d; border-color: var(--home-accent); }
.home-portal .home-main {
  width: min(100%, 1440px);
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  margin: 0 auto;
  padding: clamp(60px, 7.8vh, 100px) 64px 56px;
}
.home-intro { position: relative; min-width: 0; padding-bottom: 152px; }
.home-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--home-accent); }
.home-eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.home-intro h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(56px, 6.3vw, 90px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; }
.home-intro > p { position: relative; z-index: 1; max-width: 310px; margin: 27px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.home-signature { position: absolute; width: 340px; height: 252px; left: 132px; bottom: -49px; z-index: 0; overflow: visible; pointer-events: none; }
.home-signature .signature-guide { stroke: #83c7c512; fill: none; stroke-width: .7; }
.home-signature .signature-edge { stroke: #75e4d940; fill: none; stroke-width: .8; }
.home-signature .signature-trace { fill: none; stroke: #75e4d9; stroke-width: 1.15; stroke-dasharray: 1; animation: home-line-reveal 2.8s ease-out both; transition: stroke 180ms ease; }
.home-signature .signature-inner { stroke: #75e4d96b; }
.home-main:has(a[href="materiais.php"]:is(:hover, :focus-visible)) .signature-edge { stroke: #75e4d98c; }
.home-main:has(a[href="financeiro.php"]:is(:hover, :focus-visible)) .signature-inner { stroke: #b8fff4; }
.home-signature circle { fill: var(--home-accent); }
.home-navigation { position: relative; min-width: 0; }
.home-nav-caption { margin: 0 0 22px; color: var(--home-muted); font-size: 10px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; }
.home-portal .area-links { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #b4d4dd38; }
.home-area { position: relative; display: grid; grid-template-columns: 1fr 44px; align-items: center; column-gap: 20px; padding: 31px 0 32px; color: inherit; text-decoration: none; border-bottom: 1px solid #b4d4dd38; }
.home-area::before { position: absolute; content: ''; inset: -1px -20px 0; z-index: -1; background: linear-gradient(110deg, #75e4d90c, #75e4d903); opacity: 0; transition: opacity 180ms ease; border-radius: 2px; }
.home-area-meta { display: flex; align-items: center; gap: 9px; color: var(--home-accent); font-size: 10px; font-weight: 500; letter-spacing: .035em; }
.home-area-meta svg { width: 18px; height: 18px; }
.home-area h2 { margin: 16px 0 10px; font-size: clamp(30px, 2.65vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15; }
.home-area p { margin: 0; max-width: 310px; font-size: 13px; line-height: 1.8; color: var(--home-muted); }
.home-area-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b4d4dd4d; border-radius: 50%; color: var(--home-ink); transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.home-area-arrow svg { width: 19px; height: 19px; transform: rotate(-35deg); transition: transform 180ms ease; }
.home-area:hover::before, .home-area:focus-visible::before { opacity: 1; }
.home-area:hover .home-area-arrow, .home-area:focus-visible .home-area-arrow { color: #0c1e36; background: var(--home-accent); border-color: var(--home-accent); transform: translateX(3px); }
.home-area:hover .home-area-arrow svg, .home-area:focus-visible .home-area-arrow svg { transform: rotate(0); }
.home-portal a:focus-visible, .home-portal button:focus-visible { outline: 2px solid var(--home-accent); outline-offset: 6px; }
.home-portal .brand:focus-visible { border-radius: 3px; }
.home-nav-help { display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; color: var(--home-muted); font-size: 10px; line-height: 1.7; }
.home-nav-help svg { width: 14px; height: 16px; flex-shrink: 0; }
.home-portal .error-box { margin-top: 20px; }
.home-footer { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 1440px); margin: 0 auto; padding: 22px 64px; border-top: 1px solid #a5c5d61a; color: var(--home-muted); font-size: 10px; letter-spacing: .02em; }
.home-footer-mark { color: var(--home-accent); }
@keyframes home-line-reveal { from { stroke-dashoffset: 1; opacity: .15; } to { stroke-dashoffset: 0; opacity: 1; } }
@media (min-width: 1050px) and (min-height: 800px) { .home-portal .home-main { padding-top: 100px; padding-bottom: 110px; } }
@media (max-width: 1050px) {
  .home-portal .portal-header { padding: 25px 36px; }
  .home-portal .home-main { padding: 68px 36px 65px; gap: 44px; }
  .home-intro { padding-bottom: 105px; }
  .home-intro h1 { font-size: clamp(52px, 7vw, 72px); }
  .home-signature { width: 265px; height: 196px; left: 40px; bottom: -44px; }
  .home-area h2 { font-size: 31px; }
  .home-footer { padding-inline: 36px; }
}
@media (max-width: 700px) {
  .home-portal .portal-header { padding: 20px 23px; gap: 14px; }
  .home-portal .brand img { width: 35px; height: 35px; }
  .home-portal .brand strong { font-size: 13px; }
  .home-portal .brand small { font-size: 7px; letter-spacing: .07em; }
  .home-account { gap: 0; }
  .home-greeting { display: none; }
  .home-portal .home-logout { min-width: 44px; min-height: 44px; padding: 9px; }
  .home-portal .home-main { display: block; padding: 47px 26px 35px; }
  .home-intro { padding-bottom: 43px; }
  .home-eyebrow { margin-bottom: 20px; font-size: 9px; letter-spacing: .12em; }
  .home-intro h1 { font-size: clamp(45px, 12vw, 66px); max-width: 460px; }
  .home-intro > p { font-size: 12px; margin-top: 20px; max-width: 225px; }
  .home-signature { width: 198px; height: 148px; left: auto; right: -32px; bottom: 3px; opacity: .48; }
  .home-nav-caption { font-size: 9px; margin-bottom: 16px; }
  .home-area { padding: 23px 0 24px; gap: 16px; }
  .home-area::before { inset-inline: -12px; }
  .home-area-meta { font-size: 9px; gap: 7px; }
  .home-area-meta svg { width: 16px; height: 16px; }
  .home-area h2 { margin: 11px 0 8px; font-size: 29px; }
  .home-area p { font-size: 12px; line-height: 1.7; max-width: 250px; }
  .home-nav-help { margin-top: 18px; font-size: 10px; }
  .home-footer { padding: 19px 26px; font-size: 9px; }
  .home-footer > span:last-child { max-width: 120px; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .home-portal *, .home-portal *::before, .home-portal *::after { animation: none !important; transition: none !important; }
}
