/*
 * Boardz — sistema visual, identidade da Projeto Diário
 * Paleta extraída por amostragem de pixels do logotipo oficial
 * (assets/img/logo-projetodiario.png): azul #1874BE, navy #2C3151,
 * verde #227C46, vermelho #DA3438. Fundo mais neutro/corporativo
 * (branco-acinzentado frio) em vez do papel quente da versão anterior.
 * Os post-its dos usuários continuam dando a cor à tela — o chrome do
 * app usa o azul da marca como único acento estrutural.
 */

:root {
    --bz-font-display: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
    --bz-font-body: "Corbel", "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;

    --bz-paper: #f4f6f9;
    --bz-surface: #ffffff;
    --bz-surface-sunken: #eaedf2;
    --bz-ink: #1b2333;
    --bz-ink-soft: #5b6472;
    --bz-ink-faint: #99a1ad;
    --bz-line: #dde2e9;
    --bz-line-strong: #c7ced9;

    --bz-teal: #1874be;
    --bz-teal-rgb: 24, 116, 190;
    --bz-teal-deep: #0e4e85;
    --bz-teal-tint: #e4eef7;
    --bz-amber: #227c46;
    --bz-amber-tint: #e2f0e7;
    --bz-red: #da3438;
    --bz-red-rgb: 218, 52, 56;

    --bz-sticky-yellow: #f4dd8f;
    --bz-sticky-green: #bfe0c9;
    --bz-sticky-pink: #f1cdd7;
    --bz-sticky-blue: #c3d9ea;
    --bz-sticky-peach: #f2cba3;

    --bz-shadow-1: 0 1px 2px rgba(27, 35, 51, 0.07);
    --bz-shadow-2: 0 8px 20px -6px rgba(27, 35, 51, 0.18);
    --bz-radius-sm: 6px;
    --bz-radius-md: 10px;
}

[data-bs-theme="dark"] {
    --bz-paper: #12161d;
    --bz-surface: #1a1f28;
    --bz-surface-sunken: #202632;
    --bz-ink: #e7ebf2;
    --bz-ink-soft: #98a2b3;
    --bz-ink-faint: #5f6774;
    --bz-line: #29303d;
    --bz-line-strong: #384051;

    --bz-teal: #4c9fe0;
    --bz-teal-rgb: 76, 159, 224;
    --bz-teal-deep: #86c0ee;
    --bz-teal-tint: #16283b;
    --bz-amber: #4caf74;
    --bz-amber-tint: #17301f;
    --bz-red: #e6676a;
    --bz-red-rgb: 230, 103, 106;

    --bz-sticky-yellow: #6b5d2c;
    --bz-sticky-green: #35543f;
    --bz-sticky-pink: #5b3540;
    --bz-sticky-blue: #2f4658;
    --bz-sticky-peach: #6a4a2c;

    --bz-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --bz-shadow-2: 0 10px 24px -6px rgba(0, 0, 0, 0.55);
}

/* ---------- ponte com variáveis do Bootstrap 5.3 (sem rebuild via Sass) ---------- */

[data-bs-theme] {
    --bs-body-bg: var(--bz-paper);
    --bs-body-color: var(--bz-ink);
    --bs-secondary-color: var(--bz-ink-soft);
    --bs-border-color: var(--bz-line);
    --bs-border-color-translucent: var(--bz-line);
    --bs-primary: var(--bz-teal);
    --bs-primary-rgb: var(--bz-teal-rgb);
    --bs-link-color: var(--bz-teal);
    --bs-link-color-rgb: var(--bz-teal-rgb);
    --bs-link-hover-color: var(--bz-teal-deep);
    --bs-focus-ring-color: rgba(var(--bz-teal-rgb), 0.35);
    --bs-body-font-family: var(--bz-font-body);
    --bs-danger: var(--bz-red);
    --bs-danger-rgb: var(--bz-red-rgb);
}

body {
    font-family: var(--bz-font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }

.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--bz-line);
    background: var(--bz-surface);
    padding: 16px 0;
    margin-top: 32px;
    font-size: 13px;
    color: var(--bz-ink-soft);
}
.site-footer img { opacity: 0.9; }
.footer-logo-img {
    height: 28px;
    width: auto;
    max-width: 220px;
    max-height: 8vw;
    object-fit: contain;
}
@media (max-width: 480px) {
    .footer-logo-img { height: 22px; }
}
h1, h2, h3, h4, h5, h6, .display, .navbar-brand, .btn, .dropdown-menu, .nav-link,
label, .form-label, th, .badge {
    font-family: var(--bz-font-display);
}
h1, h2, h3, h4, h5 { text-wrap: balance; letter-spacing: 0.005em; }

.btn {
    --bs-btn-font-family: var(--bz-font-display);
    border-radius: var(--bz-radius-sm);
    font-weight: 600;
}
.btn-primary {
    --bs-btn-bg: var(--bz-teal);
    --bs-btn-border-color: var(--bz-teal);
    --bs-btn-hover-bg: var(--bz-teal-deep);
    --bs-btn-hover-border-color: var(--bz-teal-deep);
    --bs-btn-active-bg: var(--bz-teal-deep);
    --bs-btn-active-border-color: var(--bz-teal-deep);
    --bs-btn-disabled-bg: var(--bz-teal);
    --bs-btn-disabled-border-color: var(--bz-teal);
    --bs-btn-focus-shadow-rgb: var(--bz-teal-rgb);
}
.btn-outline-secondary {
    --bs-btn-color: var(--bz-ink-soft);
    --bs-btn-border-color: var(--bz-line-strong);
    --bs-btn-hover-bg: var(--bz-teal);
    --bs-btn-hover-border-color: var(--bz-teal);
    --bs-btn-active-bg: var(--bz-teal-deep);
    --bs-btn-active-border-color: var(--bz-teal-deep);
}
.btn-outline-danger {
    --bs-btn-color: var(--bz-red);
    --bs-btn-border-color: var(--bz-red);
    --bs-btn-hover-bg: var(--bz-red);
    --bs-btn-hover-border-color: var(--bz-red);
    --bs-btn-active-bg: var(--bz-red);
    --bs-btn-active-border-color: var(--bz-red);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--bz-line-strong);
    background: var(--bz-surface);
    color: var(--bz-ink-soft);
    border-radius: var(--bz-radius-sm);
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--bz-teal); color: var(--bz-teal-deep); }

.form-control, .form-select {
    background-color: var(--bz-surface);
    border-color: #8a93a1;
    color: var(--bz-ink);
    border-radius: var(--bz-radius-sm);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bz-teal);
    box-shadow: 0 0 0 0.2rem rgba(var(--bz-teal-rgb), 0.18);
    background-color: var(--bz-surface);
    color: var(--bz-ink);
}
.form-control::placeholder { color: #6b7280; }
.form-label { font-weight: 600; font-size: 13.5px; letter-spacing: 0.01em; }

.dropdown-menu {
    background-color: var(--bz-surface);
    border-color: var(--bz-line);
    border-radius: var(--bz-radius-md);
    box-shadow: var(--bz-shadow-2);
}
.dropdown-item { color: var(--bz-ink); font-family: var(--bz-font-body); }
.dropdown-item:hover, .dropdown-item:focus { background-color: var(--bz-teal-tint); color: var(--bz-teal-deep); }

.modal-content {
    background-color: var(--bz-surface);
    border: 1px solid var(--bz-line);
    border-radius: var(--bz-radius-md);
}
.modal-header, .modal-footer { border-color: var(--bz-line); }

.nav-pills .nav-link { color: var(--bz-ink-soft); border-radius: var(--bz-radius-sm); }
.nav-pills .nav-link.active { background-color: var(--bz-teal); color: #fbfbf8; }

.list-group-item { background-color: var(--bz-surface); border-color: var(--bz-line); color: var(--bz-ink); }
.list-group-item-action:hover { background-color: var(--bz-teal-tint); }

.card {
    --bs-card-bg: var(--bz-surface);
    --bs-card-border-color: var(--bz-line);
    border-radius: var(--bz-radius-md);
    box-shadow: var(--bz-shadow-1);
}

.table { color: var(--bz-ink); }
.table > :not(caption) > * > * { border-bottom-color: var(--bz-line); }

.alert-danger { border-radius: var(--bz-radius-sm); }

/* ---------- topbar ---------- */

.navbar {
    background: var(--bz-surface);
    border-bottom: 1px solid var(--bz-line);
    padding-top: 12px;
    padding-bottom: 12px;
}
.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--bz-ink) !important;
}
.navbar-logo-img {
    height: 60px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
}
@media (max-width: 480px) {
    .navbar-logo-img { height: 44px; }
}

/* ---------- home ---------- */

.home-hero { max-width: 640px; }
.home-hero h1 { font-size: 26px; margin-bottom: 6px; }
.home-hero p { color: var(--bz-ink-soft); }

.home-feature-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: var(--bz-radius-md);
    border-top-right-radius: var(--bz-radius-md);
}

.landing-banner img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--bz-radius-md);
    box-shadow: var(--bz-shadow-1);
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.template-card {
    border: 1.5px solid var(--bz-line);
    border-radius: var(--bz-radius-sm);
    padding: 12px 12px 11px;
    background: var(--bz-paper);
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    transition: border-color .15s ease, background .15s ease;
}
.template-card:hover { border-color: var(--bz-teal); }
.template-card.selected {
    border-color: var(--bz-teal);
    background: var(--bz-teal-tint);
    box-shadow: 0 0 0 1px var(--bz-teal) inset;
}
.template-swatches { display: flex; gap: 4px; }
.template-swatches span { width: 13px; height: 13px; border-radius: 3px; }
.template-card .t-name { font-family: var(--bz-font-display); font-weight: 600; font-size: 13px; color: var(--bz-ink); }
.template-card .t-desc { font-size: 11.5px; color: var(--bz-ink-soft); line-height: 1.35; font-family: var(--bz-font-body); }

.template-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 2px;
}
.template-preview-grid span { display: block; height: 16px; border-radius: 3px; }
.template-card.is-blank .template-preview-grid {
    border: 1.5px dashed var(--bz-line-strong);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}
.template-card.is-blank .template-preview-grid i { color: var(--bz-ink-faint); font-size: 16px; }

/* ---------- hero (landing de visitante) ---------- */

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 24px 0 56px;
}
@media (max-width: 991px) {
    .hero-section { grid-template-columns: 1fr; padding-bottom: 32px; }
}

.hero-badge {
    display: inline-block;
    background: var(--bz-teal-tint);
    color: var(--bz-teal-deep);
    font-family: var(--bz-font-display);
    font-weight: 600;
    font-size: 12.5px;
    letter-spacing: 0.02em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.hero-title {
    font-size: clamp(32px, 4vw, 44px);
    line-height: 1.12;
    margin-bottom: 18px;
    color: var(--bz-ink);
}
.hero-title .text-accent { color: var(--bz-teal); }
.hero-sub {
    font-size: 16.5px;
    color: var(--bz-ink-soft);
    margin-bottom: 26px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn-ghost-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--bz-ink);
    font-family: var(--bz-font-display);
    font-weight: 600;
    font-size: 14.5px;
    padding: 0.6rem 0.2rem;
}
.btn-ghost-link:hover { color: var(--bz-teal-deep); }
.btn-ghost-link i { font-size: 20px; color: var(--bz-teal); }

.hero-features { display: flex; flex-wrap: wrap; gap: 26px; }
.hero-feature { display: flex; align-items: flex-start; gap: 10px; max-width: 200px; }
.hero-feature i { font-size: 19px; color: var(--bz-teal); margin-top: 2px; flex-shrink: 0; }
.hero-feature strong { display: block; font-family: var(--bz-font-display); font-size: 13.5px; color: var(--bz-ink); }
.hero-feature span { font-size: 12.5px; color: var(--bz-ink-soft); line-height: 1.4; }

/* mockup ilustrativo (estático, decorativo) */

.hero-mockup {
    background: var(--bz-surface);
    border: 1px solid var(--bz-line);
    border-radius: var(--bz-radius-md);
    box-shadow: var(--bz-shadow-2);
    padding: 14px;
}
.mockup-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.mockup-topbar .m-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--bz-font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--bz-ink);
}
.mockup-avatars { display: flex; align-items: center; }
.mockup-avatars span {
    width: 24px; height: 24px;
    border-radius: 50%;
    border: 2px solid var(--bz-surface);
    margin-left: -8px;
    background: var(--bz-teal-tint);
    color: var(--bz-teal-deep);
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.mockup-avatars span:first-child { margin-left: 0; }
.mockup-share-btn {
    background: var(--bz-teal);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--bz-font-display);
    padding: 6px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mockup-body { display: flex; gap: 10px; }
.mockup-tools {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bz-paper);
    border: 1px solid var(--bz-line);
    border-radius: var(--bz-radius-sm);
    padding: 6px;
    flex-shrink: 0;
    height: fit-content;
}
.mockup-tools i { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: var(--bz-ink-faint); font-size: 14px; border-radius: 5px; }
.mockup-tools i:first-child { background: var(--bz-teal-tint); color: var(--bz-teal-deep); }

.mockup-canvas {
    position: relative;
    flex: 1;
    background-image: radial-gradient(var(--bz-line-strong) 1px, transparent 1px);
    background-size: 14px 14px;
    background-color: var(--bz-paper);
    border-radius: var(--bz-radius-sm);
    padding: 16px;
}
.mockup-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 78px;
    gap: 14px;
}
.mockup-mcard {
    border-radius: 4px;
    padding: 8px 10px;
    box-shadow: var(--bz-shadow-1);
    font-size: 11px;
    color: #26241c;
}
.mockup-mcard .mc-title { display: flex; align-items: center; gap: 5px; font-weight: 700; font-family: var(--bz-font-body); margin-bottom: 3px; }
.mockup-mcard .mc-title i { font-size: 11px; }
.mockup-mcard .mc-desc { opacity: 0.75; font-family: var(--bz-font-body); line-height: 1.3; }

.mockup-pill {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bz-ink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px 3px 6px;
    border-radius: 999px;
    box-shadow: var(--bz-shadow-1);
}
.mockup-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mockup-pill.p-amber { background: var(--bz-amber); }
.mockup-pill.p-teal { background: var(--bz-teal); }
.mockup-pill.p-red { background: var(--bz-red); }

.mockup-zoom {
    position: absolute;
    left: 16px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bz-surface);
    border: 1px solid var(--bz-line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--bz-ink-soft);
    box-shadow: var(--bz-shadow-1);
}

/* ---------- depoimento ---------- */

.testimonial {
    max-width: 640px;
    margin: 8px auto 48px;
    text-align: center;
    padding: 0 16px;
}
.testimonial .q-mark { font-family: var(--bz-font-display); font-size: 34px; color: var(--bz-teal); line-height: 1; }
.testimonial p { font-size: 17px; color: var(--bz-ink); margin: 6px 0 8px; }
.testimonial cite { font-size: 13px; color: var(--bz-ink-soft); font-style: normal; }

.section-heading { text-align: center; margin-bottom: 22px; font-size: 21px; }

/* ---------- board toolbar ---------- */

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bz-surface);
    border: 1px solid var(--bz-line);
    border-radius: var(--bz-radius-sm);
    padding: 0 12px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.search-field:focus-within {
    border-color: var(--bz-teal);
    box-shadow: 0 0 0 0.2rem rgba(var(--bz-teal-rgb), 0.18);
}
.search-field i { color: var(--bz-ink-faint); font-size: 14px; }
.search-field input {
    border: none !important;
    background: none;
    outline: none;
    box-shadow: none !important;
    padding-left: 0;
}

/* ---------- board columns ---------- */

#board-columns { min-height: 200px; }

.board-column {
    width: 280px;
    min-width: 280px;
    background: var(--bz-surface-sunken);
    border: 1px solid var(--bz-line);
    border-radius: var(--bz-radius-md);
    box-shadow: none;
}
.board-column .card-header {
    background: transparent;
    border-bottom: 1px solid var(--bz-line-strong);
    padding: 12px 12px 10px;
}
.board-column .card-body { padding: 10px; }
.board-column .card-footer { background: transparent; border-top: none; padding: 8px 10px 10px; }

.board-column .column-name {
    font-family: var(--bz-font-display);
    font-weight: 600;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    outline: none;
    border-radius: 4px;
    padding: 2px 4px;
    color: var(--bz-ink);
}
.board-column .column-name[contenteditable="true"]:hover,
.board-column .column-name[contenteditable="true"]:focus {
    background: rgba(var(--bz-teal-rgb), 0.1);
}
.board-column .badge.text-bg-light {
    background-color: var(--bz-surface) !important;
    border: 1px solid var(--bz-line-strong) !important;
    color: var(--bz-ink-faint) !important;
    font-weight: 600;
    font-size: 10.5px;
}

.column-cards { min-height: 60px; }

.add-column-tile { width: 210px; min-width: 210px; }
.add-column-tile .btn {
    border: 1.5px dashed var(--bz-line-strong);
    background: transparent;
    color: var(--bz-ink-soft);
}
.add-column-tile .btn:hover { border-color: var(--bz-teal); color: var(--bz-teal-deep); background: transparent; }

/* ---------- cards (post-its) ---------- */

.board-card {
    position: relative;
    color: #26241c;
    cursor: grab;
    border: none;
    box-shadow: var(--bz-shadow-1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
    transition: box-shadow .15s ease, transform .15s ease;
}
.board-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 13px;
    height: 13px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    background: rgba(0, 0, 0, 0.18);
}
.board-card:hover:not(.dragging) { box-shadow: var(--bz-shadow-2); transform: translateY(-2px); }
.board-card:nth-child(3n+1) { transform: rotate(-0.6deg); }
.board-card:nth-child(3n+2) { transform: rotate(0.5deg); }
.board-card:nth-child(3n+1):hover:not(.dragging),
.board-card:nth-child(3n+2):hover:not(.dragging) { transform: translateY(-2px) rotate(0deg); }

.board-card .fw-semibold { font-family: var(--bz-font-body); font-weight: 700; font-size: 14px; line-height: 1.35; }

.badge-label {
    font-family: var(--bz-font-display);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 9.5px !important;
    background: rgba(0, 0, 0, 0.14) !important;
    color: inherit !important;
}

.card-label-toggle {
    cursor: pointer;
    user-select: none;
    opacity: 0.55;
    border: 2px solid transparent;
    font-family: var(--bz-font-display);
    letter-spacing: 0.02em;
}
.card-label-toggle.active { opacity: 1; border-color: rgba(0, 0, 0, 0.35); }

.comment-item {
    background: var(--bz-surface-sunken);
    border-radius: 8px;
    padding: 7px 10px;
    margin-bottom: 6px;
}

.board-card.dragging { opacity: 0.45; cursor: grabbing; box-shadow: none; transform: none; }
.column-cards.drop-target {
    outline: 1.5px dashed var(--bz-teal);
    outline-offset: -1.5px;
    background: var(--bz-teal-tint);
    border-radius: var(--bz-radius-sm);
}
.board-card.filtered-out { display: none; }

/* =====================================================================
 * Quadro Visual 2.0 — componentes globais
 * ===================================================================== */

.skip-link { position: absolute; left: 12px; top: 8px; z-index: 2000; padding: 8px 14px; background: var(--bz-surface); border-radius: 8px; box-shadow: var(--bz-shadow-2); }
:focus-visible { outline: 3px solid rgba(var(--bz-teal-rgb), 0.6); outline-offset: 2px; }
.main-nav-links .nav-link { color: var(--bz-ink-soft); font-weight: 600; font-size: 14.5px; border-radius: 6px; }
.main-nav-links .nav-link:hover, .main-nav-links .nav-link.active { color: var(--bz-teal-deep); background: var(--bz-teal-tint); }
.navbar-toggler { border-color: var(--bz-line); color: var(--bz-ink); }
@media (max-width: 1199.98px) { .nav-actions { padding: 8px 0 4px; } }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { color: var(--bz-ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--bz-teal-deep); text-decoration: underline; }

/* Avisos rápidos */
.qv-toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.qv-toast { pointer-events: auto; padding: 10px 16px; border-radius: 10px; background: #1b2333; color: #fff; font-size: 14px; box-shadow: var(--bz-shadow-2); transition: opacity 0.3s, transform 0.3s; }
.qv-toast-success { background: #1d6b3d; }
.qv-toast-error { background: #b3261e; }
.qv-toast.is-leaving { opacity: 0; transform: translateY(8px); }

/* Páginas de conteúdo (dinâmicas, educadores, Jamboard, legais) */
.content-page { max-width: 880px; margin: 0 auto; }
.content-hero { padding: 12px 0 20px; }
.content-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12.5px; font-weight: 700; color: var(--bz-teal); margin-bottom: 6px; }
.content-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.content-hero .lead { color: var(--bz-ink-soft); font-size: 18px; }
.content-section { padding: 18px 0; border-top: 1px solid var(--bz-line); }
.content-section h2 { font-size: 22px; margin-bottom: 12px; }
.content-section h3 { font-size: 17px; margin-top: 12px; }
.content-section p, .content-section li { line-height: 1.65; }
.content-page .table { background: var(--bz-surface); }
.breadcrumb { font-size: 13.5px; }
.breadcrumb a { text-decoration: none; }

/* Biblioteca de dinâmicas (E6.5) */
.dyn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.dyn-filters a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--bz-line); background: var(--bz-surface); color: var(--bz-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.dyn-filters a.active, .dyn-filters a:hover { background: var(--bz-teal); border-color: var(--bz-teal); color: #fff; }
.dyn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 28px; }
.dyn-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--bz-radius-md); border: 1px solid var(--bz-line); background: var(--bz-surface); text-decoration: none; color: var(--bz-ink); transition: border-color 0.15s, box-shadow 0.15s; height: 100%; }
.dyn-card:hover { border-color: var(--bz-teal); box-shadow: var(--bz-shadow-2); color: var(--bz-ink); }
.dyn-card h3 { font-size: 17px; margin: 0; }
.dyn-card p { font-size: 14px; color: var(--bz-ink-soft); margin: 0; flex: 1; }
.dyn-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--bz-ink-soft); }
.dyn-cols { display: flex; gap: 4px; }
.dyn-cols span { flex: 1; height: 8px; border-radius: 3px; }
.dyn-steps { counter-reset: step; list-style: none; padding: 0; }
.dyn-steps li { counter-increment: step; position: relative; padding: 0 0 16px 48px; }
.dyn-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--bz-teal); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.dyn-steps strong { display: block; margin-bottom: 2px; }
.dyn-cta { position: sticky; top: 88px; }
.dyn-board-preview { display: flex; gap: 6px; }
.dyn-board-preview div { flex: 1; min-height: 90px; border-radius: 8px; padding: 6px; font-size: 12px; font-weight: 700; color: #1b2333; overflow-wrap: anywhere; }

/* Painel do organizador (E2.7–E2.9) */
.dash-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 991.98px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side { position: sticky; top: 84px; }
@media (max-width: 991.98px) { .dash-side { position: static; } }
.dash-side .list-group-item { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; padding: 7px 10px; font-size: 14.5px; }
.dash-side .list-group-item.active { background: var(--bz-teal-tint); color: var(--bz-teal-deep); font-weight: 700; }
.dash-side .list-group-item .badge { margin-left: auto; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.board-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--bz-radius-md); border: 1px solid var(--bz-line); background: var(--bz-surface); overflow: hidden; transition: box-shadow 0.15s, border-color 0.15s; }
.board-tile:hover { border-color: var(--bz-teal); box-shadow: var(--bz-shadow-2); }
.board-thumb { display: flex; gap: 5px; height: 110px; padding: 10px; background: var(--bz-surface-sunken); border-bottom: 3px solid var(--tile-color, var(--bz-teal)); }
.board-thumb-col { flex: 1; min-width: 0; border-radius: 5px; background: var(--bz-surface); padding: 4px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.board-thumb-col span { display: block; height: 11px; border-radius: 2px; flex-shrink: 0; }
.board-thumb-col .thumb-title { height: 5px; width: 60%; background: var(--bz-line-strong); margin-bottom: 2px; }
.board-thumb-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--bz-ink-faint); font-size: 26px; }
.board-tile-body { padding: 10px 12px; flex: 1; }
.board-tile-body a.stretched-link { color: var(--bz-ink); text-decoration: none; }
.board-tile-body h3 { font-size: 15.5px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-tile-meta { font-size: 12.5px; color: var(--bz-ink-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.board-tile-actions { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; z-index: 2; }
.board-tile-actions .btn { background: var(--bz-surface); border: 1px solid var(--bz-line); padding: 2px 7px; }
.fav-btn.is-fav { color: #b8860b; }
.dash-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-stat { flex: 1 1 160px; padding: 12px 14px; border-radius: var(--bz-radius-md); background: var(--bz-surface); border: 1px solid var(--bz-line); text-decoration: none; color: var(--bz-ink); }
.dash-stat strong { display: block; font-size: 22px; font-family: var(--bz-font-display); }
.dash-stat span { font-size: 13px; color: var(--bz-ink-soft); }

/* Entrar com código (E1.1) */
.join-card { max-width: 440px; margin: 20px auto; }
.join-code-input { font-size: 40px; letter-spacing: 0.35em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 0.35em; }

/* Página inicial (E6.3) */
.landing-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 10px 0 44px; }
@media (max-width: 767.98px) { .landing-roles { grid-template-columns: 1fr; } }
.landing-role { padding: 22px; border-radius: 16px; border: 1px solid var(--bz-line); background: var(--bz-surface); }
.landing-role h2 { font-size: 20px; }
.landing-role ul { padding-left: 0; list-style: none; margin: 12px 0 0; }
.landing-role li { display: flex; gap: 10px; margin-bottom: 10px; }
.landing-role li i { color: var(--bz-teal); font-size: 18px; }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 44px; }
@media (max-width: 767.98px) { .landing-steps { grid-template-columns: 1fr; } }
.landing-step { padding: 18px; border-radius: 14px; background: var(--bz-surface); border: 1px solid var(--bz-line); }
.landing-step b { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: var(--bz-teal); color: #fff; margin-bottom: 8px; }
.landing-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--bz-line); background: #0b1a46; }
.landing-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Demonstração viva da Home (só CSS, ciclo de 12 s) ----------
   Todas as medidas em cqw (1% da largura da cena): a cena escala sem distorcer. */
.live-demo-figure { margin: 0; }
.live-demo {
    container-type: inline-size;
    position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.2px) 0 0 / 2.4cqw 2.4cqw,
        radial-gradient(circle at 85% 8%, rgba(76, 159, 224, 0.55), transparent 55%),
        radial-gradient(circle at 8% 95%, rgba(109, 91, 208, 0.45), transparent 50%),
        linear-gradient(150deg, #0b1a46, #122c68);
    box-shadow: 0 30px 60px -28px rgba(11, 26, 70, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-family: var(--bz-font-body); color: #1b2333; line-height: 1.25;
}
.live-demo .bi { font-size: inherit; line-height: 1; }
.live-demo b.bi { font-weight: normal; }
.demo-caption { margin: 12px 0 0; text-align: center; color: var(--bz-ink-soft); font-size: 14px; }

/* Janela do navegador com o quadro */
.ld-window {
    position: absolute; left: 20cqw; top: 4cqw; right: 3cqw; bottom: 5cqw;
    background: #f4f6f9; border-radius: 1.6cqw; overflow: hidden;
    box-shadow: 0 2.4cqw 5cqw -1.6cqw rgba(0, 0, 0, 0.55);
}
.ld-bar { height: 3.6cqw; display: flex; align-items: center; gap: 0.7cqw; padding: 0 1.4cqw; background: #e3e7ee; }
.ld-bar > i { width: 1cqw; height: 1cqw; border-radius: 50%; background: #f26b6b; }
.ld-bar > i:nth-child(2) { background: #f5c451; }
.ld-bar > i:nth-child(3) { background: #5fce7a; }
.ld-url { margin-left: 1.4cqw; flex: 1; height: 2.2cqw; border-radius: 1.1cqw; background: #fff; display: flex; align-items: center; gap: 0.6cqw; padding: 0 1.2cqw; font-size: 1.15cqw; color: #5b6472; }
.ld-url .bi { color: #1a8a6a; font-size: 0.95cqw; }
.ld-head { height: 5.4cqw; display: flex; align-items: center; gap: 1cqw; padding: 0 2cqw; background: #fff; border-bottom: 1px solid #e3e7ee; }
.ld-dot { width: 1.3cqw; height: 1.3cqw; border-radius: 0.35cqw; background: #1874be; flex-shrink: 0; }
.ld-title { font-family: var(--bz-font-display); font-weight: 700; font-size: 1.7cqw; white-space: nowrap; }
.ld-avatars { margin-left: auto; display: flex; align-items: center; }
.ld-avatars > b {
    width: 2.8cqw; height: 2.8cqw; margin-left: -0.7cqw; border-radius: 50%; border: 0.3cqw solid #fff;
    background: var(--c); color: #fff; font-size: 0.95cqw; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ld-avatars > em { font-style: normal; font-size: 1.15cqw; color: #5b6472; margin-left: 0.8cqw; display: flex; align-items: center; gap: 0.4cqw; }
.ld-online { width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: #22a25a; box-shadow: 0 0 0 0.3cqw rgba(34, 162, 90, 0.2); }
.ld-timer {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.5cqw;
    padding: 0.5cqw 1cqw 0.7cqw; border-radius: 0.8cqw; background: #0b1a46; color: #fff; font-size: 1.25cqw; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.ld-timer > i { position: absolute; left: 0; bottom: 0; height: 0.25cqw; width: 100%; background: #f5c451; transform-origin: left; animation: ldTimer 12s linear infinite; }

.ld-stages { height: 3.8cqw; display: flex; align-items: center; gap: 0.6cqw; padding: 0 1.4cqw; }
.ld-stages span { padding: 0.35cqw 1cqw; border-radius: 1.2cqw; background: #fff; border: 1px solid #dde2e9; font-size: 1cqw; font-weight: 700; color: #5b6472; white-space: nowrap; }
.ld-stages .done { color: #1a6338; background: #e2f0e7; border-color: #c4e2cf; }
.ld-stages .on { background: #1874be; border-color: #1874be; color: #fff; box-shadow: 0 0 0 0.35cqw rgba(24, 116, 190, 0.2); }
.ld-done { opacity: 0.75; }
.ld-done small .bi { color: #1a6338; }
.ld-cols { position: absolute; top: 12.8cqw; left: 1.4cqw; right: 1.4cqw; bottom: 1.4cqw; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2cqw; }
.ld-col { background: #eaedf2; border-radius: 1cqw; padding: 1.2cqw; border-top: 0.4cqw solid var(--a); }
.ld-col-title { height: 2.8cqw; margin: 0 0 1cqw; display: flex; align-items: center; justify-content: space-between; font-family: var(--bz-font-display); font-size: 1.3cqw; font-weight: 700; color: #1b2333; }
.ld-col-title small { font-size: 1cqw; min-width: 2cqw; padding: 0.2cqw 0.6cqw; border-radius: 1cqw; background: #fff; color: #5b6472; text-align: center; }
.ld-note {
    position: relative; height: 6.8cqw; margin-bottom: 1cqw; padding: 1cqw 1.1cqw; border-radius: 0.8cqw;
    background: var(--n); font-size: 1.25cqw; font-weight: 600; color: #1b2333;
    box-shadow: 0 0.2cqw 0.5cqw rgba(27, 35, 51, 0.12);
}
.ld-note small { display: block; margin-top: 0.5cqw; font-size: 1cqw; font-weight: 400; color: #3d4757; }
.ld-by { position: absolute; left: 1.1cqw; bottom: 0.9cqw; width: 1.5cqw; height: 1.5cqw; border-radius: 50%; background: var(--c); border: 0.2cqw solid rgba(255, 255, 255, 0.8); }
.ld-vote {
    position: absolute; right: 0.9cqw; bottom: 0.8cqw; display: flex; align-items: center; gap: 0.35cqw;
    padding: 0.25cqw 0.6cqw; border-radius: 1cqw; background: #1874be; color: #fff; font-size: 0.95cqw; font-weight: 700;
}
.ld-v1 { animation: ldBump 12s ease-out infinite; animation-delay: 7.2s; }
.ld-v2 { animation: ldBump 12s ease-out infinite; animation-delay: 8.4s; }
.ld-v3 { opacity: 0; animation: ldVoteIn 12s ease-out infinite; }
.ld-new { opacity: 0; animation: ldNoteIn 12s cubic-bezier(0.2, 0.9, 0.3, 1.2) infinite; }

/* Cursores de outras pessoas no quadro */
.ld-cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; pointer-events: none; }
.ld-cursor .bi { color: var(--c); font-size: 1.8cqw; transform: rotate(-90deg) scaleX(-1); filter: drop-shadow(0 0.1cqw 0.2cqw rgba(0, 0, 0, 0.3)); }
.ld-cursor em { font-style: normal; margin: 1.4cqw 0 0 -0.3cqw; padding: 0.2cqw 0.7cqw; border-radius: 0.6cqw; background: var(--c); color: #fff; font-size: 0.95cqw; font-weight: 700; }
.ld-c1 { animation: ldCursor1 9s ease-in-out infinite; }
.ld-c2 { animation: ldCursor2 11s ease-in-out infinite; }

/* Celular do participante */
.ld-phone {
    position: absolute; left: 2cqw; top: 9.5cqw; width: 19.5cqw; height: 42cqw; z-index: 2;
    border-radius: 3cqw; background: #fff; border: 0.9cqw solid #1b2333; padding: 3.2cqw 1.2cqw 1.2cqw;
    box-shadow: 0 2.4cqw 4.8cqw -1cqw rgba(0, 0, 0, 0.6); transform: rotate(-3deg);
    display: flex; flex-direction: column; gap: 1.1cqw;
}
.ld-notch { position: absolute; top: 0.8cqw; left: 50%; width: 5.5cqw; height: 1.2cqw; margin-left: -2.75cqw; border-radius: 0.6cqw; background: #1b2333; }
.ld-phone-top { display: flex; align-items: center; gap: 0.7cqw; font-family: var(--bz-font-display); font-size: 1.2cqw; font-weight: 700; white-space: nowrap; overflow: hidden; }
.ld-chips { display: flex; gap: 0.6cqw; }
.ld-chips span { padding: 0.4cqw 0.9cqw; border-radius: 1.2cqw; border: 1px solid #dde2e9; font-size: 0.95cqw; font-weight: 600; color: #3d4757; white-space: nowrap; }
.ld-chips .on { background: #1b2333; border-color: #1b2333; color: #fff; }
.ld-input { height: 9cqw; border-radius: 1cqw; background: #f4dd8f; padding: 1cqw; font-size: 1.2cqw; font-weight: 600; display: flex; align-items: flex-start; }
.ld-typed { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; animation: ldType 12s steps(20, end) infinite; }
.ld-caret { width: 0.15cqw; height: 1.5cqw; background: #1b2333; margin-left: 0.1cqw; animation: ldCaret 0.9s steps(1) infinite; }
.ld-swatches { display: flex; gap: 0.8cqw; }
.ld-swatches i { width: 2.3cqw; height: 2.3cqw; border-radius: 50%; background: var(--n); border: 0.2cqw solid rgba(0, 0, 0, 0.08); }
.ld-swatches .on { box-shadow: 0 0 0 0.25cqw #fff, 0 0 0 0.45cqw #1b2333; }
.ld-send {
    margin-top: auto; height: 4.2cqw; border-radius: 1cqw; background: #1874be; color: #fff;
    display: flex; align-items: center; justify-content: center; gap: 0.6cqw; font-size: 1.35cqw; font-weight: 700;
    animation: ldPress 12s ease-out infinite;
}

/* Cartão "voando" do celular até a coluna (posição final = 3º cartão da 1ª coluna) */
.ld-fly {
    position: absolute; left: 22.6cqw; top: 37.4cqw; width: 21.5cqw; height: 6.8cqw; z-index: 3;
    padding: 1cqw 1.1cqw; border-radius: 0.8cqw; background: var(--n); font-size: 1.25cqw; font-weight: 600;
    box-shadow: 0 1.4cqw 3cqw -0.6cqw rgba(0, 0, 0, 0.45); opacity: 0;
    animation: ldFly 12s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
.ld-toast {
    position: absolute; left: 4.2cqw; top: 41cqw; z-index: 3; display: flex; align-items: center; gap: 0.6cqw;
    padding: 0.7cqw 1.2cqw; border-radius: 1.2cqw; background: #1d6b3d; color: #fff; font-size: 1.15cqw; font-weight: 700;
    opacity: 0; animation: ldToast 12s ease-out infinite;
}
.ld-join { animation: ldJoin 12s ease-out infinite; }

@keyframes ldType { 0%, 5% { max-width: 0; opacity: 1; } 30%, 36% { max-width: 14cqw; opacity: 1; } 37%, 100% { max-width: 14cqw; opacity: 0; } }
@keyframes ldCaret { 50% { opacity: 0; } }
@keyframes ldPress { 0%, 32% { transform: none; filter: none; } 34% { transform: scale(0.93); filter: brightness(1.25); } 37%, 100% { transform: none; filter: none; } }
@keyframes ldFly {
    0%, 35% { opacity: 0; transform: translate(-21.6cqw, -17cqw) scale(0.71) rotate(-3deg); }
    37% { opacity: 1; transform: translate(-21.6cqw, -17cqw) scale(0.71) rotate(-3deg); }
    42% { opacity: 1; transform: translate(-10cqw, -21cqw) scale(0.9) rotate(-5deg); }
    47% { opacity: 1; transform: none; }
    49%, 100% { opacity: 0; transform: none; }
}
@keyframes ldNoteIn {
    0%, 46% { opacity: 0; transform: scale(0.92); box-shadow: 0 0 0 0 rgba(24, 116, 190, 0); }
    48% { opacity: 1; transform: scale(1.05); box-shadow: 0 0 0 0.5cqw rgba(24, 116, 190, 0.55); }
    58% { opacity: 1; transform: none; box-shadow: 0 0 0 1.4cqw rgba(24, 116, 190, 0); }
    94% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; transform: none; }
}
@keyframes ldVoteIn { 0%, 63% { opacity: 0; transform: scale(0.4); } 66% { opacity: 1; transform: scale(1.25); } 69%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes ldBump { 0% { transform: scale(1.3); background: #22a25a; } 6%, 100% { transform: none; } }
@keyframes ldToast { 0%, 37% { opacity: 0; transform: translateY(1cqw); } 40%, 54% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateY(-0.6cqw); } }
@keyframes ldJoin { 0%, 6% { opacity: 0; transform: scale(0.3); } 10% { opacity: 1; transform: scale(1.2); } 13%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ldTimer { from { transform: scaleX(1); } to { transform: scaleX(0.35); } }
@keyframes ldCursor1 {
    0%, 100% { transform: translate(50cqw, 16cqw); }
    30% { transform: translate(40cqw, 26cqw); }
    55% { transform: translate(52cqw, 34cqw); }
    80% { transform: translate(60cqw, 22cqw); }
}
@keyframes ldCursor2 {
    0%, 100% { transform: translate(18cqw, 44cqw); }
    35% { transform: translate(30cqw, 38cqw); }
    60% { transform: translate(22cqw, 30cqw); }
    85% { transform: translate(12cqw, 40cqw); }
}
/* Movimento reduzido: mostra o estado final, sem animação */
@media (prefers-reduced-motion: reduce) {
    .live-demo * { animation: none !important; }
    .ld-typed { max-width: none; }
    .ld-new, .ld-v3, .ld-join { opacity: 1; }
    .ld-fly, .ld-toast { display: none; }
    .ld-c1 { transform: translate(50cqw, 18cqw); }
    .ld-c2 { transform: translate(24cqw, 40cqw); }
}
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 44px; }
.testimonial-card { padding: 20px; border-radius: 14px; background: var(--bz-surface); border: 1px solid var(--bz-line); }
.testimonial-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cta-band { text-align: center; padding: 36px 20px; border-radius: 20px; background: linear-gradient(135deg, #0e4e85, #1874be); color: #fff; margin-bottom: 20px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4eef7; }
.cta-band .btn-light { color: #0e4e85; font-weight: 700; }

/* Status (RNF14) */
.status-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bz-surface); border: 1px solid var(--bz-line); margin-bottom: 8px; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.status-ok { background: #22a25a; }
.status-bad { background: #da3438; }
.status-warn { background: #e0a800; }

/* Métricas do admin */
.metric-card { padding: 16px; border-radius: 12px; border: 1px solid var(--bz-line); background: var(--bz-surface); height: 100%; }
.metric-card .metric-value { font-size: 30px; font-weight: 700; font-family: var(--bz-font-display); }
.metric-card .metric-goal { font-size: 12.5px; color: var(--bz-ink-soft); }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding-top: 18px; }
.bar-chart div { flex: 1; background: var(--bz-teal); border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.bar-chart div span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--bz-ink-soft); }
.bar-labels { display: flex; gap: 8px; font-size: 11px; color: var(--bz-ink-soft); }
.bar-labels span { flex: 1; text-align: center; }

/* Logo (texto escuro) legível no tema escuro */
[data-bs-theme="dark"] .navbar-logo-img { background: #f4f6f9; border-radius: 10px; padding: 2px 8px; }

/* ---------- Acessibilidade (revisão UX/a11y) ---------- */
/* Tema escuro: o azul claro precisa de texto escuro para passar de 4,5:1. */
[data-bs-theme="dark"] .btn-primary {
    --bs-btn-color: #0b1a46; --bs-btn-hover-color: #0b1a46; --bs-btn-active-color: #0b1a46; --bs-btn-disabled-color: #0b1a46;
}
:focus-visible { outline: 3px solid var(--bz-teal); outline-offset: 2px; }
::placeholder { color: #6b7280; opacity: 1; }
[data-bs-theme="dark"] ::placeholder { color: #9aa3b2; }
.qv-toast { display: flex; align-items: center; gap: 12px; }
.qv-toast-action {
    border: 0; background: transparent; color: #9fd0ff; font-weight: 700; padding: 4px 6px; margin: -4px -6px -4px 0;
    border-radius: 6px; text-decoration: underline; min-height: 32px;
}
.qv-toast-action:focus-visible { outline: 2px solid #fff; }
@media (pointer: coarse) {
    .btn, .dropdown-item, .form-select, .form-control { min-height: 44px; }
    .btn-sm { min-height: 40px; }
}
@media (max-width: 575.98px) {
    input.form-control, select.form-select, textarea.form-control { font-size: 16px; } /* evita zoom automático no iOS */
    .qv-toasts { bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.hero-trust { margin: 12px 0 0; font-size: 14px; color: var(--bz-ink-soft); }
.hero-trust a { color: inherit; }

#qvToastsPolite, #qvToastsAlert { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* ---------- Revisão de design (UX/UI) ---------- */
/* Corbel usa algarismos "antigos" (3o, o,o1): números legíveis em datas, contagens e tempos. */
body { font-variant-numeric: lining-nums; }
table, .badge, .dyn-meta, .qv-column-count, .metric-card, .status-item { font-variant-numeric: lining-nums tabular-nums; }

/* Contêiner central comum (.wrap): a largura máxima cresce com a tela.
   Até 1.439 px → 1.280 px · 1.440–1.759 px → 1.400 px · 1.760 px+ → 1.520 px.
   Margem lateral de 32 px (18 px até 480 px); a área útil é a largura menos as margens.
   Fundos (cabeçalho, rodapé, faixas) vão de ponta a ponta; só o conteúdo respeita o limite.
   O quadro (page-board) e o modo incorporado continuam em tela cheia. */
:root { --qv-wrap: 1280px; --qv-gutter: 32px; }
@media (min-width: 1440px) { :root { --qv-wrap: 1400px; } }
@media (min-width: 1760px) { :root { --qv-wrap: 1520px; } }
@media (max-width: 480px) { :root { --qv-gutter: 18px; } }
.wrap,
body:not(.page-board):not(.layout-minimal) > main#main,
body:not(.page-board) > .navbar > .container-fluid,
.site-footer > .container-fluid {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--qv-wrap);
    margin-inline: auto;
    padding-inline: var(--qv-gutter);
}
/* Páginas de texto usam toda a largura do contêiner (sem quebrar linhas antes da borda). */
.content-page { max-width: none; }

/* Hero: três destaques alinhados, sem item órfão */
.hero-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hero-feature { max-width: none; }
.hero-feature span { font-size: 13.5px; }
.hero-trust { margin: -20px 0 28px; }
@media (max-width: 575.98px) {
    .hero-features { grid-template-columns: 1fr; gap: 14px; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-trust { margin-top: -18px; }
}

/* Dinâmicas em destaque na Home: grade regular (4 × 2) */
.dyn-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .dyn-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .dyn-grid-home { grid-template-columns: 1fr; } }

/* Painel no celular: os quadros vêm antes dos atalhos e pastas */
@media (max-width: 991.98px) {
    .dash-layout > .dash-side { order: 2; }
}

/* Abas do admin: rolagem horizontal no celular em vez de quebrar em várias linhas */
@media (max-width: 767.98px) {
    .admin-tabs { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .admin-tabs .nav-link { white-space: nowrap; }
}

/* Selo de severidade também fora do quadro (página da série) */
.qv-sev { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #1b2333; border: 1px solid rgba(0, 0, 0, 0.12); }

/* Hierarquia: títulos de seção proporcionais ao hero e com respiro consistente */
.section-heading { font-size: clamp(22px, 2.4vw, 28px); margin: 8px 0 24px; }
section + .section-heading, .landing-steps + section, #templates { margin-top: 12px; }
/* Imagem de destaque administrável: mostra a arte inteira (sem cortar textos da imagem) */
.landing-banner img { object-fit: contain; background: var(--bz-surface); max-height: 360px; height: auto; }
/* Rodapé: links com área de toque adequada no celular */
@media (pointer: coarse) {
    .footer-links { gap: 2px 8px; }
    .footer-links a { display: inline-block; padding: 10px 6px; }
}

/* Tema escuro: texto escuro sobre o azul claro em todos os elementos de destaque (contraste AA) */
[data-bs-theme="dark"] .dyn-filters a.active,
[data-bs-theme="dark"] .dyn-filters a:hover,
[data-bs-theme="dark"] .dyn-steps li::before,
[data-bs-theme="dark"] .landing-step b,
[data-bs-theme="dark"] .nav-pills .nav-link.active,
[data-bs-theme="dark"] .badge.text-bg-primary { color: #0b1a46 !important; }

/* Hero: mais espaço para a demonstração */
@media (min-width: 992px) {
    .hero-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; }
}

/* Página "Entrar num quadro": ajuda abaixo do formulário */
.join-help { max-width: 640px; margin: 32px auto 0; }
.join-help h3 { margin-top: 16px; }

/* ---------- Casos de uso ---------- */
.usecase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.usecase-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 991.98px) { .usecase-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .usecase-grid-home { grid-template-columns: 1fr; } }
.usecase-card {
    display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; background: var(--bz-surface);
    border: 1px solid var(--bz-line); color: var(--bz-ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; height: 100%;
}
.usecase-card:hover { border-color: var(--bz-teal); box-shadow: var(--bz-shadow-2); color: var(--bz-ink); }
.usecase-card h2, .usecase-card h3 { margin: 4px 0 0; }
.usecase-card p { color: var(--bz-ink-soft); font-size: 14.5px; margin: 0; flex: 1; }
.usecase-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--bz-teal-tint); color: var(--bz-teal-deep); font-size: 20px; }
.usecase-audience { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bz-teal-deep); }
.usecase-more { font-weight: 700; font-size: 14px; color: var(--bz-teal); margin-top: 6px; }
.usecase-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.usecase-features .bi { color: var(--bz-amber); }
.usecase-story { margin-bottom: 32px; }

/* Barra de compartilhamento */
.share-bar { padding: 16px 18px; margin: 18px 0; border-radius: 12px; background: var(--bz-surface); border: 1px solid var(--bz-line); }
.share-bar h2 { margin-bottom: 10px; }

/* Impressão das dinâmicas e casos de uso: só o conteúdo, com o endereço do site */
@media print {
    .navbar, .site-footer, .share-bar, .cta-band, .dyn-cta form, .breadcrumb, .btn, #qvToasts, .skip-link { display: none !important; }
    body { background: #fff !important; color: #000; }
    body::after { content: "Quadro Visual · quadro colaborativo grátis · quadrovisual.org"; display: block; margin-top: 24px; padding-top: 8px; border-top: 1px solid #999; font-size: 11pt; }
    .row > .col-lg-8, .row > .col-lg-4 { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
    .dyn-card, .usecase-card { break-inside: avoid; }
    a { color: #000; text-decoration: none; }
}
.usecase-card-story { border-style: dashed; border-color: var(--bz-line-strong); background: transparent; }

/* ---------- Kit do Professor ---------- */
.kit-checklist { list-style: none; padding: 0; display: grid; gap: 8px; }
.kit-checklist .bi { color: var(--bz-teal); margin-right: 6px; }
.kit-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1199.98px) { .kit-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .kit-week { grid-template-columns: 1fr; } }
.kit-day { padding: 16px; border-radius: 12px; background: var(--bz-surface); border: 1px solid var(--bz-line); border-top: 4px solid var(--bz-teal); }
.kit-day-name { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bz-teal-deep); }
.kit-day p { font-size: 14.5px; }
.kit-poster { padding: 24px; border-radius: 14px; border: 2px dashed var(--bz-teal); background: var(--bz-surface); }
.kit-poster-title { font-family: var(--bz-font-display); font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.kit-poster ol { font-size: 18px; }
.kit-poster-code { font-family: var(--bz-font-display); font-size: 20px; font-weight: 700; }

/* ---------- Páginas de solução (Gestão de projetos / produtos) ---------- */
.solution-rituals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 991.98px) { .solution-rituals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .solution-rituals { grid-template-columns: 1fr; } }
.solution-ritual { padding: 18px; border-radius: 12px; background: var(--bz-surface); border: 1px solid var(--bz-line); border-top: 4px solid var(--bz-teal); }
.solution-ritual p { font-size: 14.5px; }

/* Menu com 5 itens: nomes numa linha só; compacto entre 1.200 e 1.439 px (abaixo disso, menu recolhido) */
.main-nav-links .nav-link { white-space: nowrap; }
.nav-label-short { display: none; }
@media (min-width: 1200px) and (max-width: 1759.98px) {
    .nav-label-long { display: none; }
    .nav-label-short { display: inline; }
}
@media (min-width: 1440px) and (max-width: 1759.98px) {
    .navbar-logo-img { height: 50px; }
}
@media (min-width: 1200px) and (max-width: 1279.98px) {
    .navbar-logo-img { height: 38px !important; }
    .main-nav-links .nav-link { font-size: 13px !important; padding-left: 0.4rem !important; padding-right: 0.4rem !important; }
    .nav-actions .btn-sm { font-size: 13px; padding-left: 0.45rem !important; padding-right: 0.45rem !important; }
}
@media (min-width: 1200px) and (max-width: 1439.98px) {
    .navbar-logo-img { height: 42px; }
    .main-nav-links .nav-link { font-size: 13.5px; padding-left: 0.45rem !important; padding-right: 0.45rem !important; }
    .nav-actions { gap: 6px !important; }
    .nav-actions .btn-sm { padding-left: 0.55rem; padding-right: 0.55rem; }
}

/* ---------- Admin: Jornada do Profissional ---------- */
.journey-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.journey-timeline::before { content: ""; position: absolute; left: 76px; top: 8px; bottom: 8px; width: 2px; background: var(--bz-line); }
.journey-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 26px; margin-bottom: 14px; position: relative; }
.journey-step::before { content: ""; position: absolute; left: 71px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--bz-teal); border: 2px solid var(--bz-surface); }
.journey-step.is-off::before { background: var(--bz-line-strong); }
.journey-step.is-off .journey-card { opacity: 0.65; }
.journey-when { font-size: 12.5px; font-weight: 700; color: var(--bz-teal-deep); text-align: right; padding-top: 12px; line-height: 1.25; }
.journey-card { padding: 14px 16px; border-radius: 12px; background: var(--bz-surface); border: 1px solid var(--bz-line); }
@media (max-width: 575.98px) {
    .journey-timeline::before, .journey-step::before { display: none; }
    .journey-step { grid-template-columns: 1fr; gap: 4px; }
    .journey-when { text-align: left; padding-top: 0; }
}
.journey-body { font-family: var(--bz-font-body); line-height: 1.5; }
.journey-preview { position: sticky; top: 90px; }
.journey-preview-frame { width: 100%; height: 640px; border: 1px solid var(--bz-line); border-radius: 12px; background: #f4f6f9; }

/* ---------- Validação final (acessibilidade) ---------- */
/* Botão com contorno na cor da marca (o padrão do Bootstrap ficava abaixo de 4,5:1) */
.btn-outline-primary {
    --bs-btn-color: var(--bz-teal-deep); --bs-btn-border-color: var(--bz-teal);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--bz-teal-deep); --bs-btn-hover-border-color: var(--bz-teal-deep);
    --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--bz-teal-deep); --bs-btn-active-border-color: var(--bz-teal-deep);
    --bs-btn-disabled-color: var(--bz-teal-deep); --bs-btn-disabled-border-color: var(--bz-teal);
}
[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: var(--bz-teal-deep); --bs-btn-border-color: var(--bz-teal);
    --bs-btn-hover-color: #0b1a46; --bs-btn-hover-bg: var(--bz-teal); --bs-btn-hover-border-color: var(--bz-teal);
    --bs-btn-active-color: #0b1a46; --bs-btn-active-bg: var(--bz-teal); --bs-btn-active-border-color: var(--bz-teal);
}
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { border-color: #5f6774; }
/* Etapa desativada: indicada pela borda tracejada, sem apagar o texto */
.journey-step.is-off .journey-card { opacity: 1; border-style: dashed; }
