/* Safe Networks — Layout A. Tokens do briefing, seção 2. Sem fontes ou recursos de terceiros. */
:root {
  --color-navy: #0b1730;
  --color-bg: #ffffff;
  --color-bg-subtle: #f5f7fb;
  --color-text: #17212e;
  --color-muted: #526177;
  --color-on-dark: #cbd5e1;
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-accent: #10b981;
  --color-border: #d9e2ef;
  --color-warning-bg: #fff7e0;
  --color-warning-border: #e0b84a;
  --color-error: #b42318;
  --radius-control: 0.625rem;
  --radius-card: 1rem;
  --container-max: 75rem;
  --shadow-card: 0 8px 28px rgb(11 23 48 / 6%);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6.5rem; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 1.0625rem/1.6 var(--font);
}
@media (min-width: 768px) { body { font-size: 1.125rem; } }
img { max-width: 100%; height: auto; }
a { color: var(--color-primary-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--color-navy); }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; color: var(--color-navy); }
h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }
.prose { max-width: 44rem; }
.prose p, .prose li { max-width: 70ch; }
.muted { color: var(--color-muted); }
.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-link { position: absolute; left: 0.5rem; top: -4rem; background: var(--color-navy); color: #fff; padding: 0.6rem 1rem; z-index: 100; border-radius: var(--radius-control); }
.skip-link:focus { top: 0.5rem; }

/* Cabeçalho */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 5rem; }
.brand { display: inline-flex; flex: none; }
.brand img { display: block; width: auto; max-width: 100%; transition: opacity 0.2s ease; }
/* Home: o logo do cabeçalho fica oculto enquanto o logo grande do hero está visível (nav.js alterna a classe). */
.site-header.logo-oculto .brand { visibility: hidden; }
.site-header.logo-oculto .brand img { opacity: 0; }
.brand .logo-horizontal { height: 36px; }
.brand .logo-vertical { height: 56px; }
@media (min-width: 768px) { .brand .logo-horizontal { height: 36px; } .brand .logo-vertical { height: 64px; } }
.nav-toggle {
  margin-left: auto; min-height: 44px; min-width: 44px; padding: 0.5rem 0.9rem; border: 1px solid var(--color-border);
  background: #fff; color: var(--color-navy); border-radius: var(--radius-control); font: inherit; font-weight: 600; cursor: pointer;
}
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--color-border); padding: 0.5rem 1.25rem 1.25rem; box-shadow: var(--shadow-card); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.75rem 0.25rem; min-height: 44px; color: var(--color-text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--color-bg-subtle); }
.site-nav a[aria-current="page"] { color: var(--color-primary-dark); font-weight: 700; }
.site-nav a.btn { display: inline-flex; margin-top: 1rem; width: 100%; padding: 0.7rem 1.35rem; color: #fff; border: 2px solid var(--color-primary); font-weight: 600; }
.site-nav a.btn:hover { color: #fff; }
@media (min-width: 1280px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; position: static; padding: 0; border: 0; box-shadow: none; margin-left: auto; gap: 1rem; }
  .site-nav ul { display: flex; gap: 0.8rem; }
  .site-nav a { border: 0; padding: 0.5rem 0.1rem; white-space: nowrap; font-size: 0.95rem; }
  .site-nav a.btn { margin: 0; width: auto; }
}
.no-js .nav-toggle { display: none; }
.no-js .site-nav { display: block; position: static; box-shadow: none; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0.7rem 1.35rem; border-radius: var(--radius-control);
  background: var(--color-primary); color: #fff; font: inherit; font-weight: 600; text-decoration: none; border: 2px solid var(--color-primary); cursor: pointer; text-align: center;
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--color-primary-dark); }
.btn-secondary:hover { background: var(--color-bg-subtle); color: var(--color-navy); border-color: var(--color-primary-dark); }
.on-dark .btn-secondary { color: #fff; border-color: var(--color-on-dark); }
.on-dark .btn-secondary:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.link-arrow { font-weight: 600; }

/* Seções */
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 4.5rem 0; } }
.section-alt { background: var(--color-bg-subtle); }
.on-dark { background: var(--color-navy); color: var(--color-on-dark); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark a:not(.btn) { color: #fff; }
.kicker { color: var(--color-accent); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 0.75rem; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }

.hero { padding: 2.5rem 0 3rem; }
@media (min-width: 768px) { .hero { padding: 4.5rem 0; } }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; } }
.hero-lead { font-size: 1.15rem; max-width: 36rem; }
.hero-logo { order: -1; display: flex; justify-content: center; align-items: center; margin: 0 auto 0.5rem; }
.hero-logo img { display: block; width: 100%; height: auto; max-width: 13rem; }
@media (min-width: 900px) { .hero-logo { order: 0; } .hero-logo img { max-width: 26rem; } }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
[hidden] { display: none !important; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.5rem; display: flex; flex-direction: column; }
.section-alt .card { background: #fff; }
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--color-muted); }
.card .link-arrow { margin-top: auto; }
.card-media { margin: -1.5rem -1.5rem 1.25rem; background: var(--color-bg-subtle); border-radius: var(--radius-card) var(--radius-card) 0 0; overflow: hidden; }
.card-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; }
.card .tag { font-size: 0.85rem; color: var(--color-muted); margin-bottom: 0.5rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3rem; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--color-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.note { font-size: 0.95rem; color: var(--color-muted); }

/* Página interna */
.page-head { padding: 2rem 0 1.5rem; background: var(--color-bg-subtle); border-bottom: 1px solid var(--color-border); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); margin-bottom: 0.4em; }
.page-head .lead { font-size: 1.15rem; color: var(--color-muted); max-width: 46rem; margin: 0; }
.breadcrumb { font-size: 0.95rem; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; color: var(--color-muted); }
.solution-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .solution-layout { grid-template-columns: 1fr minmax(260px, 420px); align-items: start; } }
.deliverables { background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.5rem; margin: 2rem 0; }
.deliverables ul { margin: 0.5rem 0 1rem; padding-left: 1.25rem; }
.side-art { border-radius: var(--radius-card); overflow: hidden; background: var(--color-bg-subtle); }
.side-art img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: contain; }
.next-step { border-left: 4px solid var(--color-accent); padding: 0.25rem 0 0.25rem 1rem; margin: 1.5rem 0; }
.faq details { border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 0.9rem 1.1rem; margin-bottom: 0.75rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.filters button { min-height: 44px; padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; font: inherit; cursor: pointer; color: var(--color-text); }
.filters button[aria-pressed="true"] { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.empty-state { padding: 1rem; border: 1px dashed var(--color-border); border-radius: var(--radius-control); }
.notice { background: var(--color-warning-bg); border: 1px solid var(--color-warning-border); border-radius: var(--radius-control); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }

/* Formulários */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 0.6rem 0.8rem; font: inherit; color: var(--color-text); background: #fff;
  border: 1px solid #707d93; border-radius: var(--radius-control);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: 0.95rem; color: var(--color-muted); margin: 0.3rem 0 0; }
.captcha .captcha-title { display: block; font-weight: 600; }
.captcha .captcha-question { display: block; font-weight: 400; color: var(--color-navy); margin-top: 0.15rem; }
.captcha input { max-width: 8rem; }
.link-button { background: none; border: 0; padding: 0.6rem 0.25rem; min-height: 44px; font: inherit; color: var(--color-primary-dark); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.link-button:hover { color: var(--color-navy); }
.field .error { color: var(--color-error); font-weight: 600; margin: 0.35rem 0 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--color-error); border-width: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: flex; align-items: flex-start; gap: 0.6rem; min-height: 44px; padding: 0.55rem 0.8rem; border: 1px solid var(--color-border); border-radius: var(--radius-control); background: #fff; margin-bottom: 0.5rem; cursor: pointer; }
.choice input { margin-top: 0.3rem; width: 1.15rem; height: 1.15rem; flex: none; }
.choice:has(input:checked) { border-color: var(--color-primary); background: #eef3ff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 1rem 1.25rem; border-radius: var(--radius-control); border: 1px solid var(--color-border); background: #fff; }
.status.is-success { border-color: var(--color-accent); border-left-width: 6px; }
.status.is-error { border-color: var(--color-error); border-left-width: 6px; }
.status:focus { outline: 3px solid var(--color-primary); }

/* Autoavaliação */
.assess { max-width: 52rem; margin: 0 auto; }
.assess [hidden] { display: none !important; }
.profile-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .profile-grid { grid-template-columns: 1fr 1fr; } }
.profile-card { border: 2px solid var(--color-border); border-radius: var(--radius-card); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.profile-card.is-selected { border-color: var(--color-primary); box-shadow: 0 0 0 3px #dbe6ff; }
.profile-card img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: contain; background: var(--color-bg-subtle); }
.profile-card .card-media { margin: 0; border-radius: 0; }
.profile-card .body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.profile-card .btn { margin-top: auto; }
.progress { height: 0.6rem; background: var(--color-border); border-radius: 999px; overflow: hidden; margin: 0.5rem 0 1.5rem; }
.progress > span { display: block; height: 100%; background: var(--color-primary); }
.q-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; color: var(--color-muted); font-size: 0.95rem; }
.q-prompt { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.assess-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.result-top { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .result-top { grid-template-columns: 1fr 1fr; } }
.score-box { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.25rem; background: #fff; }
.score-number { font-size: 3.25rem; font-weight: 800; line-height: 1; color: var(--color-navy); }
.score-band { font-weight: 700; margin-top: 0.4rem; }
.flag { border: 1px solid var(--color-warning-border); border-left-width: 6px; background: var(--color-warning-bg); border-radius: var(--radius-control); padding: 0.9rem 1.1rem; margin: 0.75rem 0; }
.flag strong::before { content: "⚠ "; }
.cat-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.5rem; }
.cat-table th, .cat-table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.cat-bar { display: block; height: 0.5rem; background: var(--color-border); border-radius: 999px; margin-top: 0.3rem; overflow: hidden; }
.cat-bar > span { display: block; height: 100%; background: var(--color-primary); }
.action-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.action-list li { border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: 1.1rem 1.25rem; background: #fff; }
.action-list .why { font-size: 0.95rem; color: var(--color-muted); margin-bottom: 0.4rem; }
.answer-tag { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--color-bg-subtle); border: 1px solid var(--color-border); }
.result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
.summary-preview { background: var(--color-bg-subtle); border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 1rem; white-space: pre-wrap; font-size: 0.95rem; }
.full-list details { border: 1px solid var(--color-border); border-radius: var(--radius-control); padding: 0.8rem 1rem; background: #fff; margin-top: 0.75rem; }
.full-list summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

/* Rodapé */
.site-footer { background: var(--color-navy); color: var(--color-on-dark); padding: 3rem 0 2rem; margin-top: 0; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 1.4fr; } }
.footer-brand img { display: block; width: 140px; height: auto; }
.social-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0; min-height: 44px; }
.social-link .icon { fill: currentColor; flex: none; width: 1.1em; height: 1.1em; }
.social-link span { line-height: 1; }
.site-footer .social-link { display: inline-flex; align-items: center; gap: 0.5rem; }
ul:has(> li > .social-link) { list-style: none; padding-left: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.1rem 1rem; }
.footer-links a { display: inline-block; padding: 0.55rem 0; min-height: 44px; }
.footer-meta { border-top: 1px solid rgb(255 255 255 / 15%); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .assess-nav, .result-actions { display: none; } }
