/* ===== Chase × Ape Water — In-Branch Concept Demo ===== */

:root {
  --ink: oklch(0.18 0.012 260);
  --ink-2: oklch(0.32 0.012 260);
  --ink-3: oklch(0.52 0.012 260);
  --ink-4: oklch(0.72 0.008 260);
  --line: oklch(0.90 0.008 260);
  --line-2: oklch(0.94 0.006 260);
  --paper: oklch(0.985 0.004 90);
  --paper-2: oklch(0.965 0.006 85);

  /* === Chase brand palette === */
  --chase-blue: #117ACA;           /* Chase signature mid-blue (matches the chase-logo.svg fill) */
  --chase-navy: #0F2659;           /* Sapphire navy — deep authority */
  --chase-navy-2: #143075;         /* Slightly lifted navy for gradients */
  --chase-gold: #E5C887;           /* Sapphire Reserve gold accent */
  --chase-gold-2: #C99845;         /* Deeper gold for ink-on-light */

  /* Aliases for legacy var names — now mapped to Chase brand */
  --primary: var(--chase-blue);
  --primary-ink: var(--chase-navy);
  --primary-tint: oklch(0.95 0.04 245);
  --accent: var(--chase-gold);
  --accent-ink: var(--chase-gold-2);
  --good: oklch(0.62 0.13 155);
  --can-blue: oklch(0.46 0.18 248);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Geist", "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: oklch(0.94 0.008 260);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Editorial serif used sparingly */
.serif {
  font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ===== Stage shell — desktop chrome ===== */
.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background:
    radial-gradient(1200px 700px at 70% -10%, oklch(0.92 0.04 258) 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 90%, oklch(0.95 0.02 80) 0%, transparent 70%),
    oklch(0.96 0.006 260);
}

@media (min-width: 980px) {
  .stage {
    grid-template-columns: minmax(260px, 320px) 1fr minmax(360px, 440px);
    gap: 0;
  }
}

.stage__rail {
  display: none;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  background: oklch(0.98 0.004 90);
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (min-width: 980px) { .stage__rail { display: block; } }

.stage__phone {
  display: grid;
  place-items: center;
  padding: 28px 16px;
  min-height: 100vh;
}

.stage__overlay {
  display: none;
  border-left: 1px solid var(--line);
  background: oklch(0.99 0.003 90);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
@media (min-width: 980px) { .stage__overlay { display: block; } }

/* ===== MOBILE-FULLSCREEN MODE ===== */
.stage[data-mode="mobile"] { grid-template-columns: 1fr; }
.stage[data-mode="mobile"] .stage__rail,
.stage[data-mode="mobile"] .stage__overlay { display: none; }
.stage[data-mode="mobile"] .stage__phone { padding: 0; }
.stage[data-mode="mobile"] .phone { width: 100vw; height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
.stage[data-mode="mobile"] .phone__screen { border-radius: 0; }
.stage[data-mode="mobile"] .phone__notch { display: none; }
.stage[data-mode="mobile"] .phone__chrome { display: none; }

/* ===== Phone frame ===== */
.phone {
  width: 393px;
  height: 820px;
  border-radius: 48px;
  background: oklch(0.18 0.008 260);
  padding: 12px;
  box-shadow:
    0 30px 60px -20px oklch(0.18 0.05 260 / 0.35),
    0 8px 20px -8px oklch(0.18 0.03 260 / 0.20),
    inset 0 0 0 1px oklch(0.30 0.01 260);
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: oklch(0.10 0.005 260);
  border-radius: 14px;
  z-index: 5;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 38px;
  background: var(--paper);
  overflow: hidden;
  position: relative;
}
.phone__chrome {
  position: absolute;
  inset: -28px -8px auto auto;
  display: flex;
  gap: 6px;
  align-items: center;
  font: 500 10px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.phone__chrome b { color: var(--ink); font-weight: 500; }

/* iOS status bar */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 6px;
  font: 600 13px/1 "Geist", system-ui;
  color: var(--ink);
}
.statusbar__icons { display: flex; gap: 5px; align-items: center; }
.statusbar__icons svg { display: block; }

/* ===== Screen scaffold ===== */
.screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--paper);
}
.screen__top {
  padding: 6px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.screen__back {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.15s;
}
.screen__back:hover { background: var(--line-2); }
.screen__back:disabled { opacity: 0; pointer-events: none; }

.progress {
  flex: 1;
  display: flex;
  gap: 4px;
  align-items: center;
}
.progress__dot {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s;
}
.progress__dot.is-done { background: var(--chase-blue); }
.progress__dot.is-active { background: var(--chase-navy); }

.screen__step {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
}

.screen__body {
  flex: 1;
  padding: 28px 24px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.screen__body::-webkit-scrollbar { width: 0; }

.screen__cta {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--paper) 70%, transparent);
}

/* ===== Question content ===== */
.qkicker {
  font: 500 11px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.qkicker .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--primary);
}
.qtitle {
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 8px;
  text-wrap: balance;
}
.qsub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0 0 22px;
}

/* ===== Option pills ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 500 15px/1.3 "Geist", system-ui;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.opt:hover { border-color: var(--chase-blue); }
.opt[data-selected="true"] {
  border-color: var(--chase-blue);
  background: var(--primary-tint);
  box-shadow: 0 0 0 1px var(--chase-blue), 0 4px 16px -8px rgba(17, 122, 202, 0.35);
}
.opt__check {
  width: 20px; height: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.opt[data-selected="true"] .opt__check {
  border-color: var(--chase-blue);
  background: var(--chase-blue);
}
.opt[data-selected="true"] .opt__check::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--paper);
}
.opt[data-multi="true"] .opt__check { border-radius: 5px; }
.opt[data-multi="true"][data-selected="true"] .opt__check::after { border-radius: 1px; }
.opt__text { flex: 1; display: block; }
.opt__hint {
  display: block;
  font: 400 12px/1.3 "Geist", system-ui;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ===== CTA pill — Chase Sapphire palette ===== */
.cta {
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--chase-blue);
  color: var(--paper);
  font: 500 15px/1 "Geist", system-ui;
  letter-spacing: -0.005em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s;
  box-shadow: 0 8px 24px -10px rgba(15, 38, 89, 0.55);
}
.cta:hover {
  transform: translateY(-1px);
  background: var(--chase-navy-2);
}
.cta:disabled {
  background: var(--line);
  color: var(--ink-3);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.cta--primary { background: var(--chase-blue); color: white; }
.cta--accent { background: var(--chase-gold); color: var(--chase-navy); }
.cta--ghost { background: transparent; color: var(--chase-navy); border: 1px solid var(--chase-blue); box-shadow: none; }
.cta--ghost:hover { background: var(--primary-tint); border-color: var(--chase-navy); }

.cta__arrow { transition: transform 0.2s; }
.cta:hover .cta__arrow { transform: translateX(3px); }

/* ===== Hero ===== */
.hero {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: linear-gradient(180deg, oklch(0.97 0.01 258) 0%, var(--paper) 35%);
}
.hero__brand {
  padding: 16px 22px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  row-gap: 4px;
}
.hero__lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}
.hero__logo {
  height: 16px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.hero__lockup-x {
  font: 400 16px/1 "Instrument Serif", Georgia, serif;
  color: var(--ink-3);
  font-style: italic;
  margin: 0 2px;
}
.hero__lockup-ape {
  font: 500 13px/1 "Geist Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.hero__branch {
  font: 500 9.5px/1 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 380px) {
  .hero__branch { display: none; } /* extra-narrow phones — drop the branch label rather than overlap */
}
.hero__can {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0 24px;
}
.hero__can img {
  max-height: 56vh;
  max-width: 70%;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px oklch(0.32 0.14 258 / 0.25));
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero__copy {
  padding: 0 24px 8px;
  text-align: center;
}
.hero__eyebrow {
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.hero__h {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 10px;
}
.hero__h em {
  font-style: normal;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.hero__sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}
.hero__rules {
  font: 400 10px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.05em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-top: 12px;
  text-align: center;
}

/* ===== Toast — slim ribbon, milestone-only ===== */
.toast {
  background: rgba(15, 38, 89, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--paper);
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  font: 500 11.5px/1 "Geist", system-ui;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: toastIn 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2), toastOut 0.4s ease-in 1.2s forwards;
  box-shadow: 0 4px 14px -4px rgba(15, 38, 89, 0.35);
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 32px);
}
.toast b { color: var(--chase-gold); font-weight: 600; }
.toast svg { opacity: 0.85; }
@keyframes toastIn {
  0%   { transform: translateY(-12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes toastOut {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-8px); opacity: 0; }
}

/* ===== Celebration ===== */
.celeb {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.celeb__hero {
  padding: 32px 24px 20px;
  background: linear-gradient(180deg, oklch(0.97 0.025 258) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.celeb__seal {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--chase-blue) 0%, var(--chase-navy) 100%);
  color: var(--chase-gold);
  display: grid; place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -8px rgba(15, 38, 89, 0.5);
}
.celeb__title {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 6px;
}
.celeb__title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.celeb__sub {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.5;
  margin: 0;
}
.celeb__body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 16px;
}
.celeb__body::-webkit-scrollbar { width: 0; }

.match {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 8px;
}
.match__card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.match__card--featured {
  background: linear-gradient(135deg, var(--chase-navy) 0%, var(--chase-navy-2) 100%);
  color: var(--paper);
  border-color: var(--chase-navy);
  box-shadow: 0 10px 30px -12px rgba(15, 38, 89, 0.5);
}
.match__label {
  font: 500 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.match__card--featured .match__label { color: var(--chase-gold); }
.match__name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.match__desc {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.4;
  margin: 0;
}
.match__card--featured .match__desc { color: oklch(0.85 0.01 260); }

.match__offer {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font: 500 12.5px/1.45 "Geist Mono", monospace;
  color: var(--chase-blue);
  letter-spacing: 0.005em;
}
.match__card--featured .match__offer {
  color: var(--chase-gold);
  border-top-color: rgba(229, 200, 135, 0.25);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.cta-stack .cta { width: 100%; }

.rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.reward {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.reward__num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.reward__num em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}
.reward__label {
  font: 500 10px/1.2 "Geist Mono", monospace;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}

.banker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--paper-2);
  border-radius: 14px;
  border: 1px solid var(--line);
  margin-top: 14px;
}
.banker__avatar {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--chase-blue) 0%, var(--chase-navy) 100%);
  color: var(--paper);
  display: grid; place-items: center;
  font: 500 15px/1 "Geist", system-ui;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px rgba(15, 38, 89, 0.4);
}
.banker__name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.banker__role {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
}

.upsell {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--accent-ink);
  background: oklch(0.97 0.04 80);
  border-radius: 14px;
  display: flex;
  gap: 10px;
}
.upsell__icon {
  width: 28px; height: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.upsell__title {
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 2px;
}
.upsell__desc {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0 0 8px;
}
.upsell__cta {
  font: 500 12px/1 "Geist", system-ui;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* ===== Buyer Overlay (desktop) ===== */
.bo {
  font: 400 13px/1.5 "Geist", system-ui;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bo__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.bo__pulse {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 0 var(--good);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.62 0.13 155 / 0.5); }
  100% { box-shadow: 0 0 0 12px oklch(0.62 0.13 155 / 0); }
}
.bo__label {
  font: 500 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.bo__label--strong { color: var(--chase-navy); }
.bo h3 {
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 18px 0 8px;
}
.bo__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13px;
}
.bo__row:last-child { border: 0; }
.bo__row b { font-weight: 500; color: var(--ink); }
.bo__row .none { color: var(--ink-4); font-style: italic; font-weight: 400; }

.bo__signal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: oklch(0.96 0.02 258);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.bo__signal--hot {
  background: oklch(0.96 0.04 80);
  border-left: 2px solid var(--accent-ink);
}
.bo__signal__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}
.bo__signal--hot .bo__signal__dot { background: var(--accent-ink); }

.bo__match-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
}
.bo__match-card .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 2px;
}
.bo__match-card .why {
  font-size: 12px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.4;
}
.bo__match-card .conf {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  font: 500 10px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ===== Rail (desktop left) ===== */
.rail__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.rail__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
}
.rail__name {
  font: 500 13px/1 "Geist", system-ui;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rail__sub {
  font: 400 11px/1.3 "Geist Mono", monospace;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.rail__title {
  font: 500 11px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 24px 0 10px;
}
.rail__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-2);
  padding: 1px;
  border-radius: 10px;
}
.rail__item {
  background: oklch(0.985 0.004 90);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.rail__item:first-child { border-top-left-radius: 9px; border-top-right-radius: 9px; }
.rail__item:last-child { border-bottom-left-radius: 9px; border-bottom-right-radius: 9px; }
.rail__item:hover { background: var(--paper); }
.rail__item[data-active="true"] {
  background: var(--chase-navy);
  color: var(--paper);
}
.rail__item .num {
  font: 500 10px/1 "Geist Mono", monospace;
  color: var(--ink-3);
}
.rail__item[data-active="true"] .num { color: var(--chase-gold); }

.rail__footer {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
  font: 400 10px/1.4 "Geist Mono", monospace;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Compliance footer (mobile, in hero) ===== */
.compliance {
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line-2);
  font: 400 10px/1.5 "Geist Mono", monospace;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  text-transform: uppercase;
  text-align: center;
}
.compliance a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Big number reveal ===== */
.big-num {
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--ink);
}
.big-num em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ===== Page enter animation ===== */
@keyframes screenIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.screen__body > * { animation: screenIn 0.35s ease-out backwards; }
.screen__body > *:nth-child(2) { animation-delay: 0.05s; }
.screen__body > *:nth-child(3) { animation-delay: 0.1s; }
.screen__body > *:nth-child(4) { animation-delay: 0.15s; }

/* ===== DEMO BADGE — persistent corner pin ===== */
#demo-badge {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 9999;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  background: rgba(15, 38, 89, 0.92);
  color: #E5C887;
  font: 600 10px/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.demo-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E5C887;
  box-shadow: 0 0 0 0 rgba(229, 200, 135, 0.6);
  animation: demo-pulse 1.8s infinite;
}
@keyframes demo-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229, 200, 135, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(229, 200, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 200, 135, 0); }
}
@media (max-width: 600px) {
  #demo-badge {
    top: 8px;
    right: 8px;
    padding: 5px 9px 5px 8px;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

/* ===== DEMO INTRO OVERLAY — first-load explainer ===== */
.demo-intro {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 55, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 8000;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: demo-intro-in 280ms ease-out;
}
@keyframes demo-intro-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.demo-intro__card {
  max-width: 580px;
  width: 100%;
  background: linear-gradient(180deg, #0F2659 0%, #143075 100%);
  border: 1px solid rgba(229, 200, 135, 0.35);
  border-radius: 18px;
  padding: 32px 32px 28px;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.demo-intro__eyebrow {
  font: 600 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.18em;
  color: #E5C887;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.demo-intro__title {
  font: 500 26px/1.18 "Instrument Serif", Georgia, serif;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.demo-intro__body {
  font: 400 14px/1.55 "Geist", system-ui, sans-serif;
  color: rgba(255,255,255,0.86);
  margin: 0 0 22px;
}
.demo-intro__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-intro__list li {
  font: 400 13px/1.45 "Geist", system-ui, sans-serif;
  color: rgba(255,255,255,0.78);
  padding-left: 22px;
  position: relative;
}
.demo-intro__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: #E5C887;
  font-weight: 600;
}
.demo-intro__cta {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #E5C887;
  border-radius: 12px;
  background: #E5C887;
  color: #0F2659;
  font: 600 14px/1 "Geist", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.demo-intro__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(229,200,135,0.3);
}
.demo-intro__foot {
  margin: 14px 0 0;
  font: 400 11px/1.5 "Geist Mono", monospace;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ===== DATA-FLOW DIAGRAM in rail ===== */
.flow-diagram {
  margin-top: 16px;
  padding: 14px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.flow-diagram__title {
  font: 600 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.flow-diagram__steps {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-diagram__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px/1.3 "Geist", system-ui, sans-serif;
  color: var(--ink-2);
  padding: 4px 0;
}
.flow-diagram__num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: 600 10px/1 "Geist Mono", monospace;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.flow-diagram__arrow {
  color: var(--ink-4);
  font-size: 10px;
  margin-left: 4px;
  margin-bottom: -2px;
  text-align: center;
}

/* ===== DISCLAIMER ===== */
.disclaimer {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink-4);
  border-radius: 4px;
  font: 400 10.5px/1.45 "Geist", system-ui, sans-serif;
  color: var(--ink-3);
}
.disclaimer__label {
  font: 600 9px/1 "Geist Mono", monospace;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ===== BEHIND-THE-SCENES capstone panel ===== */
.btsx {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 360px;
  max-width: calc(100vw - 56px);
  background: linear-gradient(180deg, #0F2659 0%, #143075 100%);
  color: #fff;
  border: 1px solid rgba(229, 200, 135, 0.4);
  border-radius: 14px;
  padding: 20px 22px 18px;
  z-index: 7000;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  animation: btsx-in 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes btsx-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.btsx__eyebrow {
  font: 600 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.16em;
  color: #E5C887;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.btsx__title {
  font: 500 16px/1.3 "Geist", system-ui, sans-serif;
  margin: 0 0 14px;
  color: #fff;
}
.btsx__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.btsx__row {
  display: flex;
  justify-content: space-between;
  font: 500 12px/1.2 "Geist Mono", monospace;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  padding-bottom: 6px;
}
.btsx__row b { color: #fff; font-weight: 500; text-align: right; }
.btsx__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 0;
  font: 500 14px/1 "Geist", monospace;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.btsx__close:hover { background: rgba(255,255,255,0.14); }
.btsx__foot {
  margin-top: 8px;
  font: 400 10px/1.4 "Geist Mono", monospace;
  letter-spacing: 0.04em;
  color: rgba(229, 200, 135, 0.65);
}
@media (max-width: 980px) {
  .btsx {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-width: 360px;
  }
}

/* ===== Demo CTA modal ===== */
.cta-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 55, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: demo-intro-in 200ms ease-out;
}
.cta-modal {
  max-width: 420px;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 20px;
  text-align: center;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}
.cta-modal__eyebrow {
  font: 600 10px/1 "Geist Mono", monospace;
  letter-spacing: 0.16em;
  color: var(--accent-ink);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.cta-modal__title {
  font: 500 18px/1.3 "Geist", system-ui, sans-serif;
  margin: 0 0 8px;
  color: var(--ink);
}
.cta-modal__body {
  font: 400 13.5px/1.5 "Geist", system-ui, sans-serif;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.cta-modal__deeplink {
  font: 500 11.5px/1.4 "Geist Mono", monospace;
  color: var(--primary-ink);
  background: var(--primary-tint);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 18px;
  word-break: break-all;
}
.cta-modal__close {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--chase-blue);
  border-radius: 10px;
  background: var(--chase-blue);
  color: var(--paper);
  font: 600 13px/1 "Geist", system-ui, sans-serif;
  cursor: pointer;
}
