/* A3Labs Site V2 — light-first (brief visual). Montserrat. Amarelo só em CTA/destaque. */
:root {
    --al-paper: #f5f5f5;
    --al-paper-2: #f5f5f5;
    --al-surface: #ffffff;
    --al-ink: #0a0a0a;
    --al-ink-soft: #3a3a3a;
    --al-line: rgba(10, 10, 10, 0.12);
    --al-line-strong: #0a0a0a;
    --al-accent: #ffc400;
    --al-accent-soft: #ffc400;
    --al-accent-ink: #0a0a0a;
    --al-rule: #0a0a0a;
    --al-header-h: 4.25rem;
    --al-wrap: 72rem;
    --al-radius: 0.5rem;
    --al-sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.al {
    font-family: var(--al-sans);
    background-color: var(--al-paper);
    background-image:
        radial-gradient(ellipse 90% 36rem at 50% 0%, rgba(255, 196, 0, 0.16), transparent 72%),
        radial-gradient(ellipse 55% 22rem at 100% 8%, rgba(22, 163, 74, 0.06), transparent 70%);
    background-repeat: no-repeat;
    color: var(--al-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.al a {
    color: inherit;
}

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

.al-wrap {
    width: min(100% - 2.5rem, var(--al-wrap));
    margin-inline: auto;
}

.al-kicker {
    font-family: var(--al-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--al-ink-soft);
    margin-bottom: 0.75rem;
}

.al-lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--al-ink-soft);
    max-width: 40rem;
}

h1, h2, h3 {
    font-family: var(--al-sans);
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--al-ink);
}

h1 { font-size: clamp(2.15rem, 4.4vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

/* ——— Header ——— */
.al-header {
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--al-header-h);
    background: rgba(255, 252, 245, 0.55);
    border-bottom: 1px solid rgba(10, 10, 10, 0.06);
    backdrop-filter: blur(14px);
}

.al-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.al-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

.al-logo img {
    height: 2.05rem;
    width: auto;
    max-width: none;
    display: block;
}

.al-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.al-nav > a,
.al-drop > summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
    border-radius: var(--al-radius);
}

.al-drop > summary {
    list-style: none;
}

.al-nav > a:hover,
.al-drop > summary:hover,
.al-nav > a.is-active,
body[data-nav^="solucoes"] .al-drop[data-nav-item="solucoes"] > summary,
body[data-nav^="plataforma"] .al-drop[data-nav-item="plataforma"] > summary,
body[data-nav="academy"] .al-nav > a[data-nav-link="academy"],
body[data-nav="metodo"] .al-nav > a[data-nav-link="metodo"],
body[data-nav="cases"] .al-nav > a[data-nav-link="cases"],
body[data-nav="empresa"] .al-nav > a[data-nav-link="empresa"] {
    background: rgba(10, 10, 10, 0.04);
    box-shadow: inset 0 -2px 0 var(--al-accent);
}

.al-drop {
    position: relative;
}

.al-drop > summary::-webkit-details-marker { display: none; }

.al-drop__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 16rem;
    background: var(--al-surface);
    border: 1px solid var(--al-line);
    box-shadow: none;
    padding: 0.4rem;
    z-index: 90;
}

.al-drop__menu a {
    display: block;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.al-drop__menu a:hover { background: rgba(10, 10, 10, 0.04); }
.al-drop__menu a small {
    display: block;
    font-weight: 500;
    color: var(--al-ink-soft);
    font-size: 0.75rem;
}

.al-header__cta {
    flex-shrink: 0;
}

.al-nav-toggle {
    display: none;
    margin-left: auto;
    border: 1px solid var(--al-line);
    background: var(--al-surface);
    padding: 0.45rem 0.7rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

/* ——— Buttons ——— */
.al-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.15rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--al-radius);
    cursor: pointer;
    line-height: 1.2;
}

.al-btn--primary {
    background: var(--al-accent);
    color: var(--al-accent-ink);
    border-color: var(--al-accent);
}

.al-btn--primary:hover { filter: brightness(0.97); }

.al-btn--ghost {
    background: var(--al-surface);
    border-color: var(--al-ink);
    color: var(--al-ink);
}

.al-btn--ghost:hover { background: var(--al-paper); }

.al-btn--lg { padding: 0.9rem 1.4rem; font-size: 1rem; }

.al-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

/* ——— Sections ——— */
.al-section {
    padding: 5rem 0;
    background: var(--al-surface);
}

.al-section--tight { padding: 3rem 0; }

.al-section--alt {
    background: var(--al-paper);
}

.al-section--ink {
    background: var(--al-ink);
    color: #f5f5f5;
}

.al-section--ink h1,
.al-section--ink h2,
.al-section--ink h3 { color: #f5f5f5; }

.al-section--ink .al-kicker,
.al-section--ink .al-lead { color: rgba(245, 245, 245, 0.72); }

.al-section--ink .al-btn--ghost {
    background: transparent;
    border-color: rgba(245, 245, 245, 0.7);
    color: #f5f5f5;
}

.al-section--ink .al-btn--ghost:hover {
    background: var(--al-accent);
    border-color: var(--al-accent);
    color: var(--al-ink);
}

.al-section--ink .al-compare th,
.al-section--ink .al-compare td { border-color: rgba(245, 245, 245, 0.14); }

.al-section--ink .al-compare th {
    background: rgba(245, 245, 245, 0.06);
    color: #f5f5f5;
}

.al-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.al-section__head {
    max-width: 42rem;
    margin-bottom: 2.25rem;
}

.al-section__head h2 { margin-bottom: 0.85rem; }

/* ——— Hero ——— */
.al-hero {
    padding: 5rem 0 5.5rem;
    background: transparent;
    border-bottom: 1px solid var(--al-line);
}

.al-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.al-hero p.al-lead { margin-top: 1.35rem; font-size: 1.15rem; max-width: 34rem; }

.al-mark {
    display: inline;
    background: var(--al-accent);
    padding: 0 0.12em;
    box-decoration-break: clone;
}

/* ——— Architecture diagram ——— */
.al-arch {
    display: grid;
    gap: 0.75rem;
    counter-reset: arch;
}

.al-arch__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.al-arch__node {
    background: var(--al-surface);
    border: 1px solid var(--al-line);
    border-left: 3px solid var(--al-accent);
    padding: 1.35rem 1.4rem;
    text-decoration: none;
    min-height: 6.25rem;
    border-radius: var(--al-radius);
}

.al-arch__node::before {
    counter-increment: arch;
    content: counter(arch, decimal-leading-zero);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--al-accent);
    margin-bottom: 0.45rem;
}

.al-arch__node strong {
    display: block;
    font-family: var(--al-sans);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--al-ink);
}

.al-arch__node span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--al-ink-soft);
}

.al-arch__node--span {
    grid-column: 1 / -1;
    background: var(--al-paper);
    color: var(--al-ink);
    text-align: left;
    min-height: auto;
}

.al-arch__node--span span { color: var(--al-ink-soft); }

.al-arch__node:hover { border-color: var(--al-ink); border-left-color: var(--al-accent); }

.al-arch__aslam {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.35rem;
}

.al-arch__aslam a { text-decoration: underline; text-underline-offset: 3px; }

/* ——— Cards / lists ——— */
.al-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.al-card {
    background: var(--al-surface);
    border: 1px solid var(--al-line);
    border-radius: var(--al-radius);
    padding: 1.6rem 1.55rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.al-card:hover { border-color: var(--al-ink); }

.al-card h3 { margin-top: 0.2rem; }

.al-card p { color: var(--al-ink-soft); font-size: 0.98rem; font-weight: 400; }

.al-card__go {
    margin-top: auto;
    padding-top: 0.8rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--al-ink);
}

.al-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.al-pill {
    border: 1px solid var(--al-line);
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.al-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.al-compare th,
.al-compare td {
    text-align: left;
    padding: 0.85rem 0.9rem;
    border-bottom: 1px solid var(--al-line);
    vertical-align: top;
}

.al-compare th {
    font-family: var(--al-sans);
    font-weight: 700;
    background: var(--al-paper);
}

.al-compare td:first-child { font-weight: 700; width: 22%; }

.al-steps {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--al-line);
}

.al-step {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--al-line);
}

.al-step__n {
    font-family: var(--al-sans);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--al-accent);
}

.al-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.al-trust article {
    border-top: 3px solid var(--al-accent);
    padding-top: 0.9rem;
}

.al-trust h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.al-trust p { font-size: 0.92rem; color: var(--al-ink-soft); }

.al-quote {
    font-family: var(--al-sans);
    font-weight: 800;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    letter-spacing: -0.03em;
    line-height: 1.3;
    max-width: 38rem;
}

ul.al-list {
    margin: 1rem 0 0 1.1rem;
    color: var(--al-ink-soft);
}

ul.al-list li { margin: 0.35rem 0; }

.al-page-hero {
    padding: 3.75rem 0 2.75rem;
    background: transparent;
    border-bottom: 1px solid var(--al-line);
}

.al-page-hero .al-lead { margin-top: 1rem; }

.al-crumb {
    font-size: 0.85rem;
    color: var(--al-ink-soft);
    margin-bottom: 0.85rem;
}

.al-crumb a { text-decoration: none; font-weight: 600; color: var(--al-ink); }

.al-related {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ——— Form ——— */
.al-form-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
    align-items: start;
}

.al-form {
    background: var(--al-surface);
    border: 1px solid var(--al-line);
    padding: 1.6rem;
    display: grid;
    gap: 0.85rem;
    border-radius: var(--al-radius);
}

.al-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.al-field input,
.al-field select,
.al-field textarea {
    width: 100%;
    font: inherit;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--al-line);
    background: #fff;
    color: var(--al-ink);
}

.al-field input:focus,
.al-field select:focus,
.al-field textarea:focus {
    outline: 2px solid var(--al-accent);
    border-color: var(--al-ink);
}

.al-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.al-form-feedback {
    font-size: 0.9rem;
    font-weight: 600;
}

.al-form-feedback--error { color: #9b1c1c; }
.al-form-feedback--success { color: #166534; }

.al-form--done { display: none; }
.al-form.is-success .al-form__fields { display: none; }
.al-form.is-success .al-form--done { display: block; }

.al-form--done h3 { margin-bottom: 0.5rem; }

.al-form > .al-btn,
.al-form__fields > .al-btn {
    width: 100%;
}

.al-form__fields {
    display: grid;
    gap: 0.85rem;
}

/* Modal do formulário (abre sem sair da página) */
.al-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.25rem;
    overflow: auto;
}

.al-modal[hidden] {
    display: none;
}

.al-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.45);
}

.al-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 64rem);
    margin: 4rem auto 2rem;
    background: var(--al-paper, #f5f5f5);
    border: 1px solid var(--al-line, rgba(10, 10, 10, 0.12));
    border-radius: 0.75rem;
    padding: 1.75rem 1.5rem 1.6rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.al-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--al-ink, #0a0a0a);
    cursor: pointer;
    border-radius: 0.35rem;
}

.al-modal__close:hover {
    background: rgba(10, 10, 10, 0.06);
}

.al-modal .al-form-grid {
    gap: 2rem;
}

.al-modal h2 {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
}

body.al.ma5 #contato,
body.al.ma5 #contato h2,
body.al.ma5 .al-modal,
body.al.ma5 .al-modal h2 {
    font-family: var(--al-sans);
}

/* ——— Footer ——— */
.al-footer {
    background: var(--al-ink);
    color: #f5f5f5;
    padding: 3rem 0 1.5rem;
    border-top: none;
}

.al-footer a { color: inherit; text-decoration: none; }
.al-footer a:hover { color: var(--al-accent); text-decoration: none; }

.al-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245, 245, 245, 0.14);
}

.al-footer h3 {
    font-family: var(--al-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    color: rgba(245, 245, 245, 0.55);
}

.al-footer ul { list-style: none; }
.al-footer li { margin: 0.35rem 0; font-size: 0.92rem; font-weight: 400; }

.al-footer__logo { height: 2rem; width: auto; margin-bottom: 0.9rem; }
.al-footer__mondi {
    height: 1.4rem;
    width: auto;
    margin-top: 1.1rem;
    opacity: 0.85;
}

.al-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1.15rem;
    font-size: 0.82rem;
    color: rgba(245, 245, 245, 0.55);
}

/* ——— Cases template ——— */
.al-case-flow {
    display: grid;
    gap: 0.65rem;
    counter-reset: case;
}

.al-case-flow article {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--al-line);
}

.al-case-flow strong {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.al-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    background: var(--al-paper);
    border-left: 3px solid var(--al-accent);
    font-size: 0.95rem;
}

/* ——— Mobile ——— */
@media (max-width: 960px) {
    .al-hero__grid,
    .al-split,
    .al-form-grid,
    .al-cards,
    .al-trust,
    .al-related,
    .al-arch__row,
    .al-footer__grid {
        grid-template-columns: 1fr;
    }

    .al-nav-toggle { display: inline-flex; }

    .al-nav {
        display: none;
        position: absolute;
        top: var(--al-header-h);
        left: 0;
        right: 0;
        background: var(--al-surface);
        border-bottom: 1px solid var(--al-line);
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1.25rem 1rem;
        margin: 0;
    }

    body.al-nav-open .al-nav { display: flex; }

    .al-drop__menu {
        position: static;
        box-shadow: none;
        border: 0;
        background: transparent;
        padding: 0 0 0 0.6rem;
    }

    .al-compare { display: block; overflow-x: auto; }

    .al-form-row { grid-template-columns: 1fr; }

    .al-case-flow article { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .al-wrap { width: min(100% - 1.5rem, var(--al-wrap)); }
    .al-hero { padding-top: 2.5rem; }
    .al-section { padding: 3rem 0; }
}

/* Sales page embeds the classic /v2 landing inside the site chrome */
body.al.ma5 .al-header,
body.al.ma5 .al-footer,
body.al.ma5 .al-nav {
    font-family: var(--al-sans);
}

body.al.ma5 main,
body.al.ma5 .ma5-modal {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

body.al.ma5 .ma5-hero {
    padding-top: 3rem;
}

body.al.ma5 .ma5-modal {
    z-index: 120;
}

@media (min-width: 1024px) {
    body.al.ma5 .ma5-hero {
        padding-top: 3.25rem;
    }
}

@media (max-width: 1023px) {
    body.al.ma5 .ma5-hero {
        padding-top: 1.5rem;
    }
}

/* Chat-embed flutuante (global) */
.landing-float-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: auto;
}

.landing-float-chat {
    position: static;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: block;
    line-height: 0;
}

.landing-float-chat__btn {
    width: 60px;
    height: 60px;
    background: var(--al-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 196, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-float-chat__btn svg {
    width: 1.65rem;
    height: 1.65rem;
    color: var(--al-accent-ink);
}

.landing-float-chat:hover .landing-float-chat__btn {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(255, 196, 0, 0.55);
}

.landing-float-chat:focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 4px;
    border-radius: 50%;
}

