/* =========================================================
   Instituto Daimon — estilos do site
   Paleta e tipografia seguem a identidade usada nas pesquisas,
   no pitch e no banner (navy + âmbar/laranja, Montserrat).
   ========================================================= */

:root {
  --navy: #1f3a5a;
  --navy-deep: #172d47;
  --navy-2: #34557c;
  --navy-line: #2b4a6e;
  --amber: #ffa800;
  --amber-2: #ffb000;
  --orange: #f26a0f;
  --orange-d: #c9500a;
  --white: #ffffff;
  --tint: #edf1f6;
  --ice: #d5dfea;
  --text: #26303c;
  --muted: #5b6877;
  --line: #d9e1ea;

  --grad: linear-gradient(135deg, var(--amber-2) 0%, var(--orange) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(72px, 10vw, 120px);
  --shadow: 0 18px 40px -24px rgba(23, 45, 71, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--navy-deep);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-block; font-size: 26px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-d); margin-bottom: 18px;
}
.on-dark .eyebrow { color: var(--amber); }
h1, h2, h3 { font-weight: 800; line-height: 1.12; color: var(--navy); letter-spacing: -.01em; }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
h2 { font-size: clamp(28px, 3.8vw, 42px); max-width: 22ch; }
h3 { font-size: 20px; line-height: 1.25; }
.hl { color: var(--amber); }
.hl-o { color: var(--orange-d); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin-top: 20px; }
.on-dark .lead { color: var(--ice); }
.sec-head { margin-bottom: clamp(32px, 5vw, 48px); }
section { padding: var(--section) 0; position: relative; }

/* ---------- botões e links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: var(--navy-deep); box-shadow: 0 12px 28px -12px rgba(242, 106, 15, .7); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--amber); background: rgba(255, 255, 255, .05); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-d); text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--amber); }

/* ---------- cabeçalho ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-header.scrolled { background: rgba(23, 45, 71, .95); backdrop-filter: blur(10px); box-shadow: 0 8px 30px -18px rgba(0,0,0,.6); }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--ice); text-decoration: none; font-size: 14px; font-weight: 600; position: relative; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px; background: var(--grad); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; margin: auto; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-deep); padding: 4px var(--gutter) 20px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .22s ease;
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 16px; }
  .nav a[aria-current="page"] { color: var(--amber); }
  .nav a[aria-current="page"]::after { display: none; }
  .site-header.open { background: var(--navy-deep); }
  .site-header.open .nav { transform: none; opacity: 1; visibility: visible; }
}

/* ---------- fundos ---------- */
.dark {
  position: relative; color: var(--white); overflow: hidden;
  background:
    radial-gradient(ellipse 900px 520px at 70% 40%, #26466b 0%, transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1.6px, transparent 2px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
          mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
}
.dark > .wrap { position: relative; z-index: 2; }
.tint { background: var(--tint); }

/* ---------- abertura ---------- */
.hero {
  min-height: min(100svh, 860px); padding: 140px 0 clamp(64px, 9vw, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { font-size: clamp(38px, 6vw, 76px); max-width: 14ch; }
.hero .lead { max-width: 54ch; margin-top: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-tag {
  display: flex; align-items: center; gap: 14px; margin-top: 48px;
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #b9c8da;
}
.hero-tag::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: var(--grad); }
.hero-deco {
  position: absolute; z-index: 1; pointer-events: none;
  right: clamp(-40px, 2vw, 40px); top: 50%; transform: translateY(-50%);
  height: min(74%, 620px); width: auto; aspect-ratio: 263 / 316; opacity: .85;
}
.page-hero { padding: 160px 0 clamp(64px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 18ch; }
.page-hero .hero-deco { height: 86%; opacity: .55; }

/* ---------- quem somos ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.about-text p { font-size: 18px; }
.about-text p + p { margin-top: 18px; }
.about-text strong { color: var(--orange-d); }
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line); padding-top: 36px;
}
.num-grad { display: block; font-size: 14px; font-weight: 800; letter-spacing: .1em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.principle h3 { margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--muted); }

/* as duas frentes: sociedade e empresas */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.duo-card {
  display: flex; flex-direction: column; gap: 14px; position: relative;
  background: var(--tint); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.duo-card .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--white); color: var(--navy); }
.duo-card .ico svg { width: 28px; height: 28px; }
.duo-k { position: absolute; top: clamp(28px, 4vw, 44px); right: clamp(28px, 4vw, 44px);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--white); }
.duo-card h3 { font-size: clamp(24px, 2.6vw, 30px); margin-top: 6px; }
.duo-card > p { color: var(--muted); }
.duo-h { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); }
.duo-items { list-style: none; display: grid; gap: 10px; }
.duo-items li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--white); font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.duo-items .pill { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.duo-card .btn { margin-top: auto; align-self: flex-start; }
.duo-card .duo-items { margin-bottom: 14px; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.duo-card.feat { background: var(--navy); }
.duo-card.feat .ico { background: rgba(255,255,255,.08); color: var(--amber); }
.duo-card.feat .duo-k { background: var(--grad); color: var(--navy-deep); }
.duo-card.feat h3 { color: var(--white); }
.duo-card.feat > p { color: var(--ice); }
.duo-card.feat .duo-h { color: var(--amber); }
.duo-card.feat .duo-items li { background: rgba(255,255,255,.07); color: var(--white); }
.duo-card.feat .duo-items .pill { color: #9fb1c6; }

.case { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.case-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23,45,71,.6); aspect-ratio: 4 / 5; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 36px 0 20px; }
.stat { background: var(--tint); border-radius: var(--radius-sm); padding: 22px 18px; }
.stat b { display: block; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1; color: var(--navy); }
.stat:nth-child(2) b { color: var(--orange-d); }
.stat span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.55; }
.case .link-arrow { margin-top: 24px; }

/* faixa do nome e do Instagram */
.name-band .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.name-band .greek { font-size: clamp(44px, 6vw, 72px); font-weight: 300; color: var(--amber); line-height: 1; letter-spacing: .02em; }
.name-band h2 { font-size: clamp(24px, 3vw, 32px); }
.name-band p { color: var(--ice); margin-top: 10px; max-width: 56ch; }
.insta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.insta-l { display: flex; align-items: center; gap: 20px; }
.insta .ico { width: 60px; height: 60px; border-radius: 18px; background: var(--grad); color: var(--navy-deep); display: grid; place-items: center; flex: none; }
.insta .ico svg { width: 30px; height: 30px; }
.insta h3 { font-size: 22px; }
.insta p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- serviços ---------- */
/* trilha das etapas (1 · 2 · 3) */
.stage-rail { list-style: none; display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; margin-bottom: 26px; }
.stage-rail li { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stage-rail li + li::before { content: ""; width: clamp(18px, 4vw, 44px); height: 2px; border-radius: 2px; background: var(--line); margin: 0 12px 0 2px; }
.stage-rail .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid var(--line); font-size: 14px; letter-spacing: 0; background: var(--white); }
.stage-rail .done .n { background: var(--navy); border-color: var(--navy); color: var(--white); }
.stage-rail .done + li::before { background: var(--navy); }
.stage-rail .now { color: var(--orange-d); }
.stage-rail .now .n { background: var(--grad); border-color: transparent; color: var(--navy-deep); box-shadow: 0 8px 18px -8px rgba(242,106,15,.8); }
.on-dark .stage-rail li { color: #9fb1c6; }
.on-dark .stage-rail li + li::before { background: rgba(255,255,255,.18); }
.on-dark .stage-rail .n { background: transparent; border-color: rgba(255,255,255,.25); }
.on-dark .stage-rail .done .n { background: rgba(255,255,255,.14); border-color: transparent; color: var(--white); }
.on-dark .stage-rail .done + li::before { background: var(--amber); }
.on-dark .stage-rail .now { color: var(--amber); }
.on-dark .stage-rail .now .n { background: var(--grad); border-color: transparent; color: var(--navy-deep); }

/* texto + figura */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip .split-text { order: 2; }
.split-text h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.split-text p + p { margin-top: 14px; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; color: var(--navy); }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background-size: 100%; background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23172d47' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3L17 9'/%3E%3C/svg%3E"), var(--grad);
}
.fig { margin: 0; }
.fig svg { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -32px rgba(23,45,71,.55); border: 1px solid var(--line); font-family: inherit; }
.fig figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }
.flow { stroke-dasharray: 6 7; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
@media (prefers-reduced-motion: reduce) { .flow { animation: none; } }

/* ponte para a próxima etapa */
.bridge {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px;
  margin-top: clamp(56px, 8vw, 88px); padding: 24px 28px; border-radius: var(--radius);
  background: var(--tint); text-decoration: none; color: var(--navy); border-left: 4px solid var(--orange);
  transition: transform .2s, box-shadow .2s;
}
.tint .bridge { background: var(--white); }
.on-dark .bridge { background: rgba(255,255,255,.06); color: var(--white); border-left-color: var(--amber); }
.bridge:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bridge-k { grid-column: 1; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-d); }
.on-dark .bridge-k { color: var(--amber); }
.bridge-t { grid-column: 1; font-size: clamp(17px, 1.9vw, 21px); font-weight: 600; line-height: 1.4; }
.bridge-t b { font-weight: 800; color: var(--orange-d); }
.on-dark .bridge-t b { color: var(--amber); }
.bridge-go { grid-column: 2; grid-row: 1 / span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: var(--navy-deep); }
.bridge-go svg { width: 22px; height: 22px; transition: transform .2s; }
.bridge:hover .bridge-go svg { transform: translateY(3px); }

/* passos do estudo de caso */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: clamp(48px, 7vw, 72px); }
.process li { background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.process h3 { font-size: 18px; margin-bottom: 8px; }
.process p { font-size: 15px; color: var(--muted); }

/* preço da pesquisa */
.price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price-v { font-size: clamp(52px, 7vw, 84px); font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-l { font-size: 18px; font-weight: 700; color: var(--white); }
.assure { list-style: none; display: grid; gap: 14px; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; }
.assure li { font-size: 14px; color: var(--ice); padding-left: 20px; position: relative; }
.assure li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.assure b { display: block; color: var(--white); font-size: 15px; }
.uses-title { font-size: 22px; margin-bottom: 18px; }

/* escadinha */
.stair { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; }
.stair-step { border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; background: var(--tint); position: relative; }
.stair-step .n { font-size: 48px; font-weight: 800; line-height: 1; color: var(--orange-d); }
.stair-step .ask { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--orange-d); }
.stair-step p { font-size: 15px; }
.stair-step .tag { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: var(--orange-d); text-decoration: none; }
.stair-step .tag:hover { text-decoration: underline; }
.stair-step .trig { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--grad); color: var(--navy-deep); margin-bottom: 6px; }
.stair-step:nth-child(1) { min-height: 330px; }
.stair-step:nth-child(2) { min-height: 410px; background: var(--navy-2); color: var(--ice); }
.stair-step:nth-child(3) { min-height: 490px; background: var(--navy); color: var(--ice); }
.stair-step:nth-child(n+2) h3 { color: var(--white); }
.stair-step:nth-child(n+2) .n, .stair-step:nth-child(n+2) .ask, .stair-step:nth-child(n+2) .tag { color: var(--amber); }
.stair-axis { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stair-axis::before { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), var(--orange)); border-radius: 2px; }
.stair-axis::after { content: ""; width: 0; height: 0; border-left: 9px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: -12px; }
.stair-axis span { order: -1; }

.solo {
  margin-top: 24px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between;
  border: 1px dashed var(--orange); border-radius: var(--radius); padding: 24px 28px; background: #fff8ef;
}
.solo strong { color: var(--navy); font-size: 18px; display: block; }
.solo p { color: var(--muted); font-size: 15px; max-width: 70ch; }

.diff { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cost-viz { margin-top: 40px; display: grid; gap: 16px; max-width: 460px; }
.cost-row { display: grid; grid-template-columns: 120px 1fr 92px; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--ice); white-space: nowrap; }
.cost-row .bar { height: 30px; border-radius: 8px; background: var(--grad); transform-origin: left; }
.cost-row:nth-child(1) .bar { width: 33.3%; }
.cost-row:nth-child(2) .bar { width: 66.6%; }
.cost-row:nth-child(3) .bar { width: 100%; }
.cost-row .val { color: var(--amber); font-weight: 700; }
.cost-cap { font-size: 13px; color: #9fb1c6; margin-top: 4px; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 24px; }
.pillar .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--navy-deep); margin-bottom: 18px; }
.pillar .ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 18px; margin-bottom: 8px; }
.pillar p { font-size: 15px; color: var(--ice); }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: var(--white); transition: border-color .2s, transform .2s, box-shadow .2s; }
.aud:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow); }
.aud .ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--navy-deep); margin-bottom: 22px; }
.aud .ico svg { width: 26px; height: 26px; }
.aud h3 { margin-bottom: 10px; }
.aud p { font-size: 15px; color: var(--muted); }
.aud ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; }
.aud li { font-size: 14px; font-weight: 600; color: var(--navy); display: flex; gap: 10px; align-items: baseline; }
.aud li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-1px); }

.cta h2 { font-size: clamp(34px, 5vw, 56px); max-width: 16ch; }
.cta .row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; align-items: center; }

/* pilares de serviço, sobrepostos ao fim da faixa azul */
.svc-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: calc(-1 * clamp(40px, 6vw, 64px)); position: relative; z-index: 3;
}
.svc {
  display: flex; gap: 18px; align-items: flex-start; background: var(--white); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .25s, box-shadow .25s;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -26px rgba(23,45,71,.55); }
.svc .ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--grad); color: var(--navy-deep); }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 19px; margin-bottom: 6px; }
.svc p { font-size: 15px; color: var(--muted); line-height: 1.55; }
@media (max-width: 960px) { .svc-pillars { grid-template-columns: 1fr; } }

/* ---------- acervo ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  margin-top: calc(-1 * clamp(40px, 6vw, 64px)); position: relative; z-index: 3;
}
.search { position: relative; flex: 1 1 320px; }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px 0 50px;
  font: inherit; font-size: 15px; color: var(--text); background: var(--tint); transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--amber); background: var(--white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.chip:hover { border-color: var(--navy-2); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip .c { font-size: 12px; font-weight: 700; background: var(--tint); color: var(--navy); border-radius: 999px; padding: 1px 8px; }
.chip[aria-pressed="true"] .c { background: var(--amber); color: var(--navy-deep); }
.results-info { margin: 32px 0 20px; font-size: 14px; color: var(--muted); }
.grid-acervo { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(23,45,71,.55); border-color: transparent; }
.card .cover { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); position: relative; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.card:hover .cover img { transform: scale(1.04); }
.card .cat {
  position: absolute; left: 14px; top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--navy); color: var(--white); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.card .cat.estudo { background: var(--grad); color: var(--navy-deep); }
.card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.card .tags span { font-size: 12px; font-weight: 600; color: var(--navy); background: var(--tint); border-radius: 6px; padding: 3px 8px; }
.card .go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--orange-d); font-size: 15px; }
.card .go svg { width: 16px; height: 16px; }
.empty { text-align: center; padding: 64px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
mark { background: rgba(255, 168, 0, .35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- explorador de dados ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dash-sec { padding-top: 0; }
/* o painel usa toda a largura da janela, com só uma pequena margem nas laterais */
.dash-wrap { width: 100%; max-width: none; margin: 0; padding: 0 clamp(8px, 1vw, 16px); }
.dash-note { padding: 0 clamp(4px, 1vw, 12px); }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dash-sec select {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--navy); min-height: 44px; width: 100%;
  padding: 0 40px 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background-color: var(--white);
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f3a5a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.dash-sec select:hover { border-color: var(--navy-2); }
.dash-sec select:focus-visible { outline: 3px solid var(--amber); outline-offset: 1px; }
.link-btn { font: inherit; font-size: 14px; font-weight: 700; color: var(--orange-d); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.blk-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.cnt { font-size: 11px; letter-spacing: 0; background: var(--tint); color: var(--muted); border-radius: 999px; padding: 2px 8px; }

/* página do explorador: ao rolar, a página "encaixa" no painel */
html.snap-page { scroll-snap-type: y proximity; }
.snap-page .page-hero { scroll-snap-align: start; }
.snap-page .site-footer { scroll-snap-align: end; }
.hero-go { margin-top: 32px; }
@media (max-width: 900px) { html.snap-page { scroll-snap-type: none; } }
/* moldura do painel: uma "tela" de altura fixa, com rolagens internas */
.bi {
  position: relative; z-index: 3; margin-top: calc(-1 * clamp(40px, 6vw, 64px));
  display: flex; flex-direction: column;
  /* ocupa exatamente a tela abaixo do menu fixo (80px) e "encaixa" ao rolar */
  height: calc(100vh - 80px); height: calc(100dvh - 80px); min-height: 560px;
  scroll-margin-top: 80px; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 30px 70px -40px rgba(23,45,71,.55);
}
.bi-top {
  flex: none; display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end;
  padding: 10px 20px 12px; background: var(--navy); border-radius: 15px 15px 0 0;
}
.bi-top .fld > span { color: #9fb1c6; }
.bi-survey { flex: 1 1 340px; max-width: 520px; }
.bi-top select { border-color: transparent; min-height: 42px; }
.dash-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 14px; color: var(--ice); padding-bottom: 10px; }
.dash-meta b { color: var(--white); }
.dash-meta .link-arrow { font-size: 14px; color: var(--amber); }
.bi-top .tabs { margin-left: auto; background: rgba(255,255,255,.08); }
.bi-top .tab { color: var(--ice); }
.bi-top .tab.on { background: var(--grad); color: var(--navy-deep); }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--tint); }
.tab { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy);
  border: 0; background: none; border-radius: 999px; padding: 8px 18px; cursor: pointer; min-height: 40px; }
.tab svg { width: 18px; height: 18px; }
.tab.on { background: var(--navy); color: var(--white); }

.dash-status { padding: 28px 22px; display: flex; gap: 12px; align-items: center; color: var(--muted); font-weight: 600; }
.dash-status[hidden] { display: none; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--orange); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#painel.loading .bi-body { display: none; }

/* três colunas: campos | tela | filtros */
.bi-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; }
.bi-side, .bi-filters { min-height: 0; overflow: auto; background: #fafbfd; padding: 14px 12px 20px; }
.bi-side { border-right: 1px solid var(--line); border-radius: 0 0 0 15px; }
.bi-filters { border-left: 1px solid var(--line); border-radius: 0 0 15px 0; }
.pane-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy); padding: 2px 6px 12px; }
.pane-h svg { width: 16px; height: 16px; }

/* perguntas em grupos expansíveis */
.dash-qsel { display: none; }
.q-group { border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.q-group + .q-group { margin-top: 10px; }
.q-group-h { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 11px 34px 11px 12px; position: relative;
  font-size: 14px; font-weight: 800; color: var(--navy); border-radius: 10px; }
.q-group[open] > .q-group-h { color: var(--orange-d); }
.q-group-h::-webkit-details-marker { display: none; }
.q-group-h:hover { background: var(--tint); }
.q-group-h::after { content: ""; position: absolute; right: 14px; top: 17px; width: 7px; height: 7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s; }
.q-group[open] > .q-group-h::after { transform: rotate(-135deg); top: 20px; }
.q-count { font-size: 11px; letter-spacing: 0; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 1px 7px; }
.q-cur { flex-basis: 100%; font-size: 12px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--navy); }
.q-items { padding: 0 6px 8px; display: grid; gap: 1px; }
.q-item {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text);
  background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: background .15s, color .15s;
}
.q-item:hover { background: var(--tint); color: var(--navy); }
.q-item.on { background: var(--navy); color: var(--white); }

/* filtros (segmentações) no painel da direita */
.dash-base { font-size: 13px; color: var(--muted); padding: 0 6px 12px; }
.dash-base b { color: var(--navy); }
.f-list { display: grid; gap: 10px; }
.slicer { position: relative; border: 1.5px solid var(--line); border-radius: 10px; background: var(--white); }
.slicer.set { border-color: var(--navy-2); }
.slicer summary { list-style: none; cursor: pointer; display: grid; padding: 8px 64px 8px 12px; position: relative; border-radius: 9px; }
.slicer summary:hover { background: var(--tint); }
.slicer summary::-webkit-details-marker { display: none; }
.slicer summary::after { content: ""; position: absolute; right: 44px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .15s; }
.slicer details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.sl-k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sl-v { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slicer:not(.set) .sl-v { color: var(--muted); font-weight: 600; }
.sl-x { position: absolute; top: 9px; right: 8px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 0;
  background: none; color: var(--muted); cursor: pointer; }
.sl-x svg { width: 14px; height: 14px; }
.sl-x:hover { background: var(--tint); color: var(--navy); }
.sl-pop { border-top: 1px solid var(--line); padding: 6px; }
.sl-pop-h { padding: 2px 6px 4px; text-align: right; }
.sl-pop-h .link-btn { font-size: 13px; }
.sl-list { max-height: 260px; overflow: auto; display: grid; gap: 1px; }
.sl-opt { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--text); line-height: 1.3; }
.sl-opt:hover { background: var(--tint); }
.sl-opt input { width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.f-add { display: block; }
.f-add select { border-style: dashed; color: var(--orange-d); }
.flash { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--orange-d); padding: 0 6px; }

/* tela central */
.bi-canvas { min-width: 0; min-height: 0; background: var(--tint); padding: 12px; overflow: auto; overscroll-behavior: contain;
  scroll-snap-type: y proximity; scroll-padding: 12px; container-type: size; }
.view-res { min-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.view-res[hidden], .view-map[hidden] { display: none; }

/* cartões */
.q-card { background: var(--white); border-radius: 12px; padding: 14px 20px 12px; box-shadow: 0 2px 10px -6px rgba(23,45,71,.3); min-width: 0; }
/* a pergunta principal ocupa pelo menos metade da área central, com as barras crescendo para preencher */
#pMain { flex: none; display: flex; flex-direction: column; min-height: 46vh; min-height: calc(50cqh - 6px); scroll-snap-align: start; }
.q-head { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; }
.q-grp { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-d); }
.q-head .q-grp { flex-basis: 100%; }
.q-head h2 { font-size: clamp(20px, 1.8vw, 26px); max-width: none; }
.q-full { flex: 1 1 340px; color: var(--navy); font-size: 14.5px; line-height: 1.35; }
.q-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.q-meta b { color: var(--navy); }
.empty-s { color: var(--muted); font-size: 15px; padding: 12px 0; }

/* barras do resultado principal (padrão visual das pesquisas Daimon, em versão compacta) */
.vbars { flex: 1; position: relative; padding-bottom: 20px; display: grid; gap: 4px; margin-top: 12px;
  grid-auto-rows: minmax(26px, 1fr); align-content: stretch; }
.vb-grid { position: absolute; top: 0; bottom: 0; right: 0; left: calc(26% + 12px); pointer-events: none; }
.vb-grid span { position: absolute; top: 0; bottom: 18px; border-left: 1px dotted #c9d4e0; }
.vb-grid em { position: absolute; bottom: -18px; left: 0; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); white-space: nowrap; }
.vb { position: relative; z-index: 1; display: grid; grid-template-columns: 26% 1fr; gap: 12px; align-items: center; }
.vb-l { font-size: 13.5px; color: var(--navy); line-height: 1.25; text-align: right; }
.vb-t { position: relative; height: clamp(22px, 64%, 46px); }
.vb-f { position: absolute; left: 0; top: 0; bottom: 0; min-width: 3px; background: var(--amber); transition: background .15s; }
.vb:hover .vb-f { background: var(--orange); }
.vb-v { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: var(--navy-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* escala 1 a 5: gráfico + card com a média geral */
.q-body { flex: 1; display: flex; gap: 18px; align-items: stretch; min-height: 0; }
.q-body .vbars { flex: 1; min-width: 0; }
.kpi { flex: none; width: clamp(150px, 15vw, 200px); align-self: center; margin-top: 12px; display: flex; flex-direction: column; gap: 4px;
  background: var(--navy); color: var(--white); border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 22px -14px rgba(23,45,71,.7); }
.kpi-k { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.kpi-v { font-size: clamp(40px, 4vw, 56px); font-weight: 800; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12.5px; color: rgba(255,255,255,.8); }
.kpi-m { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); margin-top: 8px; overflow: hidden; }
.kpi-m i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--grad); border-radius: 3px; }
.kpi-sc { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.6); }
.kpi-sc em { font-style: normal; }
.kpi-n { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.15); }
@media (max-width: 640px) {
  .q-body { flex-direction: column-reverse; }
  .kpi { width: auto; align-self: stretch; }
}
.xb .xb-g .xb-mean { color: var(--orange-d); font-weight: 800; }
.src-line { margin-top: 6px; font-size: 12px; color: var(--muted); }
.src-line b { color: var(--navy); font-weight: 600; }

/* cruzamentos: um frame dentro da tela, com rolagem própria */
.x-sec { flex: none; display: flex; flex-direction: column; background: rgba(255,255,255,.55);
  border: 1px solid #d5dfea; border-radius: 12px; padding: 10px 10px 0; }
.x-sec-h { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 6px 8px; }
.x-sec-h .link-btn { font-size: 13px; }
.x-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 0 0 10px; }
.x-card { background: var(--white); border-radius: 10px; padding: 10px 16px 10px; box-shadow: 0 2px 10px -6px rgba(23,45,71,.3); min-width: 0; scroll-snap-align: start; }
.x-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.x-head h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-num { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad); color: var(--navy-deep); font-size: 12px; font-weight: 800; flex: none; }
.x-by { font-weight: 500; color: var(--muted); }
.x-btn { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--tint); color: var(--navy); transition: background .15s, color .15s; }
.x-btn svg { width: 15px; height: 15px; }
.x-btn:hover { background: var(--navy); color: var(--white); }
.xt-scroll { overflow-x: auto; }
.xb { border-collapse: collapse; width: 100%; font-size: 13px; }
.xb th, .xb td { padding: 2px 8px; }
.xb .xb-title { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
  padding: 5px 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #f6f8fb; }
.xb .xb-corner { min-width: 140px; border-bottom: 1px solid var(--line); }
.xb .xb-g { text-align: left; font-size: 12px; font-weight: 600; color: var(--navy); vertical-align: bottom; min-width: 118px; line-height: 1.25;
  border-bottom: 1px solid var(--line); border-left: 1px dotted #b9c8da; padding-top: 6px; padding-bottom: 6px; }
.xb .xb-g small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 1px; }
.xb .xb-tot { background: #f6f8fb; }
.xb tbody th { text-align: left; font-weight: 600; color: var(--navy); font-size: 13px; line-height: 1.25; min-width: 140px; max-width: 210px;
  position: sticky; left: 0; background: var(--white); z-index: 1; }
.xb td { border-left: 1px dotted #b9c8da; }
.xb tbody tr:first-child th, .xb tbody tr:first-child td { padding-top: 8px; }
.xb tbody tr:last-child th, .xb tbody tr:last-child td { padding-bottom: 8px; }
.cb { position: relative; height: 20px; }
.cb i { position: absolute; left: 0; top: 0; bottom: 0; min-width: 2px; }
.cb span { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 700; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.xb td:hover .cb i { filter: brightness(.92); }
.xb-small { opacity: .45; }
.xt-star { color: var(--orange-d); }
.x-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.x-add {
  display: grid; grid-template-columns: auto 1fr minmax(180px, 260px); gap: 14px; align-items: center; scroll-snap-align: start;
  border: 2px dashed #c9d4e0; border-radius: 10px; padding: 14px 18px; cursor: pointer; background: var(--white);
  transition: border-color .2s, background .2s;
}
.x-list > .x-add:only-child { padding: 28px 18px; grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: center; }
.x-list > .x-add:only-child select { max-width: 320px; }
.x-add:hover { border-color: var(--orange); background: #fff8ef; }
.x-add-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--navy-deep); font-size: 24px; font-weight: 700; line-height: 1; }
.x-add-t b { display: block; color: var(--navy); font-size: 16px; }
.x-add-t span { font-size: 14px; color: var(--muted); }

/* mapa */
.view-map .q-card { min-height: 100%; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.map-fig svg { width: 100%; height: auto; max-height: calc(100vh - 260px); }
.mp { stroke: var(--white); stroke-width: .8; transition: opacity .15s; }
.mp.ok { cursor: pointer; }
.mp.ok:hover, .mp.ok:focus-visible { stroke: var(--navy-deep); stroke-width: 2; outline: none; }
.mp.on { stroke: var(--navy-deep); stroke-width: 2.6; }
.mp-g:hover .mp.ok:not(:hover) { opacity: .85; }
.ml { font-size: 13px; font-weight: 700; fill: var(--navy-deep); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
  paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; stroke-linejoin: round; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 12px; color: var(--muted); font-weight: 600; }
.lg-i { display: inline-flex; align-items: center; gap: 6px; }
.lg-i i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.lg-none { background: #e9eef4; }
.lg-small { background: repeating-linear-gradient(45deg, #f3f6f9 0 3px, #b9c8da 3px 5px); }
.map-hint { font-size: 13px; color: var(--muted); margin: 12px 0 10px; }
.map-list { list-style: none; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.ml-row { width: 100%; display: grid; grid-template-columns: 1fr 70px 64px; gap: 10px; align-items: center; font: inherit; font-size: 14px;
  background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; text-align: left; color: var(--text); }
.ml-row:hover { background: var(--tint); }
.ml-row.on { background: var(--navy); color: var(--white); }
.ml-row.small { color: var(--muted); }
.ml-n { font-weight: 600; }
.ml-bar { height: 8px; background: var(--tint); border-radius: 4px; overflow: hidden; }
.ml-bar i { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.ml-row.on .ml-bar { background: rgba(255,255,255,.2); }
.ml-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-note { margin-top: 24px; max-width: 100ch; }

.tip {
  position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; max-width: 280px;
  background: var(--navy-deep); color: var(--white); font-size: 13px; line-height: 1.45; padding: 9px 12px; border-radius: 10px;
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.5); opacity: 0; transition: opacity .12s;
}
.tip.show { opacity: 1; }
.tip b { color: var(--amber); }

/* telas menores: o painel deixa de ter altura fixa e as colunas empilham */
@media (max-width: 1440px) {
  .bi-body { grid-template-columns: 220px minmax(0, 1fr) 228px; }
  .q-item { font-size: 13.5px; padding: 7px 9px; }
  .xb .xb-g { min-width: 104px; }
  .xb .xb-corner, .xb tbody th { min-width: 124px; }
}
@media (max-width: 1180px) {
  .bi-body { grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .bi-filters { grid-column: 1 / -1; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .bi-filters .f-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
  .bi-side { border-radius: 0 0 0 15px; }
}
@media (max-width: 900px) {
  .bi { height: auto; min-height: 0; }
  .bi-canvas { container-type: normal; scroll-snap-type: none; overscroll-behavior: auto; }
  #pMain { min-height: 0; }
  .vbars { grid-auto-rows: auto; }
  .vb-t { height: 22px; }
  .bi-body { grid-template-columns: 1fr; }
  .bi-side { border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow: visible; }
  .bi-side .pane-h, .q-list { display: none; }
  .dash-qsel { display: grid; }
  .bi-filters { overflow: visible; }
  .bi-canvas { overflow: visible; border-radius: 0 0 15px 15px; }
  .view-res { height: auto; }
  .q-head { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bi-top { padding: 14px 16px; }
  .bi-top .tabs { margin-left: 0; width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .vb { grid-template-columns: 1fr; gap: 2px; }
  .vb-l { text-align: left; }
  .vb-grid { left: 0; }
  .x-add { grid-template-columns: auto 1fr; }
  .x-add select { grid-column: 1 / -1; }
}

/* ---------- significado ---------- */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.chapter + .chapter { margin-top: clamp(80px, 11vw, 140px); }
.chapter.flip .ch-media { order: 2; }
.ch-media figure { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23,45,71,.6); position: relative; aspect-ratio: 4 / 5; background: var(--navy); }
.ch-media figure img, .ch-media figure svg { width: 100%; height: 100%; object-fit: cover; }
.ch-media figure.duo img { filter: grayscale(.25) contrast(1.05); }
.ch-media figure.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(23,45,71,.55)); pointer-events: none; }
.ch-media figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.ch-media figcaption a { color: var(--muted); }
.ch-num { font-size: clamp(40px, 7vw, 56px); font-weight: 800; line-height: 1; margin-bottom: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch-text h2 { margin-bottom: 22px; }
.ch-text p { font-size: 17px; }
.ch-text p + p { margin-top: 16px; }
.ch-text em { font-style: normal; color: var(--orange-d); font-weight: 600; }
.greek-word { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin: 4px 0 22px; }
.greek-word b { font-size: clamp(34px, 4vw, 48px); font-weight: 400; color: var(--navy); letter-spacing: .02em; }
.greek-word span { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.callout {
  display: flex; gap: 18px; align-items: center; margin-top: 26px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--tint);
}
.callout svg { width: 42px; height: 50px; flex: none; }
.callout p { font-size: 15px !important; margin: 0 !important; }
.quote { margin-top: 24px; padding-left: 20px; border-left: 3px solid var(--amber); font-size: 18px; font-weight: 600; color: var(--navy); line-height: 1.5; }
.quote cite { display: block; margin-top: 8px; font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); }
.closing { text-align: center; }
.closing h2 { margin: 0 auto; max-width: 20ch; font-size: clamp(30px, 4.4vw, 50px); }
.closing .lead { margin: 22px auto 0; }
.closing .row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- rodapé ---------- */
.site-footer { padding: 56px 0; color: #9fb1c6; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.foot-logo { width: 150px; height: auto; }
.foot-info { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.foot-info .tag { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.foot-info a { text-decoration: none; color: var(--ice); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.foot-info a svg { width: 18px; height: 18px; }
.foot-info a:hover { color: var(--amber); }

/* ---------- animações ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .cost-row .bar { transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.js .cost-viz.in .bar { transform: scaleX(1); }
.js .cost-viz.in .cost-row:nth-child(2) .bar { transition-delay: .15s; }
.js .cost-viz.in .cost-row:nth-child(3) .bar { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .cost-row .bar { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1020px) {
  .case, .diff { grid-template-columns: 1fr; }
  .case-img { max-width: 420px; }
  .split, .split.flip { grid-template-columns: 1fr; }
  .split.flip .split-text { order: 0; }
  .process { grid-template-columns: 1fr 1fr; }
  .name-band .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .about, .duo-grid, .audience, .chapter, .stair { grid-template-columns: 1fr; }
  .stair-step:nth-child(n) { min-height: 0; }
  .stair-axis { display: none; }
  .chapter.flip .ch-media { order: 0; }
  .ch-media figure { aspect-ratio: 4 / 3; }
  .hero-deco { right: -22%; height: 70%; opacity: .3; }
  .page-hero .hero-deco { opacity: .25; }
  .why-card { min-height: 300px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .principles, .stats, .pillars, .process { grid-template-columns: 1fr; }
  .stage-rail li:not(.now) .lbl { display: none; }
  .bridge { grid-template-columns: 1fr; padding: 22px; }
  .bridge-go { display: none; }
  .grid-acervo { grid-template-columns: 1fr; }
  .hero-tag { letter-spacing: .18em; font-size: 11px; }
  .hero-cta .btn, .cta .btn { width: 100%; }
  .result { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cost-row { grid-template-columns: 100px 1fr 80px; font-size: 13px; }
  .site-footer .wrap, .foot-info { flex-direction: column; align-items: flex-start; }
  .brand img { width: 130px; }
}
