:root {
    /* Deriva do tema comum em tokens.css. Nenhum valor de cor é redefinido
       aqui: a landing e o login usam a mesma marca da aplicação. */
    --entry-bg: var(--surface-soft);
    --entry-surface: var(--surface);
    --entry-surface-soft: var(--surface-muted);
    --entry-line: var(--border);
    --entry-line-strong: #cdbfa8;
    --entry-ink: var(--text);
    --entry-muted: var(--text-muted);
    --entry-primary: var(--primary);
    --entry-primary-strong: var(--primary-strong);
    --entry-primary-soft: var(--primary-soft);
    --entry-accent: var(--accent);
    --entry-accent-soft: var(--surface-soft);
    --entry-shadow: 0 18px 42px rgba(8, 32, 44, 0.08);
    --entry-shadow-soft: var(--shadow-soft);
    --entry-radius: var(--radius);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--entry-bg);
    color: var(--entry-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

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

button, input {
    font: inherit;
}

.entry-body {
    min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(18, 60, 79, 0.08), transparent 34%),
        linear-gradient(180deg, #faf7f1 0%, #f7f3ec 52%, #f4eee4 100%);
}

.entry-wrap {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

.entry-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(18, 60, 79, 0.08);
    border: 1px solid rgba(18, 60, 79, 0.14);
    color: var(--entry-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: 0.18s ease;
}

.entry-btn--primary {
    background: linear-gradient(135deg, var(--entry-primary) 0%, var(--entry-primary-soft) 100%);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(18, 60, 79, 0.16);
}

.entry-btn--primary:hover {
    background: linear-gradient(135deg, var(--entry-primary-strong) 0%, #1d5a73 100%);
}

.entry-btn--secondary {
    background: #ffffff;
    border-color: var(--entry-line);
    color: var(--entry-ink);
}

.entry-btn--secondary:hover {
    background: var(--entry-surface-soft);
}

.entry-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    transition: padding 0.2s ease, backdrop-filter 0.2s ease, background 0.2s ease;
}

.entry-nav.is-scrolled {
    padding: 12px 0;
    backdrop-filter: blur(14px);
    background: rgba(247, 250, 251, 0.86);
}

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

.entry-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--entry-primary) 0%, var(--entry-primary-strong) 100%);
    color: #f7f3ec;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.entry-brand__text strong,
.entry-brand__text span {
    display: block;
}

.entry-brand__text strong {
    font-size: 16px;
}

.entry-brand__text span {
    color: var(--entry-muted);
    font-size: 12px;
}

.entry-nav__links {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--entry-muted);
    font-size: 13px;
    font-weight: 600;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
    gap: 26px;
    align-items: start;
    position: relative;
    padding: 30px 0 44px;
}

.landing-hero > *,
.landing-panel,
.landing-motion-board,
.landing-motion-board__grid,
.landing-preview,
.landing-preview__window {
    min-width: 0;
    max-width: 100%;
}

.landing-matrix-canvas {
    position: absolute;
    inset: -28px -24px 0 -24px;
    width: calc(100% + 48px);
    height: calc(100% + 28px);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.landing-panel {
    padding: 28px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--entry-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.landing-panel > * {
    position: relative;
    z-index: 1;
}

.landing-panel--hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
}

.landing-panel--hero p {
    margin: 0;
    max-width: 720px;
    color: var(--entry-muted);
    font-size: 17px;
    line-height: 1.65;
}

.landing-panel--hero {
    padding: 42px 28px 28px;
    border-color: rgba(215, 221, 213, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.landing-panel--hero::after,
.landing-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 60, 79, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 60, 79, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 82%);
    opacity: 0.42;
    pointer-events: none;
    animation: gridDrift 18s linear infinite;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.landing-motion-board {
    position: relative;
    min-height: 168px;
    margin-top: 24px;
    padding: 16px;
    border-radius: var(--entry-radius);
    border: 1px solid rgba(199, 211, 202, 0.92);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(244, 248, 244, 0.72)),
        repeating-linear-gradient(90deg, rgba(18, 60, 79, 0.035) 0 1px, transparent 1px 36px);
    box-shadow: 0 14px 30px rgba(8, 32, 44, 0.045);
    overflow: hidden;
}

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

.landing-motion-board__header span {
    color: var(--entry-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-motion-board__header strong {
    color: #2f5246;
    font-size: 12px;
}

.landing-motion-board__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.landing-motion-cell {
    min-height: 24px;
    border-radius: 6px;
    border: 1px solid #e3d9c9;
    background: rgba(255, 255, 255, 0.82);
    animation: matrixCell 4.8s ease-in-out infinite;
    animation-delay: var(--delay);
}

.landing-motion-cell.is-on {
    background: rgba(18, 60, 79, 0.12);
    border-color: rgba(18, 60, 79, 0.22);
}

.landing-motion-cell.is-hot {
    background: rgba(140, 113, 52, 0.14);
    border-color: rgba(140, 113, 52, 0.24);
}

.landing-motion-card {
    position: absolute;
    left: 16px;
    min-width: 158px;
    padding: 9px 11px;
    border-radius: 7px;
    border: 1px solid rgba(18, 60, 79, 0.2);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(8, 32, 44, 0.1);
    color: #2f5246;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.landing-motion-card--a {
    top: 84px;
    animation: questionCardA 7.2s cubic-bezier(.45, 0, .2, 1) infinite;
}

.landing-motion-card--b {
    top: 122px;
    animation: questionCardB 8s cubic-bezier(.45, 0, .2, 1) infinite;
}

.landing-motion-card--c {
    top: 46px;
    animation: questionCardC 8.6s cubic-bezier(.45, 0, .2, 1) infinite;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.landing-stat {
    padding: 16px;
    border-radius: var(--entry-radius);
    border: 1px solid rgba(215, 221, 213, 0.78);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--entry-shadow-soft);
}

.landing-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.landing-stat span {
    display: block;
    color: var(--entry-muted);
    font-size: 12px;
    line-height: 1.55;
}

.landing-activity-strip {
    margin-top: 22px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid #e3d9c9;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(8px);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.landing-activity-track {
    display: flex;
    width: max-content;
    gap: 10px;
    padding: 8px;
    animation: activityRail 18s linear infinite;
}

.landing-activity-track span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #faf7f1;
    border: 1px solid #e3d9c9;
    color: #2f5246;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.landing-board {
    display: grid;
    gap: 14px;
}

.landing-preview {
    display: grid;
    gap: 16px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    box-shadow: var(--entry-shadow);
}

.landing-preview__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
}

.landing-preview__top h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.landing-preview__top span {
    color: var(--entry-muted);
    font-size: 12px;
}

.landing-preview__presence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--entry-line);
    color: #3f6b57;
    font-size: 11px;
    font-weight: 700;
}

.landing-preview__pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--entry-primary);
    box-shadow: 0 0 0 rgba(18, 60, 79, 0.4);
    animation: entryPulse 2s ease-in-out infinite;
}

.landing-preview__window {
    position: relative;
    border-radius: var(--entry-radius);
    overflow: hidden;
    border: 1px solid #cad4cc;
    background: #fdfbf6;
    box-shadow: var(--entry-shadow-soft);
}

.landing-preview__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -30%;
    height: 34%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 105, 78, 0.12) 48%, transparent 100%);
    mix-blend-mode: multiply;
    animation: previewScan 4.8s ease-in-out infinite;
}

.landing-preview__scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 105, 78, 0.72), transparent);
}

.landing-preview__chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #e3d9c9;
    background: rgba(238, 243, 239, 0.92);
}

.landing-preview__chrome strong {
    font-size: 12px;
    font-weight: 700;
    color: #2f5246;
}

.landing-preview__chrome-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.landing-preview__chrome-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f4eee4;
}

.landing-preview__body {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 350px;
}

.landing-preview__sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 13px;
    background: linear-gradient(180deg, #faf7f1 0%, #f4eee4 100%);
    border-right: 1px solid #e3d9c9;
}

.landing-preview__navitem {
    padding: 10px 12px;
    border-radius: 7px;
    color: #3f6b57;
    font-size: 12px;
    font-weight: 700;
}

.landing-preview__navitem.is-active {
    background: #ffffff;
    color: #2f5246;
    box-shadow: 0 8px 18px rgba(8, 32, 44, 0.08);
}

.landing-preview__content {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #fdfbf6 100%);
}

.landing-preview__toolbar,
.landing-preview__cards,
.landing-preview__footer {
    display: grid;
    gap: 10px;
}

.landing-preview__toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-preview__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #faf7f1;
    border: 1px solid #e3d9c9;
    color: #7a685c;
    font-size: 11px;
    font-weight: 700;
}

.landing-preview__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-preview__metric {
    padding: 14px;
    border-radius: var(--entry-radius);
    background: linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
    border: 1px solid #e3d9c9;
    animation: floatCard 4.2s ease-in-out infinite;
}

.landing-preview__metric:nth-child(2) {
    animation-delay: 0.5s;
}

.landing-preview__metric strong,
.landing-preview__metric span {
    display: block;
}

.landing-preview__metric strong {
    margin-bottom: 6px;
    font-size: 24px;
    color: #2f5246;
}

.landing-preview__metric span {
    color: #3f6b57;
    font-size: 12px;
}

.landing-preview__queue {
    padding: 14px;
    border-radius: var(--entry-radius);
    border: 1px solid #e3d9c9;
    background: #ffffff;
}

.landing-preview__queue-head,
.landing-preview__row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.landing-preview__queue-head {
    margin-bottom: 10px;
}

.landing-preview__queue-head strong,
.landing-preview__row strong,
.landing-preview__row span,
.landing-preview__row em,
.landing-preview__queue-head span {
    display: block;
}

.landing-preview__queue-head strong,
.landing-preview__row strong {
    font-size: 13px;
}

.landing-preview__queue-head span,
.landing-preview__row span,
.landing-preview__row em {
    color: var(--entry-muted);
    font-size: 11px;
    line-height: 1.55;
}

.landing-preview__row + .landing-preview__row {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f4eee4;
}

.landing-preview__row em {
    font-style: normal;
    font-weight: 700;
}

.landing-preview__row.is-processing {
    margin-left: -6px;
    margin-right: -6px;
    padding: 10px 6px;
    border-radius: 7px;
    background: rgba(18, 60, 79, 0.06);
    animation: processingGlow 2.8s ease-in-out infinite;
}

.landing-preview__row-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--entry-primary);
    box-shadow: 0 0 0 rgba(18, 60, 79, 0.38);
    animation: entryPulse 1.6s ease-in-out infinite;
    vertical-align: middle;
}

.landing-preview__pipeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: var(--entry-radius);
    border: 1px solid #e3d9c9;
    background: #fdfbf6;
    overflow: hidden;
}

.landing-preview__pipeline span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    color: #7a685c;
    font-size: 10px;
    font-weight: 800;
}

.landing-preview__pipeline i {
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    width: calc((100% - 20px) / 4);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(18, 60, 79, 0.16), rgba(140, 113, 52, 0.2));
    animation: pipelineStep 4.4s cubic-bezier(.42, 0, .22, 1) infinite;
}

.landing-preview__bars {
    display: grid;
    gap: 10px;
}

.landing-preview__barline span {
    display: block;
    margin-bottom: 6px;
    color: #3f6b57;
    font-size: 11px;
    font-weight: 700;
}

.landing-preview__bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #f4eee4;
}

.landing-preview__bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #3f6b57 0%, #7f6a35 100%);
    animation: growBar 1.1s ease forwards, barBreathe 2.6s ease-in-out 1.2s infinite;
}

.landing-preview__footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-preview__footer-card {
    padding: 14px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: rgba(255, 255, 255, 0.88);
}

.landing-preview__footer-card strong,
.landing-preview__footer-card span {
    display: block;
}

.landing-preview__footer-card strong {
    margin-bottom: 6px;
    font-size: 13px;
}

.landing-preview__footer-card span {
    color: var(--entry-muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.landing-board__header h2 {
    margin: 0;
    font-size: 22px;
}

.landing-board__header span {
    color: var(--entry-muted);
    font-size: 12px;
}

.landing-board__list {
    display: grid;
    gap: 12px;
}

.landing-board__item {
    padding: 16px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: #ffffff;
}

.landing-board__item strong,
.landing-board__item span {
    display: block;
}

.landing-board__item strong {
    margin-bottom: 6px;
    font-size: 15px;
}

.landing-board__item span {
    color: var(--entry-muted);
    font-size: 12px;
    line-height: 1.55;
}

.landing-board__item--highlight {
    border-color: rgba(18, 60, 79, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, #faf7f1 100%);
}

.landing-section {
    padding: 30px 0 16px;
}

.landing-section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.landing-section__header h2 {
    margin: 0 0 6px;
    font-size: 28px;
    letter-spacing: 0;
}

.landing-section__header p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 14px;
    line-height: 1.6;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.landing-card {
    padding: 22px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: rgba(255, 255, 255, 0.88);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover,
.landing-step:hover,
.landing-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--entry-shadow-soft);
}

.landing-card__eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--entry-accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-card h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.landing-card p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 13px;
    line-height: 1.65;
}

.landing-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.landing-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--entry-surface-soft);
    border: 1px solid var(--entry-line);
    color: #3f6b57;
    font-size: 11px;
    font-weight: 600;
}

.landing-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.landing-step {
    padding: 18px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    margin-bottom: 12px;
    background: var(--entry-accent-soft);
    color: var(--entry-accent);
    font-size: 12px;
    font-weight: 800;
}

.landing-step h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.landing-step p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 12px;
    line-height: 1.6;
}

.landing-governance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.landing-note {
    padding: 20px;
    border-radius: var(--entry-radius);
    border: 1px solid var(--entry-line);
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-note strong {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.landing-note p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 13px;
    line-height: 1.6;
}

.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0 36px;
    color: var(--entry-muted);
    font-size: 12px;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

.login-shell {
    width: min(980px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.login-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--entry-line);
    background: #ffffff;
    box-shadow: var(--entry-shadow);
}

.login-side {
    padding: 34px 30px;
    background: linear-gradient(180deg, #2f5246 0%, #1d2730 100%);
    color: #f4eee4;
}

.login-side h1 {
    margin: 18px 0 12px;
    font-size: 42px;
    line-height: 0.98;
    letter-spacing: 0;
}

.login-side p {
    margin: 0;
    color: rgba(240, 244, 239, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.login-side__list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.login-side__item {
    padding: 14px;
    border-radius: var(--entry-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.login-side__item strong,
.login-side__item span {
    display: block;
}

.login-side__item strong {
    margin-bottom: 6px;
    font-size: 14px;
}

.login-side__item span {
    color: rgba(240, 244, 239, 0.7);
    font-size: 12px;
    line-height: 1.55;
}

.login-form-panel {
    padding: 34px 30px;
}

.login-form-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.login-form-panel__back {
    color: var(--entry-muted);
    font-size: 12px;
    font-weight: 600;
}

.login-form-panel h2 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0;
}

.login-form-panel p {
    margin: 0;
    color: var(--entry-muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.login-field {
    display: grid;
    gap: 6px;
}

.login-field label {
    color: var(--entry-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-field input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--entry-line-strong);
    border-radius: 8px;
    background: var(--entry-surface-soft);
    color: var(--entry-ink);
}

.login-field input:focus {
    outline: none;
    border-color: var(--entry-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18, 60, 79, 0.12);
}

.login-error {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fceeee;
    border: 1px solid #efcaca;
    color: #a12f2f;
    font-size: 13px;
    line-height: 1.5;
}

.login-error.is-visible {
    display: block;
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--entry-line);
    color: var(--entry-muted);
    font-size: 12px;
}

.app-loading {
    min-height: 100vh;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

@keyframes entryPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(18, 60, 79, 0.36);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(18, 60, 79, 0);
    }
}

@keyframes gridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 56px 56px, 56px 56px;
    }
}

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

@keyframes previewScan {
    0%, 18% {
        transform: translateY(0);
        opacity: 0;
    }
    32% {
        opacity: 1;
    }
    72% {
        opacity: 1;
    }
    100% {
        transform: translateY(390%);
        opacity: 0;
    }
}

@keyframes processingGlow {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(18, 60, 79, 0.06);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(18, 60, 79, 0.18), 0 8px 18px rgba(18, 60, 79, 0.08);
    }
}

@keyframes pipelineStep {
    0%, 18% {
        transform: translateX(0);
    }
    25%, 43% {
        transform: translateX(100%);
    }
    50%, 68% {
        transform: translateX(200%);
    }
    75%, 93% {
        transform: translateX(300%);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes matrixCell {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    45% {
        transform: scale(0.96);
        opacity: 1;
    }
    55% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes questionCardA {
    0% {
        transform: translate3d(-8px, 0, 0);
        opacity: 0;
    }
    12%, 42% {
        transform: translate3d(168px, -20px, 0);
        opacity: 1;
    }
    62%, 84% {
        transform: translate3d(360px, 8px, 0) scale(0.92);
        opacity: 0.82;
    }
    100% {
        transform: translate3d(430px, 8px, 0) scale(0.88);
        opacity: 0;
    }
}

@keyframes questionCardB {
    0%, 8% {
        transform: translate3d(-12px, 0, 0);
        opacity: 0;
    }
    24%, 52% {
        transform: translate3d(210px, -42px, 0);
        opacity: 1;
    }
    76%, 92% {
        transform: translate3d(390px, -66px, 0) scale(0.92);
        opacity: 0.78;
    }
    100% {
        transform: translate3d(450px, -66px, 0) scale(0.88);
        opacity: 0;
    }
}

@keyframes questionCardC {
    0%, 18% {
        transform: translate3d(-16px, 0, 0);
        opacity: 0;
    }
    34%, 58% {
        transform: translate3d(150px, 48px, 0);
        opacity: 1;
    }
    80%, 94% {
        transform: translate3d(330px, 72px, 0) scale(0.92);
        opacity: 0.78;
    }
    100% {
        transform: translate3d(420px, 72px, 0) scale(0.88);
        opacity: 0;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes barBreathe {
    0%, 100% {
        filter: saturate(1);
        opacity: 0.92;
    }
    50% {
        filter: saturate(1.25);
        opacity: 1;
    }
}

@keyframes growBar {
    from {
        width: 0;
    }
    to {
        width: var(--bar-target);
    }
}

@media (max-width: 960px) {
    .landing-hero,
    .landing-card-grid,
    .landing-flow,
    .landing-governance,
    .login-card {
        grid-template-columns: 1fr;
    }

    .landing-preview__body,
    .landing-preview__toolbar,
    .landing-preview__cards,
    .landing-preview__footer {
        grid-template-columns: 1fr;
    }

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

    .entry-nav,
    .landing-section__header,
    .landing-footer,
    .login-form-panel__top {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .entry-wrap,
    .login-shell {
        width: min(100%, calc(100% - 24px));
    }

    .landing-panel,
    .login-side,
    .login-form-panel {
        padding: 22px 18px;
    }

    .landing-panel--hero h1,
    .login-side h1,
    .login-form-panel h2 {
        font-size: 34px;
    }

    .entry-nav__links {
        display: none;
    }

    .landing-matrix-canvas {
        display: none;
    }

    .landing-motion-board {
        min-height: 204px;
        padding: 14px;
    }

    .landing-motion-board__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .landing-motion-board__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-motion-card {
        min-width: 128px;
        max-width: calc(100% - 28px);
        font-size: 10px;
    }

    .landing-motion-card--a {
        animation-name: questionCardMobileA;
    }

    .landing-motion-card--b {
        animation-name: questionCardMobileB;
    }

    .landing-motion-card--c {
        animation-name: questionCardMobileC;
    }
}

@keyframes questionCardMobileA {
    0% {
        transform: translate3d(-8px, 0, 0);
        opacity: 0;
    }
    12%, 42% {
        transform: translate3d(62px, -20px, 0);
        opacity: 1;
    }
    62%, 84% {
        transform: translate3d(128px, 8px, 0) scale(0.94);
        opacity: 0.82;
    }
    100% {
        transform: translate3d(170px, 8px, 0) scale(0.9);
        opacity: 0;
    }
}

@keyframes questionCardMobileB {
    0%, 8% {
        transform: translate3d(-12px, 0, 0);
        opacity: 0;
    }
    24%, 52% {
        transform: translate3d(72px, -36px, 0);
        opacity: 1;
    }
    76%, 92% {
        transform: translate3d(138px, -54px, 0) scale(0.94);
        opacity: 0.78;
    }
    100% {
        transform: translate3d(178px, -54px, 0) scale(0.9);
        opacity: 0;
    }
}

@keyframes questionCardMobileC {
    0%, 18% {
        transform: translate3d(-16px, 0, 0);
        opacity: 0;
    }
    34%, 58% {
        transform: translate3d(54px, 44px, 0);
        opacity: 1;
    }
    80%, 94% {
        transform: translate3d(120px, 62px, 0) scale(0.94);
        opacity: 0.78;
    }
    100% {
        transform: translate3d(166px, 62px, 0) scale(0.9);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.mm-landing) *,
    body:not(.mm-landing) *::before,
    body:not(.mm-landing) *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .landing-matrix-canvas {
        display: none;
    }
}

/* MatrizMed landing: modelo institucional com canvas animado */
.mm-landing {
    --mm-night: #08202c;
    --mm-night-2: #0c2a39;
    --mm-green: #123c4f;
    --mm-green-2: #1d5a73;
    --mm-gold: #c39a52;
    --mm-gold-soft: #e2cf9a;
    --mm-cream: #f7f3ec;
    --mm-paper: #faf7f1;
    --mm-paper-2: #f4eee4;
    --mm-ink: #1d2730;
    --mm-muted: #5c6f7a;
    --mm-border: #e3d9c9;
    --mm-radius: 8px;
    background: var(--mm-paper);
    color: var(--mm-ink);
}

.mm-landing .mm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px clamp(18px, 4vw, 44px);
    color: #ffffff;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
}

.mm-landing .mm-nav.scrolled,
.mm-landing .mm-nav.is-scrolled {
    padding-top: 11px;
    padding-bottom: 11px;
    background: rgba(7, 24, 36, 0.92);
    border-bottom: 1px solid rgba(226, 207, 154, 0.14);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(16px);
}

.mm-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.mm-mark,
.mm-hero__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--mm-radius);
    background:
        linear-gradient(135deg, rgba(190, 158, 85, 0.96), rgba(226, 207, 154, 0.9)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent);
    color: var(--mm-night);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 28px rgba(190, 158, 85, 0.22);
}

.mm-nav__brand strong,
.mm-nav__brand small {
    display: block;
}

.mm-nav__brand strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.mm-nav__brand small {
    margin-top: 3px;
    color: rgba(245, 241, 232, 0.58);
    font-size: 11px;
    line-height: 1.2;
}

.mm-nav__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    color: rgba(245, 241, 232, 0.6);
    font-size: 12px;
    font-weight: 700;
}

.mm-nav__links a {
    transition: color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mm-nav__links a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.mm-nav__login {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(226, 207, 154, 0.28);
    border-radius: var(--mm-radius);
    background: rgba(190, 158, 85, 0.11);
    color: var(--mm-gold-soft) !important;
}

.mm-nav__login:hover {
    background: rgba(190, 158, 85, 0.19);
    border-color: rgba(226, 207, 154, 0.42);
}

.mm-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 116px 24px 142px;
    background:
        linear-gradient(180deg, rgba(7, 24, 36, 0.42), rgba(7, 24, 36, 0.14) 42%, rgba(7, 24, 36, 0.82) 100%),
        linear-gradient(135deg, var(--mm-night) 0%, #0c2a39 48%, #123c4f 100%);
    color: #ffffff;
    text-align: center;
}

.mm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(226, 207, 154, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 207, 154, 0.027) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.76) 16%, rgba(0, 0, 0, 0.64) 74%, transparent 100%);
    animation: mmGridMove 30s linear infinite;
}

.mm-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    filter: saturate(1.25) contrast(1.08);
}

.mm-hero__motion {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.mm-motion-line {
    position: absolute;
    left: -12%;
    right: -12%;
    height: 1px;
    background:
        linear-gradient(90deg, transparent, rgba(226, 207, 154, 0.08), rgba(226, 207, 154, 0.42), rgba(47, 102, 130, 0.36), transparent);
    opacity: 0.8;
}

.mm-motion-line::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 22%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(226, 207, 154, 0.96), transparent);
    filter: blur(0.2px);
    animation: mmLineTravel 7.4s ease-in-out infinite;
}

.mm-motion-line--top {
    top: 22%;
    transform: rotate(-5deg);
}

.mm-motion-line--middle {
    top: 50%;
    transform: rotate(2deg);
    opacity: 0.52;
}

.mm-motion-line--middle::after {
    animation-delay: 1.4s;
    animation-duration: 8.8s;
}

.mm-motion-line--bottom {
    top: 74%;
    transform: rotate(4deg);
}

.mm-motion-line--bottom::after {
    animation-delay: 2.6s;
    animation-duration: 9.6s;
}

.mm-motion-node {
    position: absolute;
    left: -24px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--mm-gold-soft);
    box-shadow:
        0 0 0 8px rgba(190, 158, 85, 0.08),
        0 0 28px rgba(226, 207, 154, 0.72);
    opacity: 0;
}

.mm-motion-node::after {
    content: "";
    position: absolute;
    top: 5px;
    right: 8px;
    width: 84px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(226, 207, 154, 0.58), rgba(226, 207, 154, 0.92));
    filter: blur(0.2px);
}

.mm-motion-node--a {
    top: 22%;
    animation: mmNodeRunTop 7.4s linear infinite;
}

.mm-motion-node--b {
    top: 50%;
    animation: mmNodeRunMiddle 8.8s linear infinite;
    animation-delay: 1.25s;
}

.mm-motion-node--c {
    top: 74%;
    animation: mmNodeRunBottom 9.6s linear infinite;
    animation-delay: 2.2s;
}

.mm-motion-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(226, 207, 154, 0.22);
    background: rgba(7, 24, 36, 0.5);
    color: rgba(245, 241, 232, 0.74);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.mm-motion-card::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--mm-gold);
    box-shadow: 0 0 16px rgba(190, 158, 85, 0.72);
}

.mm-motion-card--a {
    top: 25%;
    left: -180px;
    animation: mmCardFlyA 9.5s cubic-bezier(.42, 0, .2, 1) infinite;
}

.mm-motion-card--b {
    top: 55%;
    right: -180px;
    animation: mmCardFlyB 10.5s cubic-bezier(.42, 0, .2, 1) infinite;
    animation-delay: 1.1s;
}

.mm-motion-card--c {
    bottom: 20%;
    left: -180px;
    animation: mmCardFlyC 11.2s cubic-bezier(.42, 0, .2, 1) infinite;
    animation-delay: 2.1s;
}

.mm-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 24, 36, 0.66), transparent 28%, transparent 72%, rgba(7, 24, 36, 0.66)),
        linear-gradient(180deg, rgba(7, 24, 36, 0.08), rgba(7, 24, 36, 0.04) 56%, rgba(7, 24, 36, 0.86));
}

.mm-marquee {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 4;
    height: 42px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(190, 158, 85, 0.18);
    border-bottom: 1px solid rgba(18, 60, 79, 0.14);
    background: rgba(247, 245, 239, 0.95);
    color: #123c4f;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.mm-marquee::before,
.mm-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 90px;
    pointer-events: none;
}

.mm-marquee::before {
    left: 0;
    background: linear-gradient(90deg, rgba(247, 245, 239, 1), rgba(247, 245, 239, 0));
}

.mm-marquee::after {
    right: 0;
    background: linear-gradient(90deg, rgba(247, 245, 239, 0), rgba(247, 245, 239, 1));
}

.mm-marquee__track {
    display: flex;
    align-items: center;
    width: max-content;
    /*
     * `flex: 0 0 auto` é o que faz o letreiro funcionar.
     *
     * A faixa é item de um contêiner flex, e item de flex encolhe por padrão.
     * Com `width: max-content` mas sem travar o encolhimento, ela adotava a
     * largura do contêiner — 375px num telefone — enquanto o conteúdo real tem
     * 5517px. O `-50%` do keyframe é relativo à largura do ELEMENTO, não à do
     * conteúdo: andava 188px, voltava ao início e emendava no meio de uma
     * frase, a cada ciclo. Só as duas primeiras chegavam a aparecer.
     *
     * Sem encolher, a largura passa a ser a do conteúdo, e como as frases estão
     * duplicadas, metade dele é exatamente uma volta completa: o `-50%` fecha o
     * ciclo no ponto em que a segunda cópia ocupa o lugar da primeira, sem
     * emenda. É por isso que a lista aparece duas vezes no HTML.
     *
     * O `min-width: 200%` que estava aqui era remendo para o mesmo problema, e
     * agora atrapalharia: se passasse da largura do conteúdo, a segunda cópia
     * deixaria de cair no lugar certo.
     */
    flex: 0 0 auto;
    /*
     * 2758px por volta. A 30s isso dá cerca de 92 pixels por segundo: dá para
     * ler cada frase inteira sem correr atrás dela, e o movimento se percebe
     * sem competir com o texto do hero, que é o que se lê primeiro.
     */
    animation: mmMarquee 30s linear infinite;
    will-change: transform;
}

.mm-marquee__track span {
    display: inline-flex;
    align-items: center;
    padding: 0 22px;
    color: #123c4f;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.mm-marquee__track i {
    width: 1px;
    height: 17px;
    flex: 0 0 auto;
    background: rgba(18, 60, 79, 0.32);
}

.mm-hero__content {
    position: relative;
    z-index: 3;
    width: min(880px, 100%);
    margin: 0 auto;
}

.mm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(226, 207, 154, 0.22);
    border-radius: 999px;
    background: rgba(190, 158, 85, 0.08);
    color: var(--mm-gold-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
    animation: mmFadeUp 0.76s ease 0.1s both;
}

.mm-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--mm-gold);
    box-shadow: 0 0 16px rgba(190, 158, 85, 0.72);
}

.mm-hero__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 30px 0 16px;
    animation: mmFadeUp 0.82s ease 0.22s both;
}

.mm-hero__mark {
    position: relative;
    width: clamp(68px, 8vw, 92px);
    height: clamp(68px, 8vw, 92px);
    font-size: clamp(17px, 2vw, 24px);
    overflow: hidden;
}

.mm-hero__mark::after {
    content: "";
    position: absolute;
    top: -30%;
    bottom: -30%;
    width: 28px;
    transform: rotate(18deg);
    background: rgba(255, 255, 255, 0.46);
    filter: blur(6px);
    animation: mmShine 4.2s ease-in-out infinite;
}

.mm-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 9vw, 118px);
    line-height: 0.92;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
}

.mm-hero__subtitle {
    margin: 0 0 28px;
    color: rgba(226, 207, 154, 0.88);
    font-size: clamp(13px, 1.55vw, 17px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
    animation: mmFadeUp 0.82s ease 0.34s both;
}

.mm-hero__text {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(245, 241, 232, 0.67);
    font-size: clamp(15px, 1.55vw, 18px);
    line-height: 1.75;
    animation: mmFadeUp 0.82s ease 0.46s both;
}

.mm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
    animation: mmFadeUp 0.82s ease 0.58s both;
}

.mm-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 25px;
    border-radius: var(--mm-radius);
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

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

.mm-btn--primary {
    background: linear-gradient(135deg, var(--mm-gold), var(--mm-gold-soft));
    color: var(--mm-night);
    box-shadow: 0 12px 30px rgba(190, 158, 85, 0.26);
}

.mm-btn--primary:hover {
    box-shadow: 0 18px 42px rgba(190, 158, 85, 0.35);
}

.mm-btn--secondary {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(245, 241, 232, 0.12);
    color: rgba(245, 241, 232, 0.86);
}

.mm-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(245, 241, 232, 0.2);
}

.mm-hero__signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 32px auto 0;
    animation: mmFadeUp 0.82s ease 0.7s both;
}

.mm-hero__signals span {
    position: relative;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(245, 241, 232, 0.09);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(245, 241, 232, 0.58);
    font-size: 11px;
    font-weight: 800;
    overflow: hidden;
}

.mm-hero__signals span::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(226, 207, 154, 0.18), transparent);
    animation: mmSignalSweep 5.8s ease-in-out infinite;
    animation-delay: var(--signal-delay, 0s);
}

.mm-hero__signals span:nth-child(2)::after {
    --signal-delay: 0.7s;
}

.mm-hero__signals span:nth-child(3)::after {
    --signal-delay: 1.4s;
}

.mm-hero__signals span:nth-child(4)::after {
    --signal-delay: 2.1s;
}

.mm-hero__peek {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(860px, calc(100% - 48px));
    transform: translateX(-50%);
    animation: mmFadeUp 0.85s ease 0.92s both;
}

.mm-peek-card {
    min-height: 92px;
    padding: 16px 18px;
    border-radius: var(--mm-radius);
    border: 1px solid rgba(245, 241, 232, 0.12);
    background: rgba(7, 24, 36, 0.66);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    text-align: left;
}

.mm-peek-card strong,
.mm-peek-card span {
    display: block;
}

.mm-peek-card strong {
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 13px;
}

.mm-peek-card span {
    color: rgba(245, 241, 232, 0.58);
    font-size: 12px;
    line-height: 1.55;
}

.mm-section {
    padding: 84px clamp(18px, 4vw, 44px);
}

.mm-section--light {
    background: var(--mm-paper);
}

.mm-section--dark {
    background:
        linear-gradient(180deg, var(--mm-night) 0%, #0f3346 100%);
    color: #ffffff;
}

.mm-section--matrix {
    background:
        linear-gradient(180deg, #faf7f1 0%, #f4eee4 100%);
}

.mm-section__head {
    width: min(980px, 100%);
    margin: 0 auto 32px;
    text-align: center;
}

.mm-section__head--dark {
    color: #ffffff;
}

.mm-section__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--mm-gold);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.mm-section__label::before,
.mm-section__label::after {
    content: "";
    width: 26px;
    height: 1px;
    background: rgba(190, 158, 85, 0.48);
}

.mm-section h2,
.mm-platform__text h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.mm-section__head p,
.mm-platform__text p {
    max-width: 760px;
    margin: 16px auto 0;
    color: var(--mm-muted);
    font-size: 14px;
    line-height: 1.75;
}

.mm-section__head--dark p {
    color: rgba(245, 241, 232, 0.58);
}

.mm-module-grid {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.mm-module-grid--complete {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1240px, 100%);
}

.mm-module-card {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 24px 22px;
    border-radius: var(--mm-radius);
    border: 1px solid var(--mm-border);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mm-module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mm-green), var(--mm-gold));
    opacity: 0.64;
}

.mm-module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(190, 158, 85, 0.32);
    box-shadow: 0 18px 42px rgba(18, 60, 79, 0.08);
}

.mm-module-card--active {
    background: linear-gradient(180deg, #ffffff 0%, #f4eee4 100%);
    border-color: rgba(18, 60, 79, 0.16);
}

.mm-module-card__status {
    align-self: flex-start;
    margin-bottom: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 60, 79, 0.08);
    color: var(--mm-green);
    font-size: 10px;
    font-weight: 900;
}

.mm-module-card h3 {
    margin: 0 0 10px;
    color: var(--mm-ink);
    font-size: 18px;
    line-height: 1.25;
}

.mm-module-card p {
    margin: 0;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.65;
}

.mm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 24px;
}

.mm-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #f4eee4;
    color: #1d5a73;
    font-size: 10px;
    font-weight: 800;
}

.mm-flow-wrap {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.mm-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mm-flow--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mm-flow article {
    position: relative;
    min-height: 210px;
    padding: 24px 22px;
    border-radius: var(--mm-radius);
    border: 1px solid rgba(245, 241, 232, 0.09);
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.mm-flow article::after {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(190, 158, 85, 0), rgba(190, 158, 85, 0.72), rgba(190, 158, 85, 0));
    transform: translateX(-105%);
    animation: mmFlowLine 7.5s ease-in-out infinite;
    animation-delay: calc(var(--flow-index, 0) * 0.35s);
}

.mm-flow article:nth-child(2) {
    --flow-index: 1;
}

.mm-flow article:nth-child(3) {
    --flow-index: 2;
}

.mm-flow article:nth-child(4) {
    --flow-index: 3;
}

.mm-flow article:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(226, 207, 154, 0.18);
}

.mm-flow article span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border-radius: var(--mm-radius);
    background: rgba(190, 158, 85, 0.13);
    color: var(--mm-gold-soft);
    font-size: 12px;
    font-weight: 900;
}

.mm-flow article h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 19px;
}

.mm-flow article p {
    margin: 0;
    color: rgba(245, 241, 232, 0.58);
    font-size: 13px;
    line-height: 1.65;
}

.mm-platform {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 42px;
    align-items: center;
}

.mm-platform__text {
    text-align: left;
}

.mm-platform__text .mm-section__label::after {
    display: none;
}

.mm-platform__text p {
    margin-left: 0;
}

.mm-platform__list {
    display: grid;
    gap: 14px;
}

.mm-platform__list div {
    position: relative;
    padding: 18px 20px 18px 52px;
    border-radius: var(--mm-radius);
    border: 1px solid var(--mm-border);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(18, 60, 79, 0.045);
}

.mm-platform__list div::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 22px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--mm-green);
    box-shadow: 0 0 0 6px rgba(18, 60, 79, 0.08);
}

.mm-platform__list strong,
.mm-platform__list span {
    display: block;
}

.mm-platform__list strong {
    margin-bottom: 6px;
    color: var(--mm-ink);
    font-size: 14px;
}

.mm-platform__list span {
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.55;
}

.mm-workbench {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    gap: 44px;
    align-items: center;
}

.mm-workbench__copy {
    min-width: 0;
}

.mm-workbench__copy .mm-section__label::after {
    display: none;
}

.mm-workbench__copy h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: 0;
}

.mm-workbench__copy p {
    margin: 18px 0 0;
    color: var(--mm-muted);
    font-size: 14px;
    line-height: 1.75;
}

.mm-check-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.mm-check-list span {
    position: relative;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px 10px 42px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, 0.72);
    color: #0c2a39;
    font-size: 13px;
    font-weight: 800;
}

.mm-check-list span::before {
    content: "";
    position: absolute;
    left: 14px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--mm-green);
    box-shadow: 0 0 0 6px rgba(18, 60, 79, 0.08);
}

.mm-workbench__screen {
    min-width: 0;
}

.mm-screen {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(18, 60, 79, 0.14);
    border-radius: var(--mm-radius);
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(18, 60, 79, 0.13);
}

.mm-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(18, 60, 79, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 60, 79, 0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.64;
    animation: mmScreenGrid 18s linear infinite;
}

.mm-screen > * {
    position: relative;
    z-index: 1;
}

.mm-screen__bar {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border-bottom: 1px solid #e3d9c9;
    background: rgba(244, 247, 243, 0.92);
}

.mm-screen__bar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #c9d2ca;
}

.mm-screen__bar span:nth-child(1) {
    background: #c39a52;
}

.mm-screen__bar span:nth-child(2) {
    background: #1d5a73;
}

.mm-screen__bar strong {
    margin-left: 8px;
    color: #0c2a39;
    font-size: 12px;
}

.mm-screen__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(170px, 0.68fr);
    gap: 14px;
    padding: 18px;
}

.mm-screen__panel,
.mm-screen__matrix {
    border: 1px solid #e3d9c9;
    border-radius: var(--mm-radius);
    background: rgba(255, 255, 255, 0.84);
}

.mm-screen__panel {
    padding: 16px;
}

.mm-screen__panel small,
.mm-report-card small {
    display: block;
    margin-bottom: 12px;
    color: var(--mm-gold);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mm-screen__panel--dark {
    background: linear-gradient(180deg, #123c4f 0%, #08202c 100%);
    color: #ffffff;
}

.mm-screen__panel--dark strong,
.mm-screen__panel--dark span {
    display: block;
}

.mm-screen__panel--dark strong {
    margin-bottom: 8px;
    font-size: 25px;
}

.mm-screen__panel--dark span {
    color: rgba(245, 241, 232, 0.62);
    font-size: 12px;
    line-height: 1.55;
}

.mm-bars {
    display: grid;
    gap: 12px;
}

.mm-bars span {
    display: grid;
    gap: 6px;
}

.mm-bars em {
    color: #123c4f;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.mm-bars i,
.mm-report-card i {
    display: block;
    height: 8px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mm-green), var(--mm-gold));
    animation: growBar 1.1s ease forwards, barBreathe 2.7s ease-in-out 1.1s infinite;
}

.mm-screen__matrix {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.mm-screen__matrix span {
    min-height: 42px;
    border-radius: 7px;
    border: 1px solid #e3d9c9;
    background: rgba(255, 255, 255, 0.78);
    animation: mmMatrixCell 4.5s ease-in-out infinite;
}

.mm-screen__matrix span:nth-child(3n) {
    animation-delay: 0.42s;
}

.mm-screen__matrix span:nth-child(4n) {
    animation-delay: 0.84s;
}

.mm-screen__matrix .is-fill {
    background: rgba(18, 60, 79, 0.12);
    border-color: rgba(18, 60, 79, 0.2);
}

.mm-screen__matrix .is-warn {
    background: rgba(190, 158, 85, 0.18);
    border-color: rgba(190, 158, 85, 0.32);
}

.mm-screen__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -32%;
    z-index: 3;
    height: 30%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(18, 60, 79, 0.12), transparent);
    animation: mmScreenScan 5.2s ease-in-out infinite;
}

.mm-report-grid {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mm-report-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(18, 60, 79, 0.05);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.mm-report-card:hover {
    transform: translateY(-4px);
    border-color: rgba(190, 158, 85, 0.32);
    box-shadow: 0 18px 44px rgba(18, 60, 79, 0.09);
}

.mm-report-card--primary {
    background: linear-gradient(180deg, #ffffff 0%, #f4eee4 100%);
}

.mm-report-card strong {
    display: block;
    margin-bottom: 10px;
    color: var(--mm-ink);
    font-size: 34px;
    line-height: 1;
}

.mm-report-card span {
    display: block;
    color: var(--mm-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mm-report-card i {
    margin-top: auto;
}

/*
    Conferência cruzada.

    O fluxo é a peça que carrega a ideia: um escreve, dois resolvem, e o
    terceiro passo compara. A etapa do meio é mais larga de propósito — são
    dois avaliadores, e a largura é o que diz isso sem precisar escrever.
*/
.mm-conferencia {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

/*
    As âncoras vêm antes do fluxo e com peso menor: são a matéria-prima, e o
    fluxo é o que se faz com ela. Fundo de papel em vez de branco para não
    disputar atenção com as etapas numeradas logo abaixo.
*/
.mm-conferencia__base {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mm-conferencia__base article {
    padding: 20px 22px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    background: var(--mm-paper);
}

.mm-conferencia__base strong {
    display: block;
    margin-bottom: 8px;
    color: var(--mm-ink);
    font-size: 15px;
}

.mm-conferencia__base span {
    display: block;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.65;
}

.mm-conferencia__fluxo {
    display: grid;
    grid-template-columns: 1fr auto 1.35fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}

.mm-conferencia__etapa {
    position: relative;
    padding: 20px 22px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius);
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(18, 60, 79, 0.05);
}

/*
    A etapa do meio parece duas folhas empilhadas: são dois modelos
    respondendo, e a folha de trás diz isso sem precisar escrever.

    Feito com sombra sólida, e não com pseudo-elemento atrás: um ::before com
    z-index negativo vai parar atrás do fundo da própria seção e some. A sombra
    desenha no lugar certo sem depender de contexto de empilhamento.
*/
.mm-conferencia__etapa--dupla {
    box-shadow:
        7px 7px 0 0 var(--mm-paper-2),
        7px 7px 0 1px var(--mm-border),
        0 12px 32px rgba(18, 60, 79, 0.05);
}

.mm-conferencia__marca {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--mm-green);
    color: var(--mm-gold-soft);
    font-size: 12px;
    font-weight: 600;
}

.mm-conferencia__etapa strong {
    display: block;
    margin-bottom: 6px;
    color: var(--mm-ink);
    font-size: 16px;
}

.mm-conferencia__etapa small {
    display: block;
    color: var(--mm-muted);
    font-size: 12px;
    line-height: 1.6;
}

.mm-conferencia__seta {
    align-self: center;
    width: 26px;
    height: 1px;
    background: linear-gradient(90deg, var(--mm-border), var(--mm-gold));
    position: relative;
}

.mm-conferencia__seta::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    border-left: 6px solid var(--mm-gold);
    border-top: 3.5px solid transparent;
    border-bottom: 3.5px solid transparent;
}

.mm-conferencia__casos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mm-conferencia__casos article {
    padding: 20px 22px;
    border: 1px solid var(--mm-border);
    border-left: 3px solid var(--mm-green-2);
    border-radius: var(--mm-radius);
    background: #ffffff;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mm-conferencia__casos article:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(18, 60, 79, 0.09);
}

/*
    O caso que trava a prova é marcado pela borda, e não por cor de fundo: a
    seção inteira é clara, e um cartão colorido no meio leria como erro do
    sistema, não como estado previsto do fluxo.
*/
.mm-conferencia__casos article.is-alerta {
    border-left-color: var(--mm-gold);
    background: linear-gradient(180deg, #ffffff 0%, var(--mm-paper-2) 100%);
}

.mm-conferencia__casos strong {
    display: block;
    margin-bottom: 8px;
    color: var(--mm-ink);
    font-size: 15px;
}

.mm-conferencia__casos span {
    display: block;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.65;
}

.mm-conferencia__nota {
    margin: 0;
    padding-top: 4px;
    color: var(--mm-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.mm-final-cta {
    position: relative;
    overflow: hidden;
    padding: 86px clamp(18px, 4vw, 44px);
    background:
        linear-gradient(180deg, rgba(7, 24, 36, 0.82), rgba(7, 24, 36, 0.96)),
        linear-gradient(135deg, #08202c, #123c4f);
    color: #ffffff;
    text-align: center;
}

.mm-final-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(226, 207, 154, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 207, 154, 0.035) 1px, transparent 1px);
    background-size: 58px 58px;
    animation: mmGridMove 26s linear infinite;
}

.mm-final-cta > div {
    position: relative;
    z-index: 1;
    width: min(780px, 100%);
    margin: 0 auto;
}

.mm-final-cta h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: 0;
}

.mm-final-cta p {
    margin: 18px auto 28px;
    max-width: 650px;
    color: rgba(245, 241, 232, 0.66);
    font-size: 14px;
    line-height: 1.75;
}

.mm-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(18px, 4vw, 44px);
    background: #ffffff;
    border-top: 1px solid var(--mm-border);
    color: var(--mm-muted);
    font-size: 12px;
}

.mm-footer a {
    color: var(--mm-green);
    font-weight: 800;
}

@keyframes mmFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mmShine {
    0%, 34% {
        left: -70%;
        opacity: 0;
    }
    48% {
        opacity: 0.75;
    }
    66%, 100% {
        left: 130%;
        opacity: 0;
    }
}

@keyframes mmSignalSweep {
    0%, 42% {
        transform: translateX(-110%);
    }
    62%, 100% {
        transform: translateX(110%);
    }
}

@keyframes mmGridMove {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 72px 72px, 72px 72px;
    }
}

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

@keyframes mmLineTravel {
    0% {
        transform: translateX(-26vw);
        opacity: 0;
    }
    16% {
        opacity: 1;
    }
    72% {
        opacity: 1;
    }
    100% {
        transform: translateX(118vw);
        opacity: 0;
    }
}

@keyframes mmNodeRunTop {
    0% {
        transform: translate3d(-8vw, 28px, 0) scale(0.72);
        opacity: 0;
        box-shadow:
            0 0 0 6px rgba(190, 158, 85, 0.08),
            0 0 18px rgba(226, 207, 154, 0.42);
    }
    10%, 82% {
        opacity: 1;
    }
    48% {
        transform: translate3d(54vw, -22px, 0) scale(1.12);
        box-shadow:
            0 0 0 13px rgba(190, 158, 85, 0.04),
            0 0 42px rgba(226, 207, 154, 0.86);
    }
    100% {
        transform: translate3d(112vw, -72px, 0) scale(0.72);
        opacity: 0;
    }
}

@keyframes mmNodeRunMiddle {
    0% {
        transform: translate3d(-8vw, -18px, 0) scale(0.72);
        opacity: 0;
        box-shadow:
            0 0 0 6px rgba(190, 158, 85, 0.08),
            0 0 18px rgba(226, 207, 154, 0.42);
    }
    10%, 82% {
        opacity: 1;
    }
    52% {
        transform: translate3d(54vw, 14px, 0) scale(1.12);
        box-shadow:
            0 0 0 13px rgba(190, 158, 85, 0.04),
            0 0 42px rgba(226, 207, 154, 0.86);
    }
    100% {
        transform: translate3d(112vw, 44px, 0) scale(0.72);
        opacity: 0;
    }
}

@keyframes mmNodeRunBottom {
    0% {
        transform: translate3d(-8vw, -54px, 0) scale(0.72);
        opacity: 0;
        box-shadow:
            0 0 0 6px rgba(190, 158, 85, 0.08),
            0 0 18px rgba(226, 207, 154, 0.42);
    }
    10%, 82% {
        opacity: 1;
    }
    52% {
        transform: translate3d(54vw, 8px, 0) scale(1.12);
        box-shadow:
            0 0 0 13px rgba(190, 158, 85, 0.04),
            0 0 42px rgba(226, 207, 154, 0.86);
    }
    100% {
        transform: translate3d(112vw, 72px, 0) scale(0.72);
        opacity: 0;
    }
}

@keyframes mmCardFlyA {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    12%, 42% {
        transform: translate3d(24vw, -18px, 0);
        opacity: 0.92;
    }
    72%, 88% {
        transform: translate3d(68vw, 16px, 0);
        opacity: 0.72;
    }
    100% {
        transform: translate3d(98vw, 16px, 0);
        opacity: 0;
    }
}

@keyframes mmCardFlyB {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    14%, 48% {
        transform: translate3d(-25vw, 12px, 0);
        opacity: 0.9;
    }
    76%, 92% {
        transform: translate3d(-67vw, -18px, 0);
        opacity: 0.7;
    }
    100% {
        transform: translate3d(-96vw, -18px, 0);
        opacity: 0;
    }
}

@keyframes mmCardFlyC {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    18%, 52% {
        transform: translate3d(22vw, 14px, 0);
        opacity: 0.86;
    }
    78%, 92% {
        transform: translate3d(64vw, -14px, 0);
        opacity: 0.68;
    }
    100% {
        transform: translate3d(96vw, -14px, 0);
        opacity: 0;
    }
}

@keyframes mmFlowLine {
    0%, 48% {
        transform: translateX(-105%);
        opacity: 0;
    }
    58% {
        opacity: 1;
    }
    78%, 100% {
        transform: translateX(105%);
        opacity: 0;
    }
}

@keyframes mmScreenGrid {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 68px 68px, 68px 68px;
    }
}

@keyframes mmScreenScan {
    0%, 16% {
        opacity: 0;
        transform: translateY(0);
    }
    34%, 72% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(420%);
    }
}

@keyframes mmMatrixCell {
    0%, 100% {
        transform: scale(1);
        opacity: 0.78;
    }
    50% {
        transform: scale(0.985);
        opacity: 1;
    }
}

@media (max-width: 1040px) {
    .mm-module-grid,
    .mm-module-grid--complete,
    .mm-flow,
    .mm-flow--six,
    .mm-report-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mm-platform,
    .mm-workbench {
        grid-template-columns: 1fr;
    }

    /*
        O fluxo empilha e as setas viram verticais. Em coluna, a folha de trás
        da etapa dupla sairia pela lateral da tela: passa a ficar embaixo.
    */
    .mm-conferencia__fluxo,
    .mm-conferencia__base,
    .mm-conferencia__casos {
        grid-template-columns: 1fr;
    }

    .mm-conferencia__seta {
        justify-self: center;
        width: 1px;
        height: 22px;
        background: linear-gradient(180deg, var(--mm-border), var(--mm-gold));
    }

    .mm-conferencia__seta::after {
        right: -3px;
        top: auto;
        bottom: 0;
        border-left: 3.5px solid transparent;
        border-right: 3.5px solid transparent;
        border-top: 6px solid var(--mm-gold);
        border-bottom: none;
    }

    /*
        Em coluna, a folha de trás deslocada para a direita encostaria na borda
        da tela: passa a sair só por baixo.
    */
    .mm-conferencia__etapa--dupla {
        box-shadow:
            0 7px 0 0 var(--mm-paper-2),
            0 7px 0 1px var(--mm-border),
            0 12px 32px rgba(18, 60, 79, 0.05);
    }
}

@media (max-width: 760px) {
    .mm-landing .mm-nav {
        align-items: flex-start;
        padding: 12px 14px;
    }

    .mm-nav__brand small {
        display: none;
    }

    .mm-nav__links {
        gap: 10px;
        font-size: 11px;
    }

    .mm-nav__links a:not(.mm-nav__login) {
        display: none;
    }

    .mm-nav__login {
        min-height: 34px;
        padding: 0 13px;
    }

    .mm-hero {
        min-height: 0;
        flex-direction: column;
        padding: 112px 16px 34px;
    }

    .mm-marquee {
        top: 58px;
        height: 36px;
    }

    .mm-marquee::before,
    .mm-marquee::after {
        width: 34px;
    }

    .mm-marquee__track {
        animation-duration: 24s;
    }

    .mm-marquee__track span {
        padding: 0 15px;
        font-size: 11px;
    }

    .mm-hero__logo {
        flex-direction: column;
        gap: 14px;
        margin-top: 24px;
    }

    .mm-hero h1 {
        max-width: 100%;
        font-size: clamp(42px, 13vw, 56px);
        line-height: 1;
    }

    .mm-hero__text {
        font-size: 14px;
        line-height: 1.65;
    }

    .mm-hero__actions {
        width: 100%;
    }

    .mm-btn {
        width: 100%;
    }

    .mm-hero__signals {
        display: none;
    }

    .mm-hero__peek {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        grid-template-columns: 1fr;
        width: calc(100% - 28px);
        margin: 28px auto 0;
    }

    .mm-motion-line--middle {
        display: none;
    }

    .mm-motion-card {
        min-height: 30px;
        padding: 0 11px;
        font-size: 10px;
    }

    .mm-motion-card--a {
        top: 18%;
    }

    .mm-motion-card--b {
        top: 46%;
    }

    .mm-motion-card--c {
        bottom: 30%;
    }

    .mm-peek-card {
        min-height: 76px;
        padding: 13px 14px;
    }

    .mm-hero__content,
    .mm-hero__peek,
    .mm-eyebrow,
    .mm-hero__logo,
    .mm-hero__subtitle,
    .mm-hero__text,
    .mm-hero__actions {
        animation-delay: 0s !important;
        animation-duration: .4s !important;
    }

    .mm-section {
        padding: 62px 16px;
    }

    .mm-section__head {
        text-align: left;
    }

    .mm-section__label::after {
        display: none;
    }

    .mm-module-grid,
    .mm-module-grid--complete,
    .mm-flow,
    .mm-flow--six,
    .mm-report-grid {
        grid-template-columns: 1fr;
    }

    .mm-module-card,
    .mm-flow article {
        min-height: 0;
    }

    .mm-platform {
        gap: 28px;
    }

    .mm-workbench {
        gap: 28px;
    }

    .mm-screen__body {
        grid-template-columns: 1fr;
    }

    .mm-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.mm-landing) .mm-hero__canvas {
        display: none;
    }

    body:not(.mm-landing) .mm-hero::before,
    body:not(.mm-landing) .mm-hero__mark::after,
    body:not(.mm-landing) .mm-hero__signals span::after,
    body:not(.mm-landing) .mm-motion-line::after,
    body:not(.mm-landing) .mm-motion-node,
    body:not(.mm-landing) .mm-motion-card,
    body:not(.mm-landing) .mm-flow article::after,
    body:not(.mm-landing) .mm-screen::before,
    body:not(.mm-landing) .mm-screen__scan,
    body:not(.mm-landing) .mm-screen__matrix span,
    body:not(.mm-landing) .mm-final-cta::before,
    body:not(.mm-landing) .mm-marquee__track {
        animation: none !important;
    }
}

/* Login MatrizMed: tela separada com movimento discreto */
.login-card {
    border-radius: 8px;
    animation: loginCardIn 0.55s ease both;
}

.login-side {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(18, 60, 79, 0.92) 0%, rgba(7, 24, 36, 0.98) 100%),
        linear-gradient(135deg, #123c4f 0%, #08202c 100%);
}

.login-side::before {
    content: "";
    position: absolute;
    inset: -40px;
    z-index: 0;
    background-image:
        linear-gradient(rgba(226, 207, 154, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 207, 154, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.72;
    animation: loginGridDrift 22s linear infinite;
}

.login-side::after {
    content: "";
    position: absolute;
    top: -35%;
    left: 0;
    right: 0;
    z-index: 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(190, 158, 85, 0.14), transparent);
    animation: loginScan 5.8s ease-in-out infinite;
}

.login-side > * {
    position: relative;
    z-index: 1;
}

.login-side .entry-eyebrow {
    background: rgba(190, 158, 85, 0.12);
    border-color: rgba(226, 207, 154, 0.22);
    color: #e2cf9a;
}

.login-side__item {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: loginItemIn 0.62s ease both;
}

.login-side__item:nth-child(2) {
    animation-delay: 0.08s;
}

.login-side__item:nth-child(3) {
    animation-delay: 0.16s;
}

.login-side__item::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(226, 207, 154, 0.09), transparent);
    animation: loginItemSweep 6.4s ease-in-out infinite;
}

.login-form-panel {
    background:
        linear-gradient(135deg, rgba(18, 60, 79, 0.045), transparent 38%),
        #ffffff;
}

.login-field input,
.login-form .entry-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.login-field input:hover {
    border-color: rgba(18, 60, 79, 0.34);
    background: #ffffff;
}

.login-form .entry-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(18, 60, 79, 0.16);
}

@keyframes loginCardIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loginGridDrift {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 84px 84px, 84px 84px;
    }
}

@keyframes loginScan {
    0%, 18% {
        opacity: 0;
        transform: translateY(0);
    }
    40%, 68% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(330%);
    }
}

@keyframes loginItemIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes loginItemSweep {
    0%, 46% {
        transform: translateX(-110%);
    }
    64%, 100% {
        transform: translateX(110%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-card,
    .login-side::before,
    .login-side::after,
    .login-side__item,
    .login-side__item::after {
        animation: none !important;
    }
}


/*
    Acessibilidade: quem pede movimento reduzido recebe a pagina parada.

    "Parada" precisa ser um estado desenhado, e nao a animacao interrompida onde
    calhou. O letreiro congelado no meio do percurso mostrava frases cortadas nas
    duas pontas pelas mascaras de desvanecimento: quem pediu menos movimento
    ganhava um texto ilegivel, o que e uma troca ruim.

    Sob movimento reduzido o letreiro nao rola e comeca do inicio, sem mascara na
    borda esquerda — vira uma faixa estatica que se le. As transicoes de hover
    continuam, porque nao sao movimento no sentido que a preferencia trata: sao
    mudancas de cor e sombra no elemento sob o cursor, e mata-las so faz a pagina
    parecer quebrada.
*/
@media (prefers-reduced-motion: reduce) {
    .mm-landing *,
    .mm-landing *::before,
    .mm-landing *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .mm-landing .mm-hero__canvas {
        display: none;
    }

    .mm-landing .mm-marquee__track {
        animation: none !important;
        min-width: 0;
    }

    /* Sem rolagem, a mascara da esquerda apagaria a primeira frase. */
    .mm-landing .mm-marquee::before {
        display: none;
    }

    /*
        O reveal por rolagem some junto com a animacao: sem isto, o que ainda
        nao entrou na tela fica invisivel para sempre, e a pagina aparece vazia
        da segunda secao em diante.
    */
    .mm-landing [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Trilha dos três módulos.

   Substitui a grade de oito cartões que listava funcionalidades soltas. Aqui a
   página conta a mesma história do produto: três ambientes em sequência, com o
   que cada um resolve. A animação entra na rolagem, um módulo depois do outro,
   para que a leitura acompanhe a ordem do trabalho.
   ========================================================================== */
.mm-modulos-trilha {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    counter-reset: modulo;
}

.mm-modulo {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    border: 1px solid var(--mm-border, rgba(18, 60, 79, 0.16));
    border-radius: 16px;
    background: var(--mm-surface, #fff);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.4s ease;
}

.mm-modulo::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mm-primary, #123c4f), var(--mm-accent, #c39a52));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1) 0.15s;
}

.mm-modulo.is-visible::before {
    transform: scaleX(1);
}

.mm-modulo:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(18, 60, 79, 0.14);
}

.mm-modulo header {
    margin-bottom: 14px;
}

.mm-modulo__ordem {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mm-accent-strong, #876b32);
}

.mm-modulo h3 {
    margin: 0;
    font-size: 27px;
    line-height: 1.1;
}

.mm-modulo > p {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.68;
    color: var(--mm-text-muted, #5c6f7a);
}

.mm-modulo__itens {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--mm-border, rgba(18, 60, 79, 0.12));
    padding-top: 18px;
}

.mm-modulo__itens li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mm-text-muted, #5c6f7a);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.mm-modulo.is-visible .mm-modulo__itens li {
    opacity: 1;
    transform: translateX(0);
}

.mm-modulo.is-visible .mm-modulo__itens li:nth-child(1) { transition-delay: 0.22s; }
.mm-modulo.is-visible .mm-modulo__itens li:nth-child(2) { transition-delay: 0.32s; }
.mm-modulo.is-visible .mm-modulo__itens li:nth-child(3) { transition-delay: 0.42s; }

.mm-modulo__itens li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--mm-accent, #c39a52);
}

.mm-modulo__itens strong {
    color: var(--mm-text, #1d2730);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .mm-modulo,
    .mm-modulo::before,
    .mm-modulo__itens li {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .mm-modulo::before {
        transform: scaleX(1);
    }
}

/* ==========================================================================
   O ciclo dos três módulos.

   Substitui a esteira de seis etapas, que contava um produto linear e já não
   existia. A ideia que interessa é outra e é circular: a prova aplicada devolve
   à questão o que aconteceu com ela. A animação existe para dizer isso — a
   linha de ida se desenha, e a de volta fecha o laço.
   ========================================================================== */
.mm-ciclo {
    position: relative;
    padding: 18px 0 0;
}

.mm-ciclo__trilho {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mm-ciclo__trilho path {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.mm-ciclo__volta {
    stroke: rgba(216, 198, 147, 0.32);
    stroke-dasharray: 5 9;
    stroke-dashoffset: 1800;
}

.mm-ciclo.is-visible .mm-ciclo__volta {
    animation: cicloVolta 1.6s cubic-bezier(0.4, 0, 0.2, 1) 1.15s forwards;
}

@keyframes cicloVolta {
    to { stroke-dashoffset: 0; }
}

.mm-ciclo__nos {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mm-ciclo__nos li {
    position: relative;
    padding: 24px 22px 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(3px);
}

.mm-ciclo__ordem {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(216, 198, 147, 0.9);
}

.mm-ciclo__nos h3 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #fff;
}

.mm-ciclo__nos p {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}

.mm-ciclo__saida {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(216, 198, 147, 0.92);
}

.mm-ciclo__retorno {
    max-width: 560px;
    margin: 26px auto 0;
    padding: 16px 22px;
    border: 1px dashed rgba(216, 198, 147, 0.4);
    border-radius: 14px;
    text-align: center;
}

.mm-ciclo__retorno strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: rgba(216, 198, 147, 0.95);
}

.mm-ciclo__retorno span {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
}

/*
 * Do papel à ata.
 *
 * Mesma matéria visual dos cartões do ciclo — a seção é irmã dele e não deveria
 * inventar linguagem nova. A diferença é o número: aqui a ordem é cronológica e
 * o antes/depois importa, então ele fica grande e à esquerda, como marco.
 */
/*
    A folha de respostas, na seção escura.

    Papel branco sobre fundo escuro não é escolha estética: é o que a coisa é.
    A seção fala de um objeto físico que sai da impressora, e a página inteira o
    descrevia sem nunca mostrar um. Aqui ele aparece como aparece na mesa.
*/
.mm-cartao-bloco {
    display: flex;
    justify-content: center;
    margin: 38px auto 0;
    padding: 0 16px;
}

.mm-cartao {
    width: min(560px, 100%);
    margin: 0;
    padding: 22px 24px 18px;
    border-radius: 6px;
    background: #ffffff;
    color: #1d2730;
    /*
        Sombra dupla: a de baixo assenta a folha, a de cima insinua a segunda
        via. Prova longa ganha segunda folha, e é o que o texto ao lado diz.
    */
    box-shadow:
        6px 6px 0 0 rgba(255, 255, 255, 0.09),
        0 26px 60px rgba(0, 0, 0, 0.36);
}

.mm-cartao__topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e3d9c9;
}

.mm-cartao__topo strong {
    display: block;
    font-size: 16px;
    line-height: 1.25;
}

.mm-cartao__topo span {
    display: block;
    margin-top: 3px;
    color: #5c6f7a;
    font-size: 11px;
}

.mm-cartao__barras {
    text-align: right;
}

.mm-cartao__barras svg {
    display: block;
    max-width: 100%;
    height: auto;
}

.mm-cartao__barras span {
    display: block;
    margin-top: 2px;
    color: #1d2730;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.mm-cartao__prova {
    padding: 11px 0 13px;
    color: #5c6f7a;
    font-size: 11px;
    letter-spacing: 0.02em;
}

/*
    Duas colunas de questões: uma só leria como lista, e a folha real tem três.
    Duas é o que cabe em 560px sem espremer as bolhas a ponto de virar textura.
*/
.mm-cartao__grade {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 26px;
}

.mm-cartao__cabecalho,
.mm-cartao__linha {
    display: grid;
    grid-template-columns: 22px repeat(5, 1fr);
    align-items: center;
    gap: 6px;
}

/* O cabeçalho A-E vale para as duas colunas, mas só existe uma vez. */
.mm-cartao__cabecalho {
    grid-column: 1 / -1;
    max-width: calc(50% - 13px);
    margin-bottom: 4px;
    color: #5c6f7a;
    font-size: 9px;
    font-style: normal;
}

.mm-cartao__cabecalho i {
    font-style: normal;
    text-align: center;
}

.mm-cartao__numero {
    color: #5c6f7a;
    font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 10px;
}

.mm-cartao__linha i {
    justify-self: center;
    width: 13px;
    height: 13px;
    border: 1px solid #b9c4cb;
    border-radius: 50%;
}

.mm-cartao__linha i.is-marcada {
    border-color: #123c4f;
    background: #123c4f;
}

.mm-cartao figcaption {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee7db;
    color: #5c6f7a;
    font-size: 11px;
    line-height: 1.55;
}

/*
    Em tela estreita a folha passa a uma coluna de questões.

    Com duas colunas a 375px a última bolha encostava na borda da linha com
    folga zero: cabia por exatamente nada, e num aparelho de 320px passaria a
    transbordar. Uma coluna é o que a folha impressa faz quando o papel encolhe.
*/
@media (max-width: 520px) {
    .mm-cartao {
        padding: 18px 16px 14px;
    }

    .mm-cartao__grade {
        grid-template-columns: 1fr;
    }

    .mm-cartao__cabecalho {
        max-width: 100%;
    }

    /* O topo empilha: nome e código de barras lado a lado espremiam os dois. */
    .mm-cartao__topo {
        flex-direction: column;
        gap: 12px;
    }

    .mm-cartao__barras {
        text-align: left;
    }
}

.mm-papel {
    counter-reset: papel;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1180px;
    margin: 38px auto 0;
    padding: 0;
    list-style: none;
}

.mm-papel li {
    counter-increment: papel;
    position: relative;
    padding: 26px 22px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(3px);
}

.mm-papel li::before {
    content: counter(papel);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: rgba(216, 198, 147, 0.22);
}

.mm-papel__ordem {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(216, 198, 147, 0.9);
}

.mm-papel h3 {
    margin: 0 0 10px;
    font-size: 21px;
    color: #fff;
}

.mm-papel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
    .mm-papel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .mm-ciclo__nos {
        grid-template-columns: minmax(0, 1fr);
    }

    .mm-ciclo__trilho {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-ciclo__volta,
    .mm-ciclo__nos li::after {
        stroke-dashoffset: 0;
        animation: none;
    }
}

/* A passagem de um módulo para o outro acontece no vão entre os cartões: a
   linha reta ficava escondida atrás deles. */
.mm-ciclo__nos li::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -22px;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, rgba(216, 198, 147, 0.15), rgba(216, 198, 147, 0.75));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mm-ciclo__nos li:last-child::after {
    display: none;
}

.mm-ciclo.is-visible .mm-ciclo__nos li::after {
    transform: scaleX(1);
}

.mm-ciclo.is-visible .mm-ciclo__nos li:nth-child(1)::after { transition-delay: 0.35s; }
.mm-ciclo.is-visible .mm-ciclo__nos li:nth-child(2)::after { transition-delay: 0.6s; }

@media (max-width: 900px) {
    .mm-ciclo__nos li::after {
        display: none;
    }
}

/* ==========================================================================
   Diferenciais — três mecanismos demonstrados logo após o hero.
   Cada cartão mostra o mecanismo funcionando (mock do produto em HTML/CSS),
   e não um ícone com adjetivo.
   ========================================================================== */
.mm-diferenciais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 46px;
}

.mm-diferencial {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px 26px 24px;
    border: 1px solid var(--mm-border, rgba(18, 60, 79, 0.16));
    border-radius: 16px;
    background: var(--mm-surface, #fff);
    transition: transform 0.4s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.4s ease;
}

.mm-diferencial:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(18, 42, 58, 0.13);
}

.mm-diferencial__rotulo {
    color: var(--mm-gold, #876b32);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mm-diferencial h3 {
    margin: 0;
    font-family: var(--serif, Georgia, serif);
    font-size: 23px;
    line-height: 1.25;
    color: var(--mm-night, #12303f);
}

.mm-diferencial > p {
    margin: 0;
    color: rgba(29, 39, 48, 0.72);
    font-size: 14px;
    line-height: 1.7;
}

.mm-diferencial__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mm-night, #12303f);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--mm-gold, #876b32);
    padding-bottom: 3px;
    align-self: flex-start;
    transition: gap 0.22s ease, color 0.22s ease;
}

.mm-diferencial__link::after {
    content: "\2192";
}

.mm-diferencial__link:hover {
    gap: 12px;
    color: var(--mm-gold, #876b32);
}

/* --- Mocks do produto -------------------------------------------------- */
.mm-demo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    background: var(--mm-night, #12303f);
    color: rgba(245, 241, 232, 0.88);
    font-size: 12.5px;
}

.mm-demo__linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(245, 241, 232, 0.08);
}

.mm-demo__linha b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(226, 207, 154, 0.16);
    color: rgba(226, 207, 154, 0.95);
    font-size: 13px;
}

.mm-demo__linha--declarada {
    border-color: rgba(226, 207, 154, 0.42);
}

.mm-demo__status {
    margin-top: 4px;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1.45;
}

.mm-demo__status--alerta {
    background: rgba(195, 154, 82, 0.16);
    border: 1px solid rgba(195, 154, 82, 0.45);
    color: #f0dcae;
}

.mm-demo--papel {
    gap: 12px;
}

.mm-demo__cartao {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    background: #fdfbf6;
    color: #2a3640;
}

.mm-demo__aluno {
    font-weight: 800;
    font-size: 12.5px;
}

.mm-demo__barras {
    height: 34px;
    border-radius: 3px;
    background: repeating-linear-gradient(90deg,
        #1d2730 0 2px, transparent 2px 5px,
        #1d2730 5px 6px, transparent 6px 11px,
        #1d2730 11px 14px, transparent 14px 16px,
        #1d2730 16px 17px, transparent 17px 22px,
        #1d2730 22px 25px, transparent 25px 27px,
        #1d2730 27px 28px, transparent 28px 33px,
        #1d2730 33px 36px, transparent 36px 38px);
}

.mm-demo__lancamento {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(245, 241, 232, 0.08);
}

.mm-demo__lancamento span {
    color: rgba(245, 241, 232, 0.6);
    letter-spacing: 0.04em;
}

.mm-demo__lancamento b {
    color: rgba(226, 207, 154, 0.95);
}

.mm-demo__versao {
    padding: 8px 12px;
    border-radius: 8px;
    color: rgba(245, 241, 232, 0.5);
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(245, 241, 232, 0.06);
}

.mm-demo__versao--nova {
    color: rgba(245, 241, 232, 0.92);
    background: rgba(63, 107, 87, 0.28);
    border-color: rgba(120, 178, 148, 0.4);
}

.mm-demo__assinatura {
    padding: 0 4px;
    color: rgba(245, 241, 232, 0.55);
    font-size: 11.5px;
}

@media (max-width: 640px) {
    .mm-diferenciais {
        grid-template-columns: 1fr;
    }
}
