:root {
    --navy: #152047;
    --navy-deep: #0c142d;
    --navy-soft: #24315f;
    --teal: #1ec8d4;
    --teal-dark: #0ea5b0;
    --yellow: #f5c518;
    --coral: #e85a4f;
    --purple: #8b5cb8;
    --paper: #f5f7fb;
    --white: #ffffff;
    --ink: #1a2340;
    --muted: #5c6785;
    --line: rgba(21, 32, 71, 0.1);
    --shadow: 0 18px 50px rgba(21, 32, 71, 0.12);
    --radius: 26px;
    --header-h: 76px;
    --font: "DM Sans", system-ui, sans-serif;
    --display: "Nunito", "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: .75rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.logo-img {
    height: 42px;
    width: auto;
}
.logo-mark {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border-radius: 0;
    padding: 0;
    line-height: 0;
}
.logo-mark .logo-img { height: 40px; }
.logo-mark-footer .logo-img { height: 36px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 1.15rem;
    font-size: .92rem;
    font-weight: 600;
    color: var(--navy);
}
.nav-desktop a { text-decoration: none; }
.nav-desktop a:hover { color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.header-actions .btn-ghost { display: none; }
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--paper);
    border-radius: 12px;
    color: var(--navy);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    padding: 0 1rem 1.25rem;
    flex-direction: column;
    gap: .4rem;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
    text-decoration: none;
    padding: .8rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--navy);
    background: var(--paper);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 48px;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    border: 0;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(21,32,71,.25);
}
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost {
    background: #fff;
    color: var(--navy);
    border: 1.5px solid var(--line);
}
.btn-accent {
    background: linear-gradient(90deg, var(--teal), #5ad0c8 40%, var(--yellow) 70%, var(--coral), var(--purple));
    color: var(--navy-deep);
    box-shadow: 0 12px 28px rgba(30,200,212,.28);
}
.btn-lg { min-height: 54px; padding-inline: 1.5rem; font-size: 1.02rem; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0 4rem;
    background:
        radial-gradient(900px 420px at 90% -10%, rgba(30,200,212,.22), transparent 60%),
        radial-gradient(700px 380px at 0% 20%, rgba(245,197,24,.16), transparent 55%),
        linear-gradient(180deg, #eef4ff 0%, #fff 70%);
}
.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .4rem .75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 1rem;
    color: var(--navy);
}
.hero-lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 38rem;
    margin: 0 0 1.6rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual { position: relative; min-height: 360px; }
.device-stage { position: relative; z-index: 1; }
.laptop {
    background: #1a1f2e;
    border-radius: 18px;
    padding: 12px 12px 0;
    box-shadow: var(--shadow);
}
.laptop-screen {
    background: #f3f6fb;
    border-radius: 10px 10px 0 0;
    min-height: 250px;
    overflow: hidden;
}
.laptop-bar { height: 14px; background: #111; border-radius: 0 0 16px 16px; margin: 0 12% -1px; }
.phone, .tablet {
    position: absolute;
    background: #111827;
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow);
}
.phone { width: 108px; right: 4%; bottom: -8%; z-index: 3; }
.tablet { width: 150px; left: -6%; bottom: 8%; z-index: 2; transform: rotate(-8deg); }
.phone-screen, .tablet-screen {
    background: #fff;
    border-radius: 12px;
    min-height: 150px;
    overflow: hidden;
}

.float-card {
    position: absolute;
    z-index: 4;
    background: #fff;
    border-radius: 14px;
    padding: .55rem .8rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--navy);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: .4rem;
    animation: float 5.5s ease-in-out infinite;
}
.float-card i, .float-card svg { color: var(--teal-dark); width: 16px; height: 16px; }
.fc-1 { top: 8%; left: -4%; animation-delay: 0s; }
.fc-2 { top: 18%; right: -2%; animation-delay: .8s; }
.fc-3 { bottom: 22%; left: 8%; animation-delay: 1.4s; }
.fc-4 { bottom: 4%; right: 18%; animation-delay: .4s; }
.fc-5 { top: 42%; right: 8%; animation-delay: 1.1s; }

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

/* Mini UI mock */
.mock-app { display: grid; grid-template-columns: 42px 1fr; min-height: 250px; font-size: 10px; }
.mock-side { background: var(--navy); padding: 8px 6px; display: flex; flex-direction: column; gap: 8px; }
.mock-dot { width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.15); }
.mock-dot.on { background: var(--teal); }
.mock-main { padding: 10px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.mock-kpi { background: #fff; border-radius: 8px; padding: 6px; }
.mock-kpi b { display: block; font-size: 13px; color: var(--navy); }
.mock-row { height: 14px; background: #e8edf6; border-radius: 6px; margin-bottom: 6px; }
.mock-row:nth-child(2) { width: 80%; }
.mock-demo-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    background: var(--yellow);
    color: var(--navy-deep);
    font-size: .65rem;
    font-weight: 800;
    padding: .2rem .45rem;
    border-radius: 999px;
}

.section { padding: 4.5rem 0; }
.section-muted { background: var(--paper); }
.section h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    line-height: 1.2;
    color: var(--navy);
    margin: 0 0 .8rem;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 40rem; margin: 0; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.bridge {
    text-align: center;
    padding: 3rem 0 1rem;
}
.bridge h2 { margin-bottom: .5rem; }

.problem-grid, .feature-grid, .benefit-grid, .tech-grid, .secure-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
    box-shadow: 0 8px 24px rgba(21,32,71,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon-pill {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: .85rem;
    color: #fff;
}
.icon-pill svg { width: 22px; height: 22px; }
.ip-teal { background: var(--teal); }
.ip-yellow { background: var(--yellow); color: var(--navy); }
.ip-coral { background: var(--coral); }
.ip-purple { background: var(--purple); }
.ip-navy { background: var(--navy); }
.card h3 { margin: 0 0 .4rem; font-size: 1.12rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }

.pivot {
    margin-top: 2.2rem;
    text-align: center;
    font-family: var(--display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--navy);
}

/* Timeline */
.timeline {
    display: grid;
    gap: 1rem;
    margin-top: 2.2rem;
    counter-reset: step;
}
.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--line);
}
.step-num {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-weight: 800;
    color: #fff;
    background: var(--navy);
}
.step:nth-child(2) .step-num { background: var(--teal-dark); }
.step:nth-child(3) .step-num { background: var(--coral); }
.step:nth-child(4) .step-num { background: var(--purple); }
.step h3 { margin: 0 0 .25rem; color: var(--navy); }
.step p { margin: 0; color: var(--muted); }

/* Security */
.security {
    background:
        radial-gradient(600px 280px at 100% 0%, rgba(30,200,212,.18), transparent),
        linear-gradient(160deg, var(--navy-deep), var(--navy));
    color: #fff;
}
.security h2, .security .lede { color: #fff; }
.security .lede { opacity: .82; }
.secure-grid .card {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.secure-grid h3 { color: #fff; }
.secure-grid p { color: rgba(255,255,255,.78); }

.split {
    display: grid;
    gap: 1.6rem;
    align-items: center;
}
.photo-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 280px;
    box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.checks li {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .45rem;
}
.checks svg { color: var(--teal-dark); width: 18px; height: 18px; }

.volunteer-flow {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
    margin-top: 1.4rem;
}
.chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem;
    font-weight: 700;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.leader-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
    margin-top: 1.2rem;
}
.mini-stat {
    background: #fff;
    border-radius: 16px;
    padding: .9rem;
    border: 1px solid var(--line);
}
.mini-stat span { display: block; color: var(--muted); font-size: .82rem; }
.mini-stat b { font-size: 1.35rem; color: var(--navy); }
.demo-note { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

/* Carousel */
.carousel { position: relative; margin-top: 2rem; }
.slides { overflow: hidden; border-radius: 24px; }
.slide {
    display: none;
    background: #eef2f8;
    padding: 1.2rem;
    min-height: 320px;
}
.slide.is-active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
.browser {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 260px;
}
.browser-top {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #eceff5;
}
.browser-top i {
    width: 10px; height: 10px; border-radius: 50%;
    background: #d0d5e2;
    display: block;
}
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.carousel-nav button {
    border: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .45rem .9rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
}
.carousel-nav button.is-active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.video-wrap {
    position: relative;
    margin-top: 1.6rem;
    border-radius: 28px;
    overflow: hidden;
    min-height: 280px;
    background:
        linear-gradient(180deg, rgba(12,20,45,.35), rgba(12,20,45,.72)),
        url("../img/site/familia.jpg") center/cover;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    padding: 2rem;
}
.play {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--navy);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.play svg { width: 32px; height: 32px; margin-left: 3px; }
.video-note { margin-top: 1rem; font-weight: 600; }

/* Print flow */
.print-flow {
    display: grid;
    gap: .7rem;
    margin-top: 1.6rem;
}
.print-node {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: #fff;
    border-radius: 16px;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    font-weight: 700;
    color: var(--navy);
}
.print-node span {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center; color: #fff; background: var(--navy);
}
.label-mock {
    margin-top: 1.2rem;
    background: #fff;
    border: 2px dashed var(--navy);
    border-radius: 8px;
    padding: .7rem 1rem;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: .8rem;
    max-width: 380px;
    box-shadow: var(--shadow);
    font-size: .82rem;
}
.qr-box {
    width: 64px; height: 64px;
    background:
        repeating-linear-gradient(90deg, #111 0 4px, #fff 4px 8px),
        repeating-linear-gradient(#111 0 4px, #fff 4px 8px);
    background-blend-mode: multiply;
}

.benefit-grid .card { text-align: center; }
.benefit-num {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--navy);
    display: block;
    margin-bottom: .3rem;
}

/* FAQ */
.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.15rem;
    margin-top: .7rem;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--teal-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.cta-final {
    background: linear-gradient(120deg, var(--navy) 0%, #1a3a6e 40%, #0ea5b0 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-final::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% 40%;
    height: 220px;
    background: linear-gradient(90deg, var(--yellow), var(--coral), var(--purple));
    opacity: .28;
    filter: blur(30px);
}
.cta-final .wrap { position: relative; z-index: 1; }
.cta-final h2, .cta-final .lede { color: #fff; }
.cta-final .btn-ghost {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: rgba(255,255,255,.35);
}
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }

.form-card {
    background: #fff;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-top: 1.6rem;
}
.form-grid {
    display: grid;
    gap: .9rem;
}
label span { display: block; font-weight: 700; color: var(--navy); margin-bottom: .3rem; font-size: .92rem; }
input, select, textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: .8rem .9rem;
    background: #fbfcff;
}
.consent {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .92rem;
    color: var(--muted);
}
.consent input { width: auto; margin-top: .25rem; }
.alert {
    padding: .9rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.alert-ok { background: #e7f8f4; color: #0b6b5c; }
.alert-err { background: #fdecea; color: #9b2c2c; }

.site-footer {
    background: var(--navy-deep);
    color: #d7deee;
    padding: 3rem 0 1.5rem;
}
.footer-grid {
    display: grid;
    gap: 1.5rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.foot-links { display: grid; gap: .4rem; }
.foot-copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: none;
}
.reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity .6s ease, transform .6s ease;
}

@media (min-width: 760px) {
    .problem-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .secure-grid, .tech-grid, .benefit-grid { grid-template-columns: repeat(3, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
    .split { grid-template-columns: 1.05fr .95fr; }
    .timeline { grid-template-columns: 1fr 1fr; }
    .print-flow { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 980px) {
    .nav-desktop { display: flex; }
    .menu-toggle { display: none; }
    .header-actions .btn-ghost { display: inline-flex; }
    .hero-grid { grid-template-columns: 1.05fr .95fr; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .volunteer-flow { grid-template-columns: repeat(3, 1fr); }
    .print-flow { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 759px) {
    .float-card { font-size: .7rem; }
    .fc-5, .tablet { display: none; }
    .phone { width: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .float-card, .reveal, .mascot, .hero-mascot { animation: none; transition: none; opacity: 1; transform: none; }
}

/* Bonecos e toque infantil — só visual, não altera fluxos */
.site-playful {
    background:
        radial-gradient(circle at 12% 18%, rgba(30,200,212,.12), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(245,197,24,.16), transparent 26%),
        radial-gradient(circle at 80% 70%, rgba(232,90,79,.08), transparent 24%),
        radial-gradient(circle at 10% 80%, rgba(139,92,184,.1), transparent 22%),
        #fff;
}
.site-playful .card {
    border-radius: 28px;
    border-width: 2px;
}
.site-playful .icon-pill {
    border-radius: 50%;
    width: 52px;
    height: 52px;
}
.kid-crew {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: .15rem;
    margin: 1.2rem 0 .4rem;
}
.kid-crew-hero {
    justify-content: flex-start;
    margin-top: 1.6rem;
}
.kid-crew .mascot {
    animation: float 4.8s ease-in-out infinite;
}
.kid-crew .mascot:nth-child(2) { animation-delay: .4s; }
.kid-crew .mascot:nth-child(3) { animation-delay: .8s; }
.kid-crew .mascot:nth-child(4) { animation-delay: 1.1s; }
.kid-crew .mascot:nth-child(5) { animation-delay: 1.5s; }
.hero-mascot {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    animation: float 5s ease-in-out infinite;
}
.hero-mascot-left { left: -18px; bottom: 36px; }
.hero-mascot-right { right: -10px; top: 28px; animation-delay: .9s; }
.step-mascot { justify-self: end; }
.step-mascot .mascot { width: 58px; height: auto; }
.doodle-hearts::after {
    content: "♥  ♥  ♥";
    display: block;
    letter-spacing: .6rem;
    color: var(--coral);
    opacity: .35;
    font-size: .85rem;
    margin-top: .6rem;
}
@media (max-width: 759px) {
    .hero-mascot, .kid-crew-hero .mascot:nth-child(n+4), .step-mascot { display: none; }
    .kid-crew-hero .mascot { width: 64px; height: auto; }
}
