/* ============================================================
   Fontes (auto-hospedadas — nada de chamadas a CDN externo)
   ============================================================ */
@font-face {
    font-family: 'Baloo 2';
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
    src: url('assets/fonts/baloo2-var.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('assets/fonts/plexsans-var.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/plexmono-600.woff2') format('woff2');
}

/* ============================================================
   Tokens — paleta chiclete tratada como verniz sobre papel neutro
   ============================================================ */
:root {
    --paper: #fbf7f4;
    --surface: #ffffff;
    --ink: #221827;
    --ink-muted: #6b5f73;
    --line: #ebe1e6;
    --pink: #e8195f;
    --pink-soft: #fbd9e6;
    --pink-wash: #fff1f6;
    --cyan: #2fb4d9;
    --cyan-soft: #def4fa;
    --shadow: 0 1px 2px rgba(34, 24, 39, .04), 0 8px 24px -12px rgba(34, 24, 39, .18);
    --radius-s: 10px;
    --radius-m: 14px;
    --radius-l: 20px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #1b1420;
        --surface: #241a29;
        --ink: #f3ecef;
        --ink-muted: #b7a9bc;
        --line: #3a2e3f;
        --pink: #ff5fa0;
        --pink-soft: #3a1e2c;
        --pink-wash: #2a1a24;
        --cyan: #5fd3ef;
        --cyan-soft: #1c2e33;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -12px rgba(0, 0, 0, .55);
        color-scheme: dark;
    }
}

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

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

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

h1, h2, h3 {
    font-family: 'Baloo 2', sans-serif;
    line-height: 1.12;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.7rem, 1.35rem + 1.4vw, 2.3rem);
    font-weight: 700;
    color: var(--ink);
}

h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--pink);
    display: inline-flex;
    align-items: center;
    gap: .5em;
}
.eyebrow::before {
    content: "";
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--pink);
    display: inline-block;
}

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

/* ============================================================
   Navegação
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .85rem;
    padding-bottom: .85rem;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--ink);
}
.nav-brand img { width: 30px; height: 30px; }
.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    font-size: .92rem;
    font-weight: 500;
}
.nav-links a {
    text-decoration: none;
    color: var(--ink-muted);
    transition: color .15s ease;
}
.nav-links a:hover { color: var(--pink); }
.nav-cta {
    font-size: .85rem;
    font-weight: 600;
    background: var(--pink);
    color: #fff;
    padding: .55rem 1.1rem;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 8px;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5.5rem 1.4rem 2rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    list-style: none;
    text-align: center;
}
.mobile-nav-links a {
    text-decoration: none;
    color: var(--ink);
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
}
.mobile-nav-links a:hover { color: var(--pink); }
.mobile-nav .nav-cta {
    display: block;
    text-align: center;
    margin-top: 2.2rem;
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding: 5.5rem 0 4.5rem; overflow: hidden; }

.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.blob-pink { width: 420px; height: 420px; background: var(--pink-soft); top: -140px; right: -100px; }
.blob-cyan { width: 300px; height: 300px; background: var(--cyan-soft); bottom: -120px; left: -80px; opacity: .7; }

@media (prefers-reduced-motion: no-preference) {
    .blob-pink { animation: drift1 18s ease-in-out infinite alternate; }
    .blob-cyan { animation: drift2 20s ease-in-out infinite alternate; }
}
@keyframes drift1 { to { transform: translate(-30px, 25px); } }
@keyframes drift2 { to { transform: translate(25px, -20px); } }

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3.5rem;
    align-items: center;
}
@media (max-width: 880px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-blobs { opacity: .7; }
}

.hero h1 {
    font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.2rem);
    font-weight: 800;
    color: var(--ink);
    margin: .9rem 0 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--pink); }

.hero .lede {
    font-size: 1.12rem;
    color: var(--ink-muted);
    max-width: 46ch;
    margin-bottom: 2rem;
}
@media (max-width: 880px) { .hero .lede { margin-left: auto; margin-right: auto; } }

.cta-row { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
@media (max-width: 880px) { .cta-row { justify-content: center; } }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: var(--pink);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
    padding: .95rem 1.7rem;
    border-radius: 100px;
    box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--pink) 55%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px color-mix(in srgb, var(--pink) 65%, transparent);
}
.btn-primary img { width: 20px; height: 20px; }

.btn-ghost {
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: color .15s ease, border-color .15s ease;
}
.btn-ghost:hover { color: var(--pink); border-color: var(--pink); }

.cta-note {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--ink-muted);
}

.whats-new {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .6rem;
    font-size: .82rem;
}
@media (max-width: 880px) { .whats-new { justify-content: center; } }
.whats-new-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--pink);
    padding: .2rem .6rem;
    border-radius: 100px;
}
.whats-new a {
    color: var(--ink-muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--ink-muted);
    transition: color .15s ease, border-color .15s ease;
}
.whats-new a:hover { color: var(--pink); border-color: var(--pink); }

.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-art img {
    width: min(320px, 80%);
    filter: drop-shadow(0 18px 34px color-mix(in srgb, var(--pink) 30%, transparent));
}
.hero-tagline {
    margin-top: .6rem;
    font-family: 'Baloo 2', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pink);
}

/* Faixa de confiança logo abaixo do hero */
.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.trust-strip ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem 2.2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-muted);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .5rem; }
.trust-strip li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); }

/* ============================================================
   Seções gerais
   ============================================================ */
section { padding: 4.5rem 0; scroll-margin-top: 4.5rem; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.section-head h2 { margin-top: .7rem; }
.section-head .lede { color: var(--ink-muted); margin-top: .7rem; font-size: 1.02rem; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-more { text-align: center; margin-top: 1.8rem; }

/* Recursos */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pink) 40%, transparent); }

.feature-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--pink-wash);
    color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--pink); fill: none; stroke-width: 1.8; }
.feature-card h3 { margin-bottom: .45rem; }
.feature-card p { color: var(--ink-muted); font-size: .94rem; }

/* Migração PJe → eproc */
.migration { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .migration { grid-template-columns: 1fr; gap: 2rem; } }
.migration-head h2 { margin-top: .7rem; }
.migration-head .lede { color: var(--ink-muted); margin-top: .9rem; font-size: 1.02rem; }

/* Detalhes (acordeões por tarefa) */
.detail-groups { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.detail-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow);
}
.detail-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.3rem;
    cursor: pointer;
    list-style: none;
}
.detail-group summary::-webkit-details-marker { display: none; }
.detail-group summary::after,
.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--pink);
}
.detail-group[open] summary::after,
.faq-item[open] summary::after { content: "−"; }
.detail-group summary:hover h3 { color: var(--pink); }
.detail-group h3 { font-size: 1.08rem; transition: color .15s ease; }
.detail-group .detail-list { padding: .3rem 1.3rem 1.4rem; }
.detail-list strong { color: var(--ink); font-weight: 600; }
.detail-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}
.detail-list li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: .96rem;
    color: var(--ink-muted);
}
.detail-list li::before {
    content: "";
    flex-shrink: 0;
    width: 20px; height: 20px;
    margin-top: .15rem;
    border-radius: 50%;
    background: var(--cyan-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232fb4d9' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* Link "Ver vídeo" (inserido por script.js quando o id tem URL em videos.json) */
.video-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .5rem;
    padding: .1rem .6rem;
    font: 600 .68rem/1.6 'IBM Plex Mono', monospace;
    color: var(--pink);
    background: var(--pink-wash);
    border: 1px solid var(--pink-soft);
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    vertical-align: 1px;
    transition: background-color .15s ease, color .15s ease;
}
.video-link:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.video-link svg { width: 9px; height: 9px; fill: currentColor; }
.feature-card .video-link { margin: .9rem 0 0; }

/* Vídeo */
.video-shell {
    border-radius: var(--radius-l);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: var(--surface);
}
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; }
.video-wrapper iframe {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; border: 0;
}

/* Embed de formulário (altura fixa, sem o truque de aspect-ratio do vídeo) */
.form-shell {
    max-width: 640px;
    margin: 0 auto;
}
/* O Google Forms não informa a altura do conteúdo (outro domínio), e cada
   seção do formulário tem uma altura: o iframe ocupa a tela, menos a barra
   do site, e rola por dentro. */
.form-wrapper {
    position: relative;
    height: calc(100dvh - 6rem);
    min-height: 520px;
    max-height: 1100px;
    padding: 1.4rem;
    background: var(--surface);
}
.form-wrapper iframe {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius-m);
    background: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}
.form-wrapper.is-loaded iframe { opacity: 1; }

.form-skeleton {
    position: absolute;
    inset: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-m);
    background: var(--pink-wash);
}
.form-wrapper.is-loaded .form-skeleton { display: none; }
.form-skeleton::after {
    content: '';
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--pink-soft);
    border-top-color: var(--pink);
    animation: form-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .form-skeleton::after { animation: none; }
}
@keyframes form-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
    .form-wrapper { padding: 1rem; }
}

.form-fullscreen {
    text-align: center;
    margin-top: 1rem;
    font-size: .95rem;
}

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .gallery { grid-template-columns: 1fr; } }

.g-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.g-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pink) 40%, transparent); }
.g-card img, .g-card video { width: 100%; height: 170px; object-fit: cover; background: var(--pink-wash); }
.g-card img, .g-card video { cursor: zoom-in; }
.g-card p {
    padding: .9rem 1rem;
    font-size: .85rem;
    color: var(--ink-muted);
    flex-grow: 1;
}
.g-card p strong { display: block; font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: .2rem; }

.demo-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
.demo-grid .g-card video { height: 230px; object-fit: contain; }

/* Tutoriais em vídeo (montados por script.js a partir de videos.json) */
.video-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.8rem; }
.video-filters[hidden] { display: none; }
.filter-chip {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    font-weight: 500;
    color: var(--ink-muted);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: .4rem .8rem;
    border-radius: 100px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.filter-chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.filter-chip[aria-pressed="true"] { color: #fff; background: var(--pink); border-color: var(--pink); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .video-grid { grid-template-columns: 1fr; } }

.tut-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.tut-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--pink) 40%, transparent); }
.tut-card[hidden] { display: none; }

.tut-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--pink-wash), var(--cyan-soft));
    overflow: hidden;
}
.tut-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tut-play {
    position: relative;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--pink);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--pink) 60%, transparent);
    transition: transform .2s ease;
}
.tut-card:hover .tut-play { transform: scale(1.08); }
.tut-play svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.tut-tag {
    position: absolute;
    top: .7rem; left: .7rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-muted);
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    padding: .25rem .6rem;
    border-radius: 100px;
}
.tut-title { padding: .9rem 1rem 1rem; font-size: .92rem; font-weight: 500; color: var(--ink); }

.video-modal-frame {
    width: min(960px, 100%);
    aspect-ratio: 16 / 9;
    cursor: default;
}
.video-modal-frame.is-portrait { width: auto; height: min(100%, 85vh); aspect-ratio: 9 / 16; max-width: 100%; }
.video-modal-frame iframe {
    display: block;
    width: 100%; height: 100%;
    border: 0;
    border-radius: var(--radius-m);
    background: #000;
}

/* Modal de imagem em tamanho real */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
    padding: 2.5rem;
    cursor: zoom-out;
}
.img-modal[hidden] { display: none; }
.img-modal-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-m);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
    cursor: default;
}
.img-modal-content[hidden] { display: none; }
.img-modal-close,
.video-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: 0;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    padding: .3rem .6rem;
}
.img-modal-close:hover,
.video-modal-close:hover { opacity: .75; }

/* ============================================================
   Como usar / Termos
   ============================================================ */
.docs-shell {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
    padding: 2.2rem clamp(1.4rem, 4vw, 2.4rem) 2.4rem;
}
.band .docs-shell { background: var(--paper); }

.steps { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; counter-reset: step; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.02rem; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: .8rem;
    width: 26px; height: 26px; flex: none;
    border-radius: 50%;
    background: var(--pink-wash);
    color: var(--pink);
    display: flex; align-items: center; justify-content: center;
    margin-top: .1rem;
}
.steps a {
    color: var(--pink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.steps a:hover { color: var(--cyan); }

.legal-note { margin-bottom: 1.8rem; }
.legal-note:last-child { margin-bottom: 0; }
.legal-note .label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
    display: block;
    margin-bottom: 1rem;
}
.legal-note p { color: var(--ink-muted); font-size: .95rem; margin-bottom: .8rem; }
.legal-note p:last-child { margin-bottom: 0; }
.legal-note strong { color: var(--ink); }

/* ============================================================
   Privacidade, autor, perguntas frequentes e CTA final
   ============================================================ */
.privacy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 880px) { .privacy { grid-template-columns: 1fr; gap: 1.4rem; } }
.privacy h2 { margin-top: .7rem; }
.privacy-body p { color: var(--ink-muted); font-size: 1.02rem; margin-bottom: 1rem; }
.privacy-body strong { color: var(--ink); }
.privacy-more a { color: var(--pink); font-weight: 600; text-underline-offset: 3px; }

.maker { max-width: 680px; margin: 0 auto; text-align: center; }
.maker h2 { margin-top: .7rem; }
.maker blockquote {
    margin: 1.6rem 0 2rem;
    font-size: 1.1rem;
    color: var(--ink-muted);
}
.maker blockquote p + p { margin-top: .8rem; }
.maker-sign { margin-top: .8rem; font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--ink); }
.maker-cta { justify-content: center; }

.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
}
.faq-item summary {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.3rem;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--pink); }
.faq-item p { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); font-size: .96rem; }
.faq-item a { color: var(--pink); text-underline-offset: 3px; }

.final-cta { text-align: center; }
.final-cta h2 { margin-bottom: 1.6rem; }

/* ============================================================
   Rodapé
   ============================================================ */
footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 3.5rem 0 2.5rem; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-brand {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Baloo 2', sans-serif;
    font-weight: 700; font-size: 1.1rem;
    margin-bottom: .6rem;
}
.footer-brand img { width: 34px; height: 34px; }
footer p { color: var(--ink-muted); font-size: .9rem; }

.footer-col h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .9rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { text-decoration: none; color: var(--ink); font-size: .92rem; }
.footer-col a:hover { color: var(--pink); }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

.footer-disclaimer { margin-top: 2.4rem; font-size: .82rem; }

.footer-bottom {
    margin-top: 1.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .75rem;
    color: var(--ink-muted);
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 3.5rem 0 3rem; }
    section { padding: 3.5rem 0; }
    .docs-shell { padding: 1.8rem 1.3rem 2rem; }
}
