/* =========================================================
   O DIA DO APRENDIZ — DESIGN SYSTEM OFICIAL
   Arquivo: public/styles.css
   Usado por TODAS as páginas do site.
   Cores, fonte, botões, cabeçalho, rodapé, formulários,
   avaliação, resultado, certificado e área do participante.
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");


/* =========================================================
   1. CORES E MEDIDAS
========================================================= */

:root {
    /* Cores oficiais */
    --green: #008A4B;
    --green-dark: #006E3C;
    --green-soft: #EAF8F1;

    --yellow: #FFC928;
    --yellow-dark: #E6B000;
    --yellow-soft: #FFF8DE;

    --blue: #0057B8;
    --blue-hover: #00489A;
    --blue-soft: #EAF2FF;

    --navy: #123B5D;
    --navy-deep: #0D2D44;

    --white: #FFFFFF;

    /* Apoio */
    --text: #183247;
    --muted: #607487;
    --bg: #F5F8FB;
    --border: #E2EAF0;
    --border-strong: #C9D6E0;

    --danger: #D93025;
    --danger-soft: #FFF2F1;
    --warning: #B7791F;
    --warning-soft: #FFF8E6;
    --success: #188038;

    /* Medidas */
    --max-width: 1240px;
    --header-height: 80px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;

    --shadow-sm: 0 4px 14px rgba(18, 59, 93, .06);
    --shadow-md: 0 12px 32px rgba(18, 59, 93, .10);
    --shadow-lg: 0 20px 48px rgba(18, 59, 93, .16);

    --transition: .2s ease;

    /* Nomes antigos (compatibilidade com páginas anteriores) */
    --blue-dark: var(--navy);
    --background: var(--bg);
    --color-green: var(--green);
    --color-blue: var(--blue);
    --color-dark-blue: var(--navy);
    --color-white: var(--white);
    --color-border: var(--border);
    --color-bg-light: var(--bg);
    --color-text-dark: var(--text);
    --color-text-muted: var(--muted);
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --container-max-width: var(--max-width);

    /* Ondas decorativas da marca (verde, amarelo, azul) */
    --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' preserveAspectRatio='none'%3E%3Cpath d='M260 600C400 470 560 370 800 300V385C600 430 470 510 370 600Z' fill='%23008A4B'/%3E%3Cpath d='M370 600C470 510 600 430 800 385V465C640 495 540 545 470 600Z' fill='%23FFC928'/%3E%3Cpath d='M470 600C540 545 640 495 800 465V600Z' fill='%230057B8'/%3E%3C/svg%3E");
    --dots: radial-gradient(circle, rgba(0, 138, 75, .45) 2px, transparent 2.5px);
}


/* =========================================================
   2. BASE
========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

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

img {
    height: auto;
}

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

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

button {
    cursor: pointer;
    background: none;
    border: 0;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    color: var(--navy);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.02em;
}

strong {
    font-weight: 800;
}

::selection {
    background: rgba(255, 201, 40, .45);
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.container-sm {
    width: min(860px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 10px;
    z-index: 3000;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.skip-link:focus {
    left: 10px;
}


/* =========================================================
   3. UTILIDADES
========================================================= */

.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.muted { color: var(--muted); }
.t-green { color: var(--green); }
.t-yellow { color: var(--yellow); }
.t-blue { color: var(--blue); }
.t-navy { color: var(--navy); }
.t-white { color: var(--white); }
.nowrap { white-space: nowrap; }
.w-100 { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Bloqueio de seleção/cópia (usado na prova) */
.no-copy,
.no-copy * {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}


/* =========================================================
   4. BOTÕES
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

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

.btn:active {
    transform: translateY(0);
}

.btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0, 138, 75, .18);
}

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

.btn-yellow {
    background: var(--yellow);
    color: var(--navy);
    box-shadow: 0 6px 16px rgba(255, 201, 40, .30);
}

.btn-yellow:hover {
    background: var(--yellow-dark);
}

.btn-blue,
.btn-secondary {
    background: var(--blue);
    color: var(--white);
}

.btn-blue:hover,
.btn-secondary:hover {
    background: var(--blue-hover);
}

.btn-navy {
    background: var(--navy);
    color: var(--white);
}

.btn-navy:hover {
    background: var(--navy-deep);
}

.btn-outline,
.btn-outline-dark {
    background: var(--white);
    color: var(--navy);
    border-color: var(--border-strong);
}

.btn-outline:hover,
.btn-outline-dark:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-outline-green {
    background: var(--white);
    color: var(--green);
    border-color: var(--green);
}

.btn-outline-green:hover {
    background: var(--green-soft);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .45);
}

.btn-outline-white:hover {
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
}

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

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #B3261E;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1EB457;
}

.btn-accent {
    background: var(--yellow);
    color: var(--navy);
}

.btn-sm {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-lg {
    min-height: 56px;
    padding: 0 30px;
    font-size: 15px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* =========================================================
   5. CABEÇALHO
========================================================= */

.site-header,
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.brand-logo {
    height: 52px;
    width: auto;
}

.main-nav,
.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: #385268;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 3px;
    border-radius: 3px;
    background: var(--green);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #385268;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 0;
}

.nav-dropdown-toggle:hover {
    color: var(--blue);
}

.nav-dropdown-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: -18px;
    width: 270px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity var(--transition),
        transform var(--transition),
        visibility var(--transition);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #385268;
    font-size: 14px;
    font-weight: 600;
}

.nav-dropdown-menu a:hover {
    background: var(--bg);
    color: var(--blue);
}

.nav-dropdown-menu a .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.nav-dropdown-menu a .icon-box svg {
    width: 18px;
    height: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    max-width: 220px;
}

.user-chip:hover {
    border-color: var(--blue);
}

.user-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 20px;
}

.menu-toggle,
.menu-mobile {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    align-items: center;
    justify-content: center;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}


/* Menu lateral do celular */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(13, 45, 68, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    width: min(360px, 88vw);
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform .28s ease;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-head .brand-logo {
    height: 42px;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--navy);
}

.mobile-menu-close:hover {
    background: var(--bg);
}

.mobile-menu-close svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-body {
    padding: 14px 12px 24px;
    flex: 1;
}

.mobile-menu-label {
    padding: 14px 12px 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--bg);
    color: var(--blue);
}

.mobile-menu-link .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.mobile-menu-link .icon-box svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-foot {
    padding: 16px 18px 24px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 10px;
}

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   6. ÍCONES EM CAIXA
========================================================= */

.icon-box {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
}

.icon-box svg {
    width: 26px;
    height: 26px;
}

.icon-box--green { background: var(--green-soft); color: var(--green); }
.icon-box--yellow { background: var(--yellow-soft); color: #C99700; }
.icon-box--blue { background: var(--blue-soft); color: var(--blue); }
.icon-box--navy { background: #E8EEF4; color: var(--navy); }
.icon-box--red { background: var(--danger-soft); color: var(--danger); }
.icon-box--solid-green { background: var(--green); color: var(--white); }
.icon-box--solid-blue { background: var(--blue); color: var(--white); }
.icon-box--solid-yellow { background: var(--yellow); color: var(--navy); }

.icon-box--sm {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.icon-box--sm svg {
    width: 20px;
    height: 20px;
}

.icon-box--lg {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.icon-box--lg svg {
    width: 36px;
    height: 36px;
}

.icon-box--round {
    border-radius: 50%;
}


/* =========================================================
   7. SEÇÕES E TÍTULOS
========================================================= */

.section {
    padding: 88px 0;
}

.section--sm {
    padding: 56px 0;
}

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

.section--navy {
    background: var(--navy);
    color: var(--white);
}

.section--navy h2,
.section--navy h3 {
    color: var(--white);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header--left {
    margin-left: 0;
    text-align: left;
}

.kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.kicker::before {
    content: "";
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

.section--navy .kicker {
    color: var(--yellow);
}

.section-title {
    color: var(--navy);
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    letter-spacing: -.03em;
    margin-bottom: 14px;
}

.section--navy .section-title {
    color: var(--white);
}

.section-desc,
.section-description,
.section-subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.section--navy .section-desc {
    color: #C9D9E6;
}

.section-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}


/* =========================================================
   8. HERO DA HOME
========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 87, 184, .06), transparent 30%),
        linear-gradient(180deg, #FFFFFF 0%, #F7FAFC 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 78%;
    background: var(--waves) no-repeat right bottom / 100% 100%;
    opacity: .95;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: 600px;
    padding: 64px 0 120px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero-title {
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 22px;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
}

.hero-text {
    max-width: 520px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
    margin-bottom: 32px;
}

.hero-text strong {
    color: var(--navy);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-media {
    position: relative;
    align-self: end;
    justify-self: center;
    width: 100%;
    max-width: 600px;
}

.hero-media img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3.4;
    object-position: 70% center;
}

.hero-media::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 30px;
    width: 120px;
    height: 120px;
    background-image: var(--dots);
    background-size: 18px 18px;
    z-index: -1;
}

.hero-float {
    position: absolute;
    left: -28px;
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    max-width: 260px;
}

.hero-float strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.2;
}

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


/* Barra de atalhos abaixo do hero */

.quick-bar {
    position: relative;
    z-index: 5;
    margin-top: -64px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.quick-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #C9DCEB;
}

.quick-card strong {
    color: var(--navy);
    font-size: 15px;
    line-height: 1.25;
}

.quick-card span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   9. TOPO DAS PÁGINAS INTERNAS
========================================================= */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 56px;
    background:
        radial-gradient(circle at 92% 10%, rgba(0, 138, 75, .08), transparent 30%),
        linear-gradient(180deg, #F7FAFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 38%;
    height: 100%;
    background: var(--waves) no-repeat right bottom / 100% 100%;
    opacity: .9;
    pointer-events: none;
}

.page-hero > .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(32px, 4.4vw, 52px);
    letter-spacing: -.035em;
    margin-bottom: 12px;
    max-width: 760px;
}

.page-hero p {
    max-width: 640px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.page-hero--navy {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #164A73 100%);
    border-bottom: 0;
}

.page-hero--navy h1 {
    color: var(--white);
}

.page-hero--navy p {
    color: #C9D9E6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--blue);
}

.breadcrumb span[aria-hidden] {
    opacity: .5;
}


/* =========================================================
   10. CARTÕES E GRADES
========================================================= */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 20px;
}

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

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-pad {
    padding: 28px;
}

.card-pad-lg {
    padding: 40px;
}

.card--hover {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card--hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #C9DCEB;
}

.card-title {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-head h2,
.card-head h3 {
    font-size: 18px;
}

.card-body {
    padding: 24px;
}


/* Cartões de caminho (Home) */

.paths-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.path-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 250px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.path-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #C9DCEB;
}

.path-card h3 {
    font-size: 19px;
    line-height: 1.3;
}

.path-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.path-arrow,
.link-arrow {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
}

.path-card:hover .path-arrow {
    color: var(--green);
}


/* Bloco dividido (texto + imagem) */

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

.split--reverse .split-media {
    order: -1;
}

.split-media img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.split h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -.03em;
    margin-bottom: 16px;
}

.split p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
}


/* Lista com check */

.check-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.check-list li::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat,
        var(--green);
}

.section--navy .check-list li,
.on-dark .check-list li {
    color: #E8F1F6;
}

.section--navy .check-list li::before,
.on-dark .check-list li::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123B5D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat,
        var(--yellow);
}


/* =========================================================
   11. NÚMEROS DA REDE
========================================================= */

.stats-band {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #164A73 100%);
    color: var(--white);
}

.stats-band::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: 0;
    width: 40%;
    height: 100%;
    background: var(--waves) no-repeat right bottom / 100% 100%;
    opacity: .35;
    pointer-events: none;
}

.stats-band .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--yellow);
    font-size: clamp(38px, 4.6vw, 58px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
}

.stat span {
    display: block;
    margin-top: 10px;
    color: #DCE8F2;
    font-size: 15px;
    font-weight: 600;
}

.network-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.chip--light {
    background: var(--white);
    border-color: var(--border);
    color: var(--navy);
}


/* =========================================================
   12. DESTAQUE EDUCACIONAL
========================================================= */

.destaque-section {
    position: relative;
    overflow: hidden;
    padding: 88px 0;
    color: var(--white);
    background-color: var(--navy);
    background-image:
        linear-gradient(90deg, rgba(18, 59, 93, .96) 0%, rgba(18, 59, 93, .82) 55%, rgba(18, 59, 93, .55) 100%),
        url("/img/fundo-destaque.jpg");
    background-size: cover;
    background-position: center;
}

.destaque-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 56px;
}

.destaque-section h2 {
    color: var(--white);
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -.03em;
    margin-bottom: 16px;
}

.destaque-section p {
    color: #D1DFE9;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 560px;
}

.medal-img {
    width: min(380px, 100%);
    margin: 0 auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
    border-radius: 50%;
}

.destaque-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0 32px;
}

.destaque-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}


/* Passos numerados (Como funciona) */

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: passo;
}

.step-item {
    position: relative;
    padding: 28px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.step-num,
.step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--white);
    font-weight: 900;
    font-size: 17px;
    margin-bottom: 16px;
}

.step-item h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.step-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   13. FAIXA DE CHAMADA FINAL (CTA)
========================================================= */

.cta-band {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    color: var(--white);
}

.cta-band::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 100%;
    background: var(--waves) no-repeat right bottom / 100% 100%;
    opacity: .3;
    pointer-events: none;
}

.cta-band .container {
    position: relative;
    z-index: 1;
}

.cta-band h2 {
    color: var(--white);
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -.03em;
    margin-bottom: 12px;
}

.cta-band p {
    color: #D9E7F1;
    font-size: 17px;
    margin: 0 auto 28px;
    max-width: 620px;
}

.cta-band .section-actions {
    margin-top: 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #EFF8F3 0%, #F1F7FC 100%);
    border: 1px solid var(--border);
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 8px;
}

.cta-box p {
    color: var(--muted);
    max-width: 640px;
}


/* =========================================================
   14. RODAPÉ
========================================================= */

.site-footer,
.footer {
    position: relative;
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
    padding: 64px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand img {
    height: 64px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    color: #B8CAD7;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4,
.site-footer h4 {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: #B8CAD7;
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--yellow);
    flex: 0 0 18px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    transition: background var(--transition);
}

.social-links a:hover {
    background: var(--green);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #8FA8B8;
    font-size: 12px;
}

.footer-stripe {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green) 0 33.3%, var(--yellow) 33.3% 66.6%, var(--blue) 66.6% 100%);
}


/* Botão flutuante do WhatsApp */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25D366;
    color: var(--white);
    box-shadow: 0 10px 26px rgba(37, 211, 102, .4);
    transition: transform var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}


/* =========================================================
   15. ETIQUETAS (BADGES)
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.4;
    background: var(--blue-soft);
    color: var(--blue);
    white-space: nowrap;
}

.badge-green { background: var(--green-soft); color: var(--green-dark); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-yellow { background: var(--yellow-soft); color: #946F00; }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: #EEF2F5; color: var(--muted); }
.badge-navy { background: var(--navy); color: var(--white); }

.badge-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}


/* =========================================================
   16. AVISOS (ALERTAS)
========================================================= */

.alert,
.notice-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #C8DCF7;
    background: #EFF6FF;
    color: #174E89;
    font-size: 14px;
    line-height: 1.6;
}

.alert svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin-top: 1px;
}

.alert strong,
.notice-box h4 {
    display: block;
    color: inherit;
    font-size: 15px;
    margin-bottom: 2px;
}

.notice-box {
    display: block;
    background: var(--yellow-soft);
    border-color: rgba(255, 201, 40, .65);
    color: #5C4A0E;
}

.notice-box p {
    margin: 0;
}

.alert-success {
    background: #EDF9F1;
    border-color: #BEE2C7;
    color: #146B2A;
}

.alert-error {
    background: var(--danger-soft);
    border-color: #F3C5C1;
    color: #9B211A;
}

.alert-warning {
    background: var(--warning-soft);
    border-color: #F5D98B;
    color: #7A5300;
}

.alert-info {
    background: #EFF6FF;
    border-color: #C8DCF7;
    color: #174E89;
}

.alert[hidden] {
    display: none;
}


/* =========================================================
   17. FORMULÁRIOS
========================================================= */

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 36px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field.full,
.field--full {
    grid-column: 1 / -1;
}

.field label,
.label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.field label .req,
.field label span.req {
    color: var(--danger);
}

.input,
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1.5px solid #CBD8E2;
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.field textarea {
    min-height: 120px;
    padding: 12px 15px;
    resize: vertical;
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23607487' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 87, 184, .10);
}

.field input[readonly] {
    background: var(--bg);
    color: var(--muted);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9AABB9;
}

.field input.error,
.field select.error,
.field input.is-invalid,
.field select.is-invalid {
    border-color: var(--danger);
    background: #FFF8F8;
}

.field-help,
.help {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.field-error,
.error-message {
    display: none;
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
}

.field-error.show,
.error-message.show {
    display: block;
}

.check-line,
.checkbox-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    cursor: pointer;
}

.check-line input,
.checkbox-line input {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    accent-color: var(--green);
    cursor: pointer;
}

.form-actions,
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.form-section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}


/* =========================================================
   18. ETAPAS (STEPPER) E CARTÕES DE ESCOLHA
========================================================= */

.stepper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin: 0 auto 40px;
    max-width: 720px;
}

.stepper-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.stepper-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    left: calc(50% + 26px);
    right: calc(-50% + 26px);
    height: 3px;
    border-radius: 3px;
    background: var(--border);
}

.stepper-item.done:not(:last-child)::after {
    background: var(--green);
}

.stepper-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--white);
    border: 2px solid var(--border-strong);
    color: var(--muted);
    font-weight: 800;
    font-size: 15px;
    position: relative;
    z-index: 1;
    transition: all var(--transition);
}

.stepper-label {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stepper-item.active .stepper-num {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 0 0 5px rgba(0, 87, 184, .12);
}

.stepper-item.active .stepper-label {
    color: var(--navy);
}

.stepper-item.done .stepper-num {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeUp .35s ease both;
}

.step-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}

.step-header h2 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 8px;
}

.step-header p {
    color: var(--muted);
    font-size: 16px;
}

.choice-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.choice-grid--2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-inline: auto;
}

.choice-card,
.card-choice {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 20px;
    text-align: center;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.choice-card:hover,
.card-choice:hover {
    transform: translateY(-2px);
    border-color: #AFC4D2;
    box-shadow: var(--shadow-md);
}

.choice-card input,
.card-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card h3,
.card-choice h3 {
    font-size: 16px;
    line-height: 1.3;
}

.choice-card p,
.card-choice p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.choice-card .icon,
.card-choice .icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 24px;
}

.choice-card .icon svg,
.card-choice .icon svg {
    width: 28px;
    height: 28px;
}

.choice-card.selected,
.card-choice.selected {
    border-color: var(--green);
    background: #F3FBF7;
    box-shadow: 0 8px 24px rgba(0, 138, 75, .12);
}

.choice-card.selected .icon,
.card-choice.selected .icon {
    background: var(--green);
    color: var(--white);
}

.choice-card.selected::after,
.card-choice.selected::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat,
        var(--green);
}


/* =========================================================
   19. LISTA DE AVALIAÇÕES
========================================================= */

.assess-list {
    display: grid;
    gap: 22px;
}

.assess-group {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.assess-group-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
}

.assess-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid #EDF1F5;
}

.assess-item:last-child {
    border-bottom: 0;
}

.assess-info {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.assess-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.assess-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.assess-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.mode-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 18px 0 6px;
}

.mode-option {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--white);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition), background var(--transition);
}

.mode-option:hover {
    border-color: #AFC4D2;
}

.mode-option strong {
    color: var(--navy);
    font-size: 15px;
}

.mode-option span {
    color: var(--muted);
    font-size: 13px;
}

.mode-option.selected {
    border-color: var(--green);
    background: #F3FBF7;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rule-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.rule-card h3 {
    font-size: 15px;
    margin-bottom: 4px;
}

.rule-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   20. PROVA
========================================================= */

.exam-page {
    background: var(--bg);
}

.exam-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.exam-topbar-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.exam-topbar .brand-logo {
    height: 44px;
}

.exam-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.exam-heading strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.2;
}

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

.timer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.timer svg {
    width: 20px;
    height: 20px;
}

.timer--warn {
    background: var(--yellow-soft);
    color: #946F00;
}

.timer--danger {
    background: var(--danger-soft);
    color: var(--danger);
    animation: pulse 1.2s ease-in-out infinite;
}

.exam-shell {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
    padding: 32px 0 64px;
}

.exam-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 36px;
}

.exam-progress {
    height: 8px;
    border-radius: 99px;
    background: #E6EDF2;
    overflow: hidden;
    margin: 12px 0 28px;
}

.exam-progress-bar {
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transition: width .3s ease;
}

.exam-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.q-text {
    color: var(--navy);
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 28px;
    white-space: pre-line;
}

.options {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}

.option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 18px;
    text-align: left;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.option:hover {
    border-color: var(--blue);
    background: #F8FBFF;
}

.option-key {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-weight: 900;
    font-size: 15px;
    transition: all var(--transition);
}

.option.selected {
    border-color: var(--green);
    background: #F3FBF7;
    box-shadow: 0 6px 18px rgba(0, 138, 75, .10);
    font-weight: 700;
}

.option.selected .option-key {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.exam-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.exam-nav .btn {
    min-width: 150px;
}

.exam-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.qgrid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.qgrid--wide {
    grid-template-columns: repeat(10, 1fr);
}

.qnum {
    aspect-ratio: 1;
    min-width: 0;
    border-radius: 9px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--border-strong);
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all var(--transition);
}

.qnum:hover {
    border-color: var(--blue);
}

.qnum.answered {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}

.qnum.flagged {
    background: #FF9F1C;
    border-color: #FF9F1C;
    color: var(--white);
}

.qnum.current {
    box-shadow: 0 0 0 3px rgba(0, 87, 184, .35);
    border-color: var(--blue);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend i {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid var(--border-strong);
    background: var(--white);
}

.legend i.l-answered { background: var(--green); border-color: var(--green); }
.legend i.l-flagged { background: #FF9F1C; border-color: #FF9F1C; }

.flag-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.flag-btn.active {
    border-color: #FF9F1C;
    background: #FFF4E5;
    color: #B86B00;
}

.flag-btn svg {
    width: 15px;
    height: 15px;
}

.exam-intro {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 40px;
    align-items: center;
}

.exam-intro-list {
    display: grid;
    gap: 14px;
    margin: 24px 0;
}

.exam-intro-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}

.exam-intro-list .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.exam-intro-list .icon-box svg {
    width: 20px;
    height: 20px;
}


/* =========================================================
   21. JANELAS (MODAIS) E MENSAGENS RÁPIDAS
========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 45, 68, .62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-overlay.open {
    display: flex;
    animation: fadeIn .2s ease both;
}

.modal {
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: popIn .25s ease both;
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
}

.modal-icon svg {
    width: 36px;
    height: 36px;
}

.modal--warning .modal-icon {
    background: var(--yellow-soft);
    color: #C99700;
}

.modal--danger .modal-icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.modal--success .modal-icon {
    background: var(--green-soft);
    color: var(--green);
}

.modal h2,
.modal h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.modal p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}

.modal-actions .btn {
    flex: 1 1 180px;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2500;
    transform: translate(-50%, 140%);
    max-width: calc(100% - 32px);
    padding: 14px 20px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: transform .3s ease;
}

.toast.show {
    transform: translate(-50%, 0);
}

.toast--error {
    background: var(--danger);
}

.toast--success {
    background: var(--green);
}


/* =========================================================
   22. RESULTADO
========================================================= */

.result-hero {
    text-align: center;
    padding: 12px 0 8px;
}

.result-trophy {
    width: 170px;
    margin: 0 auto 8px;
}

.result-hero h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    letter-spacing: -.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.result-hero p {
    color: var(--muted);
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.result-stat {
    padding: 22px 16px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.result-stat strong {
    display: block;
    color: var(--navy);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.result-stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.result-stat--highlight {
    background: var(--green-soft);
    border-color: #BEE2C7;
}

.result-stat--highlight strong {
    color: var(--green);
}

.cert-callout {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 18px;
    background: #F3FBF7;
    border: 1px solid #BEE2C7;
}

.cert-callout h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.cert-callout p {
    color: var(--muted);
    font-size: 14px;
}

.cert-callout .btn {
    margin-left: auto;
}

.area-bars {
    display: grid;
    gap: 14px;
}

.area-bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 60px;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.area-bar-row strong {
    color: var(--navy);
    font-size: 14px;
}

.area-bar-row span {
    text-align: right;
    color: var(--navy);
    font-weight: 800;
}

.perf-bar {
    height: 12px;
    border-radius: 99px;
    background: #E6EDF2;
    overflow: hidden;
}

.perf-fill {
    height: 100%;
    border-radius: 99px;
    background: var(--blue);
    transition: width .6s ease;
}

.perf-fill--green { background: var(--green); }
.perf-fill--yellow { background: var(--yellow); }
.perf-fill--red { background: var(--danger); }

.review-list {
    display: grid;
    gap: 14px;
}

.review-item {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--border-strong);
    border-radius: 14px;
    background: var(--white);
}

.review-item.is-correct {
    border-left-color: var(--green);
}

.review-item.is-wrong {
    border-left-color: var(--danger);
}

.review-item.is-blank {
    border-left-color: var(--yellow);
}

.review-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.review-head strong {
    color: var(--navy);
    font-size: 14px;
}

.review-q {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 12px;
    white-space: pre-line;
}

.review-answer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;
}

.review-answer b {
    flex: 0 0 auto;
}

.review-answer--yours { background: var(--bg); }
.review-answer--wrong { background: var(--danger-soft); color: #8E1F17; }
.review-answer--right { background: var(--green-soft); color: #0E5A31; }

.review-expl {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}


/* =========================================================
   23. ÁREA DO PARTICIPANTE (PAINEL)
========================================================= */

.dash {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
    padding: 32px 0 72px;
}

.dash-side {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.dash-user strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    line-height: 1.25;
}

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

.dash-nav {
    display: grid;
    gap: 4px;
}

.dash-nav a,
.dash-nav button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 11px;
    color: #385268;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    transition: background var(--transition), color var(--transition);
}

.dash-nav a:hover,
.dash-nav button:hover {
    background: var(--bg);
    color: var(--blue);
}

.dash-nav a.active {
    background: var(--navy);
    color: var(--white);
}

.dash-nav svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.dash-main {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.dash-hello h1 {
    font-size: clamp(26px, 3vw, 34px);
    margin-bottom: 4px;
}

.dash-hello p {
    color: var(--muted);
}

.dash-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.dash-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.dash-card strong {
    color: var(--navy);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.dash-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.dash-card a {
    margin-top: auto;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.data-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.data-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.data-list dd {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    word-break: break-word;
}

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th {
    padding: 12px 14px;
    background: var(--bg);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #EDF1F5;
    color: var(--text);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: 0;
}


/* Estados de carregamento e vazio */

.loading-state,
.empty-state {
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--bg);
    border: 1.5px dashed var(--border-strong);
    border-radius: 16px;
    font-size: 14px;
}

.empty-state h3,
.empty-state h4 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 6px;
}

.empty-state .icon-box {
    margin: 0 auto 14px;
}

.spinner {
    width: 34px;
    height: 34px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 4px solid #DCE6EE;
    border-top-color: var(--green);
    animation: spin .8s linear infinite;
}


/* =========================================================
   24. OPORTUNIDADES
========================================================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-pill {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.filter-pill:hover {
    border-color: var(--blue);
}

.filter-pill.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.opp-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.opp-card h3 {
    color: var(--blue);
    font-size: 18px;
    margin-bottom: 6px;
}

.opp-card p {
    color: var(--muted);
    font-size: 14px;
}

.opp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.opp-card .btn {
    margin-left: auto;
    align-self: center;
}


/* =========================================================
   25. CERTIFICADO (TELA E IMPRESSÃO EM A4 DEITADO)
========================================================= */

.cert-page {
    background: #E9EEF2;
}

.cert-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.cert-toolbar-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.cert-toolbar .brand-logo {
    height: 42px;
}

.cert-stage {
    display: grid;
    justify-items: center;
    gap: 28px;
    padding: 32px 16px 64px;
}

.cert-sheet {
    position: relative;
    width: 297mm;
    height: 210mm;
    overflow: hidden;
    background: #FFFEFA;
    box-shadow: 0 18px 50px rgba(13, 45, 68, .22);
    color: var(--navy);
    font-family: "Inter", Arial, sans-serif;
}

.cert-sheet::before {
    content: "";
    position: absolute;
    inset: 9mm;
    border: 1.2mm solid var(--navy);
    border-radius: 2mm;
    pointer-events: none;
    z-index: 2;
}

.cert-sheet::after {
    content: "";
    position: absolute;
    inset: 11.5mm;
    border: .35mm solid var(--yellow);
    border-radius: 1mm;
    pointer-events: none;
    z-index: 2;
}

.cert-wave-tl,
.cert-wave-br {
    position: absolute;
    width: 120mm;
    height: 80mm;
    background: var(--waves) no-repeat right bottom / 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.cert-wave-br {
    right: 0;
    bottom: 0;
}

.cert-wave-tl {
    left: 0;
    top: 0;
    transform: rotate(180deg);
}

.cert-inner {
    position: absolute;
    inset: 18mm 22mm;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-logo {
    height: 22mm;
    width: auto;
    margin-bottom: 4mm;
}

.cert-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15mm;
    font-weight: 700;
    letter-spacing: 1.2mm;
    color: var(--navy);
    line-height: 1;
}

.cert-subtitle {
    margin-top: 2mm;
    font-size: 4mm;
    font-weight: 800;
    letter-spacing: .9mm;
    color: var(--green);
    text-transform: uppercase;
}

.cert-text {
    margin-top: 6mm;
    font-size: 4.2mm;
    color: #3E5568;
    line-height: 1.55;
    max-width: 210mm;
}

.cert-name {
    margin: 2mm 0 1mm;
    padding: 0 8mm 1.5mm;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11mm;
    font-weight: 700;
    color: var(--blue);
    border-bottom: .8mm solid var(--yellow);
    line-height: 1.2;
}

.cert-stats {
    display: flex;
    justify-content: center;
    gap: 6mm;
    margin-top: 5mm;
}

.cert-stat {
    min-width: 34mm;
    padding: 2.5mm 5mm;
    border: .35mm solid #D9E4EC;
    border-radius: 2.5mm;
    background: var(--white);
}

.cert-stat strong {
    display: block;
    font-size: 7mm;
    font-weight: 900;
    line-height: 1.1;
    color: var(--navy);
}

.cert-stat span {
    font-size: 2.8mm;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .3mm;
}

.cert-stat--main {
    background: var(--green);
    border-color: var(--green);
}

.cert-stat--main strong,
.cert-stat--main span {
    color: var(--white);
}

.cert-footer {
    margin-top: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 8mm;
}

.cert-date {
    text-align: left;
    font-size: 3.4mm;
    color: #3E5568;
}

.cert-sign {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-sign img {
    height: 16mm;
    width: auto;
    mix-blend-mode: multiply;
    margin-bottom: -2mm;
}

.cert-sign-line {
    width: 62mm;
    border-top: .35mm solid var(--navy);
    padding-top: 1.5mm;
    font-size: 3.4mm;
    font-weight: 800;
    color: var(--navy);
}

.cert-sign-line small {
    display: block;
    font-size: 2.9mm;
    font-weight: 600;
    color: var(--muted);
}

.cert-verify {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3mm;
    text-align: left;
}

.cert-qr {
    width: 22mm;
    height: 22mm;
    background: var(--white);
    padding: 1mm;
}

.cert-qr img,
.cert-qr canvas,
.cert-qr svg {
    width: 100%;
    height: 100%;
}

.cert-code {
    font-size: 2.8mm;
    color: var(--muted);
    line-height: 1.45;
}

.cert-code strong {
    display: block;
    font-size: 3.6mm;
    color: var(--navy);
    letter-spacing: .2mm;
}

.cert-disclaimer {
    margin-top: 4mm;
    font-size: 2.6mm;
    color: #7B8C9A;
    line-height: 1.4;
    max-width: 230mm;
}

/* Verso do certificado */

.cert-back .cert-inner {
    align-items: stretch;
    text-align: left;
}

.cert-back-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6mm;
    padding-bottom: 4mm;
    border-bottom: .5mm solid var(--border);
    margin-bottom: 5mm;
}

.cert-back-head img {
    height: 14mm;
    width: auto;
}

.cert-back-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 7mm;
    color: var(--navy);
    letter-spacing: .3mm;
}

.cert-back-head p {
    font-size: 3.2mm;
    color: var(--muted);
}

.cert-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 3.4mm;
}

.cert-table th {
    padding: 2.4mm 2.6mm;
    background: var(--navy);
    color: var(--white);
    font-size: 2.9mm;
    font-weight: 800;
    letter-spacing: .25mm;
    text-transform: uppercase;
    text-align: center;
}

.cert-table th:first-child {
    text-align: left;
    border-radius: 1.5mm 0 0 0;
}

.cert-table th:last-child {
    border-radius: 0 1.5mm 0 0;
}

.cert-table td {
    padding: 2.3mm 2.6mm;
    border-bottom: .3mm solid #E2EAF0;
    text-align: center;
    color: var(--text);
}

.cert-table td:first-child {
    text-align: left;
    font-weight: 800;
    color: var(--navy);
}

.cert-table tbody tr:nth-child(even) td {
    background: #F7FAFC;
}

.cert-table tfoot td {
    background: var(--green-soft);
    border-top: .5mm solid var(--green);
    font-weight: 900;
    color: var(--navy);
}

.cert-back-note {
    margin-top: auto;
    padding-top: 4mm;
    display: flex;
    justify-content: space-between;
    gap: 6mm;
    font-size: 2.8mm;
    color: var(--muted);
    line-height: 1.5;
}


/* =========================================================
   26. ANIMAÇÕES
========================================================= */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .65; }
}

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

.reveal {
    animation: fadeUp .5s ease both;
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   27. TELAS MÉDIAS (TABLET) — até 1100px
========================================================= */

@media (max-width: 1100px) {

    .main-nav,
    .nav {
        gap: 18px;
    }

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

    .exam-shell {
        grid-template-columns: 1fr;
    }

    .exam-side {
        position: static;
    }

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

    .dash-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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


/* =========================================================
   28. MENU HAMBÚRGUER — até 980px
========================================================= */

@media (max-width: 980px) {

    .main-nav,
    .nav,
    .header-actions .hide-mobile {
        display: none;
    }

    .menu-toggle,
    .menu-mobile {
        display: inline-flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 48px 0 110px;
        gap: 32px;
    }

    .hero::after {
        width: 100%;
        height: 40%;
    }

    .hero-media {
        max-width: 560px;
    }

    .hero-float {
        left: 12px;
    }

    .split,
    .destaque-grid,
    .exam-intro {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .split--reverse .split-media {
        order: 0;
    }

    .paths-grid,
    .grid-3,
    .choice-grid,
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .dash-side {
        position: static;
    }

    .dash-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-hero::after {
        width: 60%;
        opacity: .5;
    }

    /* Certificado: reduz na tela do celular/tablet */
    .cert-sheet {
        zoom: .6;
    }
}


/* =========================================================
   29. CELULAR — até 640px
========================================================= */

@media (max-width: 640px) {

    :root {
        --header-height: 68px;
    }

    .container,
    .container-sm {
        width: calc(100% - 28px);
    }

    .brand-logo {
        height: 42px;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .hero-grid {
        padding: 36px 0 96px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-actions,
    .section-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .section-actions .btn {
        width: 100%;
    }

    .hero-float {
        display: none;
    }

    .quick-bar {
        margin-top: -56px;
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .quick-card {
        padding: 16px 14px;
    }

    .paths-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .choice-grid,
    .choice-grid--2,
    .cards,
    .form-grid,
    .rules-grid,
    .data-list,
    .mode-picker,
    .destaque-features {
        grid-template-columns: 1fr;
    }

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

    .form-card,
    .exam-card,
    .card-pad-lg {
        padding: 22px 18px;
    }

    .form-actions,
    .actions,
    .exam-nav {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn,
    .actions .btn,
    .exam-nav .btn {
        width: 100%;
    }

    .stepper-label {
        font-size: 11px;
    }

    .stepper-num {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .stepper-item:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 22px);
        right: calc(-50% + 22px);
    }

    .assess-item {
        flex-direction: column;
        align-items: stretch;
    }

    .assess-actions {
        justify-content: stretch;
    }

    .assess-actions .btn {
        flex: 1;
    }

    .exam-topbar .brand-logo {
        height: 34px;
    }

    .exam-heading {
        display: none;
    }

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

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

    .cert-callout,
    .opp-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .cert-callout .btn,
    .opp-card .btn {
        margin-left: 0;
        width: 100%;
    }

    .area-bar-row {
        grid-template-columns: 100px 1fr 48px;
    }

    .dash-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-nav {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .modal {
        padding: 26px 20px;
    }

    .cert-sheet {
        zoom: .32;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
}


/* =========================================================
   30. IMPRESSÃO (certificado sai em 2 folhas A4 deitadas)
========================================================= */

@page {
    size: A4 landscape;
    margin: 0;
}

@media print {

    html,
    body {
        background: #FFFFFF !important;
        display: block;
        min-height: 0;
    }

    .site-header,
    .header,
    .site-footer,
    .footer,
    .cert-toolbar,
    .whatsapp-float,
    .modal-overlay,
    .toast,
    .no-print {
        display: none !important;
    }

    .cert-stage {
        display: block;
        padding: 0;
    }

    .cert-sheet {
        zoom: 1 !important;
        box-shadow: none;
        margin: 0;
        page-break-after: always;
        break-after: page;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .cert-sheet:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}


/* =========================================================
   31. AJUSTES GERAIS (outubro/2026)
========================================================= */

.badge svg { width: 13px; height: 13px; flex: 0 0 auto; }
.chip svg { width: 16px; height: 16px; flex: 0 0 auto; }
.form-section-title svg { width: 20px; height: 20px; }
.dash-nav a span, .dash-nav button span { display: contents; }
.link-arrow svg,
.path-arrow svg { width: 16px; height: 16px; }
.alert > div { min-width: 0; }
.alert > span[data-icon] { flex: 0 0 22px; width: 22px; height: 22px; }
.alert > span[data-icon] svg { margin-top: 0; }
.field-help svg,
.card-text svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }

@media (max-width: 640px) {
    .page-hero { padding: 40px 0 36px; }
    .page-hero::after { width: 55%; height: 55%; opacity: .28; }
    .page-hero h1 { font-size: 30px; }
    .page-hero p { font-size: 16px; }
}
