/* Public municipal portal — isolated from the authenticated application. */
:root {
  --portal-navy: #071a33;
  --portal-blue: #0c3973;
  --portal-blue-bright: #2878e5;
  --portal-cyan: #39c6df;
  --portal-green: #1ca66f;
  --portal-gold: #f0b640;
  --portal-ink: #10233d;
  --portal-muted: #5b6f88;
  --portal-border: rgba(124, 158, 196, .24);
}

body.portal-public-active {
  overflow: auto !important;
  background: #edf4fb;
}

body.portal-public-active #digitec-footer {
  display: none !important;
}

#screen-landing.portal-enhanced {
  display: none;
  overflow-x: clip !important;
  overflow-y: auto !important;
  min-height: 100dvh;
  color: #fff;
  background: var(--portal-navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#screen-landing.portal-enhanced.active {
  display: block !important;
}

#screen-landing.portal-enhanced .gp-bg.portal-shell {
  position: relative;
  display: block !important;
  min-height: 100dvh;
  width: 100%;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--portal-mx, 82%) var(--portal-my, 12%), rgba(57, 198, 223, .18), transparent 27rem),
    radial-gradient(circle at 8% 68%, rgba(40, 120, 229, .23), transparent 31rem),
    linear-gradient(145deg, #061529 0%, #0a2851 48%, #0b3766 100%);
}

#screen-landing .portal-grid,
#screen-landing .portal-glow,
#screen-landing .portal-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

#screen-landing .portal-grid {
  opacity: .28;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 77%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 77%);
}

#screen-landing .portal-noise {
  opacity: .16;
  background-image: radial-gradient(rgba(255, 255, 255, .35) .65px, transparent .65px);
  background-size: 9px 9px;
}

#screen-landing .portal-glow::before,
#screen-landing .portal-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: portal-float 12s ease-in-out infinite;
}

#screen-landing .portal-glow::before {
  width: 25rem;
  height: 25rem;
  top: 5rem;
  right: -13rem;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 0 4rem rgba(46, 145, 220, .035), 0 0 0 8rem rgba(46, 145, 220, .025);
}

#screen-landing .portal-glow::after {
  width: 10rem;
  height: 10rem;
  left: -5rem;
  top: 36rem;
  background: rgba(28, 166, 111, .12);
  box-shadow: 0 0 5rem rgba(28, 166, 111, .2);
  animation-delay: -5s;
}

@keyframes portal-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-1rem, 1.5rem, 0) rotate(4deg); }
}

#screen-landing .portal-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

#screen-landing .portal-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

#screen-landing .portal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

#screen-landing .portal-brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 12px 30px rgba(1, 9, 23, .25);
}

#screen-landing .portal-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#screen-landing .portal-brand-copy {
  min-width: 0;
}

#screen-landing .portal-brand-copy strong,
#screen-landing .portal-brand-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#screen-landing .portal-brand-copy strong {
  font-size: 15px;
  letter-spacing: -.01em;
}

#screen-landing .portal-brand-copy span {
  margin-top: 3px;
  color: rgba(231, 242, 255, .66);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#screen-landing .portal-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#screen-landing .portal-nav-link,
#screen-landing .portal-nav-access {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border-radius: 13px;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#screen-landing .portal-nav-link {
  background: transparent;
  color: rgba(239, 247, 255, .82);
}

#screen-landing .portal-nav-access {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
}

#screen-landing .portal-nav-link:hover,
#screen-landing .portal-nav-access:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .34);
}

#screen-landing .portal-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  min-height: 650px;
  padding-block: clamp(62px, 8vw, 108px) 68px;
}

#screen-landing .portal-hero {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

#screen-landing .portal-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 21px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #c7ecff;
  background: rgba(40, 120, 229, .17);
  border: 1px solid rgba(102, 189, 240, .3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#screen-landing .portal-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d597;
  box-shadow: 0 0 0 5px rgba(72, 213, 151, .12), 0 0 18px rgba(72, 213, 151, .8);
  animation: portal-pulse 2.3s ease-in-out infinite;
}

@keyframes portal-pulse {
  50% { transform: scale(.8); opacity: .72; }
}

#screen-landing .portal-title {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.1vw, 72px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 820;
}

#screen-landing .portal-title em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(92deg, #8edfff 4%, #4fc2ff 44%, #7ce8c1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

#screen-landing .portal-lead {
  max-width: 630px;
  margin: 25px 0 0;
  color: rgba(229, 240, 253, .76);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

#screen-landing .portal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

#screen-landing .portal-primary,
#screen-landing .portal-secondary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: 16px;
  border: 1px solid transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

#screen-landing .portal-primary {
  background: linear-gradient(115deg, #2478e4, #1a92d1 60%, #16a879);
  box-shadow: 0 16px 35px rgba(20, 117, 209, .34), inset 0 1px 0 rgba(255, 255, 255, .22);
}

#screen-landing .portal-secondary {
  background: rgba(255, 255, 255, .075);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(244, 249, 255, .92);
}

#screen-landing .portal-primary:hover,
#screen-landing .portal-secondary:hover {
  transform: translateY(-3px);
}

#screen-landing .portal-primary:hover {
  box-shadow: 0 21px 42px rgba(20, 117, 209, .43), inset 0 1px 0 rgba(255, 255, 255, .25);
}

#screen-landing .portal-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

#screen-landing .portal-trust-item {
  min-width: 0;
  padding-right: 18px;
}

#screen-landing .portal-trust-item + .portal-trust-item {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}

#screen-landing .portal-trust-item strong,
#screen-landing .portal-trust-item span {
  display: block;
}

#screen-landing .portal-trust-item strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: -.025em;
}

#screen-landing .portal-trust-item span {
  margin-top: 4px;
  color: rgba(218, 233, 250, .58);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .06em;
}

#screen-landing .portal-device-wrap {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  perspective: 1200px;
}

#screen-landing .portal-device-wrap::before {
  content: "";
  position: absolute;
  inset: 12% -10% -8%;
  z-index: -1;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(51, 182, 226, .32), rgba(39, 112, 210, .12) 45%, transparent 70%);
  filter: blur(30px);
}

#screen-landing .portal-device {
  position: relative;
  padding: 18px;
  border-radius: 36px;
  background: rgba(237, 247, 255, .94);
  border: 1px solid rgba(255, 255, 255, .76);
  box-shadow: 0 42px 90px rgba(0, 8, 25, .4), inset 0 1px 0 #fff;
  color: var(--portal-ink);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .35s ease;
}

#screen-landing .portal-device-wrap:hover .portal-device {
  transform: rotateY(0) rotateX(0) translateY(-5px);
}

#screen-landing .portal-device-screen {
  overflow: hidden;
  padding: 21px;
  border-radius: 25px;
  background:
    radial-gradient(circle at 100% 0, rgba(74, 176, 232, .2), transparent 16rem),
    linear-gradient(160deg, #fff 0%, #eef6ff 100%);
  border: 1px solid #dbe8f6;
}

#screen-landing .portal-app-head {
  display: flex;
  align-items: center;
  gap: 13px;
}

#screen-landing .portal-app-icon {
  width: 56px;
  height: 56px;
  padding: 7px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 10px 25px rgba(13, 57, 115, .14);
}

#screen-landing .portal-app-head strong,
#screen-landing .portal-app-head span {
  display: block;
}

#screen-landing .portal-app-head strong {
  font-size: 17px;
  letter-spacing: -.02em;
}

#screen-landing .portal-app-head span {
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 12px;
}

#screen-landing .portal-live-chip {
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  color: #08784e;
  background: #dff8eb;
  border: 1px solid #b9ebd3;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
}

#screen-landing .portal-ticket {
  margin-top: 22px;
  padding: 17px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #dce8f4;
  box-shadow: 0 12px 30px rgba(22, 62, 105, .08);
}

#screen-landing .portal-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#screen-landing .portal-ticket-label {
  color: #6c7f95;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#screen-landing .portal-ticket-code {
  margin-top: 6px;
  color: #133e73;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: .02em;
}

#screen-landing .portal-ticket-state {
  padding: 7px 9px;
  border-radius: 10px;
  color: #175bc1;
  background: #e9f2ff;
  font-size: 10px;
  font-weight: 800;
}

#screen-landing .portal-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

#screen-landing .portal-progress::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #2a80e5 0 66%, #dce7f2 66%);
}

#screen-landing .portal-step {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #8b9caf;
  font-size: 9px;
  font-weight: 700;
}

#screen-landing .portal-step i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 7px;
  border-radius: 50%;
  color: #fff;
  background: #d4e0ec;
  font-size: 7px;
}

#screen-landing .portal-step.done i,
#screen-landing .portal-step.current i {
  background: #2878e5;
}

#screen-landing .portal-step.current {
  color: #1d5eaa;
}

#screen-landing .portal-download {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 17px;
  padding: 0 18px;
  border-radius: 15px;
  color: #fff;
  background: #071a33;
  text-decoration: none;
  box-shadow: 0 12px 25px rgba(7, 26, 51, .2);
  transition: transform .2s ease, box-shadow .2s ease;
}

#screen-landing .portal-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 30px rgba(7, 26, 51, .28);
}

#screen-landing .portal-download i {
  font-size: 23px;
}

#screen-landing .portal-download small,
#screen-landing .portal-download strong {
  display: block;
  line-height: 1.1;
}

#screen-landing .portal-download small {
  color: rgba(255, 255, 255, .62);
  font-size: 8px;
  letter-spacing: .11em;
}

#screen-landing .portal-download strong {
  margin-top: 3px;
  font-size: 15px;
}

#screen-landing .portal-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 15px;
  color: #fff;
  background: rgba(9, 34, 66, .82);
  border: 1px solid rgba(255, 255, 255, .17);
  box-shadow: 0 16px 36px rgba(0, 9, 25, .28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 11px;
  font-weight: 750;
  animation: portal-float-card 5s ease-in-out infinite;
}

#screen-landing .portal-float-card i {
  color: #78e5bb;
  font-size: 17px;
}

#screen-landing .portal-float-card.one {
  top: 22%;
  right: -35px;
}

#screen-landing .portal-float-card.two {
  left: -46px;
  bottom: 17%;
  animation-delay: -2.4s;
}

@keyframes portal-float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

#screen-landing .portal-services-wrap {
  position: relative;
  z-index: 2;
  padding: 0 0 74px;
}

#screen-landing .portal-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#screen-landing .portal-service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

#screen-landing .portal-service:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .105);
  border-color: rgba(255, 255, 255, .22);
}

#screen-landing .portal-service-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #9fe6ff;
  background: rgba(48, 147, 219, .17);
  border: 1px solid rgba(85, 186, 237, .2);
}

#screen-landing .portal-service strong,
#screen-landing .portal-service span {
  display: block;
}

#screen-landing .portal-service strong {
  font-size: 14px;
}

#screen-landing .portal-service span {
  margin-top: 5px;
  color: rgba(224, 237, 251, .6);
  font-size: 12px;
  line-height: 1.5;
}

#screen-landing .portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-block: 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(220, 235, 250, .58);
  font-size: 11px;
}

#screen-landing .portal-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#screen-landing .portal-legacy-card {
  display: none !important;
}

#screen-landing [data-portal-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

#screen-landing [data-portal-reveal].is-visible {
  animation: portal-reveal .72s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes portal-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  #screen-landing .portal-container {
    width: min(920px, calc(100% - 40px));
  }

  #screen-landing .portal-main {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .76fr);
    gap: 42px;
  }

  #screen-landing .portal-title {
    font-size: clamp(40px, 5.7vw, 58px);
  }

  #screen-landing .portal-float-card.one { right: -10px; }
  #screen-landing .portal-float-card.two { left: -15px; }
}

@media (max-width: 820px) {
  #screen-landing .portal-nav-link {
    display: none;
  }

  #screen-landing .portal-main {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 64px 58px;
  }

  #screen-landing .portal-hero {
    max-width: 680px;
  }

  #screen-landing .portal-device-wrap {
    width: min(100%, 480px);
  }

  #screen-landing .portal-device {
    transform: none;
  }

  #screen-landing .portal-services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #screen-landing .portal-container {
    width: calc(100vw - 28px);
    max-width: 540px;
  }

  #screen-landing .portal-main,
  #screen-landing .portal-hero,
  #screen-landing .portal-title,
  #screen-landing .portal-lead,
  #screen-landing .portal-device-wrap {
    min-width: 0;
    max-width: 100%;
  }

  #screen-landing .portal-nav {
    min-height: 74px;
  }

  #screen-landing .portal-brand-mark {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
    border-radius: 14px;
  }

  #screen-landing .portal-brand-copy strong {
    max-width: 155px;
    font-size: 13px;
  }

  #screen-landing .portal-brand-copy span {
    font-size: 9px;
  }

  #screen-landing .portal-nav-access {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  #screen-landing .portal-nav-access span {
    display: none;
  }

  #screen-landing .portal-main {
    gap: 48px;
    padding-block: 48px 48px;
  }

  #screen-landing .portal-kicker {
    margin-bottom: 17px;
    font-size: 10px;
  }

  #screen-landing .portal-title {
    font-size: clamp(38px, 12vw, 52px);
    line-height: 1.04;
  }

  #screen-landing .portal-lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.65;
  }

  #screen-landing .portal-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  #screen-landing .portal-primary,
  #screen-landing .portal-secondary {
    width: 100%;
  }

  #screen-landing .portal-trust {
    gap: 0;
    margin-top: 30px;
  }

  #screen-landing .portal-trust-item {
    padding-right: 8px;
  }

  #screen-landing .portal-trust-item + .portal-trust-item {
    padding-left: 10px;
  }

  #screen-landing .portal-trust-item strong {
    font-size: 14px;
  }

  #screen-landing .portal-trust-item span {
    font-size: 8px;
  }

  #screen-landing .portal-device {
    padding: 10px;
    border-radius: 28px;
  }

  #screen-landing .portal-device-screen {
    padding: 16px;
    border-radius: 21px;
  }

  #screen-landing .portal-app-icon {
    width: 48px;
    height: 48px;
  }

  #screen-landing .portal-live-chip {
    display: none;
  }

  #screen-landing .portal-float-card {
    display: none;
  }



  #screen-landing .portal-services-wrap {
    padding-bottom: 48px;
  }

  #screen-landing .portal-service {
    padding: 17px;
  }

  #screen-landing .portal-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  #screen-landing .portal-container {
    width: calc(100vw - 22px);
  }

  #screen-landing .portal-brand-copy strong {
    max-width: 125px;
  }

  #screen-landing .portal-title {
    font-size: 36px;
  }

  #screen-landing .portal-ticket {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #screen-landing *,
  #screen-landing *::before,
  #screen-landing *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  #screen-landing [data-portal-reveal] {
    opacity: 1;
    transform: none;
  }
}
