/* ==========================================================================
   O Mínimo da Cibersegurança para PMEs — folha de estilo única
   Identidade: branco, azul-marinho, azul intenso, detalhes em azul claro.
   ========================================================================== */

/* ---------- 1. Variáveis (troque as cores aqui) ---------- */
:root {
  --navy: #0e2554;
  --navy-2: #163367;
  --blue: #1457b8;
  --blue-dark: #0f479a;
  --sky: #7eaee6;
  --sky-soft: #e9f1fb;
  --sky-softer: #f4f8fd;
  --line: #d6e1f0;
  --ink: #0f1e36;
  --text: #2b3a52;
  --muted: #55657d;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 37, 84, .06), 0 8px 24px rgba(14, 37, 84, .07);
  --shadow-lg: 0 24px 60px rgba(14, 37, 84, .22);
  --section-y: clamp(64px, 9vw, 112px);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: .005em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }

p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
strong { color: var(--ink); }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }

/* Foco visível para navegação por teclado */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--navy :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding: var(--section-y) 0; position: relative; }
.section--soft { background: var(--sky-softer); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--navy { background: var(--navy); color: #d9e4f5; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section--navy .section-head p { color: #c3d3ec; }

/* Pequeno rótulo acima dos títulos, com linha fina (como na capa) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section--navy .eyebrow { color: var(--sky); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- 4. Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(20, 87, 184, .28); }
.btn--primary:hover { background: var(--blue-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--sky-soft); color: var(--navy); }
.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost-white:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }
.btn--lg { min-height: 56px; padding: 16px 34px; font-size: 1.075rem; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; line-height: .98; letter-spacing: .02em;
  color: var(--navy); font-size: 1.02rem;
}
.brand:hover { color: var(--navy); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span span { display: block; }
.brand .brand-accent { color: var(--blue); font-size: 1.2em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--navy); font-weight: 600; font-size: .98rem; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-list a:hover { background: var(--sky-soft); color: var(--blue); }
.nav-list a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 10px; }
.nav { margin-left: auto; }

/* Seletor de idioma */
.lang-switch { order: 3; display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  display: block; min-width: 36px; padding: 5px 9px; border-radius: 999px; text-align: center; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem; letter-spacing: .06em; color: var(--muted);
}
.lang-switch a:hover { background: var(--sky-soft); color: var(--blue); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 104px); }
.hero::before {
  /* Círculos concêntricos finos atrás da capa, inspirados no diagrama da capa */
  content: ""; position: absolute; right: -180px; top: 50%; width: 820px; height: 820px; transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--sky-soft) 0 34%, transparent 34.2%),
    radial-gradient(circle, transparent 0 49.6%, var(--line) 49.8% 50%, transparent 50.2%),
    radial-gradient(circle, transparent 0 66.4%, rgba(126, 174, 230, .45) 66.6% 66.8%, transparent 67%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }

.hero-title { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: .95; margin-bottom: 22px; }
.hero-title span { display: block; }
.hero-title .accent { color: var(--blue); font-size: 1.08em; }

.hero-subtitle {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--navy); line-height: 1.3;
  padding-top: 18px; border-top: 1px solid var(--navy); max-width: 540px; margin-bottom: 22px;
}
.hero-subtitle strong { color: var(--blue); display: block; font-weight: 700; }
.hero-text { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 560px; color: var(--text); margin-bottom: 30px; }
.hero-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: .92rem; color: var(--muted);
}
.hero-meta svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

.book-cover { position: relative; justify-self: center; width: min(100%, 420px); }
.book-cover img {
  width: 100%; border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-lg), -2px 0 0 rgba(14,37,84,.08);
  aspect-ratio: 2 / 3; object-fit: cover; background: var(--sky-soft);
}

/* ---------- 7. Seção editorial "Sobre o livro" ---------- */
.editorial { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.editorial-lead {
  font-family: var(--font-display); font-weight: 600; color: var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; margin: 0;
  padding-left: 22px; border-left: 3px solid var(--blue);
}
.editorial-body p { font-size: 1.125rem; }
.editorial-body p:first-child::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700; color: var(--blue);
  font-size: 4.2em; line-height: .82; padding: 6px 10px 0 0;
}

/* Destaque "Segurança mínima viável" */
.mvs {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px);
  background: var(--white); box-shadow: var(--shadow);
}
.mvs-badge {
  width: clamp(120px, 16vw, 168px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 10px var(--sky-soft), 0 0 0 11px var(--line);
}
.mvs-badge svg { width: 46%; height: 46%; }
.mvs h2 { text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35em; }
.mvs blockquote { margin: 0 0 1em; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink); }
.mvs p { color: var(--muted); }
.mvs p:last-child { margin-bottom: 0; }

/* ---------- 8. Os cinco controles ---------- */
.controls-wrap { display: grid; grid-template-columns: 420px 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.controls-diagram { width: 100%; max-width: 420px; margin: 0 auto; color: var(--navy); }
.controls-diagram .ring { fill: none; stroke: var(--sky); stroke-width: 1.5; }
.controls-diagram .ring-dash { fill: none; stroke: var(--sky); stroke-width: 1.2; stroke-dasharray: 3 5; }
.controls-diagram .halo { fill: var(--sky-soft); }
.controls-diagram .node { fill: var(--navy); stroke: var(--white); stroke-width: 4; }
.controls-diagram .node-num { fill: var(--blue); stroke: var(--white); stroke-width: 2.5; }
.controls-diagram .node-num-text { fill: var(--white); font: 700 15px var(--font-display); }
.controls-diagram .dot { fill: var(--blue); }

.control-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.control-card {
  display: grid; grid-template-columns: auto auto 1fr; gap: 18px; align-items: center;
  padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.control-card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.control-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--blue);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--blue);
}
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--navy); color: var(--white); box-shadow: 0 0 0 5px var(--sky-soft);
}
.icon-circle svg { width: 26px; height: 26px; }
.control-card h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.control-card p { margin: 0; font-size: .98rem; color: var(--muted); line-height: 1.55; }

/* ---------- 9. Cards genéricos ---------- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card .icon-line {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--blue); border: 1.5px solid var(--blue); background: var(--white);
}
.card .icon-line svg { width: 24px; height: 24px; }

/* Lista "O que você vai encontrar" (duas colunas) */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 64px); }
.feature-list li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--line); }
.feature-num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--sky); }
.feature-list h3 { font-size: 1.35rem; margin-bottom: .3em; }
.feature-list p { margin: 0; color: var(--muted); }

/* Referência para controles e certificação */
.reference { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.reference-points { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 22px; }
.reference-points li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.reference-points .icon-circle { width: 48px; height: 48px; background: var(--blue); box-shadow: 0 0 0 5px rgba(126,174,230,.18); }
.reference-points .icon-circle svg { width: 22px; height: 22px; }
.reference-points h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25em; }
.reference-points p { margin: 0; color: #c9d7ee; }
.notice {
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px);
  background: rgba(255,255,255,.05);
}
.notice-label {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--white); font-size: 1rem; margin-bottom: 14px;
}
.notice-label svg { width: 22px; height: 22px; color: var(--sky); }
.notice p { color: #dbe5f5; }
.notice p:last-child { margin-bottom: 0; }

/* Notice em fundo claro (usado na página do livro) */
.notice--light { background: var(--sky-softer); border-color: var(--line); border-left: 4px solid var(--blue); }
.notice--light .notice-label { color: var(--navy); }
.notice--light .notice-label svg { color: var(--blue); }
.notice--light p { color: var(--text); }

/* Para quem é */
.audience-card { padding: clamp(26px, 3.2vw, 38px); }
.audience-card h3 { text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; }
.audience-card p { font-size: 1.02rem; line-height: 1.65; }

/* ---------- 10. Autor ---------- */
.author { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.author--page { align-items: start; }
.author-photo {
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--sky-soft), #d5e4f7); overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.author-photo::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(20, 87, 184, .25); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.author-initials { font-family: var(--font-display); font-weight: 700; font-size: 4.5rem; color: var(--navy); letter-spacing: .04em; opacity: .85; }
.author-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author h2 { margin-bottom: .2em; }
.author-role { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-size: 1.05rem; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 26px; }
.tags li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--navy); background: var(--white); font-weight: 600; }

/* ---------- 11. Blog ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.post-cat { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding: 4px 10px; border-radius: 999px; background: var(--sky-soft); }
.post-card h3 { font-size: 1.4rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { flex: 1; margin-bottom: 20px; }
.post-card .read-more { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; }
.post-card .read-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.post-card .read-more:hover svg { transform: translateX(3px); }

/* Artigo */
.article-header { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); background: var(--sky-softer); }
.article-header h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 18px; }
.article-header .post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .95rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 22px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--muted); }

.prose { padding: clamp(36px, 5vw, 56px) 0 clamp(16px, 3vw, 24px); font-size: 1.125rem; line-height: 1.75; }
.prose > * { max-width: 72ch; }
.prose .lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink); }
.prose h2 { font-size: clamp(1.75rem, 3.4vw, 2.2rem); margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--line); }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--blue); color: var(--ink); font-style: italic; }
.callout { margin: 1.8em 0; padding: 22px 26px; background: var(--sky-soft); border-radius: var(--radius); border-left: 4px solid var(--blue); }
.callout p:last-child { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0; }
.prose .downloads .btn { text-decoration: none; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.book-box {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center;
  margin: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 80px); padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow);
}
.book-box img { width: 120px; border-radius: 3px 6px 6px 3px; box-shadow: 0 10px 24px rgba(14,37,84,.2); }
.book-box p { margin-bottom: 16px; font-size: 1.08rem; color: var(--ink); }

/* ---------- 12. Frase final e CTA ---------- */
.closing { text-align: center; padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.closing::before, .closing::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.closing::before { width: 480px; height: 480px; border: 1px solid var(--line); }
.closing::after { width: 640px; height: 640px; border: 1px dashed rgba(126, 174, 230, .5); }
.closing .container { position: relative; z-index: 1; }
.closing-title { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; line-height: .95; margin-bottom: 18px; }
.closing-title span { color: var(--blue); }
.closing-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 1.9rem); color: var(--navy); margin-bottom: 34px; }

.cta-band { background: var(--navy); color: #d9e4f5; padding: clamp(64px, 8vw, 96px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(126, 174, 230, .35); outline: 1px dashed rgba(126, 174, 230, .25); outline-offset: 60px;
}
.cta-band .container { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); max-width: 720px; }
.cta-band p { font-size: 1.15rem; max-width: 640px; margin: 0; color: #c9d7ee; }

/* ---------- 13. Página do livro ---------- */
.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 64px); background: var(--sky-softer); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); text-transform: uppercase; line-height: .98; }
.page-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 680px; margin: 0; }

.book-detail { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.book-detail .book-cover { position: sticky; top: calc(var(--header-h) + 24px); }
.book-facts { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.book-facts li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.book-facts dt, .book-facts .k { font-weight: 700; color: var(--navy); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps li { counter-increment: step; }
.steps .card::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 16px; box-shadow: 0 0 0 5px var(--sky-soft);
}

.chapter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px clamp(20px, 4vw, 40px); }
.chapter-list li {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  font-weight: 600; color: var(--navy); transition: border-color .2s ease;
}
.chapter-list li:hover { border-color: var(--sky); }
.chapter-list .chapter-num { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.chapter-list .chapter-part { grid-column: 1 / -1; background: transparent; border: 0; padding: 18px 0 2px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .95rem; color: var(--muted); }

/* ---------- 14. Contato ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.form { display: grid; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field label { font-weight: 650; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 16px;
  border: 1.5px solid #b9c9df; border-radius: var(--radius-sm); background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 180px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20, 87, 184, .15); }
.form-hint { font-size: .9rem; color: var(--muted); margin: 0; }
.lang-note { font-size: .95rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success { background: #e7f5ec; color: #17603a; }
.form-status.is-error { background: #fdecec; color: #9b1c1c; }
.hp { position: absolute; left: -9999px; }
.contact-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-info li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-info .icon-line { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); border: 1.5px solid var(--blue); }
.contact-info .icon-line svg { width: 22px; height: 22px; }
.contact-info span { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }

/* ---------- 15. Footer ---------- */
.site-footer { background: #0a1c42; color: #b8c8e2; padding: clamp(48px, 7vw, 72px) 0 32px; font-size: .96rem; }
.site-footer a { color: #dfe8f7; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-title { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; color: var(--white); margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-heading { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--sky); margin-bottom: 14px; font-weight: 600; }
.footer-legal { padding-top: 24px; display: grid; gap: 8px; font-size: .86rem; color: #93a6c6; }
.footer-legal p { margin: 0; }

/* ---------- 16. Animação discreta (só com JS ativo) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .control-card { transition: none; }
  .btn:hover, .card:hover, .control-card:hover { transform: none; }
}

/* ---------- 17. Responsivo ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls-wrap { grid-template-columns: 1fr; }
  .controls-diagram { max-width: 360px; }
  .book-detail { grid-template-columns: 300px 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(14,37,84,.1);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .nav .btn { margin: 16px 0 0; width: 100%; }
  .site-header .container { gap: 12px; }
  .lang-switch { order: 1; margin-left: auto; }
  .nav-toggle { order: 2; }

  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero::before { right: -300px; top: 72%; width: 640px; height: 640px; }
  .book-cover { width: min(78%, 340px); }
  .hero .book-cover { order: -1; }

  .editorial, .reference, .contact, .cta-band .container { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author { grid-template-columns: 220px 1fr; }
  .book-detail { grid-template-columns: 1fr; }
  .book-detail .book-cover { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-list, .chapter-list, .steps { grid-template-columns: 1fr; }
  .brand { font-size: .9rem; }
  .brand svg { width: 30px; height: 30px; }

  .hero-title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-band .btn, .closing .btn { width: 100%; }

  .mvs { grid-template-columns: 1fr; text-align: left; }
  .control-card { grid-template-columns: auto 1fr; padding: 16px 18px; }
  .control-card .control-num { display: none; }
  .icon-circle { width: 50px; height: 50px; }

  .author { grid-template-columns: 1fr; }
  .author-photo { max-width: 240px; }
  .book-box { grid-template-columns: 1fr; text-align: left; }
  .book-box img { width: 110px; }
  .book-facts li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .closing::before { width: 340px; height: 340px; }
  .closing::after { width: 480px; height: 480px; }
  .prose { font-size: 1.05rem; }
  .prose .lead { font-size: 1.15rem; }
}

/* ---------- 18. Impressão ---------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .book-box .btn { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  body { color: #000; }
}

/* ---------- 19. Utilitários ---------- */
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 40px; }
.mb-lg { margin-bottom: 40px; }
.h-sm { font-size: 1.8rem; }
.btn-row--center { justify-content: center; }
.hero-title--page { font-size: clamp(2.4rem, 5vw, 3.8rem); }
