/* =========================================================================
   Plugin Migrando para BIM — página /plugin/
   Autônoma: não depende de css/style.css. Mesma paleta da marca.
   ========================================================================= */

:root {
  --navy-950: #0a1826;
  --navy-900: #0f2439;
  --navy-800: #16324a;
  --navy-700: #1c3d59;
  --blue: #1481b8;
  --blue-light: #7fb8dc;
  --yellow: #ffd400;
  --yellow-dark: #e0b800;

  --bg: var(--navy-950);
  --surface: #122a40;
  --surface-2: #16324a;
  --border: #24425e;
  --text: #eaf2f8;
  --text-muted: #a9c2d3;
  --text-dim: #7c93a5;
  --green: #79d9a4;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-image:
    none;
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy-950);
  padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- tipografia de seção ---------- */
.eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font: 600 12.5px/1.4 var(--font-body);
  letter-spacing: .01em;
  text-transform: none;
}
.lead { color: var(--text-muted); font-size: 17px; max-width: 68ch; }
.muted { color: var(--text-muted); }

.section { padding: 88px 0; }
.section--alt { background: linear-gradient(180deg, rgba(22, 50, 74, .55), rgba(10, 24, 38, 0)); border-top: 1px solid rgba(36, 66, 94, .6); border-bottom: 1px solid rgba(36, 66, 94, .6); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border-radius: 999px; font-weight: 600; font-family: var(--font-head);
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-sm { padding: .55em 1.3em; font-size: .85rem; }
.btn-lg { padding: .95em 1.9em; font-size: 1rem; }
.btn-block { width: 100%; padding: .85em 1.4em; }
.btn-primary { background: var(--yellow); color: var(--navy-950); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue-light); background: rgba(127, 184, 220, .08); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 24, 38, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-icon { border-radius: 6px; flex: none; }
.logo-text { font-family: var(--font-head); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.logo-text-full { color: var(--text-muted); font-weight: 500; }
.logo-sep { color: var(--border); font-size: 1.2rem; }
.logo-badge {
  font: 600 .7rem var(--font-body); letter-spacing: .01em; text-transform: none;
  color: var(--yellow); border: 1px solid rgba(255, 212, 0, .4);
  background: rgba(255, 212, 0, .08); border-radius: 99px; padding: 3px 9px;
}
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text-muted); font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 4px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; pointer-events: none;
  background: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: start;
}
.hero-media { position: relative; }
.hero-question { margin: 0 0 22px; font-size: clamp(30px, 4.2vw, 52px); font-weight: 600; letter-spacing: -.01em; }
.hero-question-lead { display: block; color: var(--text-muted); font-size: .52em; font-weight: 600; letter-spacing: 0; margin-bottom: .5em; }
.hero-question-pain { color: var(--yellow); }
.hero-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.hero-arrow {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); font-size: 1rem; line-height: 1;
  display: grid; place-items: center; transition: .15s;
}
.hero-arrow:hover { border-color: var(--blue-light); color: var(--text); }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--border); transition: .2s; }
.hero-dot.is-on { background: var(--yellow); width: 22px; border-radius: 99px; }
.hero-sub { font-size: 17.5px; color: var(--text-muted); max-width: 52ch; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 18px; border-top: 1px solid var(--border); padding-top: 22px; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font: 600 21px var(--font-head); color: var(--text); white-space: nowrap; }
.hero-facts span { font-size: 12.5px; line-height: 1.35; color: var(--text-dim); }

/* ---------- imagens ---------- */
.shot {
  margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
}
/* a moldura acompanha a proporção do print da vez (--hero-ar vem do JS):
   o print encosta nas bordas, sem faixa branca sobrando */
.shot--hero {
  position: relative; aspect-ratio: var(--hero-ar, 16 / 10);
  box-shadow: var(--shadow); background: #fff;
  transition: aspect-ratio .4s ease;
}
@media (prefers-reduced-motion: reduce) {
  .shot--hero { transition: none; }
  .shot--hero .hero-shot { transition: none; }
}
.shot-img {
  display: block; width: 100%; height: auto; cursor: zoom-in;
  transition: filter .15s ease;
}
.shot-img:hover, .shot-img:focus-visible { filter: brightness(1.06); }
/* hero: duas camadas sobrepostas, a foto troca junto com a pergunta */
.shot--hero .hero-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  opacity: 0; pointer-events: none; transition: opacity .45s ease;
}
.shot--hero .hero-shot.is-on { opacity: 1; pointer-events: auto; }
.shot-stack { position: relative; }
.shot-caption { margin: 11px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-dim); }

/* ---------- antes/depois ---------- */
.compare {
  --clip: 58%;
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  user-select: none; touch-action: pan-y;
}
.compare-img { display: block; width: 100%; height: auto; }
.compare-img--before { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.compare-clip { clip-path: inset(0 0 0 var(--clip)); }

/* botão "ampliar" — fica acima da barra de arraste */
.zoom-btn {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  width: 34px; height: 34px; padding: 7px; display: grid; place-items: center;
  border: 1px solid rgba(10, 24, 38, .18); border-radius: 10px;
  background: rgba(255, 255, 255, .92); color: var(--navy-950);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25); transition: background .15s, transform .15s;
}
.zoom-btn:hover { background: var(--yellow); }
.zoom-btn svg { width: 100%; height: 100%; }


.compare-tag {
  position: absolute; bottom: 12px; z-index: 3;
  font: 600 10.5px var(--font-body); letter-spacing: .01em; text-transform: none;
  color: var(--navy-950); background: rgba(255, 255, 255, .88);
  border-radius: 99px; padding: 3px 9px; pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.compare-tag--before { left: 12px; }
.compare-tag--after { right: 12px; background: var(--yellow); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; opacity: 0; cursor: ew-resize; z-index: 4;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; cursor: ew-resize; }
.compare-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; cursor: ew-resize; }
.compare::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--clip);
  width: 2px; background: var(--yellow); z-index: 2; pointer-events: none;
}
.compare::before {
  content: ""; position: absolute; top: 50%; left: var(--clip); z-index: 3;
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1826' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6 4 12l5 6'/%3E%3Cpath d='m15 6 5 6-5 6'/%3E%3C/svg%3E") center / 16px no-repeat;
  pointer-events: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

/* ---------- quiz ---------- */
.section--quiz { padding-top: 40px; }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.quiz-list { display: grid; gap: 10px; }
.quiz-item {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s;
}
.quiz-item:hover { border-color: rgba(127, 184, 220, .4); }
.quiz-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.quiz-box {
  width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border);
  background: rgba(10, 24, 38, .6); display: grid; place-items: center; transition: .15s; margin-top: 1px;
}
.quiz-box::after {
  content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--navy-950); border-bottom: 2.5px solid var(--navy-950);
  transform: rotate(-45deg) scale(.4); opacity: 0; transition: .15s; margin-top: -2px;
}
.quiz-item input:checked ~ .quiz-box { background: var(--yellow); border-color: var(--yellow); }
.quiz-item input:checked ~ .quiz-box::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.quiz-item input:focus-visible ~ .quiz-box { outline: 2px solid var(--yellow); outline-offset: 2px; }
.quiz-item input:checked ~ .quiz-text { color: var(--text); }
.quiz-text { font-size: 15px; line-height: 1.5; color: var(--text-muted); }

.quiz-panel {
  position: sticky; top: 100px;
  background: linear-gradient(165deg, var(--surface-2), var(--navy-900));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow);
}
.quiz-count { display: grid; gap: 2px; }
.quiz-count strong { font: 600 56px/1 var(--font-head); color: var(--text-dim); transition: color .2s; }
.quiz-count.is-hot strong { color: var(--yellow); }
.quiz-count span { font-size: 13.5px; color: var(--text-muted); }
.quiz-result { font-size: 14.5px; color: var(--text-muted); max-height: 320px; overflow-y: auto; }
.quiz-result p { margin: 0 0 10px; }
.quiz-result strong { color: var(--text); }
.quiz-fix { display: grid; gap: 7px; }
.quiz-fix li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.quiz-fix a { color: var(--blue-light); border-bottom: 1px solid transparent; }
.quiz-fix a:hover { border-bottom-color: var(--blue-light); }
.quiz-note { margin: 0; font-size: 11.5px; color: var(--text-dim); }

/* ---------- tags ---------- */
.tag {
  display: inline-block; font: 600 10.5px/1.6 var(--font-body); letter-spacing: .01em; text-transform: none;
  padding: 1px 8px; border-radius: 99px; white-space: nowrap; vertical-align: middle;
}
.tag--tools { background: rgba(20, 129, 184, .18); color: var(--blue-light); border: 1px solid rgba(127, 184, 220, .3); }
.tag--free { background: rgba(121, 217, 164, .14); color: var(--green); border: 1px solid rgba(121, 217, 164, .32); }

/* ---------- as 8 dores ---------- */
.pains { display: grid; gap: 64px; }
.pain-block {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px; align-items: center;
}
.pain-block:nth-child(even) .pain-copy { order: 2; }
.pain-index {
  display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px;
  font: 600 12px var(--font-body); letter-spacing: .01em; text-transform: none; color: var(--text-dim);
}
.pain-index span { font: 600 26px/1 var(--font-head); color: var(--yellow); letter-spacing: 0; }
.pain-q { font-size: clamp(22px, 2.5vw, 31px); font-weight: 600; margin-bottom: 14px; }
.pain-why { color: var(--text-muted); font-size: 15.5px; margin-bottom: 18px; }
.pain-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pain-cmd { font: 600 14px var(--font-head); color: var(--text); }
.pain-media { min-width: 0; }
/* dores sem print: o texto ocupa a linha inteira */
.pain-block--text { grid-template-columns: minmax(0, 1fr); }
.pain-block--text .pain-copy { max-width: 78ch; }

/* ---------- nível 2 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  border-radius: 99px; padding: 7px 16px; font-size: 13.5px; font-weight: 600; transition: .15s;
}
.tab:hover { border-color: var(--blue-light); color: var(--text); }
.tab.is-on { background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .18s, transform .18s;
}
.tool-card:hover { border-color: rgba(127, 184, 220, .45); transform: translateY(-2px); }
.tool-media { background: #fff; border-bottom: 1px solid var(--border); }
.tool-media .shot { border: 0; border-radius: 0; }
.tool-media .shot-img { height: 210px; object-fit: contain; background: #fff; }
.tool-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-kicker { margin: 0; font: 600 10.5px var(--font-body); letter-spacing: .01em; text-transform: none; color: var(--blue-light); }
.tool-q { font-size: 17.5px; font-weight: 600; margin: 0; line-height: 1.3; }
.tool-why { margin: 0; font-size: 14px; color: var(--text-muted); flex: 1; }
.tool-cmd { margin: 6px 0 0; font: 600 12.5px var(--font-body); color: var(--text-dim); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- nível 3 ---------- */
.utils-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.util-card {
  position: relative; background: rgba(18, 42, 64, .55); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, background .15s;
}
.util-card:hover { border-color: rgba(127, 184, 220, .38); background: var(--surface); }
.util-media { background: #fff; border-bottom: 1px solid var(--border); }
.util-media .shot { border: 0; border-radius: 0; }
.util-media .shot-img { height: 118px; object-fit: contain; background: #fff; }
.util-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.util-n { margin: 0; font: 600 11px var(--font-body); letter-spacing: .12em; color: var(--text-dim); }
.util-q { font-size: 15px; font-weight: 600; margin: 0; line-height: 1.35; }
.util-cmd { margin: 0; font-size: 13px; color: var(--blue-light); }
.util-tag { margin: 4px 0 0; }

/* ---------- grátis ---------- */
.section--free {  border-top: 1px solid rgba(121, 217, 164, .18); }
.free-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.free-copy h2 { font-size: clamp(28px, 3.6vw, 40px); }
.free-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 16px; }
.free-note { font-size: 13px; color: var(--text-dim); margin: 0; }
.free-list { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.free-item + .free-item { border-top: 1px solid var(--border); }
.free-item a { display: grid; gap: 3px; padding: 15px 20px; background: rgba(18, 42, 64, .5); transition: background .15s; }
.free-item a:hover { background: var(--surface-2); }
.free-cmd { font: 600 14.5px var(--font-head); color: var(--text); }
.free-why { font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* ---------- MCP ---------- */
.section--mcp { border-top: 1px solid var(--border); }
.mcp-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.mcp-copy h2 { font-size: clamp(26px, 3.4vw, 38px); }
.mcp-list { display: grid; gap: 10px; margin: 24px 0 26px; }
.mcp-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-muted); }
.mcp-list li strong { color: var(--text); }
.mcp-list li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 212, 0, .12);
}
.mcp-example {
  border-left: 2px solid var(--yellow); background: rgba(255, 212, 0, .05);
  padding: 14px 18px; border-radius: 0 8px 8px 0;
}
.mcp-example-label { margin: 0 0 6px; font: 600 10.5px var(--font-body); letter-spacing: .01em; text-transform: none; color: var(--yellow); }
.mcp-example-text { margin: 0; font-size: 14.5px; color: var(--text); font-style: italic; }
.mcp-media { min-width: 0; }

/* ---------- módulos ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.module {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.module--tools { border-color: rgba(255, 212, 0, .38); background: var(--surface); }
.module-kicker { margin: 0; font: 600 10.5px var(--font-body); letter-spacing: .01em; text-transform: none; color: var(--text-dim); }
.module h3 { margin: 0; font-size: 26px; font-weight: 600; }
.module-price { margin: 0 0 6px; font: 600 18px var(--font-head); color: var(--yellow); }
.module-list { display: grid; gap: 8px; margin: 0 0 10px; }
.module-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--text-muted); }
.module-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 6px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.module > .btn { margin-top: auto; }
.module-actions { margin-top: auto; display: grid; gap: 10px; }
.modules-note {
  margin: 28px 0 0; padding: 16px 20px; font-size: 13.5px; color: var(--text-muted);
  border: 1px dashed var(--border); border-radius: 12px; max-width: 860px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 0 18px; transition: border-color .15s;
}
.faq details[open] { border-color: rgba(127, 184, 220, .4); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 30px 17px 0; position: relative;
  font: 600 15.5px var(--font-head); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--yellow); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; font-size: 14.5px; color: var(--text-muted); max-width: 72ch; }

/* ---------- CTA final ---------- */
.section--cta { padding-top: 40px; }
.cta-box {
  text-align: center; display: flex; flex-direction: column; align-items: center;
  background: var(--surface-2);
  border: 1px solid rgba(127, 184, 220, .28); border-radius: 24px;
  padding: 56px 24px; max-width: 980px;
}
.cta-box h2 { font-size: clamp(24px, 3.4vw, 36px); max-width: 20ch; }
.cta-box .lead { max-width: 58ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- print ampliado (pop-up) ---------- */
.lightbox {
  border: 0; padding: 0; margin: auto; overflow: auto;
  max-width: min(1500px, 96vw); max-height: 94vh;
  background: transparent; color: var(--text);
}
.lightbox::backdrop { background: rgba(4, 10, 18, .92); backdrop-filter: blur(3px); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox-img {
  display: block; max-width: 100%; max-height: 84vh; width: auto; height: auto;
  border-radius: 10px; background: #fff;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, .9);
}
.lightbox-caption {
  max-width: 90ch; font-size: 13px; line-height: 1.45; color: var(--text-muted);
  text-align: center;
}
.lightbox-close {
  position: fixed; top: 16px; right: 18px; z-index: 2;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(234, 242, 248, .28);
  background: rgba(10, 24, 38, .82); color: var(--text);
  font-size: 1.5rem; line-height: 1;
}
.lightbox-close:hover { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: pop .18s ease both; }
  @keyframes pop { from { opacity: 0; transform: scale(.985); } }
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-brand p { margin: 14px 0 0; font-size: 13.5px; color: var(--text-dim); max-width: 30ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-nav a, .footer-contact a { color: var(--text-muted); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid rgba(36, 66, 94, .6); margin-top: 36px; padding-top: 20px;
}
.footer-bottom p { margin: 0; font-size: 12px; color: var(--text-dim); }

/* ---------- animação de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .pain-block, .tool-card, .util-card { animation: rise .5s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}

/* ---------- responsivo ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .pain-block { gap: 32px; }
  .quiz-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .free-layout, .mcp-layout { gap: 36px; }
}

/* menu recolhido antes que o nome do site encoste nos links */
@media (max-width: 1180px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
  }
  .nav.is-open a { padding: 10px 0; border-bottom: 1px solid rgba(36, 66, 94, .5); font-size: 1rem; }
  .nav-toggle { display: block; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 80px; }
  .section { padding: 64px 0; }
  .header-actions .btn { display: none; }

  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-question { font-size: clamp(28px, 7.6vw, 40px); }
  .hero-actions .btn { flex: 1 1 auto; }

  .quiz-layout { grid-template-columns: 1fr; }
  .quiz-panel { position: static; }
  .quiz-count strong { font-size: 44px; }

  .pains { gap: 48px; }
  .pain-block { grid-template-columns: 1fr; gap: 20px; }
  .pain-block:nth-child(even) .pain-copy { order: 0; }
  .tools-grid { grid-template-columns: 1fr; }
  .free-layout, .mcp-layout { grid-template-columns: 1fr; }
  .mcp-media { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .cta-box { padding: 40px 20px; border-radius: 18px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .logo-text-full { display: none; }
  .logo-sep { display: none; }
  .section { padding: 52px 0; }
  .lead { font-size: 15.5px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-facts strong { font-size: 19px; }
  .hero-facts span { font-size: 11.5px; }
  .pain-q { font-size: 21px; }
  .utils-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .quiz-item { padding: 12px 14px; }
  .quiz-text { font-size: 14px; }
}

/* Dois caminhos: quem já usa o Revit vai ao plugin; quem ainda não usa, ao curso */
.section--paths { padding: 32px 0 8px; }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.path-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  color: var(--text); transition: border-color .15s, background-color .15s;
}
.path-card:hover { border-color: var(--blue-light); background: var(--surface-2); }
.path-card .eyebrow { margin: 0; }
.path-card h2 { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; }
.path-card p { margin: 0; color: var(--text-muted); }
.path-card--course { border-color: rgba(255, 212, 0, .35); }
.path-card--course:hover { border-color: var(--yellow); }
.path-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--yellow); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } }

.module-period { font-size: .5em; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.module-note { margin: -4px 0 8px; color: var(--text-muted); font-size: .92rem; }
.module-alt { margin: 0 0 12px; color: var(--text-muted); font-size: .92rem; }
.module-alt strong { color: var(--text); }

/* ---------- Demonstração (vídeo do YouTube) ---------- */
.section--demo { border-top: 1px solid var(--border); }
.demo-video { position: relative; aspect-ratio: 16 / 9; max-width: 960px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.demo-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.demo-note { margin: 0; font-size: 14px; color: var(--text-muted); }
