/* Fontes: carregamento centralizado. Para hospedagem local, substituir apenas
   este @import por @font-face com URLs em assets/fonts/, mantendo as famílias
   Anton (400) e Inter (400, 500, 600, 700) e font-display: swap. */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap");

/* =========================================================
   AMAZÔNIA SEM DATA CENTER
   ESTILOS GERAIS
========================================================= */

:root {

    --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
    --font-text: "Inter", Arial, Helvetica, sans-serif;

    --purple: #5413ff;
    --purple-dark: #4310e9;

    --orange: #ff6a00;

    --cyan: #15e7c2;

    --cream: #f1f0e9;

    --black: #0b0a0f;

    --ink: #121116;

    --gray: #aaa7aa;

    /* Conteúdo da seção clara: cerca de 85% da largura do mockup. */

    --container: 1040px;

}



/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--black);

    color: var(--cream);

    font-family: var(--font-text);

    text-rendering: optimizeLegibility;

}


img {

    display: block;

    max-width: 100%;

}


button,
input,
select {

    font: inherit;
}


a {

    color: inherit;

}



/* =========================================================
   UTILIDADES
========================================================= */

.container {

    width: min(var(--container), 85%);

    margin-inline: auto;

}


.sr-only {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;

    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;

}



/* =========================================================
   BOTÕES
========================================================= */

.button {

    border: 0;

    background: var(--orange);

    color: var(--black);

    text-decoration: none;

    font-family: var(--font-display);

    font-weight: 400;

    display: inline-flex;

    align-items: center;

    justify-content: space-between;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform .18s ease,
        background .18s ease;

    line-height: 1.15;
    letter-spacing: .015em;
}


.button:not(:disabled):hover {

    background: #ff7b1f;

    transform: translateY(-2px);

}


.button:focus-visible {

    outline: 3px solid var(--cream);

    outline-offset: 4px;

}


.button__arrow {

    font-family: var(--font-text);

    font-size: 30px;

    font-weight: 400;

    line-height: 1;

}



/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    display: flow-root;

    /* A margem negativa do recorte define a transição de seção. */

    padding: 41px 0 0;

    background-color: var(--purple);

    /* Textura original, sem filtros ou camadas adicionais. */

    background-image:
        url("assets/fundo-roxo.png");

    background-repeat: no-repeat;

    background-size: cover;

    overflow: visible;

}


.hero__content {

    position: relative;

    z-index: 2;

    padding-inline: 24px;
}


.hero__logo {

    width: min(520px, 100%);

    height: auto;

    /* Alinha a parte visível da marca, respeitando sua margem transparente. */
    margin-left: -25px;
}


.hero__line {

    width: 348px;

    max-width: 45vw;

    height: 4px;

    margin: 10px 0 22px;

    background: var(--cream);

}



.hero__title {

    max-width: 420px;

    margin: 0;

    color: var(--cream);

    font-family: var(--font-display);

    font-size: 36px;

    line-height: 1.18;

    letter-spacing: 0;

    font-weight: 400;
}


.hero__title span {

    color: var(--orange);

}



.button--hero {

    min-width: 0;

    margin-top: 28px;

    padding:
        17px
        23px;

    gap: 8px;

    font-size: 21px;

    width: 243px;
    min-height: 68px;
    max-width: 100%;
}

.button--hero .button__arrow {
    font-size: 24px;
    flex-shrink: 0;
}

.button--hero span:first-child {
    white-space: nowrap;
}


/* =========================================================
   DATA CENTER / DIVISOR
========================================================= */

.hero__datacenter {

    position: relative;

    z-index: 1;

    /* O recorte sobe ao lado do botão e avança sobre a seção clara. */
    margin: -56px auto -215px;

    width: min(1000px, calc(100% - 64px));

    pointer-events: none;

}


.hero__datacenter img {

    width: 100%;

    height: auto;

}



/* =========================================================
   SEÇÃO 2
========================================================= */

.context {

    background: var(--cream);

    color: var(--ink);

    /*
        O padding superior compensa a imagem
        que invade esta seção.
    */

    padding: 160px 0 44px;

}


.section-title {

    margin: 0;

    font-family: var(--font-display);

    font-size: 28px;

    line-height: 1.15;

    letter-spacing: .005em;

    font-weight: 400;
}


.context__text {

    max-width: 930px;

    margin: 20px 0 20px;

    font-size: 21px;

    font-weight: 500;

    line-height: 1.32;

}



/* =========================================================
   PRINCÍPIOS
========================================================= */

.principles {

    display: grid;

    grid-template-columns: .86fr 1.14fr 1fr;

}


.principle {

    display: flex;

    min-height: 74px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 4px 12px;

    text-align: center;

    font-family: var(--font-display);

    font-size: 26px;

    line-height: 1.12;

    font-weight: 400;
    letter-spacing: .005em;
}


/* Anton possui peso 400; evita negrito sintético nas chamadas. */
.principle strong {
    font-weight: inherit;
}

.principle + .principle {

    border-left: 4px solid var(--ink);

}


.principle span {

    margin-top: 5px;

    color: var(--orange);

}



/* =========================================================
   PETIÇÃO
========================================================= */

.petition {

    background: var(--black);

    padding: 60px 0 42px;

}


/* Formulário em recuo; subtítulo na linha inteira abaixo do título e contador. */
.petition > .container {
    width: min(var(--container), 85%);
}

.petition__heading {
    display: contents;
}

.petition__header {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 270px;

    gap: 16px 32px;

    align-items: baseline;

    margin-bottom: 20px;

}


.petition__heading h2 {

    margin: 0;

    color: var(--cream);

    font-family: var(--font-display);

    font-size: 40px;

    line-height: 1.1;

    letter-spacing: .005em;

    font-weight: 400;
}


.petition__heading p {

    margin: 0;

    color: #e7e2dc;

    font-size: 20px;

    grid-column: 1 / -1;
    line-height: 1.4;
}



/* =========================================================
   CONTADOR
========================================================= */

.counter {

    width: 100%;

    grid-column: 2;
    grid-row: 1;
    padding-top: 0;
}


.counter__numbers {

    display: flex;

    align-items: baseline;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 5px;

}


.counter__numbers strong {

    font-family: var(--font-display);

    font-size: 28px;

    line-height: 1.1;

    white-space: nowrap;

    letter-spacing: 0;
    font-weight: 400;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}


.counter__numbers small {

    font-family: var(--font-text);

    font-size: 12px;

    font-weight: 500;

    letter-spacing: normal;
}


.counter__goal {

    font-size: 10px;

    white-space: nowrap;

}


.counter__progress {

    width: 100%;

    height: 9px;

    overflow: hidden;

    background: #eaa57a;

    border-radius: 50px;

}


.counter__progress span {

    display: block;

    /* A largura é atualizada somente com registros retornados pela API. */
    width: 0;

    height: 100%;

    background: var(--orange);

    border-radius: inherit;

    transition:
        width
        .7s
        ease;

}



/* =========================================================
   FORMULÁRIO
========================================================= */

.petition-form {

    display: grid;

    gap: 10px;

}


.form-row {

    display: grid;

    gap: 10px;

}


.form-row--three {

    grid-template-columns: 1.06fr 1fr .98fr;

}


.form-row--two {

    grid-template-columns: 1fr 1fr;

}


input,
select {

    width: 100%;

    height: 46px;

    font-size: 14px;

    line-height: 1.4;

    padding:
        0
        16px;

    border: 0;

    border-radius: 4px;

    background: #faf8ed;

    color: var(--ink);

    outline:
        2px
        solid
        transparent;

    outline-offset: -2px;

}


input:focus,
select:focus {

    outline-color: var(--cyan);

}


.button--petition {

    width: 100%;

    min-height: 65px;

    margin-top: 9px;

    padding:
        12px
        20px;

    justify-content: center;

    gap: 28px;

    font-size: 25px;

    border-radius: 5px;
}



/* =========================================================
   PRIVACIDADE
========================================================= */

.privacy {

    margin: 6px 0 0;

    color: var(--gray);

    font-size: 11px;

    line-height: 1.5;

}


.privacy a {

    color: #dad4cd;

    text-decoration: none;

}


.privacy a:hover {

    text-decoration: underline;

}


/* =========================================================
   RODAPÉ
========================================================= */

.footer {

    padding: 24px 0 22px;

    border-top:
        1px
        solid
        rgba(245, 240, 221, .25);

    background:
        var(--black);

}


.footer__content {

    display: grid;

    grid-template-columns: 160px minmax(0, 1fr) 330px;

    gap: 24px;

    align-items: center;

}


.footer__campaign img {

    width: 112px;

    height: auto;
}


.footer__links {

    display: flex;

    justify-content: center;

    gap: 20px;

    padding: 0 20px;

    border-left:
        2px
        solid
        rgba(245, 240, 221, .6);

    border-right:
        2px
        solid
        rgba(245, 240, 221, .6);

    min-height: 44px;
    align-items: center;
    line-height: 1.4;
}


.footer__links a {

    color: var(--cream);

    font-size: 10px;

    text-decoration: none;

    white-space: nowrap;

}


.footer__partners {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 22px;

}


.footer__logos {
    width: 320px;
    max-width: 100%;
    height: auto;
}


/* =========================================================
   RESPONSIVIDADE
========================================================= */

@media (max-width: 760px) {

    .container {

        width:
            calc(
                100% - 32px
            );

    }


    .hero {

        padding:
            40px
            0
            0;

    }


    .hero__logo {

        width:
            min(
                460px,
                92vw
            );

    }


    .hero__content {
        padding-inline: 0;
    }

    .hero__logo {
        margin-left: 0;
    }

    .hero__line {
        width: 75%;
        max-width: 348px;
        margin-block: 16px 22px;
    }


    .hero__title {

        max-width: 420px;

        font-size:
            clamp(
                27px,
                7vw,
                39px
            );

    }


    .hero__datacenter {

        width: 100%;

        margin: 24px auto -90px;

    }


    .context {

        padding-top: 96px;

    }


    .context__text {

        font-size: 17px;

    }


    .principles {

        grid-template-columns: 1fr;

    }


    .principle {

        min-height: auto;

        padding:
            18px
            5px;

    }


    .principle + .principle {

        border-left: 0;

        border-top:
            2px
            solid
            rgba(
                18,
                17,
                22,
                .25
            );

    }


    .petition__header {

        grid-template-columns: 1fr;

        gap: 24px;

    }


    .petition > .container {
        width: min(var(--container), 85%);
    }

    .petition__heading {
        display: block;
    }

    .petition__heading h2 {
        font-size: clamp(32px, 7vw, 40px);
    }

    .petition__heading p {
        margin-top: 14px;
        font-size: 18px;
    }

    .counter {
        max-width: 330px;
        grid-column: auto;
        grid-row: auto;
        padding-top: 0;
    }

    .section-title {
        font-size: 26px;
    }

    .petition {
        padding-block: 44px 36px;
    }

    input,
    select {
        height: 48px;
        font-size: 16px;
    }

    .button--petition {
        font-size: 23px;
        gap: 18px;
    }


    .form-row--three,
    .form-row--two {

        grid-template-columns: 1fr;

    }


    .footer__content {

        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;

    }


    .footer__links {

        flex-wrap: wrap;

        padding: 0;

        border: 0;

    }

    .footer__partners {
        justify-content: center;
    }

    .footer__logos {
        width: 260px;
    }


}
/* Mantém as colunas do rodapé legíveis em tablets. */
@media (min-width: 761px) and (max-width: 1000px) {
    .petition > .container {
        width: 85%;
    }

    .petition__heading h2 {
        font-size: 32px;
    }

    .principle {
        font-size: 23px;
    }

    .footer__content {
        grid-template-columns: 130px minmax(0, 1fr) 240px;
        gap: 16px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 12px;
        padding-inline: 16px;
    }
}

/* Estados indisponíveis e documentos cujos destinos ainda não foram definidos. */
.button:disabled,
a[aria-disabled="true"] {
    cursor: default;
}

.privacy a[aria-disabled="true"]:hover {
    text-decoration: none;
}

.form-row > label {
    min-width: 0;
}

input::placeholder {
    color: #5b5853;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .counter__progress span {
        transition: none;
    }
}

/* Estados funcionais: não alteram o layout inicial aprovado. */
[hidden] {
    display: none !important;
}

.form-feedback,
.petition-success {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
}

.petition-success p {
    margin: 0;
}

.petition-success:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
}

.petition-form[aria-busy="true"] .button {
    cursor: wait;
    opacity: .8;
}

input[aria-invalid="true"],
select[aria-invalid="true"] {
    outline-color: var(--orange);
}

/* Mensagens ocupam somente o espaço do formulário quando estão visíveis. */
.form-feedback {
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    padding: 20px;
    border: 1px solid;
    border-left-width: 5px;
    border-radius: 4px;
    overflow-wrap: anywhere;
    scroll-margin-block: 24px;
}

.form-feedback p {
    margin: 0;
}

.form-feedback--error {
    background: var(--black);
    border-color: var(--orange);
    color: var(--cream);
}

.form-feedback--warning {
    background: var(--cream);
    border-color: var(--purple-dark);
    color: var(--ink);
}

.form-feedback--success {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--ink);
}

.form-feedback__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 400;
    line-height: 1.2;
}

.form-feedback__title + p {
    margin-top: 8px;
}

.form-feedback__action {
    margin-top: 16px;
}

.form-feedback__action .button {
    margin-top: 0;
    font-size: clamp(18px, 3vw, 24px);
    gap: 12px;
}

.form-feedback__action .button:disabled {
    opacity: .7;
}

.form-feedback__action .form-feedback__note {
    margin-top: 12px;
    font-size: 14px;
}

.form-feedback:focus-visible {
    outline: 2px solid var(--cream);
    outline-offset: 4px;
}

.field-error {
    display: block;
    margin-top: 8px;
    color: var(--cream);
    font-family: var(--font-text);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

input.is-invalid,
select.is-invalid {
    border: 2px solid var(--orange);
    outline-color: var(--orange);
    scroll-margin-block: 24px;
}

@media (max-width: 760px) {
    .form-feedback {
        padding: 16px;
    }
}

/* Segunda etapa, exibida somente no espaço do formulário após a assinatura. */
.petition-success .pressure__lead {
    margin-top: 8px;
    font-weight: 600;
}

.petition-success .pressure__description {
    margin-top: 16px;
}

.pressure__cta {
    margin-top: 20px;
    font-size: clamp(18px, 3vw, 25px);
    gap: 12px;
    text-align: center;
}

.pressure__cta[aria-disabled="true"],
.pressure__cta[aria-disabled="true"]:hover {
    background: var(--orange);
    transform: none;
    opacity: .65;
    cursor: wait;
}

.pressure__cta.is-loading {
    cursor: wait;
}

.pressure__cta.is-loading .button__arrow {
    display: none;
}

.pressure__spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: pressure-spin .7s linear infinite;
}

@keyframes pressure-spin {
    to { transform: rotate(360deg); }
}

.petition-success .pressure__count {
    margin-top: 12px;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
    .pressure__spinner { animation: none; }
}

.petition-success .pressure__note {
    margin-top: 12px;
    font-size: 14px;
}

.pressure__preview {
    margin-top: 12px;
}

.pressure__preview summary {
    width: fit-content;
    padding-block: 8px;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.pressure__body {
    margin-top: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
}

.petition-success .pressure__status {
    margin-top: 16px;
}

.pressure__retry {
    margin-top: 12px;
    padding: 10px 0;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.pressure__preview summary:focus-visible,
.pressure__retry:focus-visible,
.pressure__cta:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}
body.modal-open { overflow: hidden; }
.consent-field { display: flex; align-items: flex-start; gap: 12px; width: 100%; margin: 24px 0 12px; }
.consent-field input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; padding: 0; border-radius: 3px; background: #faf8ed; accent-color: var(--orange); }
.consent-field label { flex: 1; width: auto; max-width: none; margin: 0; font-size: .9rem; line-height: 1.45; color: var(--cream); }
.consent-note { margin: 0 0 30px; font-size: .78rem; opacity: .78; }

.sharing {
    background: #5413ff;
    color: #fff;
    padding: 72px 0 78px;
}
.sharing__content { text-align: left; }
.sharing h2 { margin: 0 0 16px; }
.sharing p { max-width: 640px; }
.sharing__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.button--sharing { background: #f57c20; color: #111; }
.sharing__secondary { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 999px; padding: 13px 20px; font: inherit; cursor: pointer; }
.sharing__status { margin-top: 18px; color: #b9fff2; }
.sharing__count { margin-top: 26px; font-size: .95rem; color: rgba(255,255,255,.78); }

.modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(8, 5, 20, .78); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(680px, 100%); max-height: min(82vh, 760px); overflow: auto; padding: 42px 38px 36px; border-radius: 14px; background: #f5f0e8; color: #17131f; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.modal h2 { margin: 0 0 20px; }
.modal p { margin: 0 0 16px; line-height: 1.55; }
.modal__close { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border: 0; background: transparent; color: #17131f; font-size: 32px; line-height: 1; cursor: pointer; }
.modal__empty { opacity: .72; font-style: italic; }
.source-list { min-height: 80px; }

@media (max-width: 640px) {
    .sharing { padding: 54px 0 58px; }
    .sharing__actions { align-items: stretch; flex-direction: column; }
    .sharing__actions > * { width: 100%; }
    .modal-backdrop { padding: 8px; }
    .modal { max-height: calc(100vh - 16px); padding: 44px 22px 26px; border-radius: 10px; }
}
