:root {
    --escolartec-accent: #f7a400;
}

body {
    overflow-x: hidden;
}

.brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--escolartec-accent);
}

.brand-logo .brand-tec {
    font-weight: 400;
    color: #212529;
}

.navbar-brand img {
    height: 40px;
    margin-right: .5rem;
}

.hero {
    min-height: 90vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.65) 100%);
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

@media (max-width: 400px) {
    .hero {
        min-height: 80vh;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Secção "Apps oficiais" — selos oficiais Apple/Google (images/stores/) */
.store-apps {
    background: radial-gradient(ellipse at top, #1e2a44 0%, #111827 60%);
    color: #fff;
}

.store-apps-eyebrow {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: rgba(247, 164, 0, .15);
    color: var(--escolartec-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.store-apps-lead {
    max-width: 36rem;
    color: rgba(255, 255, 255, .7);
}

.store-app-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, .04);
}

.store-app-shot {
    flex: 0 0 34%;
    max-width: 200px;
}

.store-app-shot img {
    width: 100%;
    height: auto;
    border-radius: .9rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .35);
}

.store-app-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-app-icon {
    border-radius: 22%;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .3);
}

.store-app-audience {
    display: block;
    color: var(--escolartec-accent);
    font-size: .85rem;
    font-weight: 600;
}

.store-app-pitch {
    color: rgba(255, 255, 255, .75);
}

.store-app-bullets li {
    margin-bottom: .35rem;
    color: rgba(255, 255, 255, .9);
}

.store-app-bullets i {
    color: var(--escolartec-accent);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
}

.store-badge {
    position: relative;
    display: inline-block;
    line-height: 0;
    transition: transform .15s ease;
}

a.store-badge:hover,
a.store-badge:focus-visible {
    transform: translateY(-2px);
}

/* Altura visível igual nos dois selos: o PNG do Google traz margem transparente (24px de 250). */
.store-badge-apple img {
    height: 48px;
    width: auto;
}

.store-badge-google img {
    height: calc(48px * 250 / 202);
    width: auto;
    margin: calc(-48px * 24 / 202);
}

@media (max-width: 575.98px) {
    .store-app-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .store-app-card .d-flex.align-items-center {
        flex-direction: column;
    }

    .store-app-shot {
        max-width: 180px;
    }

    .store-app-bullets {
        text-align: left;
    }

    .store-badges {
        justify-content: center;
    }
}

/* Public site top bar (partials/_site_nav.html.twig) */
.site-nav .nav-link { font-weight: 600; color: #495057; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--escolartec-accent); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { border-top: 1px solid #eee; margin-top: .5rem; }
    .site-nav .nav-link { padding: .7rem .25rem; }
}
@media (max-width: 380px) {
    .site-nav .brand-logo { font-size: 1.25rem; }
    .site-nav .navbar-brand img { height: 34px; }
}

/* ===== Tutoriais em vídeo (home, /tutoriais, /tutoriais/{slug}) =====
   Motorista = green, Família = yellow. */
:root {
    --tut-motorista: #198754;
    --tut-motorista-soft: #e8f5ee;
    --tut-familia: #f7a400;
    --tut-familia-ink: #8a5a00;
    --tut-familia-soft: #fff6df;
}
.tut-page { padding-top: 70px; }
.tut-eyebrow {
    display: inline-block; padding: .25rem .75rem; border-radius: 999px;
    background: rgba(247, 164, 0, .15); color: #b37700;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.tut-text-familia { color: var(--tut-familia-ink); }
.tut-hero { padding: 3rem 0 2rem; background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%); }
.tut-hero-title { font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin: .75rem 0; }
.tut-hero-lead { max-width: 36rem; color: #6c757d; margin-bottom: 1.25rem; }
.tut-jump {
    display: inline-flex; align-items: center; padding: .6rem 1.1rem; border-radius: 999px;
    font-weight: 700; text-decoration: none; border: 2px solid transparent;
}
.tut-jump span { margin-left: .5rem; padding: 0 .5rem; border-radius: 999px; background: rgba(255,255,255,.35); font-size: .85rem; }
.tut-jump-motorista { background: var(--tut-motorista); color: #fff; }
.tut-jump-motorista:hover { background: #146c43; color: #fff; }
.tut-jump-familia { background: var(--tut-familia); color: #212529; }
.tut-jump-familia:hover { background: #e09500; color: #212529; }

.tut-section { padding: 3rem 0; scroll-margin-top: 70px; }
.tut-section-motorista { background: var(--tut-motorista-soft); border-top: 4px solid var(--tut-motorista); }
.tut-section-familia { background: var(--tut-familia-soft); border-top: 4px solid var(--tut-familia); }
.tut-section-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.tut-section-icon {
    flex-shrink: 0; width: 3.25rem; height: 3.25rem; border-radius: 1rem;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff;
}
.tut-section-motorista .tut-section-icon { background: var(--tut-motorista); }
.tut-section-familia .tut-section-icon { background: var(--tut-familia); color: #212529; }
.tut-promo { background: #fff; border-radius: .75rem; padding: .75rem 1rem; margin-bottom: 1.5rem; font-size: .95rem; }
.tut-section-motorista .tut-promo { border-left: 4px solid var(--tut-motorista); }
.tut-section-familia .tut-promo { border-left: 4px solid var(--tut-familia); }
.tut-section-motorista .tut-promo i { color: var(--tut-motorista); }
.tut-section-familia .tut-promo i { color: var(--tut-familia-ink); }
.tut-empty { background: #fff; border: 1px dashed #ced4da; border-radius: .75rem; padding: 1.5rem; text-align: center; color: #6c757d; }

.tut-card {
    display: flex; flex-direction: column; height: 100%; background: #fff; color: #212529; text-decoration: none;
    border: 1px solid #e9ecef; border-radius: 1rem; overflow: hidden;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.05); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tut-card:hover, .tut-card:focus-visible { transform: translateY(-4px); box-shadow: 0 .75rem 1.75rem rgba(0,0,0,.12); color: #212529; }
.tut-card.tut-motorista:hover, .tut-card.tut-motorista:focus-visible { border-color: var(--tut-motorista); }
.tut-card.tut-familia:hover, .tut-card.tut-familia:focus-visible { border-color: var(--tut-familia); }
.tut-thumb { position: relative; aspect-ratio: 16 / 9; background: #212529; overflow: hidden; }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.tut-card:hover .tut-thumb img { transform: scale(1.04); }
.tut-play {
    position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; padding-left: 3px; font-size: 1.1rem;
    background: rgba(0,0,0,.6); color: #fff; transition: background .2s, transform .2s;
}
.tut-card.tut-motorista:hover .tut-play { background: var(--tut-motorista); transform: scale(1.08); }
.tut-card.tut-familia:hover .tut-play { background: var(--tut-familia); color: #212529; transform: scale(1.08); }
.tut-dur, .tut-short-flag {
    position: absolute; bottom: .5rem; font-size: .72rem; font-weight: 700; padding: .15rem .45rem;
    border-radius: 6px; background: rgba(0,0,0,.8); color: #fff;
}
.tut-dur { right: .5rem; }
.tut-short-flag { left: .5rem; }
.tut-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.tut-app { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tut-motorista .tut-app, .tut-card.tut-motorista .tut-app { color: var(--tut-motorista); }
.tut-familia .tut-app, .tut-card.tut-familia .tut-app { color: var(--tut-familia-ink); }
.tut-title {
    font-size: 1rem; font-weight: 700; line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tut-desc {
    font-size: .85rem; color: #6c757d; line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tut-home { background: #f8f9fa; }

.tut-watch { padding: 2rem 0 3rem; }
.tut-breadcrumb { font-size: .85rem; color: #6c757d; margin-bottom: 1rem; }
.tut-breadcrumb a { color: #6c757d; text-decoration: none; }
.tut-breadcrumb a:hover { color: #212529; }
.tut-player {
    position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #000;
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,.2);
}
.tut-player-vertical { aspect-ratio: 9 / 16; max-width: 360px; margin-left: auto; margin-right: auto; }
.tut-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tut-app-lg { display: inline-block; font-size: .8rem; margin-bottom: .25rem; }
.tut-watch-title { font-weight: 800; font-size: clamp(1.45rem, 3.6vw, 2.1rem); line-height: 1.2; margin-bottom: .5rem; }
.tut-description { line-height: 1.7; font-size: .97rem; white-space: pre-line; overflow-wrap: anywhere; color: #343a40; }
.tut-nav a {
    display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .9rem 1.1rem; border-radius: .9rem;
    background: #f8f9fa; border: 1px solid #e9ecef; color: #212529; text-decoration: none;
}
.tut-nav a:hover { border-color: #adb5bd; }
.tut-nav small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: #6c757d; }
.tut-cta { padding: 1.25rem; border-radius: 1rem; }
.tut-motorista .tut-cta { background: var(--tut-motorista-soft); border-left: 4px solid var(--tut-motorista); }
.tut-familia .tut-cta { background: var(--tut-familia-soft); border-left: 4px solid var(--tut-familia); }
@media (max-width: 575.98px) {
    .tut-section { padding: 2.25rem 0; }
    .tut-section-icon { width: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tut-card, .tut-card:hover, .tut-card:hover .tut-thumb img { transform: none; transition: none; }
}

/* ===== Public driver page (/m/{slug}) ===== */
.driver-page { padding-top: 66px; padding-bottom: 3rem; }
.driver-cover { height: 220px; background: linear-gradient(120deg, #1e2a44, #f7a400) center / cover no-repeat; }
.driver-head { display: flex; align-items: flex-end; gap: 1rem; margin-top: -56px; }
.driver-logo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); flex-shrink: 0; }
.driver-head-text { padding-bottom: .5rem; min-width: 0; }
.driver-eyebrow { font-size: .8rem; font-weight: 700; color: #b37700; text-transform: uppercase; letter-spacing: .05em; }
.driver-name { font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: .15rem 0 0; overflow-wrap: anywhere; }
.driver-block { margin-bottom: 1.75rem; }
.driver-text { white-space: pre-line; color: #343a40; line-height: 1.7; }
.driver-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.driver-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .75rem; }
.driver-contact { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 1rem; padding: 1.25rem; position: sticky; top: 86px; }
@media (max-width: 575.98px) {
    .driver-cover { height: 150px; }
    .driver-head { flex-direction: column; align-items: flex-start; margin-top: -48px; }
    .driver-logo { width: 96px; height: 96px; }
}

/* ===== Promo de lançamento (A5LANCA) — home ===== */
.launch-promo {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: .9rem 1.1rem; border-radius: .75rem; text-align: left; line-height: 1.35;
}
.launch-promo-text { display: flex; align-items: flex-start; gap: .65rem; font-size: .95rem; }
.launch-promo-icon { font-size: 1.25rem; margin-top: .1rem; color: var(--escolartec-accent); }
.launch-promo-note { display: block; margin-top: .15rem; font-size: .8rem; opacity: .8; }
.launch-promo-cta { font-weight: 700; white-space: nowrap; }
.launch-promo-hero {
    margin-top: 1.75rem; color: #fff; background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(247, 164, 0, .7); backdrop-filter: blur(4px);
}
.launch-promo-pricing {
    margin: -1.5rem auto 2.5rem; max-width: 52rem; color: #212529;
    background: var(--tut-familia-soft, #fff6df); border: 1px solid var(--escolartec-accent);
}
.launch-promo-pricing .launch-promo-icon { color: #b37700; }
@media (min-width: 768px) {
    .launch-promo { flex-direction: row; justify-content: space-between; gap: 1.25rem; }
}
