html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.advisor {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow-x: hidden;
}

.intro-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-top: 0.35rem;
}

.brand-compact {
  display: inline-block;
  text-decoration: none;
}

.brand-compact .logo {
  font-size: 1.7rem;
}

.user-tagline {
  margin: 0.35rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
}

.user-lead {
  margin: 0.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
  max-width: 38rem;
}

.chart-stage {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chart-heading {
  text-align: center;
  pointer-events: none;
  margin-bottom: 0.15rem;
}

.chart-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-mid);
}

.chart-heading h1 {
  margin: 0.1rem 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
}

.chart-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.journey-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
}

.layer-dock {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 10.5rem;
}

.layer-legend {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  width: 100%;
  padding: 0.15rem 0.1rem 0.4rem;
}

.layer-legend-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.layer-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.layer-legend-label {
  margin-right: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 200, 200, 0.55);
}

.layer-sep {
  color: rgba(200, 200, 200, 0.35);
  font-size: 0.85rem;
  user-select: none;
}

.layer-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.12rem 0.05rem;
  margin: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #c8c8c8;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.layer-link:hover {
  color: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

.layer-link.is-on {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.layer-link-gold {
  color: var(--gold-start);
}

.layer-link-gold:hover,
.layer-link-gold.is-on {
  color: var(--gold-mid);
  border-bottom-color: var(--gold-start);
}

.layer-zones,
.layer-grid,
.layer-zone-numbers {
  visibility: visible;
}

.layer-zones {
  pointer-events: auto;
}

.layer-objectives,
.layer-timing,
.layer-business,
.layer-mindset,
.layer-adoption,
.layer-recurring,
.layer-risk {
  visibility: hidden;
  pointer-events: none;
}

.journey-svg.show-objectives .layer-objectives {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-timing .layer-timing {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-business .layer-business {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-mindset .layer-mindset {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-adoption .layer-adoption {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-recurring .layer-recurring {
  visibility: visible;
  pointer-events: auto;
}

.journey-svg.show-risk .layer-risk {
  visibility: visible;
  pointer-events: auto;
}

.curve-objectives {
  opacity: 0;
}

.journey-svg.curve-flat .curve-baseline {
  opacity: 0;
}

.journey-svg.curve-flat .curve-objectives {
  opacity: 1;
}

.curve-churn-risk {
  opacity: 0;
  stroke-dasharray: 28 22;
}

.journey-svg.show-adoption .curve-churn-risk,
.journey-svg.show-recurring .curve-churn-risk {
  opacity: 1;
}

.r4-cycle-arrow {
  fill: none;
  stroke: #c5e0ef;
  stroke-width: 12;
  stroke-linecap: round;
}

.r4-cycle-head {
  fill: #c5e0ef;
}

.tag {
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.tag:focus,
.tag:focus-visible {
  outline: none;
}

.tag-bg {
  stroke-width: 2;
}

.tag-gold .tag-bg {
  fill: var(--gold-start);
  stroke: var(--gold-end);
}

.tag-text {
  font-family: Inter, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  pointer-events: none;
}

.tag-gold .tag-text {
  fill: #fff;
}

.tag-timing .tag-bg,
.tag-business .tag-bg,
.tag-mindset .tag-bg,
.tag-adoption .tag-bg,
.tag-recurring .tag-bg,
.tag-objectives .tag-bg,
.tag-risk .tag-bg {
  fill: var(--gold-start);
  stroke: none;
}

.tag-objectives .tag-bg {
  stroke-width: 0;
  filter: none;
}

.tag-timing .tag-text,
.tag-business .tag-text,
.tag-mindset .tag-text,
.tag-adoption .tag-text,
.tag-recurring .tag-text {
  fill: #0a1a33;
  font-size: 36px;
  font-weight: 700;
}

.tag-objectives .tag-text,
.tag-objectives .tag-sub {
  fill: #0a1a33;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-rendering: geometricPrecision;
}

.obj-num-ring {
  fill: rgba(255, 255, 255, 0.22);
  stroke: #0a1a33;
  stroke-width: 4;
  pointer-events: none;
}

.obj-num {
  fill: #0a1a33;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 50px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  text-rendering: geometricPrecision;
}

.tag-timing:hover .tag-bg,
.tag-timing.is-on .tag-bg,
.tag-business:hover .tag-bg,
.tag-business.is-on .tag-bg,
.tag-mindset:hover .tag-bg,
.tag-mindset.is-on .tag-bg,
.tag-adoption:hover .tag-bg,
.tag-adoption.is-on .tag-bg,
.tag-recurring:hover .tag-bg,
.tag-recurring.is-on .tag-bg,
.tag-objectives:hover .tag-bg,
.tag-objectives.is-on .tag-bg,
.tag-risk:hover .tag-bg,
.tag-risk.is-on .tag-bg {
  fill: var(--gold-mid);
}

.tag-objectives:hover .tag-bg,
.tag-objectives.is-on .tag-bg,
.tag-risk:hover .tag-bg,
.tag-risk.is-on .tag-bg {
  filter: none;
}

.tag-sub {
  font-size: 20px;
  font-weight: 600;
}

.tag-objectives .tag-sub {
  font-size: 34px;
  font-weight: 800;
}

.tag:not(.tag-objectives):not(.tag-risk):hover .tag-bg,
.tag:not(.tag-objectives):not(.tag-risk).is-on .tag-bg {
  filter: brightness(1.08);
}

.risk-fall {
  fill: none;
  stroke: #dc2626;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-gold:hover .tag-bg,
.tag-gold.is-on .tag-bg {
  fill: var(--gold-mid);
  stroke: var(--gold-start);
}

.journey-svg.show-zones .zone-box {
  stroke: rgba(212, 175, 55, 0.55);
}

.zone {
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
  -webkit-tap-highlight-color: rgba(94, 179, 212, 0.28);
}

.zone-box {
  fill: rgba(224, 229, 237, 0.06);
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 3;
  pointer-events: all;
}

.zone-box-commitment {
  fill: rgba(210, 222, 232, 0.05);
}

.zone-box-churn {
  fill: rgba(199, 209, 223, 0.08);
}

.zone-box-loyalty {
  fill: rgba(186, 210, 226, 0.07);
}

.journey-svg .zone-bg {
  fill: #6a6a6a;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  stroke: none;
  stroke-width: 0;
}

.zone-label {
  fill: #6a6a6a;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0.1em;
  pointer-events: none;
  stroke: none;
}

.zone-label-left {
  text-anchor: start;
}

.zone-label-right {
  text-anchor: end;
}

.zone:hover .zone-box,
.zone.is-on .zone-box {
  fill: rgba(90, 168, 204, 0.28);
  stroke: #5eb3d4;
  stroke-width: 3;
}

.midline {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
  stroke-dasharray: 7 10;
}

.vline {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 3;
}

.journey-curve {
  fill: none;
  stroke: #7eb8d8;
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
  filter: drop-shadow(0 1px 3px rgba(126, 184, 216, 0.28));
  transition: opacity 0.45s ease;
}

.axis {
  stroke: #ffffff;
  stroke-width: 14;
  stroke-linecap: square;
}

.axis-head {
  fill: #ffffff;
}

.axis-title {
  fill: #c8c8c8;
  font-family: Inter, Helvetica, sans-serif;
  font-size: 60px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-anchor: middle;
}

.copy {
  fill: rgba(180, 196, 208, 0.45);
  font-family: Inter, Helvetica, sans-serif;
  font-size: 18px;
  text-anchor: end;
}

.callout,
.knowledge {
  position: absolute;
  inset: 0;
  width: auto;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: rgba(8, 24, 45, 0.94);
  border: 1px solid rgba(94, 179, 212, 0.4);
  border-radius: 18px;
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.callout[hidden],
.knowledge[hidden] {
  display: none;
}

.knowledge-kicker,
.callout-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(94, 179, 212, 0.9);
}

.knowledge h2,
.callout h2,
.knowledge-body h2 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.22;
  color: #fff;
}

.knowledge-body,
.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.knowledge-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  margin-top: 0.35rem;
}

.knowledge-section + .knowledge-section {
  margin-top: 1.15rem;
}

.knowledge-body h2[data-note] {
  cursor: pointer;
}

.knowledge-section.is-target h2 {
  color: var(--gold-mid);
}

.knowledge-section.is-dim h2,
.knowledge-section.is-dim p {
  color: rgba(255, 255, 255, 0.32);
}

.knowledge-sub {
  margin: -0.12rem 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  background: rgba(8, 24, 45, 0.98);
}

.callout-close,
.callout-listen {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.callout-listen {
  border-color: rgba(212, 175, 55, 0.55);
  color: var(--gold-mid);
}

.callout-listen:hover,
.callout-listen[aria-pressed="true"] {
  border-color: var(--gold-start);
  color: var(--gold-mid);
  background: rgba(212, 175, 55, 0.12);
}

.callout-listen[hidden] {
  display: none;
}

.model-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.model-note {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 700px) {
  .zone-label {
    font-size: 46px;
  }

  .zone-bg {
    font-size: 72px;
  }

  .chart-stage {
    flex-basis: 38vh;
  }
}
