/* Identidade provisória da coleção: ajustar as variáveis quando a identidade visual oficial for entregue. */
:root {
    --ink: #0f1b2d;
    --night: #0f1b2d;
    --ink-soft: #46546a;
    --paper: #f6f7fb;
    --card: #ffffff;
    --brand: #10a37f;
    --brand-ink: #ffffff;
    --accent: #f5b301;
    --line: #dde2ea;
    --radius: 14px;
    --shadow: 0 6px 20px rgba(15, 27, 45, .10);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); line-height: 1.5; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

.topbar { background: var(--night); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { background: var(--brand); color: var(--brand-ink); font-weight: 800; border-radius: 10px; padding: 4px 10px; font-size: 1.1rem; }
.brand__text { font-size: .95rem; }
.topnav { display: flex; gap: 18px; font-size: .95rem; }
.topnav a { text-decoration: none; opacity: .9; }
.topnav a:hover { opacity: 1; text-decoration: underline; }

.hero { background: linear-gradient(160deg, var(--night), #1d3557); color: #fff; padding: 48px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); margin: 0 0 8px; line-height: 1.2; }
.hero p { margin: 0 0 24px; opacity: .85; }
.hero--compact { padding: 24px 0; }
.searchbar { display: flex; gap: 8px; max-width: 680px; margin-inline: auto; background: var(--card); border-radius: 999px; padding: 6px; box-shadow: var(--shadow); }
.searchbar input { flex: 1; min-width: 0; border: 0; font: inherit; font-size: 1.05rem; padding: 10px 16px; border-radius: 999px; color: var(--ink); background: transparent; }
.searchbar input:focus { outline: 2px solid var(--brand); }
.searchbar button, .btn { border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-block; }
.searchbar button:hover, .btn:hover { filter: brightness(1.08); }

.catalog { padding-block: 24px 48px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: thin; }
.chip { flex: none; display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.chip.is-active { background: var(--night); color: #fff; border-color: var(--night); }
.chips--small .chip { font-size: .8rem; padding: 4px 12px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.cover { display: block; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: var(--card); transition: transform .15s ease, box-shadow .15s ease; aspect-ratio: 9 / 16; }
.cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cover:hover, .cover:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15, 27, 45, .18); }
.cover__missing { display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-weight: 700; }

.pagination { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 32px; }
.pagination a { text-decoration: none; font-weight: 600; color: var(--brand); }
.result-count { color: var(--ink-soft); }
.empty, .noresult { padding: 48px 0; text-align: center; }
.noresult h1 { font-size: 1.4rem; }
.noresult .grid { margin-top: 16px; text-align: left; }

.product { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 40px; padding-block: 32px; }
@media (max-width: 760px) { .product { grid-template-columns: minmax(0, 1fr); gap: 20px; } .product__cover { max-width: 300px; margin-inline: auto; } }
.product > * { min-width: 0; }
.product__cover img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; }
.product__code { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.product h1 { margin: 4px 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; }
.product__subtitle { font-size: 1.1rem; color: var(--ink-soft); margin-top: 0; }
.product section h2 { font-size: 1.15rem; margin-top: 28px; }
.product__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.buybox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 20px 0; box-shadow: var(--shadow); }
.buybox__price { font-size: 2rem; font-weight: 800; margin: 0; }
.buybox__rules { margin: 8px 0 16px; padding-left: 18px; color: var(--ink-soft); }
.buybox__note { font-size: .9rem; color: var(--ink-soft); margin-bottom: 0; }
.buybox__owned { font-weight: 700; color: var(--brand); }
.buybox .btn { width: 100%; text-align: center; font-size: 1.05rem; padding: 14px; }
.related { padding-bottom: 48px; }
.page { padding-block: 32px 48px; max-width: 780px; }

.footer { background: var(--night); color: #c9d2e0; padding: 24px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer p { margin: 0; }

/* Conta, carrinho, checkout e pedidos */
.inline { display: inline; margin: 0; }
.linkbtn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; opacity: .9; }
.badge { background: var(--accent); color: var(--night); border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 700; }
.narrow { max-width: 460px; padding-block: 32px 48px; }
.form { display: grid; gap: 14px; margin: 16px 0; }
.field { display: grid; gap: 4px; }
.field span { font-weight: 600; font-size: .9rem; }
.field input { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.field input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.has-error input { border-color: #d62839; }
.field__error, .warn { color: #b3261e; font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; }
.alert { background: #fdecea; color: #8a1c1c; padding: 10px 14px; border-radius: 10px; }
.notice { background: #e7f6f1; color: #0b5d48; padding: 10px 14px; border-radius: 10px; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }
.btn--block { display: block; width: 100%; text-align: center; padding: 14px; font-size: 1.05rem; }

.shop { padding-block: 24px 48px; }
.shop__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 860px) { .shop__grid { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 80px; }
.panel h2 { margin-top: 0; font-size: 1.1rem; }
.lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.line__info { display: grid; min-width: 0; }
.line__info a, .line__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line__info small { color: var(--ink-soft); }
.line__price { font-weight: 700; white-space: nowrap; }
.mini { width: 48px; height: auto; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 4px; display: block; background: var(--paper); }
.mini--empty { height: 85px; }
.summary { margin: 0 0 16px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; white-space: nowrap; }
.summary__discount dd { color: var(--brand); }
.summary__total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.25rem; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.tip { background: #fff6dc; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.tip--soft { background: var(--paper); }
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 20px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; color: var(--ink-soft); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); font-size: .8rem; }
.steps li + li::after { content: none; }
.steps li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--line); }
.steps .is-done::before { background: var(--brand); color: #fff; border-color: var(--brand); content: "✓"; }
.steps .is-current { color: var(--ink); font-weight: 700; }
.steps .is-current::before { border-color: var(--ink); }
.hero-cover { max-width: 220px; margin-bottom: 16px; }
.hero-cover img { border-radius: 10px; box-shadow: var(--shadow); }
.status { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.status--paid { border-left-color: var(--brand); }
.status--needs_review, .status--failed { border-left-color: #d62839; }
.total { text-align: right; font-size: 1.15rem; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 600px) { .table-compact th:nth-child(2), .table-compact td:nth-child(2), .table-compact th:nth-child(3), .table-compact td:nth-child(3) { display: none; } .table th, .table td { padding: 8px; font-size: .85rem; } }
.table td:last-child { white-space: nowrap; }
.line__info a, .line__info strong { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 600px) {
    .line { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 2px; }
    .line form { grid-column: 2 / -1; font-size: .85rem; }
    .panel { position: static; }
}

/* Aplicativo: Início, Biblioteca e barra de abas */
.app { padding-block: 24px 48px; }
.app h2 { font-size: 1.1rem; margin-top: 28px; }
.app__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn--small { padding: 6px 14px; font-size: .9rem; }
.refresh { background: #e7f6f1; border-radius: 10px; padding: 8px 12px; margin: 0; display: flex; gap: 10px; align-items: center; }
.notices ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.notices li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; }
.notices li.is-unread { border-left: 4px solid var(--brand); }
.notices a { text-decoration: none; }
.notices small { color: var(--ink-soft); }
.libtools { display: flex; gap: 8px; margin: 12px 0 20px; flex-wrap: wrap; }
.libtools input, .libtools select { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.libtools input { flex: 1; min-width: 200px; }
.progressbar { display: block; width: 100%; height: 4px; margin-top: 6px; border: 0; border-radius: 4px; overflow: hidden; background: var(--line); appearance: none; }
.progressbar::-webkit-progress-bar { background: var(--line); }
.progressbar::-webkit-progress-value { background: var(--brand); }
.progressbar::-moz-progress-bar { background: var(--brand); }
.install-hint { margin-top: 32px; font-size: .9rem; }
.tabbar { display: none; }
@media (max-width: 760px) {
    .has-tabbar .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 6; padding-bottom: env(safe-area-inset-bottom); }
    .tabbar a { flex: 1; display: grid; place-items: center; padding: 8px 0; text-decoration: none; font-size: .78rem; color: var(--ink-soft); }
    .tabbar a span { font-size: 1.2rem; line-height: 1.2; }
    .tabbar a[aria-current="page"] { color: var(--brand); font-weight: 700; }
    .has-tabbar main { padding-bottom: 70px; }
    .has-tabbar .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .has-tabbar .topnav { display: none; }
}

/* Leitor */
.is-reader { height: 100vh; height: 100dvh; overflow: hidden; }
.is-reader .topbar { display: none; }
.is-reader main { display: flex; flex-direction: column; height: 100%; }
.reader { display: flex; flex-direction: column; height: 100%; background: #20262f; color: #fff; position: relative; }
.reader__bar, .reader__controls { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--night); }
.reader__bar button, .reader__controls button, .reader__back { background: transparent; border: 0; color: #fff; font-size: 1.3rem; min-width: 40px; height: 40px; border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-grid; place-items: center; }
.reader__bar button:hover, .reader__controls button:hover { background: rgba(255, 255, 255, .1); }
.reader__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.reader__controls { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.reader__controls .reader__nav { display: inline-flex; align-items: center; gap: 6px; height: 46px; min-width: 46px; padding: 0 18px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 700; box-shadow: 0 6px 18px rgba(16, 163, 127, .35); transition: transform .15s ease, opacity .2s ease, background .2s ease; }
.reader__controls .reader__nav span[aria-hidden] { font-size: 1.5rem; line-height: 1; }
.reader__controls .reader__nav:hover { background: #0d8c6c; }
.reader__controls .reader__nav:active { transform: scale(.95); }
.reader__controls .reader__nav:disabled { opacity: .3; box-shadow: none; cursor: default; }
.reader__controls .reader__nav:not(.reader__nav--next) { background: rgba(255, 255, 255, .12); box-shadow: none; }
.reader__controls .reader__nav:not(.reader__nav--next):hover { background: rgba(255, 255, 255, .2); }
.reader__mid { display: grid; gap: 6px; justify-items: center; align-content: center; min-width: 0; }
.reader__counter { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: #c9d2e0; white-space: nowrap; }
.reader__counter input { width: 52px; font: inherit; color: var(--night); background: #fff; text-align: center; border-radius: 8px; border: 0; padding: 4px; }
.reader__progress { width: 100%; max-width: 320px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.reader__progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #5ee0bd); border-radius: inherit; transition: width .35s ease; }
.reader__controls .reader__history { height: auto; font-size: .8rem; padding: 3px 12px; border-radius: 999px; background: var(--accent); color: var(--night); }
.reader__page.turn-next { animation: page-in-next .28s cubic-bezier(.2, .8, .2, 1); }
.reader__page.turn-prev { animation: page-in-prev .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes page-in-next { from { opacity: .2; transform: translateX(40px) rotateY(-8deg); } to { opacity: 1; transform: none; } }
@keyframes page-in-prev { from { opacity: .2; transform: translateX(-40px) rotateY(8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 420px) { .reader__controls .reader__nav { padding: 0 14px; } .reader__controls .reader__navtext { font-size: .9rem; } }
@media (max-width: 340px) { .reader__navtext { display: none; } }
.reader__stage { flex: 1; overflow: auto; display: grid; place-items: center; padding: 8px; perspective: 1200px; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; }
.reader__page { position: relative; transform-origin: 0 0; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); background: #fff; }
.reader__page canvas { display: block; }
.reader__links { position: absolute; inset: 0; }
.reader__link { position: absolute; display: block; border-radius: 2px; }
.reader__link:hover, .reader__link:focus-visible { background: rgba(16, 163, 127, .18); outline: 2px solid rgba(16, 163, 127, .6); }
.reader__loading { position: absolute; color: #c9d2e0; }
.reader__notice { background: #fff6dc; color: var(--night); padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .9rem; }
.reader__panel { position: absolute; top: 52px; right: 8px; left: 8px; max-width: 420px; margin-left: auto; max-height: 60%; overflow: auto; background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px 16px; z-index: 5; box-shadow: var(--shadow); }
.reader__panelhead { display: flex; justify-content: space-between; margin-bottom: 8px; }
.reader__panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.reader__panel .linkbtn { text-align: left; }
.reader__search { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }

/* BackOffice */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 16px 0 24px; align-items: start; }
.panel--flat { position: static; }
.panel--flat h2 { margin: 0 0 4px; }
.profile { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; }
.avatar--default { background: var(--brand); color: #fff; font-size: 1.8rem; font-weight: 700; }
.form--inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.ok { color: var(--brand); font-weight: 600; }
.big { font-size: 1.3rem; font-weight: 700; margin: 4px 0 8px; }
.progressbar--big { height: 10px; margin-bottom: 12px; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.banner { background: var(--accent); color: var(--night); border-radius: 12px; padding: 10px 16px; margin-top: 16px; font-weight: 700; text-align: center; }
.banner a { text-decoration: none; }
.msg { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.msg--staff { background: #eef7f4; }
.msg header { font-size: .8rem; color: var(--ink-soft); }
.msg p { white-space: pre-wrap; margin: 6px 0 0; }
.form-card textarea, .form-card select { font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); width: 100%; }
.stack { display: grid; gap: 12px; align-content: start; }
/* instalador */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.form-card h2 { margin: 0; font-size: 1.1rem; }
pre.msg { white-space: pre-wrap; word-break: break-all; font-size: .85rem; }

/* Título e descrição abaixo de cada capa (vitrine, busca e biblioteca) */
.card-text { display: grid; gap: 2px; margin-top: 10px; text-decoration: none; color: var(--ink); }
.card-text__code { font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
.card-text__title { font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-text__desc { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-text:hover .card-text__title { color: var(--brand); }
@media (max-width: 600px) {
    .card-text__title { font-size: .85rem; }
    .card-text__desc { font-size: .76rem; -webkit-line-clamp: 2; }
}

/* Vitrine em movimento: 12 SmartBooks da direita para a esquerda */
.showcase { padding: 32px 0 12px; overflow: hidden; }
.showcase__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.showcase__head h2 { margin: 0; font-size: clamp(1.15rem, 3vw, 1.5rem); }
.showcase__head p { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.showcase__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.marquee { position: relative; overflow-x: auto; overflow-y: hidden; padding: 6px 0 14px; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee::-webkit-scrollbar { display: none; }
.marquee:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: 12px; }
.marquee__track { display: flex; width: max-content; margin: 0; padding: 0 16px; list-style: none; }
.carctl { display: inline-flex; align-items: center; gap: 6px; }
.carctl[hidden] { display: none; }
.carctl__btn { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.carctl__btn:hover { border-color: var(--brand); color: var(--brand); }
.carctl__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.carctl__btn--text { min-width: 84px; }
.slide[inert] { pointer-events: auto; }
.slide { flex: none; width: clamp(150px, 19vw, 210px); padding-right: clamp(14px, 2vw, 24px); }
.slide a { display: grid; align-content: start; gap: 4px; text-decoration: none; color: var(--ink); }
.slide .cover { margin-bottom: 6px; }
.slide a:hover .cover, .slide a:focus-visible .cover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 27, 45, .22); }
.slide__code { font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--brand); }
.slide__title { font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide__desc { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide a:hover .slide__title { color: var(--brand); }
@media (max-width: 600px) {
    .showcase { padding-top: 22px; }
    .slide { width: 42vw; padding-right: 12px; }
    .slide__desc { -webkit-line-clamp: 2; font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee { -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; }
    .slide { scroll-snap-align: start; }
    .slide[data-clone] { display: none; }
}

/* Carrinho: adicionar mais títulos sem sair da página */
.shop__main { display: grid; gap: 16px; min-width: 0; }
.picker { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; }
.picker__toggle { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 700; color: var(--brand); }
.picker__toggle::-webkit-details-marker { display: none; }
.picker__plus { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.picker[open] .picker__plus { transform: rotate(45deg); }
.picker__body { padding: 0 16px 16px; display: grid; gap: 12px; }
.picker__search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.picker__search input[type=search] { flex: 1 1 200px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--paper); color: inherit; }
.btn--ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); padding: 8px 18px; }
.picks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pick { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pick .mini { width: 44px; }
.pick__info { display: grid; min-width: 0; }
.pick__info a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .92rem; }
.pick__info small { color: var(--ink-soft); }
.pick__add { border: 0; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 700; font-size: .85rem; padding: 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.pick__add span { font-size: 1.05rem; }
.pick__add:hover { filter: brightness(1.08); }
.picker__pages { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .picks { grid-template-columns: minmax(0, 1fr); } }

/* Marca: ícone no cabeçalho, logo e mascote na abertura, copyright centralizado */
.brand__icon { width: 40px; height: 40px; object-fit: contain; display: block; }
.hero--brand { text-align: left; padding: 32px 0 0; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: end; }
.hero__text { padding-bottom: 48px; }
.hero__logo { width: min(420px, 100%); height: auto; display: block; margin: 0 0 16px; }
.hero--brand .searchbar { margin-inline: 0; }
.hero__mascot { width: 340px; height: auto; display: block; filter: drop-shadow(0 0 28px rgba(56, 152, 255, .45)); }
@media (max-width: 760px) {
    .hero--brand { text-align: center; padding-top: 20px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hero__text { padding-bottom: 8px; }
    .hero__logo { margin-inline: auto; width: min(300px, 90%); }
    .hero--brand .searchbar { margin-inline: auto; }
    .hero__mascot { width: 180px; margin: 0 auto; }
}
.footer__inner { flex-direction: column; justify-content: center; text-align: center; }
.footer nav { justify-content: center; }
.footer__copy { width: 100%; text-align: center; }
.brand__logo { display: block; height: 52px; width: auto; max-width: 60vw; }
@media (max-width: 760px) { .brand__logo { height: 40px; } }

/* 1.0.6: sino de notificações e avatar no topo */
.topnav { margin-left: auto; align-items: center; flex-wrap: wrap; }
.topbar__me { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; }
.bell > summary { list-style: none; cursor: pointer; position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { background: rgba(255, 255, 255, .12); }
.bell > summary:focus-visible { outline: 2px solid var(--accent); }
.bell__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e5484d; color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--night); }
.bell__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 520px); overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15, 27, 45, .25); z-index: 20; }
.bell__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.bell__head a { color: var(--brand); font-weight: 600; font-size: .9rem; text-decoration: none; }
.bell__list { list-style: none; margin: 0; padding: 0; }
.bell__item { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; font-size: .9rem; }
.bell__item:last-child { border-bottom: 0; }
.bell__item.is-unread { background: #eefaf5; box-shadow: inset 3px 0 0 var(--brand); }
.bell__item p { margin: 0; color: var(--ink-soft); }
.bell__meta { font-size: .78rem; color: var(--ink-soft); }
.bell__meta a { color: var(--brand); font-weight: 600; }
.bell__empty { padding: 20px 16px; margin: 0; color: var(--ink-soft); }
.kind { justify-self: start; display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #e8edf5; color: var(--ink-soft); }
.kind--mensagem { background: #e3f0ff; color: #1d5fb3; }
.kind--aviso { background: #fff3d6; color: #8a5a00; }
.kind--promocao { background: #ffe4ec; color: #b4235a; }
.me { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid rgba(255, 255, 255, .5); }
.me img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
    .topbar__inner { row-gap: 8px; }
    .topbar__me { order: 2; margin-left: auto; }
    .topnav { order: 3; width: 100%; margin-left: 0; gap: 14px; }
    .bell__panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* página de notificações */
.noticelist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; max-width: 760px; }
.noticelist__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.noticelist__item.is-unread { border-left: 4px solid var(--brand); }
.noticelist__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.noticelist__top time { margin-left: auto; }
.noticelist__new { font-size: .75rem; font-weight: 700; color: var(--brand); }
.noticelist__item h2 { font-size: 1.05rem; margin: 8px 0 4px; }
.noticelist__item p { margin: 0 0 10px; }

/* treinamentos */
.btn--big { padding: 14px 28px; font-size: 1.05rem; }
.trainings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; margin: 16px 0 32px; outline: none; }
.training { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.training h2 { font-size: 1.05rem; margin: 14px 16px 4px; }
.training p { margin: 0 16px 16px; color: var(--ink-soft); }
.player { position: relative; aspect-ratio: 16 / 9; background: #0b1220; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__start { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg, var(--night), #1d3557); }
.player__start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__play { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(16, 163, 127, .92); color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .15s; }
.player__start:hover .player__play, .player__start:focus-visible .player__play { transform: scale(1.08); }

/* materiais de divulgação */
.materials { list-style: none; padding: 0; margin: 16px 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.material { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.material__preview { aspect-ratio: 4 / 3; background: repeating-conic-gradient(#f1f3f7 0 25%, #fff 0 50%) 0 0 / 20px 20px; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.material__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.material__ext { font-size: 1.6rem; font-weight: 800; color: #fff; background: var(--night); border-radius: 12px; padding: 14px 18px; letter-spacing: .05em; }
.material__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.material__body h2 { font-size: 1rem; margin: 0; }
.material__body p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.material__cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.material__meta { font-size: .8rem !important; }
.material__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* atalhos do Início no aplicativo */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 20px 0; }
.shortcut { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.shortcut span[aria-hidden] { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #e7f6f1; color: var(--brand); font-size: 1.1rem; flex: none; }
.shortcut small { display: block; font-weight: 400; color: var(--ink-soft); }
.tabbar a { min-width: 0; }

/* 1.0.8: menu hambúrguer à esquerda no celular */
.burger { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; border-radius: 10px; place-items: center; cursor: pointer; padding: 0; }
.burger:hover, .burger:focus-visible { background: rgba(255, 255, 255, .12); }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 84vw); background: var(--night); color: #fff; z-index: 30; overflow-y: auto; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); transform: translateX(-100%); transition: transform .22s ease; box-shadow: 8px 0 32px rgba(0, 0, 0, .35); }
.drawer.is-open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(5, 10, 20, .55); z-index: 29; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer__head img { height: 40px; width: auto; }
.drawer__close { background: none; border: 0; color: #fff; font-size: 2rem; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 10px; }
.drawer__user { margin: 0; padding: 14px 18px; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.drawer__user small { opacity: .7; }
.drawer ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer li a { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-decoration: none; font-size: 1rem; }
.drawer li a span { width: 22px; text-align: center; opacity: .85; }
.drawer li a:hover, .drawer li a[aria-current="page"] { background: rgba(16, 163, 127, .18); }
.drawer li a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); font-weight: 700; }
.drawer li .badge { margin-left: auto; }
.badge--red { background: #e5484d; color: #fff; }
.drawer__out { padding: 8px 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.drawer__out .linkbtn { color: #fff; opacity: .85; font-size: 1rem; }
body.drawer-open { overflow: hidden; }
@media (max-width: 760px) {
    .burger { display: grid; order: 0; margin-left: -8px; }
    .brand { order: 1; }
    .topnav { display: none !important; }
    .topbar__inner { flex-wrap: nowrap; gap: 8px; padding-block: 10px; }
}
@media (min-width: 761px) { .drawer, .drawer-backdrop { display: none !important; } }

/* ---------- 1.0.14: continuar lendo, banners de promoção, transições ---------- */
.continue-wrap { margin-top: 18px; }
.continue { position: relative; display: flex; gap: 16px; align-items: center; max-width: 620px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #fff;
    background: linear-gradient(135deg, #0f1b2d 0%, #16324f 55%, #0d6b55 100%); box-shadow: 0 14px 34px rgba(15, 27, 45, .28); overflow: hidden; isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease; }
.continue::after { content: ""; position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 224, 189, .35), transparent 70%); z-index: -1; }
.continue:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 27, 45, .34); }
.continue__cover { flex: none; width: 64px; }
.continue__cover img, .continue__cover .mini { display: block; width: 64px; height: auto; border-radius: 8px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.continue__body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.continue__body strong { font-size: 1.05rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.continue__body small { color: #b9c6d8; font-size: .8rem; }
.continue__kicker { color: #5ee0bd !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem !important; }
.continue__bar { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 6px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.continue__bar::-webkit-progress-bar { background: rgba(255, 255, 255, .15); border-radius: 6px; }
.continue__bar::-webkit-progress-value { background: linear-gradient(90deg, var(--brand), #5ee0bd); border-radius: 6px; }
.continue__bar::-moz-progress-bar { background: linear-gradient(90deg, var(--brand), #5ee0bd); border-radius: 6px; }
.continue__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .95rem; box-shadow: 0 6px 16px rgba(16, 163, 127, .45); }

.promo { position: relative; width: min(1180px, 100% - 32px); margin: 16px auto 0; border-radius: 20px; overflow: hidden; box-shadow: 0 14px 36px rgba(15, 27, 45, .18); background: var(--night); }
.promo__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo__track::-webkit-scrollbar { display: none; }
.promo__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.promo__slide a, .promo__slide picture { display: block; }
.promo__slide img { display: block; width: 100%; height: auto; }
.promo__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--night); font-size: 1.6rem; line-height: 1; cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(6px); }
.promo__arrow--prev { left: 12px; }
.promo__arrow--next { right: 12px; }
.promo:hover .promo__arrow, .promo__arrow:focus-visible { opacity: 1; }
.promo__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.promo__dots button { pointer-events: auto; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .3s ease, background .3s ease; }
.promo__dots button[aria-current="true"] { width: 24px; background: #fff; }
@media (max-width: 760px) {
    .promo { width: 100%; margin-top: 0; border-radius: 0 0 18px 18px; }
    .promo__arrow { display: none; }
    .continue { gap: 12px; padding: 12px; }
    .continue__cover, .continue__cover img, .continue__cover .mini { width: 52px; }
}

/* barra fina no topo enquanto a próxima página carrega */
.navbar-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 50; background: linear-gradient(90deg, var(--brand), #5ee0bd, var(--accent)); box-shadow: 0 0 10px rgba(16, 163, 127, .7); pointer-events: none; opacity: 0; }
.is-leaving .navbar-progress { opacity: 1; animation: navbar-load 2.4s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes navbar-load { from { width: 0; } to { width: 88%; } }

/* transição entre páginas: View Transitions nos navegadores que suportam, entrada suave nos demais */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out .18s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px) scale(.995); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(.995); } }
@supports not (view-transition-name: none) {
    main { animation: vt-in .35s cubic-bezier(.2, .8, .2, 1) both; }
}
.grid__item, .shortcut, .card { transition: transform .2s ease, box-shadow .2s ease; }
.tabbar a { transition: color .2s ease, transform .15s ease; }
.tabbar a:active, .btn:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root), main, .reader__page.turn-next, .reader__page.turn-prev { animation: none !important; }
    .promo__track { scroll-behavior: auto; }
}

/* ---------- 1.0.15: ícones de linha, biblioteca compacta, "Descubra mais", modo escuro ---------- */
.sprite { display: none; }
.ico { width: 22px; height: 22px; flex: none; display: inline-block; vertical-align: middle; }

/* barra de baixo e menu lateral com ícones de linha */
@media (max-width: 760px) {
    .has-tabbar .tabbar { backdrop-filter: blur(14px); background: color-mix(in srgb, var(--card) 88%, transparent); }
    .tabbar a { gap: 2px; padding: 8px 0 6px; position: relative; }
    .tabbar a .ico { width: 24px; height: 24px; transition: transform .2s ease; }
    .tabbar a[aria-current="page"] .ico { transform: translateY(-1px) scale(1.08); }
    .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
    /* no aplicativo o rodapé institucional sai: a barra de baixo já faz a navegação */
    .has-tabbar .footer { display: none; }
}
.drawer li a .ico { opacity: .85; }
.drawer li a[aria-current="page"] .ico { color: #5ee0bd; opacity: 1; }
.drawer__theme { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; background: none; border: 0; color: #fff; font: inherit; font-size: 1rem; cursor: pointer; text-align: left; }
.drawer__theme:hover { background: rgba(16, 163, 127, .18); }
.drawer__out .linkbtn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.shortcut span[aria-hidden] .ico { width: 20px; height: 20px; }

/* botão do tema no topo */
.themebtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.themebtn:hover, .themebtn:focus-visible { background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) {
    .topbar__inner .themebtn { margin-left: auto; order: 2; }
    .topbar__inner .themebtn ~ .topbar__me { margin-left: 0; order: 3; }
}
.ico--sun, .when-dark { display: none; }
[data-theme="dark"] .ico--sun, [data-theme="dark"] .when-dark { display: inline-block; }
[data-theme="dark"] .ico--moon, [data-theme="dark"] .when-light { display: none; }

/* biblioteca e "Recentes": 3 capas por linha no celular, com selo de leitura */
.grid--lib .cover { position: relative; }
.libbadge { position: absolute; top: 6px; left: 6px; z-index: 1; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em;
    background: rgba(15, 27, 45, .82); color: #fff; backdrop-filter: blur(4px); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.libbadge--new { background: var(--accent); color: var(--night); }
.libbadge--done { background: var(--brand); }
@media (max-width: 600px) {
    .app .grid--lib { grid-template-columns: repeat(3, 1fr); gap: 12px 10px; }
    .app .grid--lib .card-text { margin-top: 6px; }
    .app .grid--lib .card-text__desc { display: none; }
    .app .grid--lib .card-text__title { font-size: .78rem; }
    .app .grid--lib .cover { border-radius: 8px; }
    .app h1 { font-size: 1.6rem; margin: 4px 0 8px; }
}

/* busca e temas compactos */
.libtools { display: grid; gap: 10px; margin: 8px 0 18px; }
.libsearch { display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.libsearch .ico { color: var(--ink-soft); width: 20px; height: 20px; }
.libtools .libsearch input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 0; background: transparent; box-shadow: none; }
.libsearch:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.chiprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; }
.chiprow::-webkit-scrollbar { display: none; }
.chiprow .chip { cursor: pointer; font: inherit; font-size: .85rem; color: var(--ink); scroll-snap-align: start; }
.chiprow .chip.is-active { color: #fff; }

/* Descubra mais */
.discover { margin-top: 32px; }
.discover__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.discover__head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.discover__head h2 .ico { color: var(--accent); }
.discover__head a { color: var(--brand); font-weight: 700; text-decoration: none; font-size: .9rem; }
.discover__row { list-style: none; margin: 0; padding: 4px 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 150px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.discover__row::-webkit-scrollbar { display: none; }
.discover__row li { scroll-snap-align: start; }
.discover__row a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.discover__row a:hover .cover { transform: translateY(-3px); }
.discover__code { font-size: .68rem; font-weight: 700; letter-spacing: .06em; color: var(--brand); margin-top: 4px; }
.discover__row b { font-size: .82rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* modo escuro: mesmas cores de marca, fundos e textos invertidos */
[data-theme="dark"] {
    --ink: #e7edf6;
    --ink-soft: #9fb0c8;
    --paper: #0b1220;
    --card: #131d2e;
    --line: #26344d;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
    color-scheme: dark;
}
[data-theme="dark"] .shortcut span[aria-hidden] { background: rgba(16, 163, 127, .16); }
[data-theme="dark"] .bell__panel { box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
[data-theme="dark"] .btn--ghost { color: #5ee0bd; border-color: #5ee0bd; }
[data-theme="dark"] .card-text__code, [data-theme="dark"] .discover__code { color: #5ee0bd; }
[data-theme="dark"] .chip.is-active { background: var(--brand); border-color: var(--brand); }
[data-theme="dark"] .footer { background: #070d18; }
[data-theme="dark"] main a:not([class]) { color: #7fe3c6; }

/* 1.0.16: início enxuto (banner no lugar do "Continuar lendo") e setas finas no leitor */
.app h1.hello { font-size: 1.25rem; font-weight: 700; margin: 6px 0 12px; }
.app .promo { width: 100%; margin: 0 0 22px; border-radius: 18px; }
.reader__controls { grid-template-columns: 1fr; }
.reader__arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 34px; height: 72px; padding: 0; border: 0; background: transparent; color: #fff; opacity: .45; cursor: pointer; display: grid; place-items: center; transition: opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.reader__arrow svg { width: 18px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.reader__arrow:hover, .reader__arrow:focus-visible { opacity: .9; }
.reader__arrow:active { opacity: 1; }
.reader__arrow:disabled { opacity: 0; pointer-events: none; }
.reader__arrow--prev { left: 2px; }
.reader__arrow--next { right: 2px; }

/* 1.0.17: foto do cliente só no topo do menu, em moldura redonda */
.drawer .drawer__user { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.drawer__avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; border: 2px solid var(--brand); box-shadow: 0 0 0 3px rgba(16, 163, 127, .25); background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 700; }
.drawer__user strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }

/* 1.0.18: foto de perfil tocável, setas do leitor mais visíveis */
.avatar-pick { position: relative; display: inline-block; cursor: pointer; flex: none; }
.avatar-pick__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avatar-pick__badge { position: absolute; right: -2px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: #fff; border: 2px solid var(--card, #fff); }
.avatar-pick__badge .ico { width: 15px; height: 15px; }
.avatar-pick:focus-within .avatar { outline: 3px solid var(--brand); outline-offset: 2px; }
.reader__arrow { color: var(--brand); opacity: .9; }
.reader__arrow svg { stroke-width: 2.4; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 1px 3px rgba(0, 0, 0, .35)); }
.reader__arrow:hover, .reader__arrow:focus-visible, .reader__arrow:active { opacity: 1; color: #0d8c6c; }

/* 1.0.19: landing page de vendas (/lp) */
.lpbar { background: var(--night); color: #fff; position: relative; z-index: 5; }
.lpbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.lpbar__nav { display: flex; align-items: center; gap: 16px; }
.lpbar__link { color: #fff; text-decoration: none; font-size: .95rem; opacity: .9; }
.lpbar__link:hover { opacity: 1; text-decoration: underline; }
.lpbar .btn--small { padding: 8px 18px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 760px) { .lpbar .brand { order: 0; } }
@media (max-width: 520px) { .lpbar__link { display: none; } .lpbar .brand__logo { height: 36px; } }

/* 1.0.20: landing page v2 (pedido técnico): abertura com vídeo, cards de nichos, banners, como funciona, perguntas, fechamento */
.lp { --gold: #f2b632; --deep: #0f1b2d; --deep2: #1d3557; overflow-x: clip; }
.lp-preview { margin: 0; padding: 8px 16px; text-align: center; background: var(--gold); color: #1a1405; font-size: .85rem; font-weight: 700; }
.lp-title { margin: 0 0 12px; font-size: clamp(1.45rem, 3.8vw, 2.2rem); line-height: 1.18; letter-spacing: -.01em; }
.lp-lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.6; }
.lp-lead p { margin: 0 0 1em; }
.lp-narrow { max-width: 820px; }
.lp-note { margin: 14px 0 0; font-size: .85rem; line-height: 1.5; color: var(--ink-soft); }
.lp-note--onDark { color: #b8c4d6; }
.lp-sec { padding: clamp(34px, 5.5vw, 68px) 0; }
.lp-sec--light { background: var(--paper); }
.lp-sec--soft { background: var(--card); }
.lp-sec--deep { background: linear-gradient(170deg, var(--deep), var(--deep2)); color: #fff; }
.lp-sec--deep .lp-lead { color: #dbe4f0; }
.lp-sec--strip { padding-block: clamp(20px, 3vw, 36px); }
.lp-credit { margin: 0; padding: 22px 16px; text-align: center; font-size: .95rem; color: var(--ink-soft); }

.lp-btn { padding: 14px 28px; font-size: 1.02rem; letter-spacing: .01em; text-align: center; box-shadow: 0 10px 26px rgba(16, 163, 127, .35); transition: transform .15s ease, box-shadow .2s ease, background .2s ease; }
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16, 163, 127, .45); background: #0d8c6c; }
.lp-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lp-btn--big { padding: 16px 34px; font-size: clamp(1rem, 2.6vw, 1.15rem); }
.lp-btn--ghost { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }
.lp-btn--ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.lp-btn--card { width: 100%; padding: 12px 16px; font-size: .9rem; margin-top: auto; }

/* abertura */
.lp-hero { background: radial-gradient(1200px 520px at 80% -10%, rgba(16, 163, 127, .3), transparent 60%), linear-gradient(170deg, var(--deep), var(--deep2)); color: #fff; padding: clamp(28px, 5vw, 60px) 0 clamp(34px, 5vw, 64px); }
.lp-hero__eyebrow { margin: 0 0 10px; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5ee0bd; }
.lp-hero h1 { margin: 0 0 clamp(18px, 3vw, 28px); max-width: 980px; font-size: clamp(1.7rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.lp-hero h1 strong { font-weight: 900; color: #fff; font-size: 1.12em; background: linear-gradient(transparent 70%, rgba(242, 182, 50, .55) 70%); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); gap: clamp(20px, 4vw, 48px); align-items: start; }
.lp-hero__grid--solo { grid-template-columns: minmax(0, 1fr) minmax(280px, 440px); }
.lp-hero__main { min-width: 0; }
.lp-video { margin: 0 0 18px; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .14); }
.lp-video img { display: block; width: 100%; height: auto; }
.lp-video .player { aspect-ratio: 1920 / 720; } /* vídeo da landing: 1920×720 (8:3) */
.lp-video video { object-fit: contain; }
/* play que pisca para convidar ao clique (só na landing) */
.lp-video .player__start { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #fff; text-decoration: none; }
.lp-video .player__play { grid-column: 2; }
.lp-video .player__hint { grid-column: 3; justify-self: start; margin-left: clamp(8px, 1.6vw, 16px); text-decoration: none; }
@media (max-width: 400px) { .lp-video .player__hint { padding: 6px 10px; font-size: .78rem; margin-left: 8px; } }
.lp-video .player__start::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 12, 24, .45)); pointer-events: none; }
.lp-video .player__play { z-index: 1; width: clamp(54px, 8vw, 92px); height: clamp(54px, 8vw, 92px); background: var(--brand); border: 3px solid rgba(255, 255, 255, .92); animation: lp-play 1.8s ease-in-out infinite; }
.lp-video .player__play svg { width: 42%; height: 42%; margin-left: 6%; }
.lp-video .player__hint { z-index: 1; padding: 8px 14px; border-radius: 999px; background: rgba(5, 12, 24, .72); color: #fff; font-weight: 800; font-size: clamp(.82rem, 1.8vw, 1.05rem); letter-spacing: .01em; white-space: nowrap; animation: lp-hint 1.8s ease-in-out infinite; }
.lp-video .player__start:hover .player__play, .lp-video .player__start:focus-visible .player__play { animation: none; transform: scale(1.1); }
.lp-video .player__start:focus-visible { outline: 3px solid #5ee0bd; outline-offset: -3px; }
@keyframes lp-play { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94, 224, 189, .75), 0 6px 24px rgba(0, 0, 0, .4); } 55% { transform: scale(1.08); box-shadow: 0 0 0 clamp(14px, 2.4vw, 26px) rgba(94, 224, 189, 0), 0 6px 24px rgba(0, 0, 0, .4); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(94, 224, 189, 0), 0 6px 24px rgba(0, 0, 0, .4); } }
@keyframes lp-hint { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lp-video .player__play, .lp-video .player__hint { animation: none; } }
@media (max-width: 520px) { .lp-hero > .wrap > .lp-video { margin-inline: -16px; border-radius: 0; border-inline: 0; } }
.lp-video--still img { aspect-ratio: 1920 / 720; object-fit: cover; }
.lp-hero > .wrap > .lp-video { margin-bottom: clamp(20px, 3vw, 34px); }
.lp-transcript { margin: -6px 0 18px; font-size: .9rem; color: #dbe4f0; }
.lp-transcript summary { cursor: pointer; font-weight: 700; padding: 4px 0; }
.lp-transcript p { margin: .5em 0; line-height: 1.55; }
.lp-hero__text p { margin: 0 0 14px; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.6; color: #dbe4f0; max-width: 640px; }
.lp-offer { margin: 6px 0 18px; padding: 14px 18px; border-left: 4px solid var(--gold); background: rgba(255, 255, 255, .07); border-radius: 0 14px 14px 0; max-width: 640px; }
.lp-offer__title { margin: 0; font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 800; line-height: 1.25; }
.lp-offer__body { margin: 4px 0 0; font-size: clamp(1rem, 2.4vw, 1.15rem); color: #dbe4f0; }
.lp-offer__body strong { color: var(--gold); }
.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lp-hero .lp-note { color: #b8c4d6; max-width: 640px; }
.lp-hero__visual { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.lp-hero__side--stage .lp-hero__visual { grid-column: 1 / -1; }
.lp-robot { display: block; width: 100%; height: auto; max-width: 300px; margin-inline: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
.lp-hero__covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-hero__covers li:first-child { grid-column: 1 / -1; width: 56%; margin-inline: auto; }
.lp-cover { display: block; text-decoration: none; color: inherit; position: relative; }
.lp-cover .cover { box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.lp-cover:hover .cover, .lp-cover:focus-visible .cover { transform: translateY(-4px); }
.lp-cover:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 12px; }
.lp-cover--soon .cover { opacity: .55; }
.lp-cover__soon { position: absolute; left: 8px; right: 8px; bottom: 8px; text-align: center; font-size: .72rem; font-weight: 800; background: var(--deep); color: #fff; border-radius: 999px; padding: 4px 8px; }

/* cards de nichos */
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: clamp(20px, 3vw, 32px); }
.lp-card { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.lp-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-card__niche { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.lp-card__code { margin: 0; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.lp-card h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
.lp-card__hook { margin: 2px 0 0; font-size: .9rem; line-height: 1.45; }
.lp-card__label { margin: 8px 0 0; font-size: .78rem; font-weight: 800; }
.lp-card__learn { margin: 0; padding-left: 18px; font-size: .84rem; line-height: 1.45; color: var(--ink-soft); }
.lp-card__example { margin: 6px 0 12px; font-size: .82rem; line-height: 1.45; color: var(--ink-soft); }
.lp-card__soon { margin: auto 0 0; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.lp-card .lp-cover .cover { box-shadow: var(--shadow); }
.lp-card .lp-cover--soon .cover { opacity: .5; }

/* banners */
.lp-banner { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--deep), var(--deep2) 60%, #145e63); color: #fff; }
.lp-banner--selection { background: linear-gradient(120deg, #0b4a4a, #0f1b2d 70%); }
.lp-banner__art, .lp-banner__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-banner__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 27, 45, .82), rgba(15, 27, 45, .35)); }
.lp-banner__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 240px; padding-block: clamp(26px, 4vw, 44px); }
.lp-banner__text { max-width: 640px; }
.lp-banner__eyebrow { margin: 0 0 6px; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5ee0bd; }
.lp-banner h2, .lp-closing h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3.8vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; }
.lp-banner__copy p { margin: 0 0 16px; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.55; color: #dbe4f0; }
.lp-banner__robot { flex: none; width: clamp(110px, 16vw, 190px); }
.lp-banner__robot .lp-robot { max-width: 100%; }

/* como funciona */
.lp-steps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 280px); gap: clamp(20px, 4vw, 48px); align-items: center; }
.lp-steps__list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.lp-steps__list li { display: flex; gap: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; padding: 16px; }
.lp-steps__n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand); color: #fff; }
.lp-steps__list h3 { margin: 0 0 4px; font-size: 1.02rem; }
.lp-steps__list p { margin: 0; font-size: .9rem; line-height: 1.5; color: #dbe4f0; }
.lp-steps__robot .lp-robot { max-width: 260px; }

/* amostras, perguntas, autor, fechamento */
.lp-samples { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-samples figure { margin: 0; }
.lp-samples img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.lp-samples figcaption { margin-top: 6px; font-size: .85rem; color: var(--ink-soft); }
.lp-faq { margin-top: 18px; display: grid; gap: 10px; }
.lp-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.lp-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style-position: outside; }
.lp-faq summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.lp-faq details > div { padding-bottom: 14px; color: var(--ink-soft); line-height: 1.55; }
.lp-faq details p { margin: 0 0 .6em; }
.lp-author { display: flex; gap: 22px; align-items: center; }
.lp-author__photo { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.lp-closing { background: radial-gradient(900px 420px at 15% 0%, rgba(16, 163, 127, .3), transparent 60%), linear-gradient(170deg, var(--deep), var(--deep2)); color: #fff; padding: clamp(34px, 6vw, 70px) 0; }
.lp-closing__inner { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.lp-closing__robot { flex: none; width: clamp(120px, 18vw, 220px); }
.lp-closing__text { max-width: 620px; }
.lp-figure { margin: 0 0 20px; }
.lp-figure img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.lp .lp-note a { color: inherit; }

/* botão fixo no celular */
.lp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(15, 27, 45, .94); box-shadow: 0 -8px 24px rgba(0, 0, 0, .3); display: none; }
.lp-sticky .btn { display: block; }
@media (max-width: 760px) { .lp-sticky:not([hidden]) { display: block; } }

/* pulso suave nos botões principais: 2 ciclos de 2,4 s ao entrar na tela, depois parado */
@keyframes lp-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(16, 163, 127, .35); } 50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(16, 163, 127, .28), 0 14px 32px rgba(16, 163, 127, .5); } }
.lp-btn.is-pulsing { animation: lp-pulse 2.4s ease-in-out 2; }
html[data-motion="off"] .lp-btn.is-pulsing { animation: none; }
@media (prefers-reduced-motion: reduce) { .lp-btn.is-pulsing { animation: none; } .lp-btn, .lp-btn:hover { transition: none; transform: none; } }

@media (max-width: 1100px) {
    .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .lp-hero__grid, .lp-hero__grid--solo { grid-template-columns: minmax(0, 1fr); }
    .lp-hero__side { max-width: 460px; }
    .lp-steps { grid-template-columns: minmax(0, 1fr); }
    .lp-steps__robot { display: none; }
}
@media (max-width: 760px) {
    .lp-cards { grid-template-columns: minmax(0, 1fr); }
    .lp-steps__list { grid-template-columns: minmax(0, 1fr); }
    .lp-hero__actions .btn { width: 100%; }
    .lp-hero__visual { grid-template-columns: minmax(0, 1fr); }
    .lp-hero__robot { max-width: 170px; }
    .lp-hero__covers { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
    .lp-hero__covers li, .lp-hero__covers li:first-child { flex: none; width: 34vw; max-width: 150px; margin: 0; scroll-snap-align: start; }
    .lp-banner__inner { min-height: 0; }
    .lp-banner__robot { width: 96px; }
    .lp-closing__inner { flex-direction: column; text-align: center; }
    .lp-author { flex-direction: column; text-align: center; }
    .lp { padding-bottom: 76px; }
}

/* 1.0.21: pagamento por Pix (QR code e copia e cola) */
.pix { display: grid; gap: 14px; justify-items: start; max-width: 460px; }
.pix__qr { width: min(280px, 100%); padding: 10px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pix__qr svg { display: block; width: 100%; height: auto; }
.pix textarea { width: 100%; font: .8rem/1.4 ui-monospace, Menlo, Consolas, monospace; resize: none; }
.pix details { width: 100%; }
.pix summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.alert--ok { background: #e7f6ef; color: #0b5d44; border-color: #b6e4d1; }
.pix .field { width: 100%; }
.pix textarea { box-sizing: border-box; min-width: 100%; }

/* 1.0.22: página "Baixar o aplicativo" (/aplicativo) */
.appdl__hero { text-align: center; padding-block: clamp(28px, 5vw, 56px) 8px; }
.appdl__eyebrow { margin: 0 0 8px; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.appdl h1 { margin: 0 auto 12px; max-width: 760px; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; }
.appdl__lead { margin: 0 auto 22px; max-width: 640px; font-size: clamp(1rem, 2.2vw, 1.15rem); line-height: 1.6; color: var(--ink-soft); }
.appdl__figure { margin: 0 auto; max-width: 640px; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.appdl__figure img { display: block; width: 100%; height: auto; }
.appdl__native { margin: 20px 0 0; }
.appdl__body { padding-block: clamp(28px, 5vw, 52px) clamp(36px, 6vw, 72px); }
.appdl__body h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3.6vw, 2rem); text-align: center; }
.appdl__sub { margin: 0 0 24px; text-align: center; color: var(--ink-soft); }
.appdl__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.appdl__card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.appdl__card.is-mine { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(16, 163, 127, .25), var(--shadow); }
.appdl__card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.appdl__icon { flex: none; width: 46px; height: 46px; padding: 9px; border-radius: 14px; background: var(--night); color: #fff; }
.appdl__card h3 { margin: 0; font-size: 1.15rem; }
.appdl__browser { margin: 2px 0 0; font-size: .85rem; color: var(--ink-soft); }
.appdl__here { margin-left: auto; font-size: .72rem; font-weight: 800; background: var(--brand); color: #fff; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.appdl__here[hidden] { display: none; }
.appdl__card ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; font-size: .95rem; }
.appdl__note { margin: 26px auto 0; max-width: 720px; text-align: center; color: var(--ink-soft); line-height: 1.55; }
.appdl__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 0; }
@media (max-width: 900px) { .appdl__cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* 1.0.23: "Baixe o aplicativo" no menu superior */
.topnav .topnav__app, .lpbar .lpbar__link[href="/aplicativo"] { border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; padding: 4px 12px; opacity: 1; }
.topnav .topnav__app:hover, .lpbar .lpbar__link[href="/aplicativo"]:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
@media (max-width: 760px) { .lpbar .lpbar__link[href="/aplicativo"] { display: none; } }
