/*
 * Páginas públicas de aquisição (layouts/public.blade.php).
 * CSS puro servido direto de public/ (não depende do build do Vite): sem Tailwind, sem bibliotecas de ícones.
 * Identidade visual da home: Inter, roxo #c125fa, fundos lilás suaves.
 */
:root {
    --brand: #c125fa;
    --brand-dark: #a819e0;
    --brand-soft: #f3e8ff;
    --brand-softer: #faf5ff;
    --ink: #111827;
    --text: #4b5563;
    --muted: #6b7280;
    --line: #e5e7eb;
    --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body.pub {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.pub img { max-width: 100%; height: auto; }
.pub a { color: var(--brand); }
.pub a:hover { color: var(--brand-dark); }
.pub :focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.pub-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.pub-narrow { max-width: 780px; }

.pub-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.pub-skip:focus { left: 8px; }

/* Cabeçalho */
.pub-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pub-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.pub-logo img { display: block; height: 24px; width: auto; }
.pub-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.pub-nav-link { color: var(--text) !important; text-decoration: none; }
.pub-nav-link:hover { color: var(--brand) !important; }
.pub-menu { position: relative; }
.pub-menu summary { cursor: pointer; list-style: none; color: var(--text); }
.pub-menu summary::-webkit-details-marker { display: none; }
.pub-menu summary::after { content: ' ▾'; font-size: 12px; }
.pub-menu ul { position: absolute; top: 32px; left: 0; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(17,24,39,.12); }
.pub-menu li a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.pub-menu li a:hover, .pub-menu li a[aria-current] { background: var(--brand-softer); color: var(--brand); }

@media (max-width: 760px) {
    .pub-header { position: static; }
    .pub-header-inner { padding-top: 10px; padding-bottom: 10px; }
    .pub-nav { gap: 12px; font-size: 14px; }
    .pub-nav .pub-nav-link:nth-of-type(3) { display: none; }
}

/* Botões */
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; background: var(--brand); color: #fff !important; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); transition: background .2s; }
.pub-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.pub-btn-sm { padding: 8px 16px; font-size: 14px; }
.pub-btn-ghost { background: transparent; color: var(--brand) !important; }
.pub-btn-ghost:hover { background: var(--brand-softer); }
.pub-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Trilha */
.pub-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px auto 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.pub-breadcrumb li + li::before { content: '›'; margin-right: 6px; }
.pub-breadcrumb a { color: var(--muted); }

/* Topo da página */
.pub-hero { padding: 32px 0 48px; background: linear-gradient(to bottom right, #fff, var(--brand-soft)); }
.pub-kicker { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid #e9d5ff; color: var(--brand); font-size: 13px; font-weight: 600; }
.pub h1 { margin: 16px 0 0; color: var(--ink); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.18; font-weight: 700; letter-spacing: -.01em; max-width: 820px; }
.pub-lead { margin: 18px 0 0; font-size: clamp(17px, 2vw, 19px); max-width: 760px; }
.pub-answer { margin-top: 24px; padding: 18px 20px; background: #fff; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; max-width: 780px; box-shadow: 0 6px 20px rgba(193,37,250,.08); }
.pub-answer p { margin: 0; color: var(--ink); }
.pub-note { font-size: 14px; color: var(--muted); }

/* Seções */
.pub-section { padding: 48px 0; }
.pub-section-soft { background: var(--brand-softer); }
.pub h2 { margin: 0 0 16px; color: var(--ink); font-size: clamp(22px, 3vw, 30px); line-height: 1.25; }
.pub h3 { margin: 24px 0 8px; color: var(--ink); font-size: 19px; line-height: 1.35; }
.pub p, .pub li { font-size: 17px; }
.pub ul.pub-list, .pub ol.pub-list { padding-left: 22px; }
.pub ul.pub-list li, .pub ol.pub-list li { margin: 6px 0; }
.pub strong { color: var(--ink); }

.pub-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.pub-box { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pub-box h3 { margin-top: 0; }
.pub-box p { margin: 0; font-size: 16px; }
.pub-step { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: .05em; }

/* Jogos */
.pub-games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 24px 0 0; padding: 0; list-style: none; }
.pub-game { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pub-game img { width: 56px; height: 56px; border-radius: 12px; }
.pub-game h3 { margin: 6px 0 0; font-size: 18px; }
.pub-game p { margin: 0; font-size: 15px; }
.pub-game a { margin-top: auto; font-weight: 600; font-size: 15px; }

/* Tabela */
.pub-table-wrap { overflow-x: auto; margin-top: 20px; }
.pub table { width: 100%; border-collapse: collapse; font-size: 16px; background: #fff; }
.pub th, .pub td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pub th { color: var(--ink); background: var(--brand-softer); }

/* Perguntas frequentes */
.pub-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
.pub-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px; }
.pub-faq details p { margin: 12px 0 0; }

/* Chamada final */
.pub-cta { margin: 0 auto; padding: 36px 28px; text-align: center; background: linear-gradient(135deg, var(--brand), #8b1fd6); color: #fff; border-radius: 24px; }
.pub-cta h2, .pub-cta p { color: #fff; }
.pub-cta p { margin: 0 auto; max-width: 620px; }
.pub-cta .pub-actions { justify-content: center; }
.pub-cta .pub-btn { background: #fff; color: var(--brand) !important; border-color: #fff; }
.pub-cta .pub-btn-ghost { background: transparent; color: #fff !important; }

/* BNCC */
.pub-skill { display: inline-block; margin-top: 16px; padding: 6px 14px; border-radius: 10px; background: #fff; border: 2px solid var(--brand); color: var(--ink); font-weight: 700; letter-spacing: .04em; }

/* Relacionados */
.pub-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.pub-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; }
.pub-card a:hover { border-color: var(--brand); }
.pub-card strong { color: var(--ink); font-size: 17px; }
.pub-card span { color: var(--text); font-size: 15px; }

/* Rodapé */
.pub-footer { margin-top: 32px; padding: 48px 0 24px; background: var(--brand-softer); border-top: 1px solid #f0e3ff; }
.pub-footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.pub-footer h2 { font-size: 16px; margin: 0 0 12px; }
.pub-footer ul { margin: 0; padding: 0; list-style: none; }
.pub-footer li { margin: 6px 0; font-size: 15px; }
.pub-footer li a { color: var(--text); text-decoration: none; }
.pub-footer li a:hover { color: var(--brand); }
.pub-footer p { font-size: 15px; }
.pub-copy { margin-top: 28px; font-size: 14px !important; color: var(--muted); }
