/* Compradores de fazenda (#/compradores) — ciclo 3 (spec-v3 §8): hero + 5 capítulos fixados com demonstração.
   Markup = estado final legível (movimento reduzido / mobile); a animação só parte de estados "from". */

/* ── Hero ─────────────────────────────────────────────── */
.cp-hero { padding-block: 88px 72px; border-bottom: 1px solid var(--fz-line); }
.cp-hero-in { display: grid; gap: 20px; justify-items: start; }
.cp-hero h1 { max-width: 15ch; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.02em; }
.cp-hero .lead { max-width: 52ch; }
.cp-hero .btn-row { margin-top: 4px; }
.cp-index { list-style: none; margin: 32px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--fz-line); }
.cp-index li { min-width: 0; }
.cp-index li + li { border-left: 1px solid var(--fz-line); }
.cp-index button {
  display: grid; gap: 10px; align-content: start; width: 100%; min-height: 44px; height: 100%; padding: 18px 18px 6px;
  border: 0; background: none; font: inherit; font-size: var(--fz-text-body-sm); line-height: 1.35; font-weight: 600;
  text-align: left; color: var(--fz-ink); cursor: pointer; border-radius: var(--fz-r-xs);
}
.cp-index button span { font-size: var(--fz-text-label); letter-spacing: .08em; color: var(--fz-accent-deep); }
.cp-index button:hover { background: var(--fz-surface); }
.cp-index button:focus-visible { outline: 2px solid var(--fz-ring); outline-offset: -2px; }

/* ── Capítulo ─────────────────────────────────────────── */
.cp-ch { background: var(--fz-paper); border-top: 1px solid var(--fz-line); overflow-x: clip; }
.cp-scene-in { overflow-x: clip; } /* demo "from" offsets (cards dealt from the side) never widen the page */
.cp-ch.alt { background: var(--fz-paper-2); }
.cp-ch:first-of-type { border-top: 0; }
.cp-scene { padding-block: 72px; background: inherit; }
.cp-scene-in { display: grid; gap: 32px; }
.cp-ch-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 56px; row-gap: 16px; align-items: end; }
.cp-ch-title, .cp-ch-aside { display: grid; gap: 12px; min-width: 0; }
.cp-ch-n { margin: 0; font-size: var(--fz-text-label); font-weight: 600; letter-spacing: .08em; color: var(--fz-ink-soft); }
.cp-ch-n span { color: var(--fz-accent-deep); margin-right: 4px; }
.cp-ch-head h2 { margin: 0; font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 26ch; text-wrap: balance; }
.cp-ch-lead { margin: 0; color: var(--fz-ink-soft); font-size: var(--fz-text-body); line-height: 1.5; max-width: 54ch; }
.cp-ch-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cp-demo { min-width: 0; }
.cp-note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: var(--fz-text-caption); line-height: 1.45; color: var(--fz-ink-soft); }
.cp-note .icon { flex: none; margin-top: 1px; color: var(--fz-accent-deep); }

/* Desktop com movimento: cada cena ocupa a tela abaixo do header fixo e é centralizada enquanto está fixada. */
@media (min-width: 761px) and (min-height: 500px) {
  /* fixada em 'top top': o topo (88px) fica sob o header flutuante, então o conteúdo começa abaixo dele */
  /* set by the page only on scenes that fit one screen under the header (padding = PIN_PAD in compradores.js) */
  .cp-scene.is-pin { min-height: 100vh; display: grid; align-content: safe center; padding-block: 92px 12px; }
}
/* Short desktop screens (laptops 720–820px tall): tighter scenes so more of them fit and pin. */
@media (min-width: 761px) and (max-height: 820px) {
  .cp-scene { padding-block: 48px; }
  .cp-scene-in { gap: 18px; }
  .cp-ch-head { row-gap: 10px; }
  .cp-ch-title, .cp-ch-aside { gap: 8px; }
  .cp-ch-head h2 { font-size: clamp(1.5rem, 2.2vw, 1.95rem); }
  .cp-ch-lead { font-size: 1rem; line-height: 1.45; }
  .cp-ch .tc--panel.is-compact .tc-content { padding: 16px 22px; gap: 10px; }
  .cp-ch .tc--panel.is-compact .tc-col { gap: 10px; }
  .cp-ch .tc-check li:nth-child(n+3) { display: none; } /* diligence collapsed to its first two points */
  .cp-ch .tour .tour-media { aspect-ratio: 12 / 5; }
  .cp-ch .tc-num:nth-child(-n+2) { display: none; } /* R$/ha and its median are already in the price bars below */
  .cp-ch .tour-thumbs { display: none; }
  .cp-ch .tour-stops { grid-template-columns: 1fr 1fr; gap: 4px; }
  .cp-ch .tour-stop { min-height: 44px; padding: 4px 8px; grid-template-columns: 22px minmax(0, 1fr); font-size: var(--fz-text-ui); line-height: 1.2; }
  .cp-ch .tour-stop-d { display: none; }
  .cp-ch .tour-main { gap: 12px; }
  .cp-chart { padding: 18px 22px; }
  .cp-chart figcaption { margin-bottom: 12px; }
  .cp-bars { gap: 8px; }
  .cp-off-card { min-height: 0; }
}

/* ── 1 · Tese + simulador ─────────────────────────────── */
.cp-sim { display: grid; gap: 16px; padding-bottom: 80px; }
.cp-sim-k { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fz-text-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fz-ink-soft); }
.cp-sim-k .icon { color: var(--fz-accent-deep); }

/* ── 2 · Preços por cultura e por região ──────────────── */
.cp-charts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: start; }
.cp-chart { margin: 0; padding: 24px 28px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.cp-chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.cp-chart-k { font-size: var(--fz-text-title); font-weight: 600; }
.cp-chart-n { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.cp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cp-bar { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr) 6.5rem; align-items: center; gap: 14px; }
.cp-bar-l { display: grid; font-size: var(--fz-text-body-sm); font-weight: 600; line-height: 1.2; }
.cp-bar-l small { font-weight: 400; font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.cp-bar-t { position: relative; height: 14px; border-radius: var(--fz-r-full); background: var(--fz-surface); overflow: hidden; }
.cp-bar-t i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--fz-accent); transform-origin: left center; }
[data-chart="regiao"] .cp-bar-t i { background: var(--fz-primary); }
.cp-bar-v { font-size: var(--fz-text-body-sm); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── 3 · Tour (cabe numa tela: palco 16:9) ────────────── */
.cp-ch .tour-media { aspect-ratio: 1.9; }
@media (min-width: 1101px) { .cp-ch .tour { grid-template-columns: minmax(0, 1fr) 400px; } }

/* ── 4 · Mapa (prévia sem tiles) ──────────────────────── */
.cp-map {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden;
  border-radius: var(--fz-r-md); color: var(--fz-on-dark);
  background: radial-gradient(90% 80% at 30% 70%, #12321d 0%, var(--fz-bg-deep) 72%);
}
.cp-map-frame { display: grid; place-items: center; padding: 24px; min-width: 0; }
.cp-map-svg { display: block; width: auto; height: min(560px, calc(100vh - 300px)); min-height: 320px; max-width: 100%; }
.cp-edge { fill: none; stroke: rgba(249, 253, 250, .32); stroke-width: 1.4; stroke-linejoin: round; }
.cp-edge.is-border { stroke-dasharray: 2 5; stroke-linecap: round; }
.cp-state { fill: rgba(165, 227, 180, .05); stroke: var(--fz-hair-strong); stroke-width: 1; stroke-dasharray: 4 4; stroke-linejoin: round; }
.cp-uf { fill: var(--fz-on-dark-soft); font-size: 15px; font-weight: 600; letter-spacing: .12em; }
.cp-dot { fill: var(--fz-accent-soft); fill-opacity: .85; stroke: var(--fz-bg-deep); stroke-width: 1.2; }
.cp-dot.is-open { fill: var(--fz-accent); fill-opacity: 1; stroke: var(--fz-on-dark); stroke-width: 2; }
.cp-map-side { display: grid; align-content: center; gap: 20px; padding: 32px 40px 32px 16px; }
.cp-big { display: grid; gap: 4px; margin: 0; }
.cp-big strong { font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--fz-on-dark); }
.cp-big span { font-size: var(--fz-text-body); color: var(--fz-on-dark-soft); }
.cp-map-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fz-text-body-sm); }
.cp-map-legend li { display: flex; align-items: center; gap: 10px; }
.cp-lg { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--fz-accent-soft); opacity: .85; }
.cp-lg.is-open { background: var(--fz-accent); opacity: 1; box-shadow: 0 0 0 2px var(--fz-on-dark); }
.cp-ufs { list-style: none; margin: 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--fz-hair); }
.cp-ufs li { display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: var(--fz-r-full); background: var(--fz-hair); font-size: var(--fz-text-caption); font-weight: 600; letter-spacing: .06em; color: var(--fz-on-dark-soft); }
.cp-ufs strong { font-size: var(--fz-text-body-sm); color: var(--fz-on-dark); }
.cp-map-note { margin: 0; font-size: var(--fz-text-caption); color: var(--fz-on-dark-soft); }
.cp-map .btn { justify-self: start; }

/* ── 5 · Off-market ───────────────────────────────────── */
.cp-off { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cp-off-card {
  position: relative; display: grid; gap: 14px; align-content: start; padding: 24px; min-height: 260px;
  border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white);
  box-shadow: 0 18px 40px -28px rgba(5, 16, 9, .45);
}
.cp-off-card.is-offer { background: var(--fz-bg-deep); color: var(--fz-on-dark); border-color: var(--fz-bg-deep); }
.cp-off-card > * { margin: 0; }
.cp-off-tipo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border-radius: var(--fz-r-full); background: var(--fz-surface); font-size: var(--fz-text-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.is-offer .cp-off-tipo { background: var(--fz-card-dark); color: var(--fz-accent-soft); }
.cp-off-card h3 { font-size: var(--fz-text-title); line-height: 1.15; }
.cp-off-card dl { display: grid; gap: 8px; }
.cp-off-card dl div { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px; font-size: var(--fz-text-body-sm); }
.cp-off-card dt { color: var(--fz-ink-soft); }
.is-offer dt, .is-offer .cp-off-crit, .is-offer .cp-off-foot { color: var(--fz-on-dark-soft); }
.cp-off-card dd { margin: 0; font-weight: 600; }
.cp-off-crit { font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); line-height: 1.45; }
.cp-off-foot { align-self: end; padding-top: 12px; border-top: 1px solid var(--fz-line); font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.is-offer .cp-off-foot { border-color: var(--fz-hair); }

/* ── FAQ ──────────────────────────────────────────────── */
.cp-faq-s { border-top: 1px solid var(--fz-line); }
.cp-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.cp-faq > div:first-child { display: grid; gap: 16px; }

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 1080px) {
  .cp-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cp-index li:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  .cp-charts, .cp-map { grid-template-columns: minmax(0, 1fr); }
  .cp-map-svg { height: auto; width: 100%; max-width: 480px; min-height: 0; }
  .cp-map-side { padding: 8px 32px 32px; }
  .cp-ch-head { grid-template-columns: minmax(0, 1fr); }
  .cp-off { grid-template-columns: minmax(0, 1fr); }
  .cp-off-card { min-height: 0; }
  .cp-faq { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .cp-hero { padding-block: 56px 40px; }
  .cp-index { grid-template-columns: minmax(0, 1fr); }
  .cp-index li + li { border-left: 0; border-top: 1px solid var(--fz-line); }
  .cp-index button { grid-template-columns: 2rem minmax(0, 1fr); padding: 14px 4px; }
  .cp-scene { padding-block: 56px; }
  .cp-scene-in { gap: 24px; }
  .cp-sim { padding-bottom: 56px; }
  .cp-chart { padding: 20px 16px; }
  .cp-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .cp-bar-l { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: start; gap: 8px; align-items: baseline; }
  .cp-map-frame { padding: 16px 12px 0; }
  .cp-map-side { padding: 24px 20px; }
}

/* ── Seção principal: assistente de compra ── */
.cp-hero { padding-block: 48px 72px; }
.cp-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.cp-hero-copy { display: grid; gap: 20px; }
.cp-hero-copy h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.cp-hero-copy .lead { margin: 0; max-width: 46ch; }
.cp-hero-points { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-hero-points li { display: flex; gap: 10px; align-items: center; font-size: var(--fz-text-body-sm); color: var(--fz-ink); }
.cp-hero-points svg { color: var(--fz-accent-deep); flex: none; }
.cp-hero-copy .hm-intro-ctas { max-width: 400px; margin-top: 4px; }
.as { margin: 0; overflow: hidden; border: 1px solid rgba(249, 253, 250, .12); border-radius: var(--fz-r-md); background: var(--fz-bg-deep); color: var(--fz-on-dark);
  box-shadow: 0 40px 80px -40px rgba(5, 16, 9, .6); transition: opacity .6s var(--fz-ease); }
.as.is-out { opacity: .35; }
.as-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(249, 253, 250, .1); }
.as-head strong { display: block; font-size: 15px; }
.as-head small { display: block; font-size: 12px; color: var(--fz-on-dark-soft); }
.as-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--fz-accent); color: #fff; }
.as-body { display: grid; gap: 12px; min-height: 560px; align-content: start; padding: 20px; }
[data-as] { opacity: 0; transform: translateY(10px); transition: opacity .45s var(--fz-ease), transform .45s var(--fz-ease); }
[data-as].is-in { opacity: 1; transform: none; }
.as-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.as-msg.is-user { justify-self: end; border-bottom-right-radius: 4px; background: var(--fz-accent); color: #fff; }
.as-msg.is-bot { justify-self: start; border-bottom-left-radius: 4px; background: rgba(249, 253, 250, .08); }
.as-think { display: grid; gap: 4px; padding: 2px 4px; }
.as-think p { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fz-on-dark-soft); }
.as-think svg { color: var(--fz-accent); }
.as-picks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.as-pick { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border: 1px solid rgba(249, 253, 250, .12); border-radius: var(--fz-r-sm); background: rgba(249, 253, 250, .04); }
.as-pick.is-top { border-color: var(--fz-accent); background: rgba(0, 161, 81, .14); box-shadow: 0 0 30px -10px rgba(0, 161, 81, .6); }
.as-pick img { width: 76px; height: 64px; object-fit: cover; border-radius: 8px; }
.as-pick-v { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fz-accent-soft); }
.as-pick-t { display: block; font-family: var(--fz-display), sans-serif; font-size: 15px; font-weight: 600; color: var(--fz-on-dark); text-decoration: none; }
.as-pick-t:hover { text-decoration: underline; }
.as-pick-m { font-size: 12px; color: var(--fz-on-dark-soft); }
.as-pick-w { margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--fz-on-dark); }
.as-score { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; text-align: center;
  background: conic-gradient(var(--fz-accent) calc(var(--s) * 1%), rgba(249, 253, 250, .12) 0); position: relative; }
.as-score::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--fz-bg-deep); }
.as-score b, .as-score small { position: relative; line-height: 1; }
.as-score b { font-size: 15px; align-self: end; }
.as-score small { font-size: 8.5px; color: var(--fz-on-dark-soft); align-self: start; margin-top: 2px; }
.as-next { display: flex; gap: 10px; align-items: flex-start; }
.as-next svg { flex: none; margin-top: 2px; color: var(--fz-accent); }
@media (max-width: 1080px) { .cp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 560px) {
  .as-body { min-height: 640px; padding: 14px; }
  .as-pick { grid-template-columns: 56px minmax(0, 1fr); }
  .as-pick img { width: 56px; height: 52px; }
  .as-score { display: none; }
}
@media (prefers-reduced-motion: reduce) { [data-as] { transition: none; } }

/* ch.1 · compact tese + diligence */
.cp-dd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.cp-dd-tese .tc--deck { max-width: 460px; box-shadow: 0 30px 60px -40px rgba(5, 16, 9, .45); }
.cp-dd-side { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.cp-dd-k { display: flex; align-items: center; gap: 8px; font-family: var(--fz-display), sans-serif; font-size: 1.1rem; font-weight: 600; }
.cp-dd-k svg { color: var(--fz-accent-deep); }
.cp-dd-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--fz-line); }
.cp-dd-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--fz-line); }
.cp-dd-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fz-surface); color: var(--fz-primary); }
.cp-dd-ic.is-ok { background: var(--fz-accent); color: #fff; }
.cp-dd-list strong { display: block; font-size: 15px; }
.cp-dd-list small { display: block; font-size: 12.5px; color: var(--fz-ink-soft); }
.cp-dd-ok { padding: 3px 10px; border-radius: var(--fz-r-full); background: var(--fz-accent-dim); color: var(--fz-accent-deep); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.cp-dd-pres { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--fz-r-sm); background: var(--fz-bg-deep); color: var(--fz-on-dark); }
.cp-dd-pres strong { display: block; font-size: 15px; }
.cp-dd-pres small { display: block; font-size: 12.5px; color: var(--fz-on-dark-soft); }
.cp-dd-pdf { display: grid; place-items: center; flex: none; width: 44px; height: 52px; border-radius: 6px; background: #e53935; color: #fff; font-size: 11px; font-weight: 800; }
/* locked / soon blocks: blurred content with a card on top */
.cp-lock { position: relative; display: grid; }
.cp-lock > * { grid-area: 1 / 1; }
.cp-lock-blur { filter: blur(7px) saturate(.85); opacity: .7; pointer-events: none; user-select: none; }
.cp-lock-card { z-index: 1; place-self: center; display: grid; justify-items: center; gap: 10px; width: min(520px, calc(100% - 32px)); padding: 28px; text-align: center;
  border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: rgba(255, 255, 255, .95); box-shadow: 0 30px 60px -30px rgba(5, 16, 9, .45); }
.cp-lock-card strong { font-family: var(--fz-display), sans-serif; font-size: 1.3rem; }
.cp-lock-card p { color: var(--fz-ink-soft); }
.cp-lock-card .btn-row { justify-content: center; }
.cp-lock-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--fz-primary); color: #fff; }
.cp-lock.is-soon .cp-lock-ic { background: var(--fz-accent); }
/* FAQ · 3D farm choice: four cards in a fan, one after another lifts forward with a green edge */
.cp-faq-side { display: grid; gap: 40px; align-content: start; }
.cp-pick3 { position: relative; height: 260px; perspective: 1100px; }
.cp-pick3-c { position: absolute; left: calc(var(--i) * 18%); top: 30px; width: 44%; overflow: hidden; border: 2px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white);
  box-shadow: 0 20px 40px -24px rgba(5, 16, 9, .5); transform: rotateY(-24deg) rotateX(8deg); transform-origin: left center;
  animation: cpPick 8s cubic-bezier(.45, 0, .2, 1) infinite; animation-delay: calc(var(--i) * 2s - 8s); }
.cp-pick3-c img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cp-pick3-c span { display: block; padding: 8px 10px; font-size: 12px; font-weight: 600; line-height: 1.25; }
@keyframes cpPick {
  0%, 28%, 100% { transform: rotateY(-24deg) rotateX(8deg); border-color: var(--fz-line); z-index: 1; }
  8%, 20% { transform: rotateY(-4deg) rotateX(2deg) translateY(-24px) scale(1.08); border-color: var(--fz-accent); box-shadow: 0 30px 50px -20px rgba(0, 161, 81, .55); z-index: 5; }
}
@media (max-width: 1080px) { .cp-dd { grid-template-columns: minmax(0, 1fr); } .cp-pick3 { max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .cp-pick3-c { animation: none; } }

/* 3 → 4 · more room between the tese and the simulator */
.cp-ch .cp-sim { margin-top: 112px; }
/* 2 · off-market on a black band with a faint dark-green gradient */
#cp-ch-5 { background: radial-gradient(90% 70% at 85% 0%, rgba(0, 161, 81, .16), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(0, 98, 47, .22), transparent 60%), var(--fz-bg-deep); border-top-color: transparent; color: var(--fz-on-dark); }
#cp-ch-5 h2 { color: var(--fz-on-dark); }
#cp-ch-5 .cp-ch-lead, #cp-ch-5 .cp-note { color: var(--fz-on-dark-soft); }
#cp-ch-5 .cp-note .icon { color: var(--fz-accent-soft); }
#cp-ch-5 .cp-off-card { background: rgba(249, 253, 250, .05); border-color: rgba(249, 253, 250, .12); color: var(--fz-on-dark); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); }
#cp-ch-5 .cp-off-card.is-offer { background: linear-gradient(160deg, rgba(0, 161, 81, .28), rgba(0, 98, 47, .12)); border-color: rgba(0, 161, 81, .55); }
#cp-ch-5 .cp-off-tipo { background: rgba(249, 253, 250, .08); color: var(--fz-accent-soft); }
#cp-ch-5 dt, #cp-ch-5 .cp-off-crit, #cp-ch-5 .cp-off-foot { color: var(--fz-on-dark-soft); }
#cp-ch-5 .cp-off-foot { border-color: rgba(249, 253, 250, .12); }
/* locked numbers + unlock bar */
.cp-bar-v.is-locked { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--fz-ink-soft); }
.cp-bar-v.is-locked i { display: inline-block; width: 64px; height: 10px; border-radius: 5px; background: var(--fz-ink-soft); opacity: .35; filter: blur(3px); }
.cp-locknums .sim-out-value { color: transparent !important; position: relative; user-select: none; }
.cp-locknums .sim-out-value::after { content: ""; position: absolute; left: 0; top: 50%; width: min(160px, 100%); height: .6em; translate: 0 -50%; border-radius: 6px; background: rgba(249, 253, 250, .35); filter: blur(5px); }
.cp-unlock { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; padding: 16px 20px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white); box-shadow: 0 16px 36px -28px rgba(5, 16, 9, .4); }
.cp-unlock p { flex: 1 1 320px; margin: 0; font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); }
.cp-unlock strong { color: var(--fz-ink); }
.cp-unlock .cp-lock-ic { width: 40px; height: 40px; }

/* ch.3 · Poços tour: video + photos / maps / 3D */
.cp-tour { display: grid; gap: 20px; }
.cp-tour-video { overflow: hidden; border-radius: var(--fz-r-md); background: #000; box-shadow: 0 40px 80px -40px rgba(5, 16, 9, .55); }
.cp-tour-video video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cp-tour .tab-panels { padding-top: 18px; }
.cp-tour-fotos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-tour-fotos li:first-child { grid-column: span 2; grid-row: span 2; }
.cp-tour-fotos img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--fz-r-xs); }
.cp-tour-maps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cp-tour-maps li { overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white); }
.cp-tour-maps img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cp-tour-maps span { display: block; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.cp-tour-3d { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--fz-r-md); background: var(--fz-bg-deep); color: var(--fz-on-dark-soft); }
.cp-tour-3d p { display: flex; align-items: center; gap: 8px; }
.cp-tour-3d iframe { width: 100%; height: 100%; border: 0; }
.cp-tour-hint { margin-top: 8px; font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
@media (max-width: 760px) { .cp-tour-fotos { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cp-tour-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp-tour-3d { aspect-ratio: 4 / 5; } }
#cp-ch-5 .btn.on-dark { color: var(--fz-white); }

/* map legends */
.cp-tour-maps span { padding-bottom: 4px; }
.cp-leg { display: grid; gap: 4px; margin: 0; padding: 0 12px 12px; list-style: none; }
.cp-leg li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; line-height: 1.3; color: var(--fz-ink-soft); }
.cp-leg i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(5, 16, 9, .15); }
.cp-leg b { font-weight: 600; color: var(--fz-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-tour-maps .cp-leg li { overflow: visible; border: 0; border-radius: 0; background: none; }
/* assistant avatar: the Talhão symbol, as in the WhatsApp header */
.as-av { display: block; width: 38px; height: 38px; border-radius: 50%; background: none; object-fit: cover; }
.cp-cta-c { display: flex; justify-content: center; margin-top: 32px; }
.cp-dd-cta { display: flex; justify-content: flex-start; padding-top: 4px; }
