/* Interactive Brightview product demo */

:root {
  --demo-bg: #f7f3ec;
  --demo-ink: #1c1917;
  --demo-muted: #57534e;
  --demo-accent: #5e1f2b;
  --demo-accent-soft: #f3e6e8;
  --demo-card: #fffdf9;
  --demo-border: #e7e0d4;
  --demo-radius: 16px;
  --demo-shadow: 0 18px 40px rgba(28, 25, 23, 0.08);
}

.demo-app {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(94, 31, 43, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(28, 25, 23, 0.05), transparent 35%),
    var(--demo-bg);
  color: var(--demo-ink);
  font-family: Inter, system-ui, sans-serif;
}

.demo-app--presentation .demo-topbar,
.demo-app--presentation .demo-coachmark {
  display: none;
}

.demo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--demo-border);
  background: rgba(255, 253, 249, 0.85);
  backdrop-filter: blur(8px);
}

.demo-topbar__brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  color: var(--demo-ink);
  text-decoration: none;
}

.demo-topbar__brand span {
  color: var(--demo-accent);
}

.demo-topbar__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.demo-main {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.demo-dashboard .demo-main,
.demo-stage.demo-dashboard {
  width: min(1100px, 100%);
}

.demo-dashboard .stat-grid {
  margin-bottom: 1.25rem;
}

.demo-dashboard .page-header {
  margin-bottom: 1.25rem;
}

.demo-dashboard__feed {
  margin: 0 0 0.25rem;
}

.demo-dashboard__feed h2 {
  margin: 0 0 0.35rem;
  font-family: var(--serif, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.demo-dashboard__feed .section-lead {
  margin: 0 0 0.85rem;
}

.demo-dashboard__feed .card {
  margin-bottom: 0.75rem;
}

.demo-dashboard .demo-actions {
  margin-top: 1rem;
}

.demo-flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.demo-flash--notice {
  background: #ecfdf3;
  color: #166534;
}

.demo-flash--alert {
  background: #fef2f2;
  color: #991b1b;
}

.demo-progress {
  width: min(960px, calc(100% - 2rem));
  margin: 1rem auto 0.75rem;
}

.demo-progress__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.demo-progress__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
  color: var(--demo-muted);
  font-size: 0.8rem;
}

.demo-progress__dot {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--demo-border);
}

.demo-progress__item.is-current,
.demo-progress__item.is-complete {
  color: var(--demo-ink);
}

.demo-progress__item.is-current .demo-progress__dot,
.demo-progress__item.is-complete .demo-progress__dot {
  background: var(--demo-accent);
}

.demo-entry,
.demo-stage {
  animation: demo-fade-up 0.45s ease both;
}

.demo-stage--narrow {
  width: min(640px, 100%);
  margin-inline: auto;
}

.demo-stage--mobile {
  width: min(420px, 100%);
  margin-inline: auto;
}

.demo-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--demo-accent);
  margin: 0 0 0.75rem;
}

.demo-entry__headline,
.demo-stage > h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.demo-entry__lede,
.demo-lede {
  color: var(--demo-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.demo-lede--center {
  text-align: center;
  margin: 1.25rem auto 1.75rem;
  max-width: 42rem;
}

.demo-outcome-closing {
  margin: 2rem auto 2.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--demo-ink);
}

.demo-hint--outcome {
  margin: 0.35rem 0 0;
  text-align: center;
}

.demo-segment-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.demo-variant-preview ul {
  margin: 0.75rem 0;
  padding-left: 1.2rem;
  color: var(--demo-muted);
  line-height: 1.55;
}

.demo-variant-preview ul li + li {
  margin-top: 0.25rem;
}

.demo-entry__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0.25rem;
}

.demo-entry__note,
.demo-hint {
  color: var(--demo-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo-entry__note {
  margin: 0;
}

.demo-hint {
  margin: 0.75rem 0 0;
}

.demo-hint--inline {
  margin-top: 0.9rem;
}

.demo-journey-preview {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0 2.25rem;
  padding: 1.25rem;
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  background: var(--demo-card);
}

.demo-journey-preview p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.4;
}

.demo-journey-preview__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--demo-accent);
  margin-bottom: 0.35rem;
}

.demo-journey-preview__arrow {
  color: var(--demo-muted);
  font-size: 1.5rem;
}

form.button_to {
  margin: 0;
  display: inline;
}

.demo-entry__cta form.button_to,
.demo-actions form.button_to,
.demo-sms-choices form.button_to,
.demo-segment-options form.button_to,
.demo-voice-panel + form.button_to,
.demo-form form.button_to {
  display: block;
  width: 100%;
}

.demo-entry__cta form.button_to {
  width: auto;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.demo-btn:focus-visible,
.demo-link-btn:focus-visible,
.demo-chip:focus-visible {
  outline: 2px solid var(--demo-accent);
  outline-offset: 3px;
}

.demo-btn:hover {
  transform: translateY(-1px);
}

.demo-btn--primary {
  background: var(--demo-accent);
  color: #fff;
}

.demo-btn--secondary {
  background: var(--demo-card);
  border-color: var(--demo-border);
  color: var(--demo-ink);
}

.demo-btn--block {
  width: 100%;
}

.demo-link-btn {
  background: none;
  border: 0;
  color: var(--demo-accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.demo-actions--row {
  margin-top: 1.15rem;
}

.demo-actions--row form.button_to {
  width: auto;
  display: inline;
}

.demo-coachmark {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: #ecfdf3;
  border: 1px solid #a7f3d0;
}

.demo-coachmark p {
  margin: 0;
  color: #166534;
  font-size: 0.95rem;
}

.demo-coachmark__dismiss {
  background: none;
  border: 0;
  color: #166534;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.demo-sign-frame {
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, #ddd4c6, #f4efe6);
  box-shadow: var(--demo-shadow);
  margin: 1.5rem 0;
}

.demo-sign {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid #ebe4d8;
}

.demo-sign__practice {
  font-weight: 600;
  color: var(--demo-accent);
  margin: 0 0 0.5rem;
}

.demo-sign__headline {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  margin: 0 0 0.75rem;
}

.demo-sign__copy,
.demo-sign__fine {
  color: var(--demo-muted);
  line-height: 1.45;
}

.demo-sign__copy {
  margin: 0;
}

.demo-sign__fine {
  margin: 0.65rem 0 0;
}

.demo-sign__qr {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 1.5rem 0 0.5rem;
}

.demo-sign__qr svg {
  width: 200px;
  height: 200px;
  max-width: 70%;
  display: block;
  margin: 0;
  background: #fff;
  border-radius: 8px;
}

.demo-phone {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--demo-shadow);
}

.demo-phone__brand {
  font-weight: 700;
  margin: 0;
}

.demo-phone__sub,
.demo-phone__header p {
  color: var(--demo-muted);
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
}

h1.demo-phone__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.35;
  margin: 1rem 0 1.15rem;
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--demo-muted);
}

.demo-field input {
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #faf7f2;
  color: var(--demo-ink);
}

.demo-context {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f6f1e8;
  color: var(--demo-muted);
  font-size: 0.95rem;
}

.demo-context p {
  margin: 0.15rem 0;
}

.demo-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--demo-muted);
}

.demo-check input {
  margin-top: 0.2rem;
}

.demo-transition {
  text-align: center;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
  animation: demo-fade-up 0.6s ease both;
}

.demo-phone--sms {
  padding: 0;
  overflow: hidden;
}

.demo-sms-header {
  padding: 1rem 1.25rem;
  background: #efe8dc;
  text-align: center;
}

.demo-sms-header p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--demo-muted);
}

.demo-sms-thread {
  padding: 1.25rem;
  min-height: 120px;
}

.demo-sms-bubble {
  max-width: 90%;
  background: #e8f0fe;
  border-radius: 18px 18px 18px 6px;
  padding: 0.9rem 1rem;
  line-height: 1.45;
}

.demo-sms-prompt {
  padding: 0 1.25rem;
  margin: 0 0 0.15rem;
  font-weight: 600;
}

.demo-sms-choices {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem 0.35rem;
}

.demo-chip {
  border: 1px solid var(--demo-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  cursor: pointer;
}

.demo-chip--guided {
  border-color: var(--demo-accent);
  box-shadow: 0 0 0 3px var(--demo-accent-soft);
  font-weight: 600;
}

.demo-phone--sms .demo-hint {
  padding: 0.5rem 1.25rem 1.35rem;
  margin: 0;
}

.demo-demo-label {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #efe8dc;
  color: var(--demo-muted);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.demo-voice-panel {
  margin-bottom: 1.5rem;
}

.demo-voice-panel .demo-link-btn {
  display: inline-block;
  margin-top: 0.9rem;
}

.demo-voice-play {
  width: 100%;
  border: 1px solid var(--demo-border);
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.demo-voice-wave {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 36px;
  margin: 1rem 0;
}

.demo-voice-wave span {
  width: 6px;
  height: 30%;
  border-radius: 999px;
  background: var(--demo-accent);
  animation: demo-wave 1s ease-in-out infinite;
}

.demo-voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 60%; }
.demo-voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 90%; }
.demo-voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 50%; }
.demo-voice-wave span:nth-child(5) { animation-delay: 0.4s; height: 70%; }

.demo-transcript {
  margin-top: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f6f1e8;
  color: var(--demo-muted);
  line-height: 1.5;
}

.demo-processing-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

.demo-processing-list li {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #efe8dc;
  color: var(--demo-muted);
}

.demo-processing-list li.is-active {
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-weight: 600;
}

.demo-processing-list li.is-done {
  background: #ecfdf3;
  color: #166534;
}

.demo-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 1.75rem;
}

.demo-analysis-card {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 1rem;
  display: grid;
  gap: 0.35rem;
}

.demo-analysis-card span {
  color: var(--demo-muted);
  font-size: 0.85rem;
}

.demo-analysis-card strong {
  font-size: 1.1rem;
}

.demo-analysis-card--wide {
  grid-column: 1 / -1;
}

.demo-switch-banner {
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: var(--demo-accent);
  color: #fff;
  font-weight: 600;
  animation: demo-fade-up 0.4s ease both;
}

.demo-highlight-arrival {
  animation: demo-pulse-in 0.7s ease both;
  margin-bottom: 1rem;
}

.demo-feedback-card--new {
  box-shadow: 0 0 0 2px var(--demo-accent), var(--demo-shadow);
}

.demo-detail-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.demo-dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.demo-dl div {
  display: grid;
  gap: 0.2rem;
}

.demo-dl dt {
  font-size: 0.8rem;
  color: var(--demo-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-dl dd {
  margin: 0;
  line-height: 1.5;
}

.demo-sentiment-list {
  padding-left: 1.1rem;
  color: var(--demo-muted);
}

.demo-draft {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-left: 3px solid var(--demo-accent);
  background: #f6f1e8;
  color: var(--demo-ink);
  line-height: 1.55;
}

.demo-detail-grid .card h2 {
  margin-top: 0;
}

.demo-detail-grid .card h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.demo-detail-grid .card > p {
  margin: 0;
  line-height: 1.55;
  color: var(--demo-muted);
}

.demo-pattern-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.demo-pattern-stat {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: 14px;
  padding: 1rem;
}

.demo-pattern-stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: Fraunces, Georgia, serif;
  margin-bottom: 0.25rem;
}

.demo-pattern-stat span {
  color: var(--demo-muted);
  font-size: 0.9rem;
}

.demo-pattern-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 140px;
  margin: 1.5rem 0 2.5rem;
  padding: 1rem 1rem 1.75rem;
  border-radius: 14px;
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
}

.demo-pattern-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--demo-accent), #8a3b49);
  border-radius: 10px 10px 4px 4px;
  position: relative;
}

.demo-pattern-bar span {
  position: absolute;
  bottom: -1.35rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--demo-muted);
}

.demo-pattern-chart + .demo-hint,
.demo-hint--chart {
  margin: 0.35rem 0 1.25rem;
  text-align: center;
}

.demo-recommendation {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
}

.demo-recommendation h2 {
  margin: 0 0 0.65rem;
}

.demo-recommendation > p {
  margin: 0;
  line-height: 1.55;
  color: var(--demo-muted);
}

.demo-recommendation .demo-lede {
  margin: 0.85rem 0 0;
}

.demo-outcome-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.25rem;
}

.demo-outcome-card,
.demo-segment,
.demo-variant-preview {
  background: var(--demo-card);
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  padding: 1.25rem;
}

.demo-segment,
.demo-variant-preview {
  margin-top: 0.75rem;
}

.demo-variant-preview .demo-hint {
  margin-top: 0.85rem;
}

.demo-outcome-card h2,
.demo-segment h2,
.demo-variant-preview h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.demo-outcome-card p,
.demo-variant-preview p {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.5;
}

.demo-scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
  text-align: left;
}

.demo-scenario-choice {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-top: 2px solid var(--demo-accent);
  border-right: 1px solid var(--demo-border);
  border-bottom: 1px solid var(--demo-border);
  border-left: 1px solid var(--demo-border);
  border-radius: 0 0 14px 14px;
  background: var(--demo-card);
}

.demo-scenario-choice__signal {
  width: 2.5rem;
  height: 3px;
  background: var(--demo-accent);
  opacity: 0.55;
}

.demo-scenario-choice__name {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--demo-ink);
}

.demo-scenario-choice__situation,
.demo-scenario-choice__opportunity {
  margin: 0;
  color: var(--demo-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.demo-scenario-choice__opportunity strong {
  color: var(--demo-ink);
  font-weight: 600;
}

.demo-scenario-choice__labels {
  list-style: none;
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.demo-scenario-choice__labels li {
  font-size: 0.82rem;
  color: var(--demo-ink);
  padding-left: 0.85rem;
  position: relative;
}

.demo-scenario-choice__labels li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--demo-accent);
}

.demo-scenario-choice > form.button_to {
  margin-top: auto;
  width: 100%;
  display: block;
}

.demo-scenario-choice .demo-btn {
  width: 100%;
}

.demo-scenario-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.demo-scenario-bar__label {
  margin: 0;
  font-size: 0.88rem;
  color: var(--demo-muted);
}

.demo-gravity {
  text-align: right;
  min-width: 7rem;
}

.demo-gravity__label,
.demo-gravity__trend {
  display: block;
  font-size: 0.78rem;
  color: var(--demo-muted);
}

.demo-gravity__score {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--demo-ink);
}

.demo-dashboard-context {
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

.demo-dashboard-context p {
  margin: 0 0 0.4rem;
  color: var(--demo-ink);
}

.demo-dashboard-context .muted {
  color: var(--demo-muted);
  font-size: 0.92rem;
}

.demo-dashboard .stat-card.is-emphasized {
  border-color: var(--demo-accent);
  box-shadow: 0 0 0 1px var(--demo-accent-soft);
}

.demo-outcome-chain,
.demo-outcome-path ol {
  margin: 0 0 1.75rem;
  padding-left: 1.2rem;
  color: var(--demo-ink);
  line-height: 1.55;
}

.demo-outcome-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem;
}

.demo-outcome-path {
  padding: 1rem 1.1rem;
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  background: #faf7f2;
}

.demo-outcome-path--emphasized {
  border-color: var(--demo-accent);
  background: var(--demo-card);
}

.demo-outcome-path h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.demo-orbit-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 1.75rem;
}

.demo-orbit-labels span {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--demo-ink);
  background: var(--demo-card);
}

.demo-growth {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.15rem;
  align-items: start;
  margin: 0.35rem 0 1.85rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--demo-border);
  border-radius: var(--demo-radius);
  background: var(--demo-card);
}

.demo-growth__copy h2 {
  margin: 0 0 0.45rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.demo-growth__copy p {
  margin: 0 0 0.55rem;
  color: var(--demo-muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.demo-growth__stage {
  min-width: 0;
}

.demo-growth__total {
  margin-top: 0.75rem;
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: var(--demo-accent-soft);
  border: 1px solid #e8d0d5;
}

.demo-growth__total-label {
  display: block;
  font-size: 0.72rem;
  color: var(--demo-accent);
  margin-bottom: 0.1rem;
}

.demo-growth__total-value {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-weight: 500;
  color: var(--demo-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.demo-growth__tree,
.demo-growth__branch {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-growth__tree--root > .demo-growth__node > .demo-growth__card {
  border-color: #d8c4c8;
}

.demo-growth__node {
  position: relative;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-growth__node.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-growth__node.is-active > .demo-growth__card {
  border-color: var(--demo-accent);
  box-shadow: 0 0 0 1px var(--demo-accent-soft);
}

.demo-growth__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--demo-border);
  border-radius: 8px;
  background: #fffdf9;
}

.demo-growth__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.demo-growth__name {
  font-size: 0.92rem;
  color: var(--demo-ink);
  line-height: 1.2;
}

.demo-growth__relation {
  font-size: 0.72rem;
  color: var(--demo-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-growth__amount {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--demo-accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demo-growth__branch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.45rem 0.55rem;
  margin: 0.4rem 0 0.15rem;
  padding: 0.35rem 0 0 0.7rem;
  border-left: 2px solid #e2d7cb;
  position: relative;
}

.demo-growth__branch .demo-growth__node {
  margin: 0;
}

.demo-growth__branch .demo-growth__card {
  padding: 0.4rem 0.55rem;
}

.demo-growth__branch .demo-growth__name {
  font-size: 0.86rem;
}

.demo-growth__branch .demo-growth__amount {
  font-size: 0.8rem;
}

.demo-growth__branch .demo-growth__branch {
  grid-column: 1 / -1;
  margin-top: 0.35rem;
  padding-left: 0.55rem;
}

@keyframes demo-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes demo-pulse-in {
  0% { opacity: 0; transform: translateY(8px) scale(0.98); }
  60% { opacity: 1; transform: translateY(0) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes demo-wave {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

@media (max-width: 720px) {
  .demo-progress__label {
    font-size: 0.7rem;
  }

  .demo-scenario-grid,
  .demo-outcome-paths,
  .demo-growth {
    grid-template-columns: 1fr;
  }

  .demo-growth__total {
    text-align: left;
  }

  .demo-scenario-choice .demo-btn {
    width: 100%;
  }

  .demo-journey-preview,
  .demo-analysis-grid,
  .demo-outcome-grid {
    grid-template-columns: 1fr;
  }

  .demo-journey-preview__arrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-entry,
  .demo-stage,
  .demo-switch-banner,
  .demo-highlight-arrival,
  .demo-transition,
  .demo-voice-wave span,
  .demo-growth__node {
    animation: none !important;
    transition: none !important;
  }

  .demo-growth__node {
    opacity: 1;
    transform: none;
  }

  .demo-btn:hover {
    transform: none;
  }
}
