/* Instrument Sans (SIL Open Font License), servida localmente. */
@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/instrument-sans-latin-700-normal.woff2') format('woff2');
}

/* Mesma base visual do CRMEdu.Online, com cor de destaque própria para não confundir os dois produtos. */
:root {
    --primary-50: #f5f3ff;
    --primary-100: #ede9fe;
    --primary-200: #ddd6fe;
    --primary-300: #c4b5fd;
    --primary-400: #a78bfa;
    --primary-500: #7c3aed;
    --primary-600: #6d28d9;
    --primary-700: #5b21b6;
    --primary-800: #4c1d95;
    --primary-900: #2e1065;

    --soon-border: #fde68a;

    --neutral-50: #f7f9fc;
    --neutral-100: #eef2f7;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;

    --whatsapp: #25d366;
    --danger: #dc2626;

    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --header-height: 5rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--neutral-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

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

img {
    height: auto;
}

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

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.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;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0.75rem;
    z-index: 60;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-800);
}

.skip-link:focus {
    top: 0.75rem;
}

.container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.text-primary {
    color: var(--primary-500);
}

/* Ícones */
.icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 1rem;
    height: 1rem;
    stroke-width: 2;
}

.icon--lg {
    width: 1.75rem;
    height: 1.75rem;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
}

.icon-box--lg {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn--sm {
    padding: 0.5rem 1rem;
}

.btn--block {
    width: 100%;
}

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

.btn--primary:hover {
    background: var(--primary-600);
}

.btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.btn--white {
    background: #fff;
    color: var(--primary-800);
}

.btn--white:hover {
    background: var(--primary-50);
}

.btn--outline {
    border-color: var(--neutral-300);
    background: #fff;
    color: var(--neutral-800);
}

.btn--outline:hover {
    border-color: var(--primary-500);
    color: var(--primary-700);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* Chips e selos */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--neutral-200);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-800);
}

.chip--logo {
    padding-left: 0.5rem;
}

.chip img {
    width: 1rem;
    height: 1rem;
}

.eyebrow {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: var(--primary-50);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-700);
}

/* Cabeçalho */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 4px solid var(--primary-500);
    background: #fff;
    transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
    padding-block: 0.75rem;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--neutral-800);
}

.brand__name span {
    color: var(--primary-500);
}

.brand--light .brand__name {
    color: #fff;
}

.brand--light .brand__name span {
    color: var(--primary-300);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--neutral-700);
}

.menu-toggle:hover {
    background: var(--neutral-100);
}

.site-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.site-nav.is-open {
    display: flex;
}

.site-nav__link {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--primary-700);
}

.site-nav__cta {
    margin-top: 0.5rem;
}

.brand__name,
.site-nav__link,
.site-nav__cta {
    white-space: nowrap;
}

@media (min-width: 70rem) {
    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-nav__cta {
        margin-top: 0;
        margin-left: 0.5rem;
    }
}

/* Hero */
.hero__grid {
    display: grid;
    align-items: center;
    gap: 3rem;
    padding-block: 4rem;
}

.hero__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

.hero__subtitle {
    display: block;
    margin-top: 0.75rem;
    font-size: 1.5rem;
    line-height: 2rem;
    color: var(--neutral-800);
}

.hero__lead {
    max-width: 36rem;
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: var(--neutral-700);
}

.hero__chips {
    margin-top: 1.5rem;
}

.hero__media {
    position: relative;
}

.hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    background: var(--primary-50);
}

.hero__badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: -2rem 1rem 0;
    position: relative;
    padding: 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    color: var(--neutral-700);
}

.hero__badge strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-800);
}

@media (min-width: 40rem) {
    .hero__badge {
        position: absolute;
        left: -1.5rem;
        bottom: 1.5rem;
        max-width: 22rem;
        margin: 0;
    }
}

@media (min-width: 48rem) {
    .hero__title {
        font-size: 3rem;
        line-height: 1.1;
    }
}

@media (min-width: 64rem) {
    .hero__grid {
        grid-template-columns: 1.1fr 1fr;
        padding-block: 6rem;
    }
}

/* Fotos */
.photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    background: var(--neutral-100);
}

.split {
    display: grid;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 64rem) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .split--reverse > :first-child {
        order: 2;
    }
}

.collage {
    position: relative;
    padding-bottom: 3rem;
}

.collage__inset {
    position: absolute;
    right: -0.5rem;
    bottom: 0;
    width: 50%;
}

.collage__inset img {
    border: 4px solid #fff;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 64rem) {
    .collage {
        padding-bottom: 4rem;
    }

    .collage__main {
        width: 88%;
    }

    .collage__inset {
        right: 0;
    }
}

/* Números */
.stats {
    border-block: 1px solid var(--neutral-200);
    background: var(--neutral-50);
}

.stats__grid {
    display: grid;
    gap: 1rem;
    padding-block: 3rem;
}

.stat {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        'value icon'
        'label label'
        'hint hint';
    column-gap: 1rem;
    align-content: start;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.stat .icon-box {
    grid-area: icon;
}

.stat__value {
    grid-area: value;
    font-size: 2rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--primary-700);
    font-variant-numeric: tabular-nums;
}

.stat__label {
    grid-area: label;
    margin-top: 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.stat__hint {
    grid-area: hint;
    margin-top: 0.125rem;
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

@media (min-width: 40rem) {
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Seções */
.section {
    padding-block: 4rem;
    background: #fff;
}

.section--muted {
    background: var(--neutral-50);
}

.section-title {
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
}

.section-title h2,
.section-heading {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

.section-title p {
    margin-top: 0.75rem;
    color: var(--neutral-700);
}

.section-lead {
    margin-top: 1rem;
    line-height: 1.75rem;
    color: var(--neutral-700);
}

.section-lead a,
.checklist a,
.faq__panel a {
    font-weight: 600;
    color: var(--primary-700);
}

.section-lead a:hover,
.checklist a:hover,
.faq__panel a:hover {
    color: var(--primary-800);
}

.transition-phrase {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-800);
}

/* Grades e cards */
.grid {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 40rem) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card,
.step,
.feature {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover,
.feature:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
}

.card--media {
    padding-top: 0;
    overflow: hidden;
}

.card__image {
    width: calc(100% + 3rem);
    max-width: none;
    margin: 0 -1.5rem 1.25rem;
    aspect-ratio: 8 / 5;
    object-fit: cover;
    background: var(--neutral-100);
}

.card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card__title,
.feature__title {
    min-width: 0;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--primary-800);
}

.card__title--spaced {
    margin-top: 1rem;
}

.card__title--spaced + .card__text {
    margin-top: 0.5rem;
}

.card__text {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5rem;
    color: var(--neutral-700);
}

.card__tag {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-700);
}

a.card__tag:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

.step__head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.step__number {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-700);
}

.step__title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--primary-800);
}

.step .card__text {
    margin-top: 0.5rem;
}

.step--soon {
    border-style: dashed;
    border-color: var(--neutral-300);
    background: transparent;
}

.step--soon .step__number,
.step--soon .step__title {
    color: var(--neutral-600);
}

.feature__text {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--neutral-700);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--neutral-700);
}

.checklist li {
    display: flex;
    gap: 0.5rem;
}

.checklist .icon {
    margin-top: 0.25rem;
    color: var(--primary-600);
}

.checklist--lg {
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--neutral-800);
}

@media (min-width: 48rem) {
    .checklist--cols {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
}

/* Abas */
.tabs__list {
    display: flex;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-bottom: 0.25rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tabs__tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.tabs__tab:hover {
    border-color: var(--primary-200);
    color: var(--primary-700);
}

.tabs__tab[aria-selected='true'] {
    border-color: var(--primary-500);
    background: var(--primary-500);
    color: #fff;
}

.tabs__panel .grid {
    margin-top: 1.5rem;
}

@media (min-width: 64rem) {
    .tabs__list {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
    }
}

/* Maia */
.maia {
    display: grid;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    background: #fff;
}

.maia__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--neutral-900);
}

.maia__lead {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-800);
}

@media (min-width: 64rem) {
    .maia {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
}

.maia__demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.audience__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
    transition: background-color 0.15s, color 0.15s;
}

.audience__option:hover {
    color: var(--primary-700);
}

.audience__option[aria-pressed='true'] {
    background: var(--primary-800);
    color: #fff;
}

.chat {
    display: flex;
    flex-direction: column;
    height: 38rem;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    background: var(--neutral-50);
    box-shadow: var(--shadow-lg);
}

.chat__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--primary-800);
    color: #fff;
}

.chat__avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--primary-500);
}

.chat__avatar::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0.625rem;
    height: 0.625rem;
    border: 2px solid var(--primary-800);
    border-radius: 9999px;
    background: var(--whatsapp);
}

.chat__name {
    font-weight: 600;
    line-height: 1.25rem;
}

.chat__status {
    font-size: 0.75rem;
    color: var(--primary-100);
}

.chat__restart {
    margin-left: auto;
    display: inline-flex;
    padding: 0.5rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--primary-100);
}

.chat__restart:hover {
    background: var(--primary-700);
    color: #fff;
}

.chat__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
    min-height: 0;
    padding: 1.25rem;
    overflow-y: auto;
    scrollbar-width: thin;
}

.chat__replies {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0 1.25rem;
}

.chat__replies:not(:empty) {
    padding-bottom: 0.75rem;
}

.chat__reply {
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--primary-300);
    border-radius: 9999px;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-700);
    animation: bubble-in 0.25s ease-out both;
    transition: background-color 0.15s, color 0.15s;
}

.chat__reply:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
}

.chat__composer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--neutral-200);
    background: #fff;
}

.chat__input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    background: var(--neutral-100);
    font-size: 0.875rem;
    color: var(--neutral-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat__input.is-typing {
    color: var(--neutral-900);
}

.chat__input.is-typing::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 1em;
    margin-left: 1px;
    vertical-align: -0.15em;
    background: var(--neutral-900);
    animation: caret 0.8s steps(1) infinite;
}

.chat__send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: var(--neutral-200);
    color: var(--neutral-500);
    transition: background-color 0.15s, color 0.15s, transform 0.15s;
}

.chat__send.is-active {
    background: var(--primary-500);
    color: #fff;
    transform: scale(1.1);
}

.chat__note {
    padding: 0.5rem 1.25rem 0.75rem;
    background: #fff;
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: bubble-in 0.25s ease-out;
}

.msg--bot {
    align-self: flex-start;
    align-items: flex-start;
}

.msg--user {
    align-self: flex-end;
    align-items: flex-end;
}

.msg--grouped {
    margin-top: -0.375rem;
}

.msg__author {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-500);
}

.msg--grouped .msg__author {
    display: none;
}

.msg__time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    color: var(--neutral-500);
}

.msg__tick {
    width: 0.875rem;
    height: 0.875rem;
    stroke-width: 2.5;
    color: var(--primary-500);
}

.bubble {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    line-height: 1.375rem;
}

.bubble--user {
    border-bottom-right-radius: 0.25rem;
    background: var(--primary-500);
    color: #fff;
}

.bubble--bot {
    border: 1px solid var(--neutral-200);
    border-bottom-left-radius: 0.25rem;
    background: #fff;
    color: var(--neutral-800);
}

.bubble--card {
    padding: 0.375rem;
}

.bubble--typing {
    display: inline-flex;
    gap: 0.25rem;
    padding-block: 0.875rem;
}

.bubble--typing span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: var(--neutral-400);
    animation: typing 1s infinite ease-in-out;
}

.bubble--typing span:nth-child(2) {
    animation-delay: 0.15s;
}

.bubble--typing span:nth-child(3) {
    animation-delay: 0.3s;
}

/* Arquivo do boleto enviado pela Maia */
.file {
    width: 17rem;
    max-width: 100%;
}

.file__preview {
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
}

.boleto {
    padding: 0.75rem;
    border-radius: 0.25rem;
    background: #fff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
    font-size: 0.6875rem;
    line-height: 1.1rem;
    color: var(--neutral-600);
}

.boleto__school {
    margin-bottom: 0.375rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px dashed var(--neutral-200);
    font-weight: 700;
    color: var(--primary-800);
}

.boleto__row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.boleto__row strong {
    color: var(--neutral-900);
}

.boleto__row--total {
    margin-top: 0.375rem;
    padding-top: 0.375rem;
    border-top: 1px dashed var(--neutral-200);
    font-weight: 700;
}

.boleto__barcode {
    height: 1.5rem;
    margin-top: 0.5rem;
    background: repeating-linear-gradient(90deg, var(--neutral-900) 0 2px, transparent 2px 3px, var(--neutral-900) 3px 4px, transparent 4px 7px, var(--neutral-900) 7px 10px, transparent 10px 11px);
}

.file__info {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.375rem 0.25rem;
}

.file__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: #fee2e2;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--danger);
}

.file__text {
    flex: 1;
    min-width: 0;
}

.file__name {
    overflow: hidden;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.125rem;
    color: var(--neutral-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file__meta {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--neutral-600);
}

.file__action {
    display: inline-flex;
    padding: 0.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: 9999px;
    background: #fff;
    color: var(--primary-700);
}

.file__action:hover {
    border-color: var(--primary-500);
}

.file__action.is-done,
.pix__copy.is-done {
    border-color: var(--whatsapp);
    color: #15803d;
}

/* PIX copia e cola */
.pix {
    width: 15.5rem;
    max-width: 100%;
    padding: 0.5rem;
}

.pix__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-500);
}

.pix__code {
    display: block;
    margin-top: 0.375rem;
    padding: 0.5rem;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--neutral-100);
    font-size: 0.75rem;
    color: var(--neutral-800);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pix__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-700);
}

.pix__copy:hover {
    border-color: var(--primary-500);
}

@keyframes caret {
    50% {
        opacity: 0;
    }
}

@keyframes typing {
    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes bubble-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Portal */
.portal {
    display: grid;
    align-items: center;
    gap: 2.5rem;
}

.portal .btn {
    margin-top: 2rem;
}

.portal__photo {
    margin-top: 2rem;
}

.portal__grid {
    display: grid;
    gap: 0.75rem;
}

.portal__item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.portal__item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-800);
}

.portal__item p {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: var(--neutral-700);
}

@media (min-width: 40rem) {
    .portal__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .portal {
        grid-template-columns: 1fr 1.3fr;
        gap: 4rem;
    }
}

/* Integrações */
.integrations {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

.integration-group {
    padding: 1.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.integration-group h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-800);
}

.integration-group__text {
    margin: -0.5rem 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--neutral-600);
}

.integrations__more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--neutral-50);
    font-size: 0.875rem;
}

.integrations__more p {
    font-weight: 600;
    color: var(--neutral-900);
}

.integrations__more a {
    font-weight: 600;
    color: var(--primary-700);
}

.integrations__more a:hover {
    color: var(--primary-800);
}

@media (min-width: 40rem) {
    .integrations {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-group--wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 64rem) {
    .integrations {
        grid-template-columns: repeat(3, 1fr);
    }

    .integration-group--wide {
        grid-column: span 2;
    }
}

@media (min-width: 64rem) {
    .integrations {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Segurança */
.panel {
    padding: 2rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    background: #fff;
}

.panel__head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panel__head .section-lead {
    margin-top: 0.5rem;
}

.panel .checklist {
    margin-top: 2rem;
    font-size: 0.9375rem;
    color: var(--neutral-800);
}

@media (min-width: 48rem) {
    .panel {
        padding: 3rem;
    }

    .panel__head {
        flex-direction: row;
        align-items: center;
        gap: 1.25rem;
    }
}

/* FAQ */
.faq {
    max-width: 48rem;
    margin: 2.5rem auto 0;
}

.faq__item {
    border-bottom: 1px solid var(--neutral-200);
}

.faq__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-900);
}

.faq__chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-700);
    transition: transform 0.2s;
}

.faq__button[aria-expanded='true'] .faq__chevron {
    transform: rotate(180deg);
}

.faq__panel p {
    padding-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: var(--neutral-700);
}

/* Contato */
.cta {
    background: var(--primary-800);
    color: #fff;
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 48rem;
    padding-block: 4rem;
    text-align: center;
}

.cta__title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.cta__text {
    margin-top: 0.75rem;
    color: var(--primary-100);
}

.cta__button {
    margin-top: 2rem;
}

.cta__phone {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary-200);
}

@media (min-width: 64rem) {
    .cta__inner {
        padding-block: 5rem;
    }
}

/* Rodapé */
.site-footer {
    padding-bottom: 6rem;
    background: var(--primary-900);
    font-size: 0.875rem;
    color: var(--primary-100);
}

.site-footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-block: 3rem;
}

.site-footer__text {
    margin-top: 0.75rem;
    max-width: 18rem;
}

.site-footer__heading {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.site-footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--primary-800);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (min-width: 40rem) {
    .site-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 64rem) {
    .site-footer__grid {
        grid-template-columns: 1.4fr repeat(4, 1fr);
    }
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

/* WhatsApp flutuante */
.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background: var(--whatsapp);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.whatsapp-float:hover {
    background: #1ebe5d;
}

.whatsapp-float svg {
    width: 2rem;
    height: 2rem;
}

@media (min-width: 40rem) {
    .whatsapp-float {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

/* Gestão acadêmica */
.academic {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.academic__base {
    padding: 2rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-2xl);
    background: #fff;
}

.academic__base h3,
.academic__roadmap-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-800);
}

.academic__roadmap-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.academic__base .checklist {
    font-size: 0.9375rem;
    color: var(--neutral-800);
}

.roadmap {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.roadmap__item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px dashed var(--neutral-300);
    border-radius: var(--radius-xl);
    background: #fff;
}

.roadmap__item h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-800);
}

.roadmap__item p {
    margin-top: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: var(--neutral-700);
}

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--soon-border);
    border-radius: var(--radius-xl);
    background: #fffbeb;
    font-size: 0.875rem;
}

.notice p {
    font-weight: 600;
    color: var(--neutral-900);
}

@media (min-width: 40rem) {
    .roadmap {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .academic {
        grid-template-columns: 1fr 1.6fr;
        align-items: start;
    }
}

/* Portais em breve */
.portal__item--soon {
    border-style: dashed;
    border-color: var(--neutral-300);
}

.portal__item--soon h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Comparativo */
.compare {
    margin-top: 2.5rem;
    overflow-x: auto;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
}

.compare table {
    width: 100%;
    min-width: 34rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.compare th,
.compare td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--neutral-200);
    text-align: left;
    vertical-align: middle;
    color: var(--neutral-800);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
    border-bottom: 0;
}

.compare thead th {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-600);
}

.compare tbody th {
    font-weight: 500;
}

.compare__product {
    width: 11rem;
    text-align: center !important;
}

.compare thead .compare__product {
    font-size: 1rem;
    color: var(--primary-800);
    white-space: nowrap;
}

.compare td > .icon {
    margin-inline: auto;
}

.compare__highlight {
    background: var(--primary-50);
}

.compare__cell {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.compare__yes {
    color: var(--primary-600);
}

.compare__no {
    color: var(--neutral-500);
}

.choose .card {
    align-items: flex-start;
}

.choose .btn {
    margin-top: auto;
}

.choose .card__text {
    margin-bottom: 1.5rem;
}

/* Aviso de cookies (LGPD) */
.consent {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 30rem;
    padding: 1.25rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.consent__text {
    font-size: 0.875rem;
    line-height: 1.375rem;
    color: var(--neutral-700);
}

.consent__text a {
    font-weight: 600;
    color: var(--primary-700);
    text-decoration: underline;
}

.consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

@media (min-width: 40rem) {
    .consent {
        left: 1.5rem;
        bottom: 1.5rem;
    }
}

.site-footer__button {
    padding: 0;
    border: 0;
    background: transparent;
    font-size: inherit;
    color: inherit;
}

.site-footer__button:hover {
    color: #fff;
}

/* Página 404 */
.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 5rem;
    text-align: center;
}

.not-found__code {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-700);
}

.not-found .hero__title {
    margin-top: 0.75rem;
}

.not-found .hero__lead {
    margin-inline: auto;
}

.not-found .btn-group {
    justify-content: center;
}

.not-found__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary-700);
}

.not-found__links a:hover {
    color: var(--primary-800);
    text-decoration: underline;
}

/* Alvos de toque de pelo menos 44px em telas sensíveis ao toque */
@media (pointer: coarse) {
    .btn,
    .site-nav__link,
    .tabs__tab,
    .audience__option,
    .chat__reply,
    .pix__copy,
    .card__tag,
    .integrations__more a,
    .site-footer a,
    .site-footer__button,
    .not-found__links a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
    }

    .chat__restart,
    .file__action {
        align-items: center;
        justify-content: center;
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .site-footer__list {
        gap: 0;
    }
}

/* Animação de entrada (só com JavaScript ativo) */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

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