/* Portal público: camada visual isolada sobre o design system existente. */
.citizen-landing-shell {
    --portal-ink: #153026;
    --portal-green: #12643c;
    --portal-green-bright: #38a866;
    --portal-line: #dbe7e0;
    --portal-surface: #f5f8f6;
}

.citizen-landing {
    background: var(--portal-surface);
}

.citizen-landing__identity {
    isolation: isolate;
    background:
        radial-gradient(circle at 88% 12%, rgba(93, 208, 139, .2), transparent 25%),
        linear-gradient(145deg, #0b4c31 0%, #12643c 55%, #173f38 100%);
}

.citizen-landing__identity::before {
    width: 34rem;
    height: 34rem;
    right: -18rem;
    top: 18%;
    border: 1px solid rgba(255, 255, 255, .1);
    background: transparent;
}

.citizen-landing__identity::after {
    width: 28rem;
    height: 28rem;
    right: -7rem;
    bottom: -18rem;
    border: 5rem solid rgba(255, 255, 255, .035);
    background: transparent;
}

.citizen-brand__mark {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.citizen-pitch {
    max-width: 42rem;
}

.citizen-pitch__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .42rem .7rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(5, 41, 25, .22);
    color: #d9f7e4;
    letter-spacing: .055em;
}

.citizen-pitch h1 {
    max-width: 12ch;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.citizen-pitch p {
    max-width: 42rem;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.45vw, 1.18rem);
    line-height: 1.65;
}

.citizen-operation {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    margin-top: auto;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 1rem;
    background: rgba(4, 35, 23, .28);
    box-shadow: 0 1.2rem 3rem rgba(4, 31, 21, .15);
    backdrop-filter: blur(8px);
}

.citizen-operation__header,
.citizen-operation__header > span,
.citizen-operation__header > small {
    display: flex;
    align-items: center;
}

.citizen-operation__header {
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.citizen-operation__header > span { gap: .45rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.citizen-operation__header > small { gap: .35rem; color: #bde9cc; font-weight: 600; }
.citizen-operation__header .ph-circle { color: #5ee68c; font-size: .55rem; }

.citizen-operation__flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.citizen-operation__flow li { position: relative; display: grid; grid-template-columns: 2rem 1fr; column-gap: .55rem; padding-right: .5rem; }
.citizen-operation__flow li:not(:last-child)::after { content: ""; position: absolute; top: .9rem; right: .45rem; width: 18%; border-top: 1px dashed rgba(255, 255, 255, .35); }
.citizen-operation__flow li > span { grid-row: 1 / 3; display: grid; place-items: center; align-self: start; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(255, 255, 255, .13); color: #d9f7e4; font-size: .7rem; font-weight: 800; }
.citizen-operation__flow strong { align-self: end; font-size: .82rem; }
.citizen-operation__flow small { color: rgba(255, 255, 255, .62); font-size: .72rem; }

.citizen-landing__services {
    background: linear-gradient(180deg, #fff 0%, #f8faf9 100%);
}

.citizen-services {
    max-width: 590px;
}

.citizen-services__login a {
    border-color: var(--portal-line);
    color: var(--portal-green);
    background: #fff;
}

.citizen-services__eyebrow {
    display: block;
    margin-bottom: .45rem;
    color: var(--portal-green);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.citizen-services h2 { color: var(--portal-ink); letter-spacing: -.025em; }

.citizen-report {
    border-color: #cfe1d6;
    background: #fff;
    box-shadow: 0 .5rem 1.7rem rgba(17, 80, 49, .06);
}

.citizen-report__icon { background: #e7f5ec; color: var(--portal-green); }

.citizen-mapheading {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 1.35rem 0 .75rem;
}

.citizen-mapheading > span {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: none;
    border-radius: .7rem;
    background: #e7f5ec;
    color: var(--portal-green);
    font-size: 1.15rem;
}

.citizen-mapheading strong,
.citizen-mapheading small { display: block; }
.citizen-mapheading strong { color: var(--portal-ink); font-size: .95rem; }
.citizen-mapheading small { margin-top: .1rem; color: #64756d; font-size: .78rem; }

.citizen-mapsearch input { border-color: var(--portal-line); background: #fff; }
.citizen-mapsearch button { background: var(--portal-green); box-shadow: 0 .4rem 1rem rgba(18, 100, 60, .2); }
.citizen-mapcard { border-color: #cfded5; box-shadow: 0 1rem 2.5rem rgba(21, 48, 38, .11); }
.citizen-maplegend { border-color: var(--portal-line); color: var(--portal-ink); backdrop-filter: blur(8px); }

@media (max-width: 1100px) and (min-width: 901px) {
    .citizen-landing { grid-template-columns: minmax(340px, .88fr) minmax(500px, 1.12fr); }
    .citizen-operation__flow li { grid-template-columns: 1.7rem 1fr; column-gap: .35rem; }
    .citizen-operation__flow li > span { width: 1.7rem; height: 1.7rem; }
}

@media (max-width: 900px) {
    .citizen-landing__identity { min-height: 650px; }
    .citizen-operation { margin-top: 3rem; }
}

@media (max-width: 520px) {
    .citizen-pitch h1 { max-width: 14ch; }
    .citizen-operation { margin-top: 2rem; padding-inline: .85rem; }
    .citizen-operation__header { align-items: flex-start; flex-direction: column; gap: .35rem; }
    .citizen-operation__flow { gap: .4rem; }
    .citizen-operation__flow li { display: flex; flex-direction: column; gap: .2rem; }
    .citizen-operation__flow li:not(:last-child)::after { display: none; }
    .citizen-operation__flow li > span { margin-bottom: .25rem; }
    .citizen-mapheading small { max-width: 30ch; }
}

@media (prefers-reduced-motion: reduce) {
    .citizen-report { transition: none; }
}
