/* Componentes compartilhados do ciclo 2 (simulador, tese, tour) — Task 3. Só tokens. */

/* ── Rótulo compartilhado (ex-mono) ──────────────────────── */
.sim-out-label, .sim-assume, .tour-cap-n, .tour-stop-n, .tese-n, .tese-src {
  font-family: var(--fz-mono), sans-serif;
  font-size: var(--fz-text-label);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ══ Simulador de retorno ═══════════════════════════════════ */
.sim { display: grid; gap: 20px; min-width: 0; }
.sim-head .btn.text { margin-left: auto; }
.sim-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sim-farms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sim-farm {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--fz-line);
  border-radius: var(--fz-r-sm);
  background: var(--fz-white);
  color: var(--fz-ink);
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}
.sim-farm:hover { border-color: var(--fz-line-strong); background: var(--fz-paper-2); }
.sim-farm[aria-pressed="true"] { border-color: var(--fz-primary); box-shadow: inset 0 0 0 1px var(--fz-primary); background: var(--fz-paper-2); }
.sim-farm:focus-visible { outline: 2px solid var(--fz-ring); outline-offset: 2px; }
.sim-farm-name { font-size: 1rem; font-weight: 600; line-height: 1.25; }
.sim-farm-meta { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.sim-subject { font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.sim-subject strong { color: var(--fz-ink); }

.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  border: 1px solid var(--fz-line);
  border-radius: var(--fz-r-sm);
  background: var(--fz-white);
  overflow: hidden;
}
.sim-inputs { display: grid; gap: 22px; align-content: start; padding: 28px 32px 32px; }
.sim-assume { display: flex; align-items: center; gap: 8px; color: var(--fz-ink-soft); }
.sim-assume .dot { background: var(--fz-warn); }
.sim-field { display: grid; gap: 8px; }
.sim-field-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.sim-field label { font-size: 15px; font-weight: 600; color: var(--fz-ink); }
.sim-hint { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.sim-input {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  border: 1px solid var(--fz-line-strong);
  border-radius: var(--fz-r-xs);
  background: var(--fz-white);
  overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.sim-input:focus-within { border-color: var(--fz-accent-deep); box-shadow: 0 0 0 3px var(--fz-accent-dim); }
.sim-input:has([aria-invalid="true"]) { border-color: var(--fz-bad); }
.sim-input input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-family: var(--fz-display), sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fz-ink);
  font-variant-numeric: tabular-nums;
  outline: none;
}
.sim-unit {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--fz-line);
  background: var(--fz-paper-2);
  font-size: var(--fz-text-ui);
  font-weight: 500;
  color: var(--fz-ink-soft);
  white-space: nowrap;
}
.sim-range { width: 100%; height: 28px; margin: -4px 0 -6px; accent-color: var(--fz-primary); cursor: pointer; }
.sim-err { font-size: var(--fz-text-caption); font-weight: 500; color: var(--fz-bad); }

.sim-results {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: 28px 32px 32px;
  background: var(--fz-bg-deep);
  color: var(--fz-on-dark);
}
.sim-base { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; font-size: var(--fz-text-body-sm); color: var(--fz-on-dark-soft); }
.sim-base strong { font-size: 1.05rem; color: var(--fz-on-dark); font-variant-numeric: tabular-nums; }
.sim-outs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.sim-outs > .sim-out:first-child:nth-last-child(3) { grid-column: 1 / -1; }
.sim-out { display: grid; gap: 6px; align-content: start; padding: 18px 0 20px; border-top: 1px solid var(--fz-hair); }
.sim-out-label { color: var(--fz-on-dark-soft); }
.sim-out-value {
  font-family: var(--fz-display), sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fz-on-dark);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.sim-out-value[data-out="rendimento"] { color: var(--fz-accent-soft); }
.sim-out-value.is-text { font-size: 1.05rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--fz-on-dark); }
.sim-out-sub { font-size: var(--fz-text-caption); color: var(--fz-on-dark-soft); }
.sim-formulas { border-top: 1px solid var(--fz-hair); }
.sim-formulas summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fz-on-dark);
  cursor: pointer;
  list-style: none;
}
.sim-formulas summary::-webkit-details-marker { display: none; }
.sim-formulas summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; font-weight: 400; color: var(--fz-on-dark-soft); }
.sim-formulas[open] summary::after { content: "−"; }
.sim-formulas summary:focus-visible { outline: 2px solid var(--fz-accent-soft); outline-offset: 2px; border-radius: var(--fz-r-xs); }
.sim-formulas dl { display: grid; margin: 0 0 12px; }
.sim-formulas dl > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--fz-hair); font-size: var(--fz-text-body-sm); }
.sim-formulas dt { font-weight: 600; color: var(--fz-on-dark); }
.sim-formulas dd { margin: 0; color: var(--fz-on-dark-soft); }
.sim-formulas p { padding-bottom: 8px; font-size: var(--fz-text-caption); color: var(--fz-on-dark-soft); }
.sim-results > .btn { justify-self: start; }
.sim-notice { display: flex; align-items: flex-start; gap: 10px; max-width: 80ch; font-size: var(--fz-text-caption); line-height: 1.5; color: var(--fz-ink-soft); }
.sim-notice svg { flex: none; margin-top: 1px; color: var(--fz-ink-soft); }

@media (max-width: 900px) {
  .sim-grid { grid-template-columns: minmax(0, 1fr); }
  .sim-farms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sim-inputs, .sim-results { padding: 22px 20px 24px; }
  .sim-head { align-items: stretch; }
  .sim-head .segmented { width: 100%; }
  .sim-head .segmented button { flex: 1; justify-content: center; padding: 0 12px; }
  .sim-formulas dl > div { grid-template-columns: minmax(0, 1fr); }
  .sim-results > .btn { justify-self: stretch; }
}
@media (max-width: 520px) {
  .sim-outs { grid-template-columns: minmax(0, 1fr); }
  .sim-farm { padding: 10px 12px; }
}

/* ══ Tese de compra ═════════════════════════════════════════ */
.tese {
  display: grid;
  min-width: 0;
  padding: 36px 48px 44px;
  border: 1px solid var(--fz-line);
  border-radius: var(--fz-r-md);
  background: var(--fz-white);
  color: var(--fz-ink);
}
.tese-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-bottom: 18px; border-bottom: 1px solid var(--fz-line); }
.tese-label { display: flex; align-items: center; gap: 10px; font-size: var(--fz-text-caption); font-weight: 500; color: var(--fz-ink-soft); }
.tese-label::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fz-warn); }
.tese-title { display: grid; gap: 10px; padding: 32px 0 28px; }
.tese-name { font-size: var(--fz-text-headline); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.tese-meta { color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.tese-sec { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 12px 40px; padding: 28px 0; border-top: 1px solid var(--fz-line); }
.tese-h { display: flex; align-items: baseline; gap: 12px; font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.tese-n { color: var(--fz-accent-deep); }
.tese-body { display: grid; gap: 14px; min-width: 0; color: var(--fz-ink-soft); }
.tese-body strong { color: var(--fz-ink); }
.tese-frase { font-size: 1.3rem; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--fz-ink); max-width: 58ch; }
.tese-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 20px; margin: 0; }
.tese-facts > div { display: grid; align-content: start; gap: 2px; padding: 12px 0 14px; border-bottom: 1px solid var(--fz-line); }
.tese-facts dt { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.tese-facts dd { margin: 0; font-weight: 600; color: var(--fz-ink); font-variant-numeric: tabular-nums; }
.tese-facts dd.tese-src { margin-top: 2px; font-size: var(--fz-text-label-sm); color: var(--fz-ink-soft); }
.tese-note { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.tese-list { display: grid; padding: 0; margin: 0; list-style: none; }
.tese-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--fz-line); color: var(--fz-ink); }
.tese-list li:first-child { padding-top: 0; }
.tese-list li::before { content: ""; position: absolute; left: 4px; top: calc(12px + .45em); width: 10px; height: 10px; border: 1.5px solid var(--fz-accent-deep); border-radius: 50%; }
.tese-list li:first-child::before { top: .45em; }
.tese-list.is-risk li::before { content: "?"; left: 0; top: calc(12px + .2em); width: 18px; height: 18px; border: 0; background: var(--fz-surface); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--fz-ink); }
.tese-list.is-risk li:first-child::before { top: .2em; }
.tese-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 0; list-style: none; counter-reset: ts; }
.tese-steps li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-paper-2); font-size: var(--fz-text-body-sm); counter-increment: ts; }
.tese-steps strong { font-size: 15px; }
.tese-steps strong::before { content: counter(ts) ". "; color: var(--fz-accent-deep); }
.tese-cta { margin-top: 6px; }
@media (max-width: 900px) {
  .tese-sec { grid-template-columns: minmax(0, 1fr); padding: 24px 0; }
}
@media (max-width: 760px) {
  .tese { padding: 24px 20px 28px; }
  .tese-title { padding: 24px 0 20px; }
  .tese-frase { font-size: 1.15rem; }
  .tese-steps { grid-template-columns: minmax(0, 1fr); }
  .tese-cta .btn { width: 100%; }
}

/* ══ Tour virtual guiado ════════════════════════════════════ */
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 24px 32px; align-items: start; min-width: 0; }
.tour-main { display: grid; gap: 24px; min-width: 0; }
.tour-stage { margin: 0; overflow: hidden; border-radius: var(--fz-r-md); background: var(--fz-bg-deep); color: var(--fz-on-dark); }
.tour-stage:focus-visible { outline: 2px solid var(--fz-ring); outline-offset: 3px; }
.tour-stage :focus-visible { outline-color: var(--fz-accent-soft); }
.tour-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; background: var(--fz-card-dark); }
.tour-media > video, .tour-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tour-photo.is-map { object-fit: contain; }
.tour-progress { position: absolute; top: 16px; left: 20px; right: 20px; z-index: 2; display: flex; gap: 6px; }
.tour-progress span { flex: 1; height: 3px; border-radius: var(--fz-r-full); background: var(--fz-hair-strong); transition: background-color .35s var(--fz-ease); }
.tour-progress .is-done { background: var(--fz-on-dark-soft); }
.tour-progress .is-on { background: var(--fz-on-dark); }
.tour-cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 72px 80px 22px 24px;
  background: linear-gradient(to top, color-mix(in srgb, var(--fz-bg-deep) 88%, transparent), transparent);
  pointer-events: none;
}
.tour-cap-n { color: var(--fz-on-dark-soft); }
.tour-cap-t { font-family: var(--fz-display), sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--fz-on-dark); text-wrap: balance; }
.tour-play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--fz-hair-strong);
  border-radius: var(--fz-r-full);
  background: color-mix(in srgb, var(--fz-bg-deep) 60%, transparent);
  color: var(--fz-on-dark);
  transition: background-color .16s ease;
}
.tour-play:hover { background: var(--fz-bg-deep); }
.tour-play svg { width: 18px; height: 18px; }
.tour-bar { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-top: 1px solid var(--fz-hair); }
.tour-bar-label { flex: 1; min-width: 0; text-align: center; font-size: var(--fz-text-caption); color: var(--fz-on-dark-soft); }
.tour-bar .stage-btn:disabled { opacity: .35; cursor: default; background: transparent; border-color: var(--fz-hair-strong); }

.tour-copy { display: grid; gap: 8px; padding: 0 4px; }
.tour-copy-x { max-width: 62ch; font-size: 1.125rem; line-height: 1.55; color: var(--fz-ink); }
.tour-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tour-thumb { width: 88px; height: 64px; padding: 0; overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-xs); background: var(--fz-surface); cursor: zoom-in; transition: border-color .16s ease; }
.tour-thumb:hover { border-color: var(--fz-accent-deep); }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tour-thumb.is-map { background: var(--fz-bg-deep); }
.tour-thumb.is-map img { object-fit: contain; }

.tour-side { display: grid; gap: 16px; min-width: 0; }
.tour-map { overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white); }
.tour-map-img { position: relative; background: var(--fz-card-dark); }
.tour-map-img > img { display: block; width: 100%; height: auto; }
.tour-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.tour-pin span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fz-bg-deep);
  box-shadow: 0 0 0 2px var(--fz-on-dark);
  font-size: 12px;
  font-weight: 700;
  color: var(--fz-on-dark);
  font-variant-numeric: tabular-nums;
  transition: transform .25s var(--fz-ease), background-color .2s ease;
}
.tour-pin:hover span { transform: scale(1.12); }
.tour-pin[aria-current="true"] { z-index: 2; }
.tour-pin[aria-current="true"] span {
  background: var(--fz-accent);
  color: var(--fz-accent-ink);
  transform: scale(1.25);
  box-shadow: 0 0 0 2px var(--fz-on-dark), 0 0 0 7px color-mix(in srgb, var(--fz-accent) 35%, transparent);
  animation: tour-pulse 2.4s var(--fz-ease) infinite;
}
.tour-pin:focus-visible { outline: none; }
.tour-pin:focus-visible span { box-shadow: 0 0 0 2px var(--fz-on-dark), 0 0 0 5px var(--fz-ring); }
@keyframes tour-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--fz-on-dark), 0 0 0 4px color-mix(in srgb, var(--fz-accent) 45%, transparent); }
  50% { box-shadow: 0 0 0 2px var(--fz-on-dark), 0 0 0 10px color-mix(in srgb, var(--fz-accent) 0%, transparent); }
}
.tour-map-note { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--fz-line); font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.tour-map-note svg { width: 16px; height: 16px; flex: none; }

.tour-stops { display: grid; gap: 2px; padding: 0; margin: 0; list-style: none; }
.tour-stop {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--fz-r-xs);
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--fz-ink);
  text-align: left;
  transition: background-color .16s ease, color .16s ease;
}
.tour-stop:hover { background: var(--fz-surface); }
.tour-stop:focus-visible { outline: 2px solid var(--fz-ring); outline-offset: 1px; }
.tour-stop-n { color: var(--fz-ink-soft); }
.tour-stop-d { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.tour-stop[aria-current="true"] { background: var(--fz-primary); color: var(--fz-on-primary); }
.tour-stop[aria-current="true"] .tour-stop-n, .tour-stop[aria-current="true"] .tour-stop-d { color: var(--fz-on-dark-soft); }

.tour.is-compact .tour-stops, .tour.is-compact .tour-thumbs { display: none; }

@media (max-width: 1100px) {
  .tour { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: 20px 24px; }
}
@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-main, .tour-side { display: contents; }
  .tour-stage { order: 1; }
  .tour-map { order: 2; }
  .tour-copy { order: 3; }
  .tour-stops { order: 4; }
}
@media (max-width: 760px) {
  .tour { gap: 16px; }
  .tour-media { aspect-ratio: 4 / 5; }
  .tour-cap { padding: 64px 72px 18px 18px; }
  .tour-progress { left: 16px; right: 16px; }
  .tour-copy { padding: 4px 2px 0; }
}

/* ── Ciclo 2 · rodada 1: avisos do simulador e tour demonstrativo ── */
.sim-warn { display: flex; align-items: center; gap: 8px; font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.sim-warn::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fz-warn); }
.sim-high { margin-top: -8px; font-size: var(--fz-text-body-sm); font-weight: 500; color: var(--fz-on-dark); }
.sim-warn[hidden], .sim-high[hidden] { display: none; }

.tour-illus svg, .tour-map-illus { display: block; width: 100%; height: 100%; }
.tour-map-illus { height: auto; aspect-ratio: 16 / 9; }
.tour-demo { position: absolute; top: 30px; left: 20px; z-index: 2; }
.ti-sky { fill: var(--fz-card-dark); }
.ti-h3 { fill: color-mix(in srgb, var(--fz-accent) 14%, var(--fz-card-dark)); }
.ti-h2 { fill: color-mix(in srgb, var(--fz-accent) 24%, var(--fz-card-dark)); }
.ti-h1 { fill: color-mix(in srgb, var(--fz-accent) 36%, var(--fz-card-dark)); }
.ti-m { fill: color-mix(in srgb, var(--fz-accent-soft) 55%, var(--fz-card-dark)); }
.ti-line, .ti-row { fill: none; stroke: var(--fz-hair-strong); stroke-width: 3; }
.ti-row { stroke: color-mix(in srgb, var(--fz-accent-soft) 40%, transparent); stroke-width: 6; }
.ti-road { fill: none; stroke: color-mix(in srgb, var(--fz-on-dark) 55%, transparent); stroke-width: 14; stroke-linecap: round; }
.ti-water { fill: color-mix(in srgb, var(--fz-accent-soft) 35%, var(--fz-card-dark)); }
.ti-stream { fill: none; stroke: color-mix(in srgb, var(--fz-accent-soft) 60%, transparent); stroke-width: 8; stroke-linecap: round; }
.tour-demo .demo-note { background: color-mix(in srgb, var(--fz-bg-deep) 60%, transparent); border-color: var(--fz-hair-strong); color: var(--fz-on-dark); }

/* tese v3 ── card da tese de compra (js/components/tese-card.js): hero · panel · full ─────────── */
.tc { min-width: 0; color: var(--fz-ink); }
.tc h3, .tc h4, .tc p, .tc ul, .tc ol, .tc dl, .tc dd, .tc figure { margin: 0; }
.tc-k { display: flex; align-items: center; gap: 8px; font-size: var(--fz-text-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fz-ink-soft); }
.tc-k svg { width: 16px; height: 16px; color: var(--fz-accent-deep); }
.tc-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--fz-r-full); background: var(--fz-white); color: var(--fz-ink); font-size: var(--fz-text-ui); font-weight: 600; box-shadow: 0 4px 14px -6px rgba(5, 16, 9, .35); white-space: nowrap; }
.tc-pill .dot { width: 8px; height: 8px; background: var(--fz-accent); box-shadow: 0 0 0 3px var(--fz-accent-dim); }
.tc-label { display: flex; align-items: flex-start; gap: 8px; font-size: var(--fz-text-caption); line-height: 1.45; color: var(--fz-ink-soft); }
.tc-label svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.tc-ph { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.tc-ph strong { color: var(--fz-ink); }
.tc-ph-note { font-size: var(--fz-text-caption); font-weight: 500; color: var(--fz-ink-soft); }
.tc-note { font-size: var(--fz-text-caption); line-height: 1.45; color: var(--fz-ink-soft); }
.tc img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* hero — card de oportunidade (referência AcreTrader) */
.tc--hero { display: grid; grid-template-rows: auto 1fr; height: 100%; width: 100%; max-width: 420px; overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); box-shadow: 0 30px 60px -30px rgba(5, 16, 9, .45), 0 2px 6px rgba(5, 16, 9, .06); }
.tc-hero-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--fz-surface); }
.tc-hero-media .tc-pill { position: absolute; top: 14px; left: 14px; }
.tc-hero-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 22px; }
.tc-hero-body > .btn { margin-top: auto; }
.tc-angle { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; min-height: 30px; padding: 4px 12px; border-radius: var(--fz-r-xs); background: var(--fz-accent-dim); color: var(--fz-primary); font-size: var(--fz-text-ui); font-weight: 600; line-height: 1.3; }
.tc-angle svg { flex: none; width: 16px; height: 16px; }
.tc-loc { display: flex; align-items: center; gap: 6px; font-size: var(--fz-text-ui); font-weight: 500; color: var(--fz-ink-soft); }
.tc-loc svg { width: 16px; height: 16px; color: var(--fz-accent-deep); }
.tc-hero-t { font-size: 1.4rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.tc-chips li { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-full); background: var(--fz-surface); font-size: var(--fz-text-caption); font-weight: 600; }
.tc-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--fz-line); }
.tc-hero-stats > div { display: grid; align-content: start; gap: 2px; padding: 12px 10px 12px 0; }
.tc-hero-stats > div + div { padding-left: 12px; border-left: 1px solid var(--fz-line); }
.tc-hero-stats dt { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.tc-hero-stats dd { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-hero-stats dd.tc-ph-note { font-size: 11px; font-weight: 500; white-space: normal; }

/* deck — card grande do carrossel 3D da home (hero + pilares + perfil) */
.tc--deck { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.tc-deck-media { position: relative; flex: none; aspect-ratio: 16 / 9; overflow: hidden; background: var(--fz-surface); }
.tc-deck-media .tc-pill { position: absolute; top: 14px; left: 14px; }
.tc-deck-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 24px 22px; }
.tc-deck-t { font-size: 1.6rem; font-weight: 700; line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.tc-deck-pillars { display: grid; border-top: 1px solid var(--fz-line); }
.tc-deck-pillars > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--fz-line); }
.tc-deck-pillars dt { padding-top: 2px; font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase; color: var(--fz-accent-deep); }
.tc-deck-pillars dd { font-size: var(--fz-text-body-sm); line-height: 1.42; color: var(--fz-ink); }
.tc-deck-who { display: flex; gap: 8px; font-size: var(--fz-text-body-sm); line-height: 1.45; color: var(--fz-ink-soft); }
.tc-deck-who svg { flex: none; margin-top: 2px; color: var(--fz-accent-deep); }
.tc-deck-who strong { font-weight: 600; color: var(--fz-ink); }
.tc-deck-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--fz-line); }
.tc-deck-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: var(--fz-text-body-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-deck-meta span + span::before { content: "·"; margin-right: 8px; color: var(--fz-ink-soft); font-weight: 400; }
.tc-deck-foot .btn { flex: none; }

/* blocos comuns de panel e full */
.tc-head { display: grid; gap: 10px; }
.tc-manchete { font-size: clamp(1.45rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.tc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.tc-meta > span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 14px; border-radius: 50%; background: var(--fz-line-strong); vertical-align: middle; }
.tc-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-line); }
.tc-num { display: grid; align-content: start; gap: 2px; padding: 10px 14px; background: var(--fz-white); }
.tc-num dt { font-size: var(--fz-text-caption); line-height: 1.3; color: var(--fz-ink-soft); }
.tc-num dd { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-num:first-child dd { color: var(--fz-primary); }
.tc-price { display: grid; gap: 10px; }
.tc-bars { display: grid; gap: 8px; }
.tc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; gap: 4px 12px; font-size: var(--fz-text-caption); }
.tc-bar-l { grid-area: l; min-width: 0; color: var(--fz-ink-soft); }
.tc-bar-v { grid-area: v; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-bar-t { grid-area: t; position: relative; height: 8px; border-radius: var(--fz-r-full); background: var(--fz-surface); overflow: hidden; }
.tc-bar-t i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--fz-line-strong); transform-origin: left center; }
.tc-bar.is-self .tc-bar-l { font-weight: 600; color: var(--fz-ink); }
.tc-bar.is-self .tc-bar-t i { background: var(--fz-accent); }
.tc-bar.is-med .tc-bar-t i { background: repeating-linear-gradient(90deg, var(--fz-ink-soft) 0 6px, transparent 6px 9px); opacity: .55; }
.tc-bar.is-comp .tc-bar-t i { background: var(--fz-surface-2); box-shadow: inset 0 0 0 1px var(--fz-line-strong); }
.tc-bar.is-clip .tc-bar-t i { -webkit-mask: linear-gradient(90deg, #000 85%, transparent); mask: linear-gradient(90deg, #000 85%, transparent); }
.tc-bar.is-clip .tc-bar-v::after { content: " · fora da escala"; font-weight: 500; color: var(--fz-ink-soft); }
.tc-pillars { display: grid; gap: 0; padding: 0; list-style: none; }
.tc-pillar { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--fz-line); }
.tc-pillar:first-child { padding-top: 0; border-top: 0; }
.tc-pillar h4 { display: flex; align-items: baseline; gap: 10px; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.tc-pillar-n { font-size: var(--fz-text-label); font-weight: 600; color: var(--fz-accent-deep); font-variant-numeric: tabular-nums; }
.tc-pillar p { font-size: var(--fz-text-body-sm); line-height: 1.5; color: var(--fz-ink-soft); }
.tc-pillar .tc-proof { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; color: var(--fz-ink); }
.tc-proof svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fz-accent-deep); }
.tc-fit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 16px; }
.tc-fit > div { display: grid; align-content: start; gap: 6px; padding: 12px 16px; border-radius: var(--fz-r-sm); }
.tc-who { background: var(--fz-surface); }
.tc-who > p:last-child { font-size: var(--fz-text-body-sm); line-height: 1.5; font-weight: 500; }
.tc-check { display: grid; gap: 6px; padding: 12px 16px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white); }
.tc-check ul { display: grid; gap: 4px; padding: 0; list-style: none; }
.tc-check li { position: relative; padding-left: 16px; font-size: var(--fz-text-body-sm); line-height: 1.45; color: var(--fz-ink-soft); }
.tc-check li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--fz-warn); }

/* panel — um por fazenda na rolagem horizontal da home */
.tc--panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); overflow: hidden; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.tc-media { position: relative; min-height: 100%; overflow: hidden; background: var(--fz-surface); }
.tc-media img { position: absolute; inset: -6% 0; height: 112%; }
.tc-media-cap { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 64px 18px 18px; background: linear-gradient(transparent, rgba(5, 16, 9, .78)); color: var(--fz-on-dark); }
.tc-media-loc { font-size: var(--fz-text-ui); font-weight: 600; text-shadow: 0 1px 8px rgba(5, 16, 9, .5); }
.tc-content { display: grid; align-content: start; gap: 18px; min-width: 0; padding: 24px 28px; }
.tc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.tc-col { display: grid; gap: 16px; min-width: 0; }
.tc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.tc-actions .tc-label { flex: 1 1 260px; }

/* panel compacto (padrão na home): pilares só com prova + fonte; para quem numa linha; CTAs na coluna dos números */
.tc-who-line { display: flex; flex-basis: 100%; align-items: flex-start; gap: 8px; font-size: var(--fz-text-body-sm); line-height: 1.4; color: var(--fz-on-dark); text-shadow: 0 1px 8px rgba(5, 16, 9, .5); }
.tc-who-line svg { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--fz-accent-soft); }
.tc-who-line strong { font-weight: 700; }
.tc--panel.is-compact { grid-template-columns: minmax(0, .62fr) minmax(0, 1.7fr); }
.tc--panel.is-compact .tc-content { gap: 16px; padding: 22px 26px; }
.tc--panel.is-compact .tc-num { padding: 8px 12px; }
.tc--panel.is-compact .tc-num dd { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
.tc--panel.is-compact .tc-actions .btn { padding: 0 18px; }
.tc--panel.is-compact .tc-head { gap: 8px; }
.tc--panel.is-compact .tc-manchete { font-size: clamp(1.3rem, 1.65vw, 1.6rem); }
.tc--panel.is-compact .tc-cols { gap: 24px; }
.tc--panel.is-compact .tc-col { gap: 14px; }
.tc--panel.is-compact .tc-actions { display: grid; gap: 10px; }
.tc-pillars.is-compact .tc-pillar { gap: 2px; padding: 7px 0; }
.tc--panel.is-compact .tc-check { padding: 10px 14px; }
.tc-pillars.is-compact .tc-pillar:first-child { padding-top: 0; }
.tc-pillars.is-compact .tc-proof { font-size: var(--fz-text-body-sm); line-height: 1.45; }
.tc--panel.is-compact .tc-check li { line-height: 1.4; }

/* full — seção Tese do anúncio */
.tc--full { display: grid; gap: 28px; padding: 36px 40px 40px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.tc--full .tc-head { max-width: 860px; gap: 14px; }
.tc--full .tc-manchete { font-size: var(--fz-text-headline); }
.tc-resumo { font-size: var(--fz-text-body); line-height: 1.6; color: var(--fz-ink-soft); max-width: 72ch; }
.tc--full .tc-label { padding: 10px 12px; border-radius: var(--fz-r-xs); background: var(--fz-paper-2); }
.tc--full .tc-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tc--full .tc-num { padding: 16px 18px; }
.tc--full .tc-cols { gap: 40px; }
.tc-pillars.is-full .tc-pillar { gap: 6px; padding: 16px 0; }
.tc-pillars.is-full .tc-pillar:first-child { padding-top: 0; }

@media (max-width: 1100px) {
  .tc--panel { grid-template-columns: minmax(0, .7fr) minmax(0, 1.7fr); }
  .tc-content { padding: 24px; }
}
@media (max-width: 900px) {
  .tc--panel, .tc--panel.is-compact { grid-template-columns: 1fr; }
  .tc-media { min-height: 0; aspect-ratio: 16 / 9; }
  .tc--full .tc-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc--full .tc-cols { gap: 28px; }
}
@media (max-width: 760px) {
  .tc-cols, .tc-fit { grid-template-columns: 1fr; }
  .tc-meta > span + span::before { display: none; }
  .tc-content, .tc--panel.is-compact .tc-content { gap: 18px; padding: 20px 16px; }
  .tc--panel.is-compact .tc-cols { display: flex; flex-direction: column; gap: 16px; }
  .tc--panel.is-compact .tc-col { display: contents; }
  .tc--panel.is-compact .tc-actions { order: 9; }
  .tc--full { gap: 22px; padding: 24px 16px 28px; }
  .tc-media { aspect-ratio: 4 / 3; }
  .tc-actions .btn-row .btn { flex: 1 1 100%; }
  .tc--full .btn-row .btn { width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .tc-hero-stats { grid-template-columns: 1fr 1fr; }
  .tc-hero-stats > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid var(--fz-line); }
  .tc-hero-body { padding: 18px 16px 20px; }
}

/* ── SEO preview (mockup annotation): Google result + WhatsApp preview + indexing checks ── */
.seo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.seo > * { min-width: 0; } /* the open JSON-LD <pre> scrolls inside its box instead of widening the page */
.seo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.seo-title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.02em; }
.seo-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.seo-card { display: grid; gap: 12px; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-sm); background: var(--fz-white); }
.seo-card figcaption { display: flex; align-items: center; gap: 8px; font-size: var(--fz-text-caption); font-weight: 600; color: var(--fz-ink-soft); }
.seo-card figcaption svg { color: var(--fz-accent-deep); }
.seo-serp { display: grid; gap: 4px; max-width: 600px; font-family: Arial, "Segoe UI", sans-serif; }
.seo-site { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.seo-fav { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--fz-primary); color: #fff; font-weight: 700; font-size: 15px; }
.seo-site strong { display: block; font-size: 14px; font-weight: 400; color: #202124; }
.seo-site small { display: block; font-size: 12px; color: #4d5156; overflow-wrap: anywhere; }
.seo-serp-t { font-size: 20px; line-height: 1.3; color: #1a0dab; }
.seo-serp-rich { font-size: 13px; color: #4d5156; }
.seo-serp-d { font-size: 14px; line-height: 1.58; color: #4d5156; }
.seo-wa .seo-wa-bubble { display: grid; gap: 6px; max-width: 360px; padding: 4px 4px 8px; border-radius: 10px; background: #d9fdd3; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
.seo-wa-og { overflow: hidden; border-radius: 8px; background: #f0f2f5; }
.seo-wa-og img { display: block; width: 100%; aspect-ratio: 1.91 / 1; height: auto; object-fit: cover; }
.seo-wa-og > div { display: grid; gap: 2px; padding: 8px 10px 10px; }
.seo-wa-og strong { font-size: 13.5px; line-height: 1.3; color: #111b21; }
.seo-wa-og p { font-size: 12.5px; line-height: 1.35; color: #667781; }
.seo-wa-og small { font-size: 11.5px; color: #667781; }
.seo-wa-url { padding: 0 6px; font-size: 12.5px; color: #027eb5; overflow-wrap: anywhere; }
.seo-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.seo-checks li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: var(--fz-text-body-sm); line-height: 1.45; color: var(--fz-ink-soft); overflow-wrap: anywhere; }
.seo-checks li svg { margin-top: 2px; }
.seo-checks .is-ok svg { color: var(--fz-accent-deep); }
.seo-checks .is-warn svg { color: var(--fz-warn); }
.seo-checks strong { color: var(--fz-ink); font-weight: 600; }
.seo-ld summary { cursor: pointer; font-size: var(--fz-text-body-sm); font-weight: 600; color: var(--fz-primary); }
.seo-ld pre { max-height: 320px; margin-top: 10px; padding: 14px 16px; overflow: auto; border-radius: var(--fz-r-xs); background: var(--fz-bg-deep); color: var(--fz-on-dark); font-size: 12px; line-height: 1.5; }
@media (max-width: 900px) { .seo-grid, .seo-checks { grid-template-columns: minmax(0, 1fr); } }

.tc-deck-meta { flex-wrap: nowrap; white-space: nowrap; }
.tc-deck-foot .btn { padding-inline: 16px; }
.tc-deck-pillars > div { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
.tc-dif { display: grid; gap: 10px; }
.tc-k .tc-deck-mark { width: 16px; height: 16px; flex: none; }
/* tese na página do anúncio: manchete e resumo na largura do cartão; "Ideal para" sozinho */
.tc--full .tc-head, .tc--full .tc-resumo { max-width: none; }
.tc--full .tc-manchete { text-wrap: pretty; }
.tc-fit.is-solo { grid-template-columns: minmax(0, 1fr); }
/* painel da tese (home): faixa de fotos na largura da coluna, sem aumentar o cartão — convite a ver mais */
.tc-fotos { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fz-line); }
.tc-fotos .tc-k { margin: 0; }
.tc-fotos ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.tc-fotos li a { position: relative; display: block; aspect-ratio: 1; max-height: 104px; overflow: hidden; border-radius: 8px; background: var(--fz-paper-2); }
.tc-fotos img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--fz-ease); }
.tc-fotos li a:hover img { transform: scale(1.06); }
.tc-fotos li:last-child a span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 16, 9, .55); color: #fff; font-weight: 700; font-size: 15px; }
.tc-fotos-all { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--fz-accent-deep); text-decoration: none; }
.tc-fotos-all:hover { color: var(--fz-primary); }
