/* Concurso em Foco: página de vendas (mobile first) */

:root {
  --white: #FFFFFF;
  --blue: #2563EB;
  --blue-hover: #1D4ED8;
  --blue-press: #1E40AF;
  --navy: #12305B;
  --navy-deep: #0C2447;
  --blue-50: #EFF5FF;
  --blue-100: #DDE8FD;
  --text: #243247;
  --muted: #4A5A72;          /* 6.9:1 sobre branco */
  --on-navy: #C9D6EC;        /* 9:1 sobre azul-marinho */
  --line: #DCE4F0;
  --line-strong: #BCCAE0;
  --ok: #166534;
  --ok-bg: #EAF7EE;
  --bad: #9F1D1D;
  --bad-bg: #FDEEEE;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 20px;
  --space: 64px;
  --radius-btn: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dock-space: calc(58px + 12px + 24px + env(safe-area-inset-bottom, 0px));

  color-scheme: light;
}

@media (min-width: 768px) { :root { --gutter: 32px; --space: 88px; } }
@media (min-width: 1100px) { :root { --gutter: 48px; --space: 112px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  padding-bottom: var(--dock-space);   /* a barra fixa nunca cobre o rodapé */
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

h1, h2, h3, h4, h5 { color: var(--navy); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 16px; }

.sprite { position: absolute; }
.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  padding: 12px 16px; border-radius: 10px;
  background: var(--navy); color: var(--white); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.h2 { font-size: clamp(1.875rem, 1.35rem + 2.2vw, 3rem); letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); letter-spacing: -0.02em; }

/* ---------- Botões ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--blue);
  color: var(--white);
  font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  text-align: center; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(18, 48, 91, .14), 0 3px 8px rgba(37, 99, 235, .18);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease), transform .16s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2.4; }

@media (hover: hover) {
  .btn:hover {
    background: var(--blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(18, 48, 91, .14), 0 8px 18px rgba(37, 99, 235, .28);
  }
}
.btn:active {
  background: var(--blue-press);
  transform: scale(.98);
  box-shadow: 0 1px 2px rgba(18, 48, 91, .18);
  transition-duration: .1s;
}
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: var(--radius-btn); }

.btn-block { width: 100%; }
.btn-soft { background: var(--blue-50); color: var(--navy); box-shadow: none; }
@media (hover: hover) { .btn-soft:hover { background: var(--blue-100); box-shadow: none; } }
.btn-soft:active { background: var(--blue-100); }

/* ---------- Cabeçalho ---------- */

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--navy); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap;
}
.brand-mark { width: 26px; height: 26px; flex: none; }
.header-link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.header-link:hover { color: var(--blue); }
@media (max-width: 399px) { .header-link { display: none; } }

/* ---------- Início ---------- */

.hero { padding-block: 16px 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.format-tag {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue); font-size: .9375rem; font-weight: 600;
}
.format-tag .icon { width: 18px; height: 18px; }

.hero h1 {
  margin-top: 14px;
  max-width: 15ch;
  font-size: clamp(2.125rem, 1.15rem + 4.4vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Imagem sem moldura; a margem branca da arte é absorvida pelo layout */
.hero-media { margin: 4px calc(var(--gutter) * -1) 0; }
.hero-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.hero-media figcaption {
  margin-top: -18px; position: relative;
  padding-inline: var(--gutter);
  color: var(--muted); font-size: .8125rem; text-align: center;
}

@media (min-width: 640px) {
  .hero-media { margin-inline: auto; max-width: 620px; width: 100%; }
  .hero-media figcaption { padding-inline: 0; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 40px 24px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px; }
  .hero h1 { font-size: min(3.7vw, 3.5rem); max-width: 14ch; }
  .hero-media { max-width: none; margin: 0 -24px 0 0; }
}

/* ---------- Oferta ---------- */

.offer {
  position: relative;
  padding-block: 32px 40px;
  background: var(--blue-50);
}
.offer-inner { display: grid; gap: 24px; }

.offer-label {
  color: var(--blue);
  font-size: .875rem; font-weight: 800; letter-spacing: .08em; line-height: 1.3;
}
.price-old { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }
.price-old s { text-decoration-thickness: 2px; text-decoration-color: rgba(74, 90, 114, .7); }
.price-now {
  color: var(--navy);
  font-size: clamp(3.5rem, 2.6rem + 4vw, 5.5rem);
  font-weight: 900; line-height: .95; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.price-por { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.price-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 12px;
  color: var(--navy); font-size: .9375rem; font-weight: 600;
}
.price-save {
  padding: 3px 10px; border-radius: 6px;
  background: var(--white); color: var(--blue);
}

.offer-hint { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.offer-action .btn { width: 100%; }

@media (min-width: 768px) {
  .offer { padding-block: 48px; }
  .offer-inner { grid-template-columns: auto minmax(0, 360px); justify-content: space-between; align-items: end; gap: 48px; }
  .offer-action .btn { width: 100%; }
}

/* ---------- O que recebe ---------- */

.contents { padding-block: var(--space) 48px; }
.contents-head p { margin-top: 14px; max-width: 36rem; color: var(--muted); }

.figures {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 32px;
  border-top: 2px solid var(--navy);
}
.figures div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px;
  padding: 16px 0 18px;
  border-bottom: 1px solid var(--line);
}
.figures div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.figures div:nth-child(even) { padding-left: 16px; }
.figures dd { color: var(--blue); font-size: 2.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.figures dt { color: var(--navy); font-size: .9375rem; font-weight: 600; }

@media (min-width: 768px) {
  .figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .figures div, .figures div:nth-child(odd), .figures div:nth-child(even) { padding: 20px 20px 22px; border-right: 1px solid var(--line); }
  .figures div:first-child { padding-left: 0; }
  .figures div:last-child { border-right: 0; }
  .figures dd { font-size: 3.25rem; }
}

.groups { display: grid; gap: 32px; margin-top: 40px; }
.group h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.group ul { margin-top: 8px; }
.group li {
  display: grid; gap: 2px;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.group li::before {
  content: ""; position: absolute; left: 2px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--blue);
}
.group strong { color: var(--navy); font-weight: 700; line-height: 1.35; }
.group span { color: var(--muted); font-size: 1rem; }

@media (min-width: 960px) {
  .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
}

.subjects { margin-top: 56px; }
.acc { margin-top: 16px; border-top: 2px solid var(--navy); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px;
  min-height: 60px; padding-block: 12px;
  color: var(--navy); font-weight: 700; line-height: 1.3;
  cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .acc summary:hover .acc-name { color: var(--blue); } }
.acc-count { color: var(--muted); font-size: .875rem; font-weight: 600; }
.acc summary .icon { color: var(--muted); transition: transform .2s var(--ease); }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc ul {
  display: grid; gap: 6px 32px;
  padding: 0 0 20px;
  font-size: 1rem;
}
.acc li { position: relative; padding-left: 16px; }
.acc li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--blue);
}
@media (min-width: 768px) { .acc ul { grid-template-columns: 1fr 1fr; } }

/* Amostras */
.samples { margin-top: 56px; }
.samples-intro { margin-top: 8px; color: var(--muted); }
.samples-grid { display: grid; gap: 40px; margin-top: 24px; }
@media (min-width: 1024px) { .samples-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.sample-title { font-size: 1.125rem; letter-spacing: -0.01em; }
.sample-meta { margin-top: 10px; color: var(--muted); font-size: .875rem; }

.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin-top: 12px; padding: 4px;
  border-radius: 12px; background: var(--blue-50);
}
.seg-btn {
  min-height: 44px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--navy);
  font-size: .9375rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background-color .18s var(--ease);
}
.seg-btn[aria-selected="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(18, 48, 91, .16); }
.seg-btn:focus-visible { border-radius: 9px; }

.map-panel { margin-top: 12px; }
/* Mapa mental em HTML: legível em qualquer tela, sem ampliar */
.mm {
  padding: 16px 14px 18px;
  border-radius: 18px;
  background: var(--blue-50);
}
.mm-center {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 1.0625rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em;
  text-align: center;
  box-shadow: 0 6px 16px rgba(18, 48, 91, .22);
}
.mm-branches { padding: 14px 0 0 24px; }
.mm-branch {
  position: relative;
  padding: 10px 14px 12px;
  border: 1.5px solid var(--blue);
  border-radius: 14px;
  background: var(--white);
}
.mm-branch + .mm-branch { margin-top: 10px; }
/* eixo vertical (um segmento por ramo; o último para no conector) */
.mm-branch::before {
  content: ""; position: absolute;
  left: -16px; top: -14px; bottom: -14px; width: 2px;
  background: var(--blue);
}
.mm-branch:last-child::before { bottom: auto; height: 38px; }
/* conector com ponto no eixo */
.mm-branch::after {
  content: ""; position: absolute;
  left: -20px; top: 20px; width: 20px; height: 8px;
  background:
    radial-gradient(circle at 5px 4px, var(--blue) 3.6px, transparent 4.2px),
    linear-gradient(var(--blue), var(--blue)) 5px 3px / 100% 2px no-repeat;
}
.mm-tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: .6875rem; font-weight: 800; letter-spacing: .05em; line-height: 1.5;
  text-transform: uppercase;
}
.mm-branch h5 { margin-top: 6px; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; }
.mm-leaves {
  display: grid; gap: 8px;
  margin-top: 8px; padding-left: 12px;
  border-left: 2px solid #A9C2F5;
}
.mm-leaves li {
  color: var(--text);
  font-size: .9375rem; line-height: 1.4;
}
.mm-leaves b { display: block; color: var(--navy); font-weight: 700; }
.mm-takeaway {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  color: var(--navy); font-size: .9375rem; font-weight: 600; line-height: 1.45;
}

@media (min-width: 560px) {
  /* telas maiores: ramos em duas colunas */
  .mm-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-left: 0; }
  .mm-branch + .mm-branch { margin-top: 0; }
  .mm-branch::before, .mm-branch::after { display: none; }
}

.link-btn {
  display: inline; padding: 0; border: 0; background: none;
  color: var(--blue); font-size: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:focus-visible { border-radius: 4px; }

/* Questão */
.quiz { margin-top: 12px; padding: 20px 16px; border-radius: 16px; background: var(--blue-50); }
.quiz > .sample-meta { margin-top: 0; }
@media (min-width: 640px) { .quiz { padding: 28px; } }

.quiz-stem {
  display: block; margin-top: 6px; padding: 0;
  color: var(--navy); font-size: 1.1875rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em;
}
.quiz-stem strong { font-weight: 900; }
.quiz-options { display: grid; gap: 8px; margin-top: 16px; }

.opt {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 12px;
  min-height: 54px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
@media (hover: hover) { .opt:hover { border-color: var(--blue); } }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-letter {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1.5px solid var(--blue); border-radius: 50%;
  color: var(--navy); font-size: .875rem; font-weight: 700;
}
.opt-text { line-height: 1.4; }
.opt-tag { grid-column: 2; font-size: .8125rem; font-weight: 700; }
.opt-tag:empty { display: none; }

.opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.opt:has(input:checked) .opt-letter { background: var(--blue); color: var(--white); }
.opt:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }

.quiz .opt.is-correct { border-color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok); }
.quiz .opt.is-correct .opt-letter { border-color: var(--ok); background: var(--ok); color: var(--white); }
.quiz .opt.is-correct .opt-tag { color: var(--ok); }
.quiz .opt.is-wrong { border-color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1px var(--bad); }
.quiz .opt.is-wrong .opt-letter { border-color: var(--bad); background: var(--bad); color: var(--white); }
.quiz .opt.is-wrong .opt-tag { color: var(--bad); }
.quiz.is-checked .opt { cursor: default; }

.quiz-hint { color: var(--bad); font-size: .9375rem; font-weight: 600; }
.quiz-hint:not(:empty) { margin-top: 12px; }
.quiz-actions { margin-top: 16px; }

.quiz-result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-strong); }
.quiz-result:focus { outline: none; }
.quiz-verdict { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.quiz-verdict.is-ok { color: var(--ok); }
.quiz-verdict.is-bad { color: var(--bad); }
.quiz-result h5 { margin-top: 16px; font-size: 1rem; letter-spacing: -0.01em; }
.quiz-result h5 + p, .quiz-result h5 + ul { margin-top: 6px; }
.quiz-why { display: grid; gap: 6px; }
.quiz-why b { color: var(--navy); }

.note {
  display: flex; gap: 10px;
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text); font-size: .9375rem;
}
.note .icon { margin-top: 2px; color: var(--navy); }

/* ---------- Compra ---------- */

.checkout {
  position: relative; overflow: hidden;
  padding-block: 48px;
  background: var(--navy);
  color: var(--white);
}
.rings {
  position: absolute; top: -140px; right: -180px;
  width: 440px; height: 440px;
  fill: none; stroke: #2B5196; stroke-width: 1.5;
  pointer-events: none;
}
.checkout-grid { position: relative; display: grid; gap: 28px; }
.checkout .h2 { color: var(--white); max-width: 18ch; }
.checks { display: grid; gap: 12px; margin-top: 20px; }
.checks li { display: flex; gap: 12px; color: var(--on-navy); line-height: 1.45; }
.checks .icon { margin-top: 2px; color: #8FB3F8; stroke-width: 2.6; }

.ticket {
  padding: 24px 20px;
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 18px 40px rgba(5, 18, 40, .35);
}
.ticket-format { color: var(--blue); font-size: .9375rem; font-weight: 700; }
.ticket .price-old { margin-top: 8px; }
.price-now-sm { font-size: clamp(3rem, 2.4rem + 2.5vw, 4rem); }
.ticket .price-meta { margin-bottom: 20px; }
.btn-buy { min-height: 58px; padding-inline: 16px; font-size: 1.0625rem; white-space: nowrap; }
@media (max-width: 399px) {
  .ticket { padding-inline: 16px; }
  .btn-buy { font-size: 1rem; }
  .btn-buy .icon { display: none; }
}

.buy-status { color: var(--navy); font-size: .9375rem; font-weight: 600; text-align: center; }
.buy-status:not(:empty) { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--blue-50); }

@media (min-width: 900px) {
  .checkout { padding-block: 88px; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 64px; }
  .ticket { padding: 32px; }
  .rings { top: -180px; right: -140px; width: 600px; height: 600px; }
}

/* ---------- Dúvidas e rodapé ---------- */

.faq-section { padding-block: var(--space) calc(var(--space) - 24px); }
.faq-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; } }
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding-block: 14px;
  color: var(--navy); font-weight: 700; line-height: 1.35;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .faq summary:hover { color: var(--blue); } }
.faq summary .icon { color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 32px 18px 0; color: var(--muted); }

.site-footer { padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; }
.footer-brand { margin-bottom: 4px; color: var(--navy); font-size: 1rem; font-weight: 800; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; }

/* ---------- Barra fixa de vidro ---------- */

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;            /* só o vidro recebe cliques */
  /* entrada: fade in; visibility muda no início */
  transition: opacity .32s var(--ease), transform .32s var(--ease), visibility 0s linear 0s;
}
/* saída: fade out; visibility só muda depois do fade */
.dock.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity .28s ease-in, transform .28s ease-in, visibility 0s linear .28s;
}

/* O próprio botão é o vidro: uma única camada com desfoque */
.dock-glass {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 520px;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .30) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 12px 32px rgba(18, 48, 91, .20),
    0 2px 6px rgba(18, 48, 91, .10),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    inset 0 0 0 1px rgba(37, 99, 235, .08);
  color: var(--navy);
  font-size: .9375rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .16s var(--ease);
}
/* reflexo estático na borda superior */
.dock-glass::before {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #FFFFFF 50%, rgba(255,255,255,0));
  pointer-events: none;
}
.dock-glass .icon {
  width: 26px; height: 26px; padding: 5px;
  border-radius: 50%;
  background: rgba(18, 48, 91, .08);
  stroke-width: 2.4;
}
@media (hover: hover) {
  .dock-glass:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .68) 0%, rgba(255, 255, 255, .44) 100%);
    box-shadow:
      0 16px 36px rgba(18, 48, 91, .24),
      0 3px 8px rgba(18, 48, 91, .12),
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(255, 255, 255, .35),
      inset 0 0 0 1px rgba(37, 99, 235, .1);
  }
}
.dock-glass:active { transform: scale(.98); transition-duration: .1s; }

/* Sobre a faixa azul-marinho o vidro escurece e o texto fica branco */
.dock.on-dark .dock-glass {
  border-color: rgba(255, 255, 255, .38);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .10) 100%);
  box-shadow:
    0 12px 32px rgba(3, 12, 28, .45),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .12);
  color: var(--white);
  text-shadow: 0 1px 1px rgba(3, 12, 28, .35);
}
.dock.on-dark .dock-glass .icon { background: rgba(255, 255, 255, .18); }
.dock-glass { transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .16s var(--ease); }

/* ---- Liquid glass: camadas de luz sobre a única camada com desfoque ---- */
.dock-glass {
  isolation: isolate;
  border-color: transparent;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .50) 0%, rgba(255, 255, 255, .22) 45%, rgba(255, 255, 255, .34) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.06);
  box-shadow:
    0 14px 34px rgba(18, 48, 91, .20),
    0 3px 8px rgba(18, 48, 91, .10),
    inset 0 1.5px 1px rgba(255, 255, 255, .95),     /* lâmina de luz no topo */
    inset 0 -10px 18px rgba(255, 255, 255, .18),    /* volume na base */
    inset 0 -1px 1px rgba(255, 255, 255, .45),
    inset 0 0 0 .5px rgba(255, 255, 255, .6);
}
/* brilho que segue o toque/cursor; parado, fica no alto à esquerda */
.dock-glass::before {
  content: ""; position: absolute; inset: 0; top: 0; left: 0; right: 0; height: auto;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(140px 70px at var(--mx, 22%) var(--my, -10%), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 48%);
  pointer-events: none;
}
/* borda com refração: clara nos cantos, quase invisível no meio */
.dock-glass::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .25) 30%,
    rgba(255, 255, 255, .08) 55%, rgba(255, 255, 255, .55) 85%, rgba(255, 255, 255, .9) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.dock-glass > * { position: relative; z-index: 1; }
.dock-glass .icon {
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(18, 48, 91, .18);
}

@media (hover: hover) {
  .dock-glass:hover {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .32) 45%, rgba(255, 255, 255, .44) 100%);
    box-shadow:
      0 18px 40px rgba(18, 48, 91, .24),
      0 4px 10px rgba(18, 48, 91, .12),
      inset 0 1.5px 1px rgba(255, 255, 255, 1),
      inset 0 -10px 18px rgba(255, 255, 255, .24),
      inset 0 -1px 1px rgba(255, 255, 255, .5),
      inset 0 0 0 .5px rgba(255, 255, 255, .7);
  }
}
/* toque com retorno elástico */
.dock-glass:active { transform: scale(.97); transition: transform .12s ease-out; }
.dock-glass:not(:active) { transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .42s cubic-bezier(.34, 1.56, .64, 1); }

.dock.on-dark .dock-glass {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .08) 45%, rgba(255, 255, 255, .16) 100%);
  box-shadow:
    0 14px 34px rgba(3, 12, 28, .45),
    inset 0 1.5px 1px rgba(255, 255, 255, .55),
    inset 0 -10px 18px rgba(255, 255, 255, .06),
    inset 0 0 0 .5px rgba(255, 255, 255, .3);
}
.dock.on-dark .dock-glass::before { opacity: .45; }
.dock.on-dark .dock-glass::after { opacity: .6; }
.dock.on-dark .dock-glass .icon { background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.dock-glass:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 24px; }
@media (max-width: 369px) { .dock-glass { font-size: .875rem; padding-inline: 12px; } .dock-glass .icon { display: none; } }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock-glass { background: rgba(255, 255, 255, .96); }
}

/* ---------- Ampliação do mapa ---------- */

.lightbox {
  width: min(1000px, calc(100vw - 16px)); max-width: none;
  height: min(calc(100dvh - 16px), 1200px); max-height: none;
  padding: 0; border: 0; border-radius: 18px;
  background: var(--white); color: var(--text);
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(12, 36, 71, .72); }
.lightbox-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line);
}
.lightbox-head h2 { font-size: 1rem; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-tools { display: flex; gap: 6px; flex: none; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--blue-50); color: var(--navy);
  font-size: .9375rem; font-weight: 700; cursor: pointer;
  transition: background-color .18s var(--ease), transform .16s var(--ease);
}
.tool-btn:active { transform: scale(.98); }
@media (hover: hover) { .tool-btn:hover { background: var(--blue-100); } }
.tool-close { background: var(--navy); color: var(--white); }
@media (hover: hover) { .tool-close:hover { background: var(--navy-deep); } }
.lightbox-body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.lightbox-body img { width: 100%; max-width: 900px; height: auto; margin-inline: auto; padding: 12px; }
.lightbox.is-zoomed .lightbox-body img { width: max(820px, 150%); max-width: none; }
@media (max-width: 479px) {
  [data-lightbox-zoom] span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  [data-lightbox-zoom] { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .btn:hover, .btn:active, .tool-btn:active, .dock-glass:hover, .dock-glass:active { transform: none; }
  /* a barra continua com fade suave, só sem deslocamento */
  .dock, .dock.is-hidden { transform: none; }
  .dock { transition: opacity .3s ease, visibility 0s linear 0s !important; }
  .dock.is-hidden { transition: opacity .3s ease, visibility 0s linear .3s !important; }
}
