:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #64716c;
  --soft: #edf3f0;
  --line: #d8e1dd;
  --surface: #f5f7f4;
  --panel: #ffffff;
  --green: #0e7c66;
  --green-dark: #075b4a;
  --blue: #2563a8;
  --red: #b83d3d;
  --amber: #b7791f;
  --violet: #6857a6;
  --shadow: 0 18px 44px rgba(23, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.demo-shell {
  height: 100vh;
  min-height: 0;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.topbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
  padding-left: 132px;
}

.hero-copy {
  flex: 1;
  text-align: center;
}

.brand-mark {
  width: 172px;
  height: 86px;
  margin-top: -4px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: white;
  flex: 0 0 auto;
  overflow: visible;
  padding: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.event-label,
.section-heading p,
.case-kicker,
.source-label,
.case-footer p,
.impact-strip p,
.issue-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(22px, 2.25vw, 32px);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-subline {
  max-width: 960px;
  margin: 5px auto 0;
  color: rgba(244, 247, 239, 0.72);
  font-size: 14px;
  line-height: 1.25;
}

.mode-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.icon-button,
.mode-toggle,
.primary-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.icon-button:hover,
.mode-toggle:hover,
.primary-action:hover {
  transform: translateY(-1px);
  border-color: #aebbb5;
}

.icon-button {
  width: 40px;
  height: 40px;
  font-size: 28px;
  line-height: 1;
}

.mode-toggle {
  min-width: 120px;
  min-height: 40px;
  padding: 0 16px;
  font-weight: 800;
}

.mode-toggle.is-active {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.stage {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
}

.mosaic-panel,
.case-stage {
  min-width: 0;
}

.mosaic-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 34px;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.08;
}

.case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(244, 247, 239, 0.12);
  border-bottom: 1px solid rgba(244, 247, 239, 0.12);
}

.case-card {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px 8px 0;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  box-shadow: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease,
    opacity 170ms ease,
    filter 170ms ease;
}

.case-card:hover {
  transform: translateX(3px);
  border-color: transparent;
  background: rgba(246, 178, 26, 0.06);
  box-shadow: none;
}

.case-card.is-active {
  background: linear-gradient(90deg, rgba(246, 178, 26, 0.18), rgba(246, 178, 26, 0.05));
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(246, 178, 26, 0.12);
}

.case-grid.has-active-case .case-card:not(.is-active) {
  opacity: 0.34;
  filter: grayscale(0.55);
  box-shadow: none;
}

.case-grid.has-active-case .case-card:not(.is-active):hover {
  opacity: 0.72;
  filter: grayscale(0.15);
}

.case-color {
  width: 32px;
  height: 32px;
  min-height: 0;
  border-radius: 50%;
  align-self: center;
  display: grid;
  place-items: center;
  background: rgba(244, 247, 239, 0.08) !important;
  border: 1px solid rgba(244, 247, 239, 0.16);
  color: rgba(244, 247, 239, 0.68);
}

.case-color::after {
  content: counter(case-index, decimal-leading-zero);
  font-size: 11px;
  font-weight: 900;
}

.case-card {
  counter-increment: case-index;
}

.case-grid {
  counter-reset: case-index;
}

.case-card.is-active .case-color {
  background: var(--green) !important;
  border-color: var(--green);
  color: #11150f;
}

.case-card p {
  display: none;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-card strong {
  display: block;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.case-stage.is-cinema-mode {
  display: grid;
  grid-template-columns: minmax(240px, 0.6fr) minmax(560px, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px 12px;
}

.case-stage.is-cinema-mode .case-footer {
  display: none;
}

.case-stage.is-cinema-mode .compact-summary {
  grid-column: 1;
  grid-row: 1;
  min-height: 34px;
  padding: 0 0 4px;
  border-bottom: 0;
  justify-content: flex-start;
}

.case-stage.is-cinema-mode .primary-action {
  display: none;
}

.case-stage.is-cinema-mode .attention-director {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.case-stage.is-cinema-mode .phase-button {
  min-height: 34px;
  border-radius: 8px;
  gap: 7px;
  font-size: 14px;
}

.case-stage.is-cinema-mode .phase-button span {
  width: 22px;
  height: 22px;
  font-size: 11px;
}

.case-stage.is-cinema-mode .story-layout {
  grid-column: 1 / -1;
  grid-row: 2;
}

.case-stage.is-cinema-mode .compact-case-title small {
  display: none;
}

.case-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.compact-summary {
  min-height: 40px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}

.compact-summary .case-kicker {
  flex: 0 0 auto;
}

.compact-case-title {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.compact-case-title span {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.compact-case-title small {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.primary-action {
  min-height: 38px;
  padding: 0 16px;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  font-weight: 850;
  white-space: nowrap;
}

.attention-director {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.phase-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.phase-button span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}

.phase-button:hover {
  transform: translateY(-1px);
  border-color: #aebbb5;
}

.phase-button.is-active {
  background: #f1fbf7;
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 12px 28px rgba(14, 124, 102, 0.14);
}

.phase-button.is-active span {
  background: var(--green);
  color: white;
}

.story-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.12fr) minmax(300px, 0.82fr);
  gap: 14px;
  transition: grid-template-columns 360ms ease;
}

.story-layout.phase-problem {
  grid-template-columns: minmax(420px, 1.16fr) minmax(360px, 0.9fr) minmax(280px, 0.74fr);
}

.story-layout.phase-video {
  grid-template-columns: 1fr;
}

.story-layout.phase-solution {
  grid-template-columns: minmax(240px, 0.58fr) minmax(360px, 0.86fr) minmax(440px, 1.28fr);
}

.problem-view,
.story-view,
.outcome-view {
  min-width: 0;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    opacity 260ms ease,
    border-color 260ms ease,
    background 260ms ease,
    filter 260ms ease;
}

.problem-view {
  justify-content: flex-start;
  padding-top: 22px;
}

.problem-statement {
  margin: 0 0 12px;
  color: white;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}

.story-view {
  padding: 8px;
}

.story-layout.phase-video .problem-view,
.story-layout.phase-problem .story-view,
.story-layout.phase-solution .story-view {
  opacity: 0.76;
  transform: scale(0.985);
}

.story-layout.phase-problem .outcome-view,
.story-layout.phase-video .outcome-view,
.story-layout.phase-solution .problem-view {
  opacity: 0.74;
  transform: scale(0.985);
}

.story-layout.phase-video .problem-view,
.story-layout.phase-video .outcome-view {
  display: none;
}

.story-layout.phase-problem .story-view,
.story-layout.phase-problem .outcome-view,
.story-layout.phase-solution .problem-view,
.story-layout.phase-solution .story-view {
  opacity: 1;
  background: rgba(3, 6, 6, 0.96);
  filter: blur(0.8px) grayscale(0.55) brightness(0.48);
}

.story-layout.phase-problem .outcome-view,
.story-layout.phase-solution .problem-view {
  background: rgba(3, 6, 6, 0.98);
  filter: blur(3.2px) grayscale(0.75) brightness(0.34);
}

.story-layout.phase-problem .story-view,
.story-layout.phase-solution .story-view {
  background: rgba(3, 6, 6, 0.88);
  filter: blur(0.45px) grayscale(0.28) brightness(0.72);
}

.story-layout.phase-problem .case-video,
.story-layout.phase-solution .case-video {
  filter: brightness(1.2) contrast(1.03);
}

.story-layout.phase-video .story-view,
.story-layout.phase-problem .problem-view,
.story-layout.phase-solution .outcome-view {
  opacity: 1;
  transform: scale(1);
  filter: none;
  border-color: #b9e3d8;
  box-shadow: 0 22px 56px rgba(14, 124, 102, 0.18);
}

.story-layout.phase-video .story-view {
  grid-column: 1 / -1;
  padding: 10px;
}

.story-layout.phase-video .case-video {
  filter: none;
}

.story-header,
.ypv-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.story-header h3,
.ypv-header h3 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.08;
}

.story-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.price-pill,
.status-pill,
.video-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 850;
  white-space: nowrap;
}

.price-pill {
  background: #eef4ff;
  color: var(--blue);
}

.video-pill {
  background: #f3efff;
  color: var(--violet);
}

.status-pill {
  background: #fff3df;
  color: var(--amber);
}

.story-layout.is-fixed .status-pill {
  background: #e7f6ef;
  color: var(--green-dark);
}

.demo-video {
  min-height: 0;
  flex: 1 1 auto;
  border-radius: 8px;
  background: #edf3f0;
  border: 1px solid #d6e0dc;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.story-layout.phase-video .demo-video {
  transform: none;
  border-color: var(--green);
  background: #f1fbf7;
  box-shadow: 0 20px 48px rgba(14, 124, 102, 0.18);
}

.story-layout.phase-video .story-view {
  position: relative;
  z-index: 6;
}

.story-layout.phase-video .story-view::before {
  display: none;
}

.browser-shell {
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cfd9d5;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.browser-top {
  height: 34px;
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
}

.browser-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c7d0cc;
}

.browser-top strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.story-frame {
  flex: 1;
  min-height: 0;
  padding: 0;
  display: grid;
}

.video-scene {
  min-height: 100%;
  display: grid;
}

.case-video {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  background: #111815;
  border: 1px solid #26332f;
}

.story-steps {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.story-step {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 10px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
}

.story-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 850;
}

.story-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}

.scene-grid,
.filter-scene,
.compare-scene,
.color-scene,
.option-scene {
  min-height: 100%;
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.scene-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.72fr);
}

.filter-scene,
.color-scene {
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
}

.compare-scene {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-scene {
  grid-template-columns: minmax(240px, 0.9fr) 34px minmax(260px, 1.1fr);
  align-items: center;
}

.mock-listing,
.filter-column,
.result-column,
.compare-card,
.grouped-offer,
.option-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 16px;
}

.mock-listing.large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mock-listing h4,
.filter-column h4,
.result-column h4,
.compare-card h4,
.option-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.15;
}

.mock-listing p,
.result-column p,
.grouped-offer p,
.option-note {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.mock-listing.ghost {
  border-style: dashed;
  opacity: 0.58;
  filter: grayscale(1);
}

.mock-listing.visible {
  border-color: #b9e3d8;
  background: #f1fbf7;
}

.car-visual {
  min-height: 154px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.22)),
    repeating-linear-gradient(135deg, #dce6e2 0 16px, #eff4f1 16px 32px);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  overflow: hidden;
}

.car-body {
  position: relative;
  width: min(76%, 360px);
  height: 82px;
  border-radius: 28px 44px 22px 22px;
  background: #253b4f;
  box-shadow: inset 0 -16px 0 rgba(0, 0, 0, 0.12);
}

.car-body::before {
  content: "";
  position: absolute;
  left: 22%;
  top: -34px;
  width: 42%;
  height: 46px;
  border-radius: 30px 34px 5px 5px;
  background: #3f5970;
}

.car-body::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  bottom: -15px;
  height: 30px;
  background:
    radial-gradient(circle at 0 50%, #101817 0 14px, transparent 15px),
    radial-gradient(circle at 100% 50%, #101817 0 14px, transparent 15px);
}

.car-body span {
  position: absolute;
  left: 27%;
  top: -24px;
  width: 30%;
  height: 28px;
  border-radius: 20px 22px 3px 3px;
  background: #d5edf2;
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal {
  min-height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 12px;
}

.signal span,
.comparison-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal strong,
.comparison-row strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  line-height: 1.12;
}

.signal.problem,
.comparison-row.problem {
  border-color: rgba(184, 61, 61, 0.34);
  background: #fff6f4;
}

.signal.clean {
  border-color: #b9e3d8;
  background: #f1fbf7;
}

.filter-column,
.result-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-pill {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.filter-pill.active {
  border-color: var(--blue);
  color: var(--blue);
  background: #eef4ff;
}

.compare-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.option-card {
  min-height: 258px;
}

.option-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(246, 178, 26, 0.16);
  border: 1px solid rgba(246, 178, 26, 0.34);
  color: var(--amber);
  font-weight: 950;
}

.option-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-token {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: white;
  font-weight: 850;
  line-height: 1;
}

.option-token.is-problem {
  border-color: rgba(184, 61, 61, 0.34);
  background: #fff6f4;
  color: var(--red);
}

.option-token.is-muted {
  color: var(--muted);
}

.option-map-row {
  min-height: 52px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.option-map-row span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 30px;
  border-radius: 999px;
  background: #eef3f1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.comparison-row {
  min-height: 58px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 11px;
}

.paint-chip {
  min-height: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    #6a7170;
}

.paint-chip.blue {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)),
    #365e8d;
}

.duplicates-scene {
  display: grid;
  align-content: center;
  gap: 8px;
}

.duplicate-row {
  min-height: 62px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(120px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.duplicate-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef3f1;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}

.duplicate-row p {
  margin: 0;
  color: var(--muted);
}

.grouped-offer {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-color: #b9e3d8;
  background: #f1fbf7;
}

.grouped-offer strong {
  font-size: 28px;
  line-height: 1.1;
}

.unit-row {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.unit-row span {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background: #55d6b8;
}

.issue-box {
  border-radius: 8px;
  border: 1px solid rgba(184, 61, 61, 0.28);
  background: #fff6f4;
  padding: 14px 16px;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.story-layout.phase-problem .issue-box {
  transform: scale(1.018);
  border-color: rgba(184, 61, 61, 0.58);
  box-shadow: 0 18px 42px rgba(184, 61, 61, 0.16);
}

.issue-box h4 {
  margin: 6px 0 7px;
  color: var(--red);
  font-size: 20px;
  line-height: 1.12;
}

.issue-box p:last-child {
  margin-bottom: 0;
  color: #6f4641;
  line-height: 1.35;
  font-size: 16px;
}

.listing-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.listing-meta span {
  min-height: 36px;
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.equipment-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.equipment-list li {
  min-height: 56px;
  border: 1px solid rgba(246, 178, 26, 0.28);
  border-radius: 8px;
  padding: 9px 11px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 850;
}

.equipment-list li strong,
.equipment-list li span {
  display: block;
}

.equipment-list li strong {
  font-size: 14px;
  line-height: 1.2;
}

.equipment-list li span {
  margin-top: 4px;
  color: rgba(244, 247, 239, 0.62);
  font-size: 12px;
  line-height: 1.25;
}

.equipment-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa6a1;
  flex: 0 0 auto;
}

.equipment-list li.is-problem {
  border-color: rgba(184, 61, 61, 0.42);
  background: #fff6f4;
  color: #7b3733;
}

.equipment-list li.is-problem::before {
  background: var(--red);
}

.verified-data {
  margin: 0;
  display: grid;
  gap: 8px;
  border-radius: 8px;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.story-layout.phase-solution .verified-data {
  transform: scale(1.015);
  background: #f1fbf7;
  box-shadow: 0 18px 42px rgba(14, 124, 102, 0.14);
}

.verified-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.62fr) minmax(0, 1.38fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.verified-row dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.verified-row dd {
  margin: 0;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.22;
}

.verified-row dd.pending {
  color: var(--amber);
}

.story-layout.is-fixed .verified-row dd.pending {
  color: var(--green-dark);
}

.impact-strip {
  margin-top: auto;
  border-radius: 8px;
  background: #edf7f4;
  border: 1px solid #c8e6dd;
  padding: 12px;
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.story-layout.phase-solution .impact-strip {
  transform: scale(1.012);
  border-color: var(--green);
  box-shadow: 0 16px 36px rgba(14, 124, 102, 0.14);
}

.impact-strip strong {
  display: block;
  margin-top: 7px;
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1.22;
}

.case-footer {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  align-items: center;
  gap: 20px;
  padding: 10px 14px;
  background: rgba(3, 6, 6, 0.96);
  border: 1px solid rgba(246, 178, 26, 0.42);
  color: white;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(246, 178, 26, 0.1);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
}

.story-layout.phase-solution + .case-footer {
  transform: translateY(-2px);
}

.case-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.case-footer strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.28;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: #55d6b8;
  border-radius: inherit;
  transition: width 120ms linear;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 26px;
    white-space: normal;
  }

  .topbar,
  .case-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .demo-shell {
    padding: 12px;
  }

  h1 {
    font-size: 32px;
  }

  .brand-lockup {
    align-items: flex-start;
    padding-left: 0;
  }

  .brand-mark {
    width: 132px;
    height: 66px;
  }

  .mode-controls {
    width: 100%;
  }

  .mode-toggle {
    flex: 1;
  }

  .case-grid,
  .story-steps,
  .scene-grid,
  .filter-scene,
  .compare-scene,
  .color-scene,
  .option-scene,
  .listing-meta,
  .case-footer {
    grid-template-columns: 1fr;
  }

  .option-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .compact-case-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .compact-case-title span,
  .compact-case-title small {
    white-space: normal;
  }

  .story-header,
  .ypv-header {
    flex-direction: column;
  }

  .demo-video {
    min-height: 0;
  }

  .story-frame {
    min-height: 420px;
  }

  .duplicate-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .duplicate-row p {
    grid-column: 2;
  }

  .verified-row {
    grid-template-columns: 1fr;
  }
}

/* AutosBuzz dark tech theme inspired by the reference artwork. */
:root {
  --ink: #f4f7ef;
  --muted: #aeb8b2;
  --soft: rgba(244, 247, 239, 0.08);
  --line: rgba(255, 185, 30, 0.2);
  --surface: #050706;
  --panel: rgba(10, 16, 16, 0.78);
  --green: #f6b21a;
  --green-dark: #f6b21a;
  --blue: #74b7ff;
  --red: #ff796f;
  --amber: #f6b21a;
  --violet: #c6b7ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

body {
  background:
    linear-gradient(
      90deg,
      rgba(5, 7, 6, 0.84) 0 16%,
      rgba(5, 7, 6, 0.985) 25% 76%,
      rgba(5, 7, 6, 0.76) 88% 100%
    ),
    url("./assets/style-reference.png") center / cover no-repeat;
  color: var(--ink);
}

.demo-shell {
  position: relative;
  background:
    radial-gradient(circle at 34% 36%, rgba(246, 178, 26, 0.11), transparent 26%),
    linear-gradient(115deg, rgba(246, 178, 26, 0.22) 0 6%, transparent 6.2%),
    linear-gradient(103deg, transparent 0 76%, rgba(18, 31, 36, 0.76) 76.2% 100%);
}

.demo-shell::before,
.demo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.demo-shell::before {
  background:
    linear-gradient(103deg, transparent 0 7%, rgba(246, 178, 26, 0.95) 7.1% 8.2%, transparent 8.3%),
    linear-gradient(103deg, transparent 0 82%, rgba(246, 178, 26, 0.16) 82.1% 82.8%, transparent 82.9%);
  opacity: 0.9;
}

.demo-shell::after {
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, transparent 88%);
  opacity: 0.28;
}

.demo-shell > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
}

h1 {
  color: white;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.48);
}

.event-label,
.section-heading p,
.case-kicker,
.source-label,
.case-footer p,
.impact-strip p,
.issue-label {
  color: rgba(244, 247, 239, 0.68);
}

.icon-button,
.mode-toggle,
.primary-action,
.phase-button,
.case-card,
.problem-view,
.story-view,
.outcome-view,
.mock-listing,
.filter-column,
.result-column,
.compare-card,
.grouped-offer,
.option-card {
  background: rgba(8, 13, 13, 0.76);
  border-color: rgba(244, 247, 239, 0.16);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.icon-button:hover,
.mode-toggle:hover,
.primary-action:hover,
.phase-button:hover,
.case-card:hover {
  border-color: rgba(246, 178, 26, 0.62);
}

.primary-action {
  background: var(--green);
  border-color: var(--green);
  color: #10140f;
  box-shadow: 0 16px 34px rgba(246, 178, 26, 0.22);
}

.mode-toggle.is-active,
.phase-button.is-active {
  background: rgba(246, 178, 26, 0.14);
  border-color: var(--green);
  color: #ffd66d;
  box-shadow: 0 16px 38px rgba(246, 178, 26, 0.18);
}

.phase-button span,
.phase-button.is-active span {
  background: var(--green);
  color: #10140f;
}

.case-card {
  box-shadow: none;
}

.case-card.is-active {
  background: rgba(246, 178, 26, 0.1);
  border-color: var(--green);
  box-shadow:
    inset 0 0 0 1px rgba(246, 178, 26, 0.16),
    0 10px 24px rgba(246, 178, 26, 0.08);
}

.case-card p,
.compact-case-title small,
.story-step p,
.mock-listing p,
.result-column p,
.grouped-offer p,
.duplicate-row p,
.option-note {
  color: rgba(244, 247, 239, 0.68);
}

.case-grid.has-active-case .case-card:not(.is-active) {
  opacity: 0.24;
  filter: grayscale(0.8);
}

.compact-summary {
  border-bottom-color: rgba(244, 247, 239, 0.16);
}

.story-layout.phase-video .story-view,
.story-layout.phase-problem .problem-view,
.story-layout.phase-solution .outcome-view {
  border-color: rgba(246, 178, 26, 0.72);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(246, 178, 26, 0.12) inset;
}

.demo-video {
  background: rgba(8, 13, 13, 0.78);
  border-color: rgba(246, 178, 26, 0.2);
}

.story-layout.phase-video .demo-video {
  background: rgba(246, 178, 26, 0.08);
  border-color: rgba(246, 178, 26, 0.76);
  box-shadow: 0 22px 52px rgba(246, 178, 26, 0.16);
}

.browser-shell,
.browser-top {
  background: rgba(5, 8, 8, 0.9);
  border-color: rgba(244, 247, 239, 0.14);
}

.browser-top strong {
  color: rgba(244, 247, 239, 0.62);
}

.case-footer {
  background: rgba(3, 6, 6, 0.96);
  border-color: rgba(246, 178, 26, 0.42);
}

.impact-strip {
  background: rgba(246, 178, 26, 0.1);
  border-color: rgba(246, 178, 26, 0.34);
}

.impact-strip strong {
  color: #ffd66d;
}

.issue-box {
  background: rgba(255, 121, 111, 0.08);
  border-color: rgba(255, 121, 111, 0.28);
}

.story-layout.phase-problem .issue-box {
  border-color: rgba(255, 121, 111, 0.72);
  box-shadow: 0 18px 42px rgba(255, 121, 111, 0.1);
}

.issue-box h4 {
  color: #ff9a90;
}

.issue-box p:last-child {
  color: rgba(244, 247, 239, 0.72);
}

.listing-meta span,
.filter-pill,
.signal,
.comparison-row,
.option-token,
.option-map-row {
  background: rgba(244, 247, 239, 0.08);
  border-color: rgba(244, 247, 239, 0.13);
  color: var(--ink);
}

.option-map-row span {
  background: rgba(246, 178, 26, 0.14);
  color: #ffd66d;
}

.equipment-list li {
  background: rgba(246, 178, 26, 0.08);
  border-color: rgba(246, 178, 26, 0.3);
  color: rgba(244, 247, 239, 0.72);
}

.equipment-list li.is-problem,
.signal.problem,
.comparison-row.problem,
.option-token.is-problem {
  background: rgba(255, 121, 111, 0.1);
  border-color: rgba(255, 121, 111, 0.36);
  color: #ffb0a8;
}

.signal.clean,
.mock-listing.visible,
.grouped-offer,
.option-map-row {
  background: rgba(246, 178, 26, 0.1);
  border-color: rgba(246, 178, 26, 0.34);
}

.verified-row {
  border-bottom-color: rgba(244, 247, 239, 0.14);
}

.verified-row dt {
  color: rgba(244, 247, 239, 0.62);
}

.verified-row dd.pending {
  color: #ffd66d;
}

.price-pill,
.status-pill,
.video-pill {
  background: rgba(246, 178, 26, 0.16);
  color: #ffd66d;
}

.progress-track {
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span,
.unit-row span {
  background: var(--green);
}

/* Compact problem focus: a short diagnosis plus the revenue takeaway. */
.story-layout.phase-problem {
  grid-template-columns: minmax(360px, 0.92fr) minmax(380px, 0.98fr) minmax(220px, 0.54fr);
}

.story-layout.phase-problem .problem-view {
  align-self: start;
  gap: 9px;
  padding: 14px;
}

.problem-statement {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.12;
}

.issue-box {
  padding: 12px 14px;
}

.story-layout.phase-problem .issue-box {
  transform: none;
  box-shadow: 0 12px 30px rgba(255, 121, 111, 0.08);
}

.issue-box h4 {
  margin: 5px 0 7px;
  font-size: 20px;
}

.issue-box p:last-child {
  font-size: 15px;
  line-height: 1.32;
}

.equipment-list li.revenue-strip {
  min-height: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 10px 12px;
  background: rgba(246, 178, 26, 0.08);
  border-color: rgba(246, 178, 26, 0.36);
  color: var(--ink);
}

.equipment-list li.revenue-strip::before {
  grid-column: 1;
  width: 7px;
  height: 7px;
  margin-top: 2px;
  background: var(--ink);
}

.equipment-list li.revenue-strip strong {
  grid-column: 2;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.16;
}

.equipment-list li.revenue-strip .revenue-areas {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-start;
  margin: 8px 0 0;
  color: inherit;
}

.equipment-list li.revenue-strip .revenue-line {
  display: block;
  margin-top: 2px;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
}

.story-layout.phase-problem .equipment-list li.revenue-strip .revenue-line {
  white-space: nowrap;
}

.equipment-list li.revenue-strip .revenue-emphasis {
  display: inline;
  margin: 0;
  color: #ffd66d;
  font-size: inherit;
  line-height: inherit;
  text-shadow: 0 0 18px rgba(246, 178, 26, 0.28);
}

.equipment-list li.revenue-strip .revenue-area {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(246, 178, 26, 0.13);
  border: 1px solid rgba(246, 178, 26, 0.24);
  color: #ffd66d;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .case-stage.is-cinema-mode {
    grid-template-columns: 1fr;
  }

  .case-stage.is-cinema-mode .compact-summary,
  .case-stage.is-cinema-mode .attention-director,
  .case-stage.is-cinema-mode .story-layout {
    grid-column: 1;
  }

  .case-stage.is-cinema-mode .attention-director {
    grid-row: 2;
  }

  .case-stage.is-cinema-mode .story-layout {
    grid-row: 3;
  }

  .story-layout.phase-problem {
    grid-template-columns: 1fr;
  }

  .story-layout.phase-problem .problem-view {
    align-self: stretch;
  }

  .equipment-list li.revenue-strip {
    grid-template-columns: 7px 1fr;
    align-items: flex-start;
  }

  .equipment-list li.revenue-strip .revenue-areas {
    grid-column: 2;
    justify-content: flex-start;
  }
}

/* Solution focus: show the YPV correction, then the business outcome. */
.story-layout.phase-solution .outcome-view {
  align-self: start;
  gap: 12px;
  padding: 14px;
}

.story-layout.phase-solution .verified-data {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: rgba(246, 178, 26, 0.06);
  border: 1px solid rgba(246, 178, 26, 0.28);
  box-shadow: none;
  transform: none;
}

.resolved-summary {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.24;
  font-weight: 850;
}

.method-preview-summary {
  color: rgba(244, 247, 239, 0.78);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 850;
}

.method-preview-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  border: 1px solid rgba(246, 178, 26, 0.22);
  background: rgba(246, 178, 26, 0.07);
  padding: 8px 10px;
}

.method-preview-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(246, 178, 26, 0.16);
  color: #ffd66d;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
}

.method-preview-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
}

.resolved-row {
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) 28px minmax(0, 1.08fr);
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(244, 247, 239, 0.13);
  background: rgba(244, 247, 239, 0.06);
  padding: 8px 10px;
}

.resolved-before {
  color: #ffaaa3;
  font-size: 14px;
  line-height: 1.12;
  font-weight: 850;
}

.resolved-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(246, 178, 26, 0.18);
  color: #ffd66d;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.resolved-row strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.12;
}

.story-layout.phase-solution .impact-strip {
  margin-top: 0;
}

.story-layout.phase-solution .impact-strip strong {
  font-size: 15px;
  line-height: 1.18;
}
