/* ArthaBase product page: Villa Market Report.
   Depends on tokens + atlas kit in style.css. */

/* ════ HERO ═══════════════════════════════════════════════════ */
.bar-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80svh;
  min-height: 80vh;
  padding: clamp(6.5rem, 12vw, 8.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  text-align: center;
}
.bar-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.bar-hero-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.bar-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.88) 0%, rgba(8, 10, 9, 0.72) 42%, rgba(8, 10, 9, 0.9) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(8, 10, 9, 0.45) 0%, rgba(8, 10, 9, 0.88) 100%);
  pointer-events: none;
}
.bar-hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(233, 231, 223, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 231, 223, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 85%);
  pointer-events: none;
}
.bar-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}
.bar-hero-title {
  margin-top: 0;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.06;
  text-wrap: balance;
}
.bar-hero-lead {
  margin: 1.375rem auto 0;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.bar-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .bar-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .bar-hero-actions .btn-atlas,
  .bar-hero-actions .btn-atlas-ghost {
    width: 100%;
  }
}
.bar-hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 2.25rem;
}

/* ════ HOW IT WORKS ═══════════════════════════════════════════ */
.bar-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 860px) {
  .bar-steps { grid-template-columns: 1fr; }
}
.bar-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}
.bar-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--color-terracotta-dim);
  border: 1px solid var(--color-terracotta-border);
}
.bar-step-badge i {
  font-size: 1.125rem;
  line-height: 1;
  color: var(--color-terracotta);
}
.bar-step-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
}
.bar-step h3 {
  margin-top: 0.875rem;
  font-size: 1.509375rem;
}
.bar-step p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* ════ REPORT PREVIEW (paper) ═════════════════════════════════ */
.bar-preview { background-color: var(--color-bg); }

.bar-preview-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.bar-preview-devices li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.5rem;
  background: var(--color-terracotta-dim);
  border: 1px solid var(--color-terracotta-border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-terracotta);
}
.bar-preview-devices i {
  font-size: 1rem;
  line-height: 1;
  color: var(--color-terracotta);
}

.bar-preview-frame {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.bar-preview-frame.crosshair-frame::before {
  top: 0.55rem;
  left: 0.65rem;
  z-index: 1;
}
.bar-preview-frame.crosshair-frame::after {
  bottom: 0.55rem;
  right: 0.65rem;
  z-index: 1;
}
.bar-preview-stamp {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem 0.875rem 2rem;
  border-bottom: 1px solid var(--color-border-faint);
}
.bar-preview-stamp-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.bar-preview-media {
  min-width: 0;
}
.bar-preview-video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.bar-report {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bar-report--video {
  background: transparent;
  border: none;
  box-shadow: none;
}
.bar-report-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--color-border);
  background: rgba(26, 29, 26, 0.03);
  scrollbar-width: none;
}
.bar-report-tabs::-webkit-scrollbar { display: none; }
.bar-report-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.875rem 1.125rem;
  background: none;
  border: none;
  border-right: 1px solid var(--color-border-faint);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.bar-report-tab i {
  font-size: 1rem;
  opacity: 0.75;
}
.bar-report-tab.is-active i { opacity: 1; color: var(--color-terracotta); }
.bar-report-tab:hover { color: var(--color-text); }
.bar-report-tab.is-active {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: inset 0 -2px 0 var(--color-terracotta);
}

.bar-report-body {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  min-width: 0;
}
.bar-report-panel[hidden] { display: none; }
.bar-report-panel {
  min-width: 0;
  animation: bar-panel-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bar-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bar-report-panel { animation: none; }
}

/* TL;DR insights */
.bar-panel-toc {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-sm);
  background: var(--color-bg-muted);
}
.bar-panel-toc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  margin-bottom: 0.5rem;
}
.bar-panel-toc ol {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}
.bar-panel-toc li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bar-panel-toc li > i.ph {
  flex-shrink: 0;
  font-size: 0.625rem;
  line-height: 1;
  color: var(--color-terracotta);
}
.bar-panel-section-title {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}
.bar-panel-section-lead {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  max-width: 62ch;
}
.bar-panel-section-lead code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}
.bar-table-scroll {
  --bar-report-body-pad: clamp(1.25rem, 3vw, 2.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  margin-inline: calc(-1 * var(--bar-report-body-pad));
  padding-inline: var(--bar-report-body-pad);
  padding-bottom: 0.25rem;
}
.bar-table-scroll::-webkit-scrollbar {
  height: 4px;
}
.bar-table-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 23, 20, 0.18);
}
.bar-data-table {
  font-size: 0.8125rem;
  width: max-content;
  min-width: 100%;
}
.bar-glossary {
  display: grid;
  gap: 1rem;
  margin: 0;
}
.bar-glossary-item {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-faint);
}
.bar-glossary-item:first-child { border-top: none; padding-top: 0; }
.bar-glossary dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-terracotta);
}
.bar-glossary dd {
  margin: 0.375rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Summary tab: key signals + MTI */
.bar-summary-block + .bar-summary-block {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--color-border-faint);
}
.bar-summary-heading {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
.bar-key-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
}
@media (max-width: 960px) {
  .bar-key-signals { grid-template-columns: 1fr; }
}
.bar-signal-card {
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}
.bar-signal-card-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.bar-signal-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
}
.bar-signal-icon--risk {
  color: var(--color-red);
  background: rgba(191, 74, 60, 0.12);
}
.bar-signal-icon--opportunity {
  color: var(--color-green);
  background: rgba(31, 122, 77, 0.12);
}
.bar-signal-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.625rem;
  min-width: 0;
}
.bar-signal-title {
  flex: 1 1 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--color-text);
}
.bar-signal-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bar-signal-badge--risk {
  color: var(--color-red);
  background: rgba(191, 74, 60, 0.12);
}
.bar-signal-badge--opportunity {
  color: var(--color-green);
  background: rgba(31, 122, 77, 0.12);
}
.bar-signal-body {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.bar-mti-lead {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.bar-mti-core {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}
@media (max-width: 720px) {
  .bar-mti-core { grid-template-columns: 1fr; }
}
.bar-mti-score-block {
  text-align: center;
  min-width: 6.5rem;
}
.bar-mti-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}
.bar-mti-score-label {
  margin: 0.375rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.bar-mti-scale {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #c45a4f 0%, #d4a84b 50%, #3d9a6a 100%);
}
.bar-mti-scale-marker {
  position: absolute;
  top: 50%;
  left: var(--mti-pos, 50%);
  width: 0.625rem;
  height: 1.125rem;
  border-radius: 2px;
  background: var(--color-text);
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(20, 23, 20, 0.25);
}
.bar-mti-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}
.bar-mti-scale-labels span:nth-child(2) {
  color: var(--color-text-muted);
  font-weight: 500;
}
/* Market tab */
.bar-market-reads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 860px) {
  .bar-market-reads { grid-template-columns: 1fr; }
}
.bar-market-read {
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}
.bar-market-read-key {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}
.bar-market-read-key i { font-size: 0.875rem; }
.bar-market-read h4 {
  margin: 0.625rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-text);
}
.bar-market-read p {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Area overview chart */
.bar-chart-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.bar-chart-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.bar-chart-card-head h3 { font-size: 1.0625rem; }
.bar-chart-period {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  background: var(--color-terracotta-dim);
}
.bar-chart-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}
.bar-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}
.bar-legend-swatch {
  flex-shrink: 0;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.bar-legend-swatch--supply {
  background: var(--color-terracotta);
}
.bar-legend-swatch--demand-line {
  background: var(--color-green);
}
@media (max-width: 640px) {
  .bar-chart-card-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .bar-chart-legend {
    font-size: 0.5625rem;
    gap: 0.25rem 0.625rem;
  }
  .bar-legend-swatch {
    width: 7px;
    height: 7px;
  }
}

.bar-supply-demand-chart {
  position: relative;
  height: 172px;
}
.bar-supply-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-border);
}
.bar-supply-bars--36 { gap: 2px; }
.bar-supply-col {
  flex: 1;
  height: var(--h, 40%);
  min-width: 0;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--color-terracotta) 0%, rgba(224, 116, 59, 0.72) 100%);
}
.bar-demand-line {
  position: absolute;
  inset: 0 0 3px;
  width: 100%;
  height: calc(100% - 3px);
  pointer-events: none;
  overflow: visible;
}
.bar-demand-line polyline {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.bar-chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}
.bar-chart-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 52ch;
}

/* Comps tab */
.bar-comps-stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
@media (min-width: 960px) {
  .bar-comps-stack {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 0.875rem;
    align-items: stretch;
  }
}
.bar-comps-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
}
.bar-comps-card--heatmap {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.bar-comps-card--heatmap .bar-heatmap {
  flex: 1;
  min-width: 0;
}
.bar-comps-card-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1rem;
}
.bar-comps-pill {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  background: var(--color-terracotta-dim);
}
.bar-density-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.bar-density-level {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a5c2e;
  background: #f3e8d8;
}
.bar-density-summary p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.bar-density-map {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-faint);
}
.bar-density-map-img {
  display: block;
  width: 100%;
  height: auto;
}
.bar-density-map-img--desktop {
  display: none;
}
@media (min-width: 960px) {
  .bar-comps-card--density {
    display: flex;
    flex-direction: column;
  }
  .bar-comps-card--density .bar-density-map {
    flex: 1;
  }
  .bar-density-map-img--mobile {
    display: none;
  }
  .bar-density-map-img--desktop {
    display: block;
  }
}

.bar-heatmap {
  --bar-comps-card-pad: clamp(1rem, 2.5vw, 1.25rem);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: thin;
  margin-inline: calc(-1 * var(--bar-comps-card-pad));
  padding-inline: var(--bar-comps-card-pad);
  padding-bottom: 0.25rem;
}
.bar-heatmap::-webkit-scrollbar {
  height: 4px;
}
.bar-heatmap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(20, 23, 20, 0.18);
}
.bar-heatmap-grid {
  display: grid;
  grid-template-columns: 2.5rem repeat(12, 2.375rem);
  gap: 4px;
  width: max-content;
  min-width: 100%;
}
.bar-heatmap-corner { min-height: 0; }
.bar-heatmap-month,
.bar-heatmap-year {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-faint);
}
.bar-heatmap-year {
  justify-content: flex-end;
  padding-right: 0.375rem;
  color: var(--color-text-muted);
}
.bar-heatmap-month {
  justify-content: center;
  padding-bottom: 0.25rem;
}
.bar-heatmap-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  min-height: 2rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(20, 23, 20, 0.82);
}
.bar-heatmap-cell.is-empty {
  background: #e4e2db;
  color: transparent;
}
.bar-heatmap-cell.is-trough {
  background: #e8b4b0;
  color: #6b2e28;
}
.bar-heatmap-cell.is-slow {
  background: #d4bc8e;
  color: #4a3a1f;
}
.bar-heatmap-cell.is-strong {
  background: #9ec9a8;
  color: #1f4a30;
}
.bar-heatmap-cell.is-peak {
  background: #2d7a4d;
  color: #f7f5ef;
}
.bar-heatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}
@media (max-width: 640px) {
  .bar-heatmap-legend {
    gap: 0.375rem 0.625rem;
    font-size: 0.625rem;
  }
}
.bar-heatmap-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.bar-heatmap-legend-swatch {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 999px;
}
.bar-heatmap-legend-swatch.is-empty { background: #e4e2db; }
.bar-heatmap-legend-swatch.is-trough { background: #e8b4b0; }
.bar-heatmap-legend-swatch.is-slow { background: #d4bc8e; }
.bar-heatmap-legend-swatch.is-strong { background: #9ec9a8; }
.bar-heatmap-legend-swatch.is-peak { background: #2d7a4d; }
.bar-pos { color: var(--color-green); }
.bar-neg { color: var(--color-red); }
.bar-table-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-faint);
}

/* ROI */
.bar-roi { border-top: 1px solid var(--color-border); }
.bar-roi-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--color-border-faint);
}
.bar-roi-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.bar-roi-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.bar-roi-row--stress .bar-roi-label,
.bar-roi-row--stress .bar-roi-value {
  color: var(--color-text-faint);
  font-weight: 400;
}

.bar-preview-cta,
.bar-manifest-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (max-width: 640px) {
  .bar-preview-cta,
  .bar-manifest-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .bar-preview-btn,
  .bar-preview-cta .btn-atlas-ghost {
    width: 100%;
  }
}
.bar-preview-btn {
  background: #e0743b;
  border-color: #e0743b;
  color: #fff;
}
.bar-preview-btn:hover {
  background: #c05621;
  border-color: #c05621;
  color: #fff;
}
.bar-preview-btn .btn-price {
  opacity: 0.92;
}
.bar-preview-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

/* ════ SECTION MANIFEST (paper) ═══════════════════════════════ */
.bar-manifest {
  background-color: var(--color-bg);
}
.bar-manifest-list { border-top: 1px solid var(--color-border); }
.bar-manifest-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 3fr) minmax(0, 6fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: baseline;
  padding: clamp(1.25rem, 2.5vw, 1.875rem) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 760px) {
  .bar-manifest-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
.bar-manifest-key {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  letter-spacing: 0.1em;
  color: var(--color-terracotta);
}
.bar-manifest-row h3 {
  font-size: 1.546875rem;
  color: var(--color-text);
}
.bar-manifest-body {
  max-width: 56ch;
}
.bar-manifest-row p,
.bar-manifest-body p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 56ch;
}
.bar-manifest-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.bar-manifest-labels li {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(92, 96, 88, 0.1);
  border: 1px solid rgba(92, 96, 88, 0.28);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ════ INVESTOR USE CASES (dark) ═══════════════════════════════ */
.bar-use-cases {
  background-color: var(--color-bg);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.bar-use-cases .atlas-section-head {
  text-align: center;
}
.bar-use-cases .atlas-section-heading {
  color: var(--color-text);
}
.bar-use-cases .atlas-section-lead {
  margin-inline: auto;
  color: var(--color-text-muted);
}
.bar-use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 56rem;
  margin-inline: auto;
}
@media (max-width: 760px) {
  .bar-use-cases-grid { grid-template-columns: 1fr; }
}
.bar-use-cases-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
@media (max-width: 640px) {
  .bar-use-cases-cta {
    align-items: stretch;
  }

  .bar-use-cases-cta .btn-atlas {
    width: 100%;
  }
}
.bar-use-case {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.bar-use-case h3 {
  margin-top: 1.25rem;
  font-size: clamp(1.4375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--color-text);
}
@media (max-width: 760px) {
  .bar-use-case h3 {
    font-size: 1.625rem;
    line-height: 1.2;
  }
}
.bar-use-case p {
  margin-top: 0.625rem;
  margin-inline: auto;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 22rem;
}

/* ── Use-case evocative visuals (no readable data) ── */
.bar-uc-visual {
  display: flex;
  align-items: stretch;
  width: 70%;
  margin-inline: auto;
  height: clamp(168px, 20vw, 208px);
}
@media (max-width: 760px) {
  .bar-uc-visual { width: 100%; }
}
.uc-mock {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 241, 236, 0.1);
  background: #0f120f;
  overflow: hidden;
}

/* Card 1: market scan — circular radar scope */
.uc-mock-scan { padding: 0; }
.uc-scan-field {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, rgba(242, 241, 236, 0.03), transparent 72%),
    #0a0d0a;
}
.uc-scan-scope {
  position: relative;
  width: min(78%, 9.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 236, 0.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 241, 236, 0.04) 0%, transparent 62%),
    #0c100c;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(242, 241, 236, 0.04);
  overflow: hidden;
}
.uc-scan-scope::before,
.uc-scan-scope::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: rgba(242, 241, 236, 0.07);
  pointer-events: none;
}
.uc-scan-scope::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}
.uc-scan-scope::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}
.uc-scan-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 236, 0.09);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.uc-scan-ring.r1 { width: 34%; height: 34%; }
.uc-scan-ring.r2 { width: 67%; height: 67%; }
.uc-scan-ring.r3 {
  width: 100%;
  height: 100%;
  border-color: rgba(242, 241, 236, 0.16);
}
.uc-scan-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: uc-scan-sweep 4.2s linear infinite;
  pointer-events: none;
}
.uc-scan-sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 40deg,
    color-mix(in srgb, var(--color-terracotta) 8%, transparent) 41deg,
    color-mix(in srgb, var(--color-terracotta) 26%, transparent) 90deg,
    transparent 90.5deg,
    transparent 360deg
  );
}
.uc-scan-sweep::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 50%;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-terracotta) 85%, white) 0%,
    color-mix(in srgb, var(--color-terracotta) 45%, transparent) 55%,
    transparent 100%
  );
  box-shadow: 0 0 6px color-mix(in srgb, var(--color-terracotta) 55%, transparent);
}
.uc-scan-sweep .uc-scan-sweep-trail {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0 50%;
  transform: rotate(-49deg);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-terracotta) 35%, transparent) 0%,
    transparent 100%
  );
  opacity: 0.55;
}
.uc-scan-blip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-terracotta) 90%, white);
  transform: translate(-50%, -50%);
  animation: uc-blip-flash 4.2s linear infinite;
  animation-delay: var(--delay, 0s);
}
.uc-scan-blip::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-terracotta) 45%, transparent);
  opacity: 0;
  animation: uc-blip-ring 4.2s linear infinite;
  animation-delay: var(--delay, 0s);
}
.uc-scan-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(242, 241, 236, 0.55);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 4px rgba(242, 241, 236, 0.2);
}

@keyframes uc-scan-sweep {
  to { transform: rotate(360deg); }
}
@keyframes uc-blip-flash {
  0%, 78%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.85); }
  86%, 92% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
@keyframes uc-blip-ring {
  0%, 78%, 100% { opacity: 0; transform: scale(0.6); }
  86%, 92% { opacity: 0.85; transform: scale(1.4); }
}

@media (prefers-reduced-motion: reduce) {
  .uc-scan-sweep,
  .uc-scan-blip,
  .uc-scan-blip::after {
    animation: none;
  }
  .uc-scan-blip { opacity: 0.75; }
}

/* Card 2: pinned area with inside/outside listings */
.uc-mock-area { padding: 0; }
.uc-field {
  --pin-x: 50%;
  --pin-y: 50%;
  --zone-size: min(68%, 7.5rem);
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(242, 241, 236, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 241, 236, 0.04) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  background-position: center, center;
}
.uc-field-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.uc-field-dot.is-in {
  background: rgba(242, 241, 236, 0.58);
  box-shadow: 0 0 5px rgba(242, 241, 236, 0.18);
}
.uc-field-dot.is-out {
  background: rgba(242, 241, 236, 0.11);
}
.uc-field-zone {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: var(--zone-size);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--color-terracotta) 52%, transparent);
  background: color-mix(in srgb, var(--color-terracotta) 5%, transparent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 100vmax rgba(10, 13, 10, 0.55);
  pointer-events: none;
  z-index: 1;
}
.uc-field-pin {
  position: absolute;
  left: var(--pin-x);
  top: var(--pin-y);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-terracotta);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--color-terracotta) 22%, transparent),
    0 0 16px color-mix(in srgb, var(--color-terracotta) 45%, transparent);
  z-index: 2;
}

/* Card 3: ROI curve — bell shape with a marked sweet spot */
.uc-mock-rates {
  padding: 0.75rem 0.65rem;
  justify-content: center;
}
.uc-wave {
  width: 100%;
  height: 100%;
  display: block;
}
.uc-wave-grid {
  stroke: rgba(242, 241, 236, 0.07);
  stroke-width: 1;
}
.uc-wave-peak-band {
  fill: color-mix(in srgb, var(--color-terracotta) 10%, transparent);
}
.uc-wave-peak-line {
  stroke: color-mix(in srgb, var(--color-terracotta) 50%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.uc-wave-area {
  fill: url(#ucWaveFill);
}
.uc-wave-line {
  fill: none;
  stroke: rgba(242, 241, 236, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.uc-wave-peak-dot {
  fill: var(--color-terracotta);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--color-terracotta) 65%, transparent));
}

/* Card 4: competition bars — one clear leader vs the field */
.uc-mock-comp {
  justify-content: center;
}
.uc-race {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  padding: 0.35rem 0.25rem;
}
.uc-race-benchmark {
  position: absolute;
  left: 58%;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 0;
  border-left: 1px dashed rgba(242, 241, 236, 0.2);
  pointer-events: none;
}
.uc-race-lane {
  position: relative;
  display: block;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(242, 241, 236, 0.06);
  overflow: visible;
}
.uc-race-lane.l1 {
  height: 0.68rem;
}
.uc-race-lane i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}
.uc-race-lane.l1 i {
  width: 88%;
  background: linear-gradient(90deg, color-mix(in srgb, var(--color-terracotta) 35%, transparent), var(--color-terracotta));
  box-shadow: 0 0 12px color-mix(in srgb, var(--color-terracotta) 45%, transparent);
}
.uc-race-lane.l1 i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-terracotta);
  transform: translate(50%, -50%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--color-terracotta) 65%, transparent);
}
.uc-race-lane.l2 i { width: 50%; }
.uc-race-lane.l3 i { width: 42%; }
.uc-race-lane.l4 i { width: 34%; }
.uc-race-lane.l2 i,
.uc-race-lane.l3 i,
.uc-race-lane.l4 i {
  background: linear-gradient(90deg, rgba(242, 241, 236, 0.07), rgba(242, 241, 236, 0.24));
  box-shadow: none;
}

/* ════ SOCIAL PROOF (field notes marquee) ═══════════════════════ */
.field-notes-heading {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 3.75rem);
}
.field-notes-lead {
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.field-notes-marquee {
  display: flex;
  gap: 1.25rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.field-notes-track {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
  animation: field-notes-drift 56s linear infinite;
}
.field-notes-marquee:hover .field-notes-track { animation-play-state: paused; }
.is-marquee-paused .field-notes-track { animation-play-state: paused; }
.field-notes-track .field-note {
  width: clamp(280px, 30vw, 380px);
  flex-shrink: 0;
}
@keyframes field-notes-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 1.25rem)); }
}
@media (prefers-reduced-motion: reduce) {
  .field-notes-marquee { overflow-x: auto; }
  .field-notes-track { animation: none; }
  .field-notes-track[aria-hidden="true"] { display: none; }
}

/* ════ FAQ (paper band, full bleed) ═══════════════════════════ */
.bar-faq {
  background-color: var(--color-bg);
}

/* ════ FINAL CTA EXTRAS ═══════════════════════════════════════ */
.bar-audiences {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233, 231, 223, 0.18);
}
.bar-audiences-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}
.bar-audiences a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(233, 231, 223, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bar-audiences a:hover {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}
@media (max-width: 640px) {
  .bar-audiences-label {
    flex: 1 0 100%;
  }
}
