/* Fiscaliza Maceió — landing */
:root {
    --bg: #f7f6f2;
    --bg-2: #efece4;
    --ink: #121a16;
    --ink-2: #2c3831;
    --mute: #66756c;
    --line: #ddd7cb;
    --green: #0a5f45;
    --green-2: #0b6e4f;
    --green-3: #147a57;
    --cream: #f7f6f2;
    --white: #ffffff;
    --display: "Newsreader", Georgia, serif;
    --sans: "Outfit", system-ui, sans-serif;
    --shell: min(1180px, calc(100% - 48px));
    --header: 72px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink-2);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img {
    display: block;
    max-width: 100%;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--header);
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(247, 246, 242, 0.9);
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(221, 215, 203, 0.9);
}

.site-header__row {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand__mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand__word {
    font-family: var(--display);
    font-size: 1.28rem;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    width: 16px;
    height: 1.5px;
    background: var(--ink);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav nav {
    display: flex;
    gap: 4px;
}

.site-nav nav a {
    padding: 8px 11px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--mute);
}

.site-nav nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font: 600 0.92rem/1 var(--sans);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--dark {
    background: var(--ink);
    color: #fff;
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.btn--light {
    background: #fff;
    color: var(--green);
}

.btn--green {
    background: var(--green);
    color: #fff;
}

.btn--line {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* Store Buttons (Google Play / App Store) */
.hero__stores,
.closing__stores {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    min-height: 46px;
    padding: 0 16px 0 13px;
    min-width: 165px;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.store-btn:hover {
    transform: translateY(-1px);
}

.store-btn i {
    font-size: 1.35rem;
    line-height: 1;
}

.store-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.88rem;
}

.store-btn small {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
    margin-bottom: 1px;
}

/* Variante Hero (fundo escuro da foto) */
.store-btn--hero {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.store-btn--hero:hover {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.store-btn--hero .fa-google-play {
    color: #0b6e4f;
}

.store-btn--hero .fa-apple {
    color: var(--ink);
}

/* Variante Dark (fundo claro da seção de fechamento) */
.store-btn--dark {
    background: var(--ink);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 12px rgba(18, 26, 22, 0.08);
}

.store-btn--dark:hover {
    background: var(--green);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(10, 95, 69, 0.25);
}

.store-btn--dark .fa-google-play,
.store-btn--dark .fa-apple {
    color: #ffffff;
}

.text-link {
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    color: var(--green);
    border-bottom: 1px solid rgba(10, 95, 69, 0.3);
    padding-bottom: 2px;
}

/* Hero */
.hero {
    position: relative;
    min-height: calc(100svh - var(--header));
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.02);
}

.hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 28, 20, 0.28) 0%, rgba(8, 28, 20, 0.55) 42%, rgba(8, 28, 20, 0.88) 100%),
        linear-gradient(90deg, rgba(8, 28, 20, 0.55) 0%, rgba(8, 28, 20, 0.15) 58%, rgba(8, 28, 20, 0.35) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 0 0 72px;
    max-width: 780px;
    margin-left: max(24px, calc((100% - var(--shell)) / 2));
    margin-right: auto;
    width: min(780px, calc(100% - 48px));
}

.hero__brand {
    margin: 0 0 18px;
    font-family: var(--display);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
}

.hero__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.8rem, 6.4vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero__title span {
    font-style: italic;
    color: #d9efe4;
}

.hero__lead {
    margin: 22px 0 0;
    max-width: 36ch;
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.84);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* Strip */
.strip {
    border-block: 1px solid var(--line);
    background: var(--white);
    overflow: hidden;
    white-space: nowrap;
}

.strip__track {
    display: inline-flex;
    gap: 0;
    padding: 16px 0;
    animation: marquee 32s linear infinite;
}

.strip__track span {
    padding: 0 28px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mute);
    position: relative;
}

.strip__track span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--line);
    transform: translateY(-50%);
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Sections */
.section {
    padding: 112px 0;
}

.section--quiet {
    background: var(--bg-2);
}

.section__intro {
    max-width: 640px;
    margin-bottom: 56px;
}

.kicker {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
}

.kicker--on-dark { color: rgba(255, 255, 255, 0.62); }

h2 {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.prose {
    margin: 18px 0 0;
    max-width: 48ch;
    color: var(--mute);
    font-size: 1.05rem;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.stats dt {
    font-family: var(--display);
    font-size: 2.2rem;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}

.stats dd {
    margin: 8px 0 0;
    font-size: 0.86rem;
    color: var(--mute);
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(18, 26, 22, 0.06);
}

.panel__bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.panel__bar span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--mute);
}

.panel__bar em {
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 700;
    color: #b65a16;
    background: #f7e7d8;
    border-radius: 999px;
    padding: 6px 10px;
}

.panel h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--ink);
}

.panel > p {
    margin: 8px 0 0;
    color: var(--mute);
}

.timeline {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.timeline li {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    align-items: center;
    color: var(--mute);
    font-weight: 500;
}

.timeline li span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--line);
    justify-self: center;
}

.timeline li.is-done {
    color: var(--ink);
}

.timeline li.is-done span {
    border-color: var(--green);
    background: var(--green);
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(18, 26, 22, 0.12);
}

.steps li {
    padding: 32px 28px 0;
    border-right: 1px solid rgba(18, 26, 22, 0.12);
}

.steps li:first-child {
    padding-left: 0;
}

.steps li:last-child {
    border-right: 0;
    padding-right: 0;
}

.steps strong {
    display: block;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--green-3);
    line-height: 1;
    margin-bottom: 22px;
}

.steps h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: var(--ink);
}

.steps p {
    margin: 0;
    color: var(--mute);
    max-width: 28ch;
}

.matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
}

.matrix article {
    background: var(--white);
    padding: 36px 32px;
}

.matrix h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: var(--ink);
}

.matrix p {
    margin: 0;
    color: var(--mute);
    max-width: 36ch;
}

/* Campaign */
.campaign {
    padding: 96px 0;
    background:
        linear-gradient(145deg, #063628 0%, #0a5f45 52%, #116b4f 100%);
    color: #fff;
}

.campaign__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: end;
}

.campaign h2 { color: #fff; max-width: 12ch; }

.campaign p {
    margin: 16px 0 28px;
    max-width: 38ch;
    color: rgba(255, 255, 255, 0.78);
}

.progress {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 28px;
}

.progress__pair {
    display: flex;
    gap: 36px;
    margin-bottom: 18px;
}

.progress__pair b {
    display: block;
    font-family: var(--display);
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.progress__pair span {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
    opacity: 0.75;
}

.progress__bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.progress__bar i {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    transition: width 1.15s var(--ease);
}

.progress > p {
    margin: 14px 0 0;
    font-size: 0.8rem;
    opacity: 0.65;
}

.privacy { max-width: 680px; }

.materias { max-width: 680px; }

.materias__note {
    margin: 16px 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-2);
}

.closing { padding: 0 0 112px; }

.closing__box {
    border-top: 1px solid var(--line);
    padding-top: 72px;
}

.closing p {
    margin: 14px 0 0;
    color: var(--mute);
}

.closing .btn { margin-top: 28px; }

/* Footer */
.site-footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--line);
}

.site-footer__row {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 32px;
}

.site-footer p {
    margin: 14px 0 0;
    max-width: 42ch;
    color: var(--mute);
}

.site-footer__founder {
    margin-top: 10px !important;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-2) !important;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: flex-end;
    align-content: start;
}

.site-footer__links a {
    color: var(--mute);
    font-weight: 500;
    font-size: 0.92rem;
}

.site-footer__links a:hover { color: var(--ink); }

.site-footer__legal {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--mute);
    font-size: 0.84rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    align-items: baseline;
}

.site-footer__legal p {
    margin: 0;
    max-width: none;
}

.site-footer__credit strong {
    color: var(--ink-2);
    font-weight: 600;
}

/* Legal page */
.legal-page { padding: 48px 0 96px; }

.legal-page__inner {
    max-width: 760px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 40px 36px;
}

.legal-page__eyebrow {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--green);
}

.legal-page__title {
    margin: 0;
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    color: var(--ink);
}

.legal-page__lead {
    margin: 16px 0 0;
    color: var(--mute);
    font-size: 1.05rem;
}

.legal-page h2 {
    margin: 32px 0 12px;
    font-size: 1.05rem;
    color: var(--ink);
    font-family: var(--sans);
    letter-spacing: 0;
    font-weight: 700;
}

.legal-page p { color: var(--mute); }

.legal-callout {
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(10, 95, 69, 0.06);
    border: 1px solid rgba(10, 95, 69, 0.12);
}

.legal-callout strong {
    display: block;
    color: var(--green);
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.legal-callout p {
    margin: 0;
    color: var(--ink-2);
}

.legal-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.legal-steps li {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}

.legal-steps strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.legal-steps span {
    color: var(--mute);
    font-size: 0.94rem;
}

.legal-steps em {
    font-style: normal;
    font-weight: 600;
    color: var(--ink-2);
}

.legal-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--mute);
    display: grid;
    gap: 8px;
}

.legal-actions { margin: 24px 0 0; }
.legal-back { margin-top: 36px; }

.legal-page .text-link {
    margin-top: 0;
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 980px) {
    .split,
    .campaign__grid,
    .site-footer__row,
    .steps,
    .matrix {
        grid-template-columns: 1fr;
    }

    .steps li {
        border-right: 0;
        border-bottom: 1px solid rgba(18, 26, 22, 0.12);
        padding: 28px 0;
    }

    .steps li:last-child { border-bottom: 0; }

    .site-footer__links { justify-content: flex-start; }

    .hero {
        min-height: 86svh;
        align-items: flex-end;
    }

    .hero__content {
        margin-left: 24px;
        width: calc(100% - 48px);
        padding-bottom: 48px;
    }
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: calc(var(--header) + 8px) 16px auto;
        display: grid;
        gap: 12px;
        padding: 16px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    }

    .site-nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-nav nav {
        flex-direction: column;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root { --shell: min(1180px, calc(100% - 28px)); }

    .hero__cta,
    .hero__stores,
    .closing__stores { width: 100%; flex-direction: column; align-items: stretch; }
    .hero__cta .btn,
    .store-btn { width: 100%; justify-content: center; }

    .section { padding: 80px 0; }
    .matrix article { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .strip__track,
    .reveal,
    .btn,
    .progress__bar i {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
