.chx {
  --chx-surface: #fff;
  --chx-ink: #1d1d1f;
  --chx-muted: #62666d;
  --chx-line: #d8dadd;
  --chx-navy: #273752;
  --chx-navy-soft: #e9eff8;
  --chx-warm: #c7682c;
  --chx-warm-soft: #f8e9dc;
  --chx-good: #2f7d5b;
  --chx-blue: #0071e3;
  --chx-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  box-sizing: border-box;
  color: var(--chx-ink);
  font-family: inherit;
}
.chx *, .chx *::before, .chx *::after { box-sizing: border-box; }
.chx button { font-family: inherit; }
.chx :focus-visible { outline: 2px solid var(--chx-blue); outline-offset: 3px; }

/* Hero: the full-size message keeps the dominant column; the motion card supports it. */
.hero {
  grid-template-columns: minmax(0, 1.34fr) minmax(22rem, .66fr) !important;
  grid-template-rows: auto auto !important;
  gap: 2.25rem clamp(2rem, 4vw, 4.5rem) !important;
}
.hero-copy { max-width: 72rem !important; }
.hero-visual {
  display: flex !important;
  grid-column: 2 !important;
  grid-row: 1 / 3 !important;
  align-self: center;
  justify-content: flex-end;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.chx-morph {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 400px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--chx-line);
  border-radius: 1.25rem;
  background: var(--chx-surface);
  box-shadow: 0 2rem 4rem -2.5rem rgba(29, 29, 31, .28);
}
.chx-morph-top { display: flex; height: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chx-dots { display: flex; gap: 6px; }
.chx-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--chx-line); }
.chx-morph-label { position: relative; height: 14px; flex: 1; }
.chx-morph-label span { position: absolute; top: 0; right: 0; font: 500 12px/14px var(--chx-mono); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.chx-lbl-before { color: var(--chx-warm); animation: chx-lbl-before 10.5s infinite; }
.chx-lbl-after { color: var(--chx-good); opacity: 0; animation: chx-lbl-after 10.5s infinite; }
.chx-steps { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.chx-steps li {
  display: flex;
  max-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px dashed var(--chx-line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 24px;
  white-space: nowrap;
  animation: chx-step 10.5s calc(var(--i) * .26s) infinite;
}
.chx-steps .n { width: 22px; flex: none; color: var(--chx-warm); font: 500 12px var(--chx-mono); }
.chx-steps .t { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.chx-steps .tm { flex: none; color: var(--chx-muted); font: 400 12px var(--chx-mono); }
.chx-tile {
  position: absolute;
  inset: 54px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px;
  border-radius: 14px;
  background: var(--chx-navy-soft);
  opacity: 0;
  transform: scale(.96);
  animation: chx-tile 10.5s infinite;
}
.chx-tile-head { display: flex; align-items: center; justify-content: space-between; }
.chx-tile-head h4 { margin: 0; color: var(--chx-ink); font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.chx-live { display: inline-flex; align-items: center; gap: 6px; color: var(--chx-good); font: 500 12px var(--chx-mono); letter-spacing: .08em; text-transform: uppercase; }
.chx-live::before { width: 7px; height: 7px; border-radius: 50%; background: var(--chx-good); content: ""; }
.chx-bars { display: flex; min-height: 110px; flex: 1; align-items: flex-end; gap: 10px; }
.chx-bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--chx-navy); opacity: .9; transform: scaleY(.05); transform-origin: bottom; animation: chx-bar 10.5s calc(var(--i) * .08s) infinite; }
.chx-axis { display: flex; gap: 10px; color: var(--chx-muted); font: 400 12px var(--chx-mono); }
.chx-axis span { flex: 1; text-align: center; }
.chx-tile-foot { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid var(--chx-line); color: var(--chx-muted); font: 400 12px var(--chx-mono); }
@keyframes chx-step {
  0%, 24.8% { max-height: 40px; margin-top: 0; padding-top: 7px; padding-bottom: 7px; border-width: 1px; opacity: 1; transform: none; }
  29.5%, 94% { max-height: 0; margin-top: -7px; padding-top: 0; padding-bottom: 0; border-width: 0; opacity: 0; transform: translateX(24px); }
  99%, 100% { max-height: 40px; margin-top: 0; padding-top: 7px; padding-bottom: 7px; border-width: 1px; opacity: 1; transform: none; }
}
@keyframes chx-tile { 0%,44% { opacity:0; transform:scale(.96) } 50%,93% { opacity:1; transform:none } 97%,100% { opacity:0; transform:scale(.96) } }
@keyframes chx-bar { 0%,46% { transform:scaleY(.05) } 54%,92% { transform:scaleY(1) } 96%,100% { transform:scaleY(.05) } }
@keyframes chx-lbl-before { 0%,42% { opacity:1 } 44%,96% { opacity:0 } 98%,100% { opacity:1 } }
@keyframes chx-lbl-after { 0%,45% { opacity:0 } 47%,93% { opacity:1 } 95%,100% { opacity:0 } }

/* Journey: one fixed desktop frame with a changing drawing and copy. */
.stage-panel {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) !important;
  gap: clamp(2.5rem, 5vw, 5rem) !important;
  min-height: 35rem !important;
  align-items: center !important;
}
.journey-visual { width: 100%; }
.stage-copy { display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; min-width: 0; }
.chx-journey-fig { width: 100%; max-width: 520px; margin: 0; }
.chx-sys { aspect-ratio: 4 / 3; padding: 12px; border: 1px solid var(--chx-line); border-radius: 1.25rem; background: var(--chx-surface); }
.chx-sys svg { display: block; width: 100%; height: 100%; }
.chx-sys svg g.chx-layer { transition: opacity .45s ease; }
.chx-wk { animation: chx-march 1.4s linear infinite; }
.chx-journey-cap { margin-top: 12px; color: var(--chx-muted); font: 400 13px var(--chx-mono); line-height: 1.5; }
.chx-journey-cap b { color: var(--chx-warm); font-weight: 600; }
@keyframes chx-march { to { stroke-dashoffset: -16; } }

/* DEPTH: the gauge replaces a second recommendation card and drives the offer tabs below. */
.depth-explorer { display: grid; grid-template-columns: minmax(17rem, 19rem) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: stretch; }
.depth-gauge {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--chx-line);
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #f2f6fc 0%, #dce5f2 31%, #a5b3c8 58%, #52627f 79%, #273752 100%);
}
.chx-surface-line { position: absolute; top: 0; right: 0; left: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--chx-blue) 0 6px, transparent 6px 14px); opacity: .28; }
.chx-lvl {
  position: absolute;
  left: 0;
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  border: 0;
  border-top: 1px dashed rgba(29, 29, 31, .25);
  background: transparent;
  color: var(--chx-ink);
  text-align: left;
  cursor: pointer;
  opacity: .5;
  transition: opacity .25s ease;
}
.chx-lvl b { font-size: 18px; letter-spacing: .02em; }
.chx-lvl small { font: 400 12px var(--chx-mono); opacity: .9; }
.chx-lvl.chx-deep { border-top-color: rgba(255,255,255,.38); color: #fff; }
.chx-lvl.is-active, .chx-lvl:focus-visible { opacity: 1; }
.chx-sonar { position: absolute; top: 15%; left: 50%; width: 46px; height: 46px; margin-left: -23px; pointer-events: none; transition: top .9s cubic-bezier(.3,1.3,.5,1); }
.chx-sonar i { position: absolute; inset: 14px; border-radius: 50%; background: var(--chx-blue); box-shadow: 0 0 0 4px rgba(0,113,227,.25); }
.chx-sonar::before, .chx-sonar::after { position: absolute; inset: 0; border: 2px solid var(--chx-blue); border-radius: 50%; content: ""; opacity: 0; animation: chx-ping 2.2s infinite ease-out; }
.chx-sonar::after { animation-delay: 1.1s; }
@keyframes chx-ping { 0% { opacity:.75; transform:scale(.4) } 100% { opacity:0; transform:scale(1.8) } }
.depth-explorer .help-selector { min-height: 500px; margin: 0; display: flex; flex-direction: column; justify-content: center; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-copy { grid-column: 1 !important; grid-row: 1 !important; }
  .hero-visual { grid-column: 1 !important; grid-row: 2 !important; justify-content: flex-start; }
  .hero-choices { grid-column: 1 !important; grid-row: 3 !important; }
  .chx-morph { max-width: 520px; }
}
@media (max-width: 900px) {
  .stage-panel, .depth-explorer { grid-template-columns: 1fr !important; }
  .stage-panel { min-height: 0 !important; align-items: start !important; }
  .chx-journey-fig { max-width: 600px; }
  .depth-gauge { min-height: 380px; }
  .depth-explorer .help-selector { min-height: 0; }
}
@media (max-width: 620px) {
  .chx-morph { height: 390px; padding: 16px; }
  .chx-tile { inset: 50px 16px 16px; }
  .chx-steps li { font-size: 12px; }
  .chx-tile-foot { flex-direction: column; gap: 4px; }
  .depth-gauge { min-height: 360px; }
  .chx-lvl { padding-inline: 13px; }
  .chx-lvl small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .chx-morph * { animation: none !important; }
  .chx-tile { opacity: 1; transform: none; }
  .chx-bars span { transform: none; }
  .chx-lbl-before { opacity: 0; }
  .chx-lbl-after { opacity: 1; }
  .chx-wk, .chx-sonar::before, .chx-sonar::after { animation: none; }
  .chx-sys svg g.chx-layer, .chx-sonar { transition: none; }
}
