/*
 * Concept C, "The Platform Tour": the moving parts.
 *
 * 1. The tour. One stage holds the Stack: seven product panels piled like the
 *    bars of the logo. On a large enough window with motion allowed, the
 *    section is pinned and landing.js sets data-beat (0 intro, 1 the problem,
 *    2 to 7 one layer each: Brief, Top 10, Markets, Pulse, Data, AI; Deal
 *    Signal has its own section). Each beat pulls one panel out of the pile and
 *    plays its demo on its own clock (CSS transitions), so a beat is never
 *    left half-played by the scroll position.
 *    Elsewhere (phones, short windows, reduced motion, no JavaScript) the
 *    tour is an ordinary column: each caption is followed by its panel,
 *    which plays once as it scrolls into view, or simply shows its end state.
 * 2. Deal Signal. A navy stage with the example deck. landing.js gives each
 *    card a pose class (front, next, out, chosen, theirs, mine...) and the
 *    demo a state class (is-sent, is-matched, is-end); CSS does the motion.
 *    Without JavaScript the stage shows its end state: the mutual reveal.
 *
 * Panels and cards are drawn in HTML and sized in container query units,
 * so they stay crisp at any size. Everything in them is illustrative.
 */

@property --mx { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --my { syntax: '<number>'; inherits: true; initial-value: 0; }
/* The camera: a slow turn of the whole Stack between beats. */
@property --cy { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --cx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

/* ============================================================
   1. The tour: flow layout (the default)
   ============================================================ */

.tour {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background: radial-gradient(130% 90% at 66% 46%, #ffffff 0%, #f6f2ea 58%, #ece5d8 100%);
}
[data-theme='dark'] .tour {
  background: radial-gradient(130% 90% at 66% 46%, #15223a 0%, #0c1628 58%, #070f1d 100%);
}
.tour-pin {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin-inline: auto;
  padding: 18px var(--gutter) 72px;
}
.t-gold {
  display: none;
}
.t-stage,
.t-copy,
.t-rig {
  display: contents;
}
.hero-copy { order: 0; }
.hero-stack { order: 0; }
.proof { order: 1; }
.cap-why { order: 2; }
.asks { order: 3; }
.cap[data-cap='2'] { order: 4; }
.p-brief { order: 5; }
.cap[data-cap='3'] { order: 6; }
.p-top { order: 7; }
.cap[data-cap='4'] { order: 8; }
.p-markets { order: 9; }
.cap[data-cap='5'] { order: 10; }
.p-pulse { order: 11; }
.cap[data-cap='6'] { order: 12; }
.p-data { order: 13; }
.cap[data-cap='7'] { order: 14; }
.p-ai { order: 15; }
.p-signal,
.t-floor,
.t-ex {
  display: none;
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}
.hero-copy .eyebrow {
  margin-bottom: -6px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--glass-fill);
  box-shadow: var(--glass-edge), 0 8px 20px -14px rgb(26 31 46 / 0.4);
  font-size: 0.8438rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-copy .cta-block {
  margin-top: 6px;
}
.cap {
  display: grid;
  gap: 16px;
  margin-top: 84px;
}
.cap .kicker {
  margin-bottom: -2px;
}
.free-line {
  font-weight: 750;
  color: var(--ink);
}
.free-line::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--gold);
  vertical-align: 1px;
}
.monitor-line {
  margin-top: -8px;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

/* The four facts. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  background: var(--rule);
  overflow: hidden;
}
.proof li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
}
.proof b {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.proof span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
}

/* The problem's questions: chips in the flow, floating cards on the stage. */
.asks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
/* Copper at the glass's 0.72 so the questions stand out (Marc, 4 Nov 2026); this shade keeps the white text at
   4.5:1 or more where a chip floats over the pale pile, about 7.4:1 over the navy. */
.ask {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(156 94 48 / 0.72);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 0 0 1px rgb(240 190 140 / 0.4), 0 10px 24px -14px rgb(0 0 0 / 0.6);
  font-size: 0.875rem;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Panels (every mode) ---------- */

.panel {
  position: relative;
  container-type: inline-size;
  width: 100%;
  margin-top: 28px;
  border-radius: 14px;
  background: #fffdf9;
  color: #1a1f2e;
  box-shadow: 0 0 0 1px rgb(26 31 46 / 0.08), 0 1px 2px rgb(26 31 46 / 0.06), 0 34px 60px -30px rgb(26 31 46 / 0.5);
  overflow: hidden;
  font-family: var(--body);
}
[data-theme='dark'] .panel {
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 40px 70px -28px rgb(0 0 0 / 0.85);
}
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #e9e3d8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
[data-theme='dark'] .panel::after {
  background: #0c1628;
}
.pn-bar {
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  height: max(26px, 6.4cqw);
  padding: 0 3.4cqw;
  background: #f4efe6;
  border-bottom: 1px solid #e8e1d4;
  font-family: var(--mono);
  font-size: max(9px, 2.05cqw);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pn-idx {
  color: #b8733f;
  font-weight: 700;
}
.pn-name {
  color: #3a4052;
  font-weight: 600;
}
.pn-dots {
  display: flex;
  gap: 1.1cqw;
  margin-left: auto;
}
.pn-dots i {
  width: 1.4cqw;
  height: 1.4cqw;
  border-radius: 50%;
  background: #d9cfbe;
}
.pn-body {
  position: relative;
  padding: 3.6cqw 3.8cqw 4cqw;
}
.ln {
  display: block;
  height: 1.25cqw;
  border-radius: 1cqw;
  background: #e5ded1;
}
.w48 { width: 48%; } .w52 { width: 52%; } .w54 { width: 54%; } .w58 { width: 58%; }
.w60 { width: 60%; } .w62 { width: 62%; } .w64 { width: 64%; } .w66 { width: 66%; }
.w70 { width: 70%; } .w72 { width: 72%; } .w74 { width: 74%; } .w76 { width: 76%; }
.w78 { width: 78%; } .w80 { width: 80%; } .w82 { width: 82%; } .w84 { width: 84%; }
.w86 { width: 86%; } .w88 { width: 88%; } .w90 { width: 90%; } .w92 { width: 92%; } .w96 { width: 96%; }

/* 01 The Monday brief: an edition on cream paper, and the 07:00 arrival. */
.br {
  background: linear-gradient(180deg, #f2ede4, #ebe4d7);
}
.br-page {
  display: grid;
  gap: 3cqw;
  padding: 4.2cqw 5cqw 4.6cqw;
  border-radius: 1.6cqw;
  background: #faf7f2;
  box-shadow: 0 0 0 1px rgb(184 115 63 / 0.2), 0 2cqw 4cqw -2cqw rgb(26 31 46 / 0.35);
}
.br-mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.4cqw;
  border-bottom: 1px solid rgb(184 115 63 / 0.45);
}
.br-title {
  font-family: var(--display);
  font-size: 4.6cqw;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.br-stamp {
  padding: 0.6cqw 2cqw;
  border-radius: 999px;
  border: 1px solid #b8733f;
  color: #8f5a2e;
  font-family: var(--mono);
  font-size: 2.3cqw;
  font-weight: 700;
}
.br-sec {
  display: grid;
  gap: 1.3cqw;
  position: relative;
}
.br-sec b {
  margin-bottom: 0.4cqw;
  font-family: var(--display);
  font-size: 2.9cqw;
  font-weight: 500;
  color: #1a1f2e;
}
.lk {
  position: absolute;
  right: 0;
  bottom: -0.3cqw;
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.4cqw 1.6cqw;
  border-radius: 999px;
  background: #f6ebdd;
  color: #8f5a2e;
  font-family: var(--mono);
  font-size: 1.75cqw;
  font-weight: 600;
}
.lk svg {
  width: 2cqw;
  height: 2cqw;
}
.br-toast {
  position: absolute;
  bottom: 3.4cqw;
  right: 3.6cqw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding: 1.8cqw 2.6cqw;
  border-radius: 2cqw;
  background: rgb(11 27 54 / 0.94);
  color: #f3efe8;
  box-shadow: 0 2cqw 5cqw -2cqw rgb(11 27 54 / 0.7);
}
.br-toast svg {
  width: 3.6cqw;
  height: 3.6cqw;
  color: #e2a24a;
}
.br-toast span {
  display: grid;
  line-height: 1.3;
}
.br-toast b {
  font-size: 2.2cqw;
  font-weight: 700;
}
.br-toast small {
  font-size: 1.9cqw;
  color: #e8cdae;
}

/* 02 Top of the Week: ten rows that sort themselves into rank order. */
.tw-head,
.pu-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2cqw;
  font-family: var(--mono);
  font-size: 1.8cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6170;
}
.tw-list {
  display: grid;
  gap: 0.9cqw;
}
.tw-row {
  --rowh: 5.15cqw;
  display: grid;
  grid-template-columns: 4cqw minmax(0, 1fr) 13cqw 19cqw 11.5cqw;
  align-items: center;
  gap: 1.8cqw;
  height: 4.25cqw;
  padding: 0 1.6cqw;
  border-radius: 1cqw;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ece6da;
  font-size: 1.7cqw;
}
.o1 { --o: 1; } .o2 { --o: 2; } .o3 { --o: 3; } .o4 { --o: 4; } .o5 { --o: 5; }
.o6 { --o: 6; } .o7 { --o: 7; } .o8 { --o: 8; } .o9 { --o: 9; } .o10 { --o: 10; }
.f1 { --f: 1; } .f2 { --f: 2; } .f3 { --f: 3; } .f4 { --f: 4; } .f5 { --f: 5; }
.f6 { --f: 6; } .f7 { --f: 7; } .f8 { --f: 8; } .f9 { --f: 9; } .f10 { --f: 10; }
.tw-rank {
  font-family: var(--display);
  font-size: 2.6cqw;
  font-weight: 500;
  color: #8f5a2e;
  text-align: right;
}
.tw-h {
  display: block;
  height: 1.2cqw;
  border-radius: 1cqw;
  background: #ddd5c6;
}
.tw-src {
  font-family: var(--mono);
  font-size: 1.55cqw;
  color: #5c6170;
  white-space: nowrap;
}
.tw-tag {
  justify-self: start;
  max-width: 100%;
  padding: 0.3cqw 1.2cqw;
  border-radius: 999px;
  background: #f6ebdd;
  color: #7c4e27;
  font-weight: 700;
  font-size: 1.5cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-pw {
  font-size: 1.55cqw;
  font-weight: 700;
  white-space: nowrap;
}
.tw-pw.is-open { color: #2f6149; }
.tw-pw.is-soft { color: #8a5a12; }
.tw-pw.is-hard { color: #5c6170; }
.o1.tw-row {
  background: #0b1b36;
  box-shadow: 0 1cqw 2.4cqw -1cqw rgb(11 27 54 / 0.6);
}
.o1 .tw-rank { color: #e2a24a; }
.o1 .tw-h { background: rgb(243 239 232 / 0.4); }
.o1 .tw-src, .o1 .tw-pw.is-open { color: #e8cdae; }
.o1 .tw-tag { background: rgb(226 162 74 / 0.18); color: #f3d9a4; }

/* 03 Markets: the morning's credit events, rates and Credit Health, as on Markets > Today. */
.mk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 2cqw;
}
.mk-card {
  padding: 2.2cqw 2.4cqw 2.4cqw;
  border-radius: 1.4cqw;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ece6da;
}
.mk-health {
  margin-top: 2cqw;
}
.mk-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.6cqw;
  margin-bottom: 1.8cqw;
  font-family: var(--display);
  font-size: 2.5cqw;
  font-weight: 500;
  color: #1a1f2e;
}
.mk-h small {
  font-family: var(--mono);
  font-size: 1.45cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5c6170;
  white-space: nowrap;
}
.mk-ev,
.mk-rt {
  display: grid;
  gap: 1.4cqw;
}
.mk-ev li {
  display: grid;
  gap: 0.9cqw;
  padding-bottom: 1.4cqw;
  border-bottom: 1px solid #f1ece3;
}
.mk-ev li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.mk-ev .ln {
  height: 1.1cqw;
}
.mk-tag,
.mk-band,
.mk-ch {
  padding: 0.3cqw 1.2cqw;
  border-radius: 999px;
  background: #f1ece3;
  color: #3a4052;
  font-size: 1.5cqw;
  font-weight: 700;
  white-space: nowrap;
}
.mk-tag {
  justify-self: start;
  background: #f6ebdd;
  color: #7c4e27;
}
.mk-tag.is-stress,
.mk-band.is-rise,
.mk-ch.is-down {
  background: #f7e4dd;
  color: #8a3a22;
}
.mk-band.is-ease,
.mk-ch.is-up {
  background: #e3f0e8;
  color: #2f6149;
}
.mk-rt li {
  display: grid;
  grid-template-columns: 10.5cqw minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4cqw;
  min-height: 5.4cqw;
}
.mk-nm {
  font-size: 1.9cqw;
  font-weight: 700;
  white-space: nowrap;
}
.mk-spark {
  width: 100%;
  height: 3.4cqw;
  overflow: visible;
}
.mk-spark path {
  fill: none;
  stroke: #b8733f;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.mk-ch {
  font-family: var(--mono);
}
.mk-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4cqw;
}
.mk-bands li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  padding: 1.3cqw 1.6cqw;
  border-radius: 1.1cqw;
  background: #faf7f2;
  box-shadow: 0 0 0 1px #f1ece3;
}
.mx1 { --x: 0; } .mx2 { --x: 1; } .mx3 { --x: 2; }

/* 04 Industry Pulse: the heat builds, one keyword spikes. */
.pu-list {
  display: grid;
  gap: 1.6cqw;
}
.pu-row {
  display: grid;
  grid-template-columns: 31cqw minmax(0, 1fr) 5cqw 6cqw;
  align-items: center;
  gap: 2cqw;
  position: relative;
  padding: 1.8cqw 2.2cqw;
  border-radius: 1.4cqw;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ece6da;
}
.pu-kw {
  font-size: 2.3cqw;
  font-weight: 700;
  white-space: nowrap;
}
.pu-bar {
  height: 1.6cqw;
  border-radius: 1cqw;
  background: #efe9de;
  overflow: hidden;
}
.pu-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9a26a, #b8733f);
  transform-origin: left;
}
.u1 .pu-bar i { transform: scaleX(0.92); }
.u2 .pu-bar i { transform: scaleX(0.66); }
.u3 .pu-bar i { transform: scaleX(0.46); }
.pu-n {
  font-family: var(--display);
  font-size: 3.2cqw;
  font-weight: 500;
  text-align: right;
}
.pu-ch {
  font-family: var(--mono);
  font-size: 1.8cqw;
  font-weight: 700;
}
.pu-ch.is-up { color: #2f6149; }
.pu-ch.is-down { color: #a0492f; }
.pu-spike {
  position: absolute;
  top: -1.4cqw;
  right: 2cqw;
  padding: 0.4cqw 1.4cqw;
  border-radius: 999px;
  background: #b8733f;
  color: #ffffff;
  font-family: var(--mono);
  font-size: 1.5cqw;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0.8cqw 2cqw -0.8cqw rgb(184 115 63 / 0.8);
}
.pu-heat {
  display: grid;
  gap: 1cqw;
  margin-top: 2.6cqw;
}
.pu-days,
.pu-cells {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.9cqw;
}
.pu-days i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 1.5cqw;
  color: #5c6170;
  text-align: center;
}
.pu-cells i {
  height: 3cqw;
  border-radius: 0.7cqw;
  background: #b8733f;
}
.pu-cells .h2 { opacity: 0.16; } .pu-cells .h3 { opacity: 0.26; } .pu-cells .h4 { opacity: 0.36; }
.pu-cells .h5 { opacity: 0.48; } .pu-cells .h6 { opacity: 0.6; } .pu-cells .h7 { opacity: 0.72; }
.pu-cells .h9 { opacity: 0.95; }
.pu-locked {
  position: relative;
  display: grid;
  gap: 1.4cqw;
  margin-top: 2.6cqw;
  padding: 2.2cqw;
  border-radius: 1.4cqw;
  background: #f5f1ea;
}
.pu-locked .ln {
  filter: blur(0.5cqw);
}
.pu-lock {
  position: absolute;
  right: 2cqw;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  padding: 0.5cqw 1.6cqw;
  border-radius: 999px;
  background: #ffffff;
  color: #5c6170;
  font-family: var(--mono);
  font-size: 1.6cqw;
  font-weight: 600;
  transform: translateY(-50%);
  box-shadow: 0 0 0 1px #e8e1d4;
}
.pu-lock svg {
  width: 2cqw;
  height: 2cqw;
}

/* 05 Data: the watchlist's 14-day line draws itself. */
.da-tabs {
  display: flex;
  gap: 1cqw;
  margin-bottom: 2.6cqw;
  padding: 0.7cqw;
  border-radius: 999px;
  background: #f1ece3;
  font-size: 1.85cqw;
  font-weight: 700;
  color: #5c6170;
}
.da-tabs span {
  flex: 1;
  padding: 0.8cqw 0;
  border-radius: 999px;
  text-align: center;
}
.da-tabs .is-on {
  background: #0b1b36;
  color: #f3efe8;
}
.da-chart {
  position: relative;
  height: 25cqw;
  padding: 1.6cqw;
  border-radius: 1.4cqw;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ece6da;
}
.da-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.da-grid {
  fill: none;
  stroke: #efe9de;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.da-area {
  fill: rgb(184 115 63 / 0.12);
}
.da-line {
  fill: none;
  stroke: #b8733f;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.da-cap {
  position: absolute;
  left: 2.4cqw;
  top: 1.6cqw;
  font-family: var(--mono);
  font-size: 1.6cqw;
  color: #5c6170;
}
.da-dot {
  position: absolute;
  right: 1.2cqw;
  top: 4.4cqw;
  width: 2cqw;
  height: 2cqw;
  border-radius: 50%;
  background: #b8733f;
  box-shadow: 0 0 0 0.8cqw rgb(184 115 63 / 0.2);
}
.da-rows {
  display: grid;
  gap: 1.2cqw;
  margin-top: 2.4cqw;
}
.da-rows li {
  display: grid;
  grid-template-columns: 22cqw minmax(0, 1fr) 5cqw;
  align-items: center;
  gap: 2cqw;
  padding: 1.5cqw 2cqw;
  border-radius: 1.2cqw;
  background: #ffffff;
  box-shadow: 0 0 0 1px #ece6da;
}
.da-kw {
  font-size: 2.1cqw;
  font-weight: 700;
}
.da-n {
  font-family: var(--display);
  font-size: 2.8cqw;
  text-align: right;
}
.da-n.is-up::after {
  content: ' \2191';
  font-family: var(--body);
  font-size: 1.8cqw;
  color: #2f6149;
}

/* 07 Deal Signal, at the back of the pile (it has its own section further down). */
.ps {
  display: grid;
  justify-items: center;
  gap: 3cqw;
  background: #0b1b36;
  min-height: 60cqw;
  align-content: center;
}
.ps-card {
  position: relative;
  width: 46cqw;
  padding: 3.6cqw 3.6cqw 3cqw;
  border-radius: 2.4cqw;
  background: #ffffff;
  overflow: hidden;
}
.ps-strip {
  position: absolute;
  inset: 0 0 auto;
  height: 1cqw;
  background: #e2a24a;
}
.ps-top {
  display: flex;
  gap: 1.2cqw;
  margin-bottom: 2cqw;
}
.ps-type,
.ps-role {
  padding: 0.3cqw 1.4cqw;
  border-radius: 999px;
  font-size: 1.6cqw;
  font-weight: 800;
}
.ps-type { background: #e2a24a; letter-spacing: 0.12em; }
.ps-role { box-shadow: inset 0 0 0 1px #d9cfbe; color: #3a4052; }
.ps-k {
  font-family: var(--mono);
  font-size: 1.5cqw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c6170;
}
.ps-big {
  margin-bottom: 1.6cqw;
  font-family: var(--display);
  font-size: 6cqw;
  font-weight: 600;
  line-height: 1;
}
.ps-sector {
  font-family: var(--display);
  font-size: 2.6cqw;
  font-weight: 600;
}
.ps-btns {
  display: flex;
  gap: 2cqw;
}
.ps-btns span {
  padding: 1.2cqw 3cqw;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  color: #f3efe8;
  font-size: 1.9cqw;
  font-weight: 700;
}
.ps-btns .is-yes {
  background: #e2a24a;
  color: #1a1f2e;
  box-shadow: none;
}

/* 06 AI in Private Credit: the core lights, the network joins up, the three parts rise. */
.pa {
  display: grid;
  justify-items: center;
  gap: 2.6cqw;
  background: #0b1b36;
  min-height: 60cqw;
  align-content: center;
}
.pa-net {
  width: 30cqw;
  height: auto;
  overflow: visible;
}
.pa-links path {
  fill: none;
  stroke: rgb(226 162 74 / 0.5);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.pa-nodes circle {
  fill: #0b1b36;
  stroke: #e2a24a;
  stroke-width: 1.4;
}
.pa-core {
  fill: #e2a24a;
}
.pa-chips {
  display: flex;
  gap: 1.4cqw;
}
.pa-chips span {
  padding: 0.8cqw 2.2cqw;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(226 162 74 / 0.5);
  color: #e8cdae;
  font-size: 1.7cqw;
  font-weight: 700;
}

/* Every panel in the flow carries its own label. */
.panel::before {
  content: 'Illustrative example';
  position: absolute;
  right: 3.4cqw;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  height: max(26px, 6.4cqw);
  font-family: var(--mono);
  font-size: max(9px, 1.8cqw);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c6170;
}
.panel .pn-dots {
  visibility: hidden;
}

/* On phones and still layouts the intro gets the Stack's seven layers as a little index. */
.hero-stack {
  display: grid;
  gap: 6px;
  width: 100%;
  margin-top: 30px;
}

/* ---------- Panel demos: the start state, only with motion ---------- */

.motion .panel .br-toast,
.motion .panel .lk,
.motion .panel .tw-row,
.motion .panel .pu-bar i,
.motion .panel .pu-cells i,
.motion .panel .pu-spike,
.motion .panel .pu-n,
.motion .panel .da-line,
.motion .panel .da-area,
.motion .panel .da-dot,
.motion .panel .da-rows li {
  transition-property: transform, opacity, stroke-dashoffset;
  transition-timing-function: var(--ease);
}
.motion .panel .br-toast { transition-duration: 0.7s; transition-delay: 0.35s; }
.motion .panel .lk { transition-duration: 0.45s; transition-delay: calc(0.9s + var(--d, 0) * 0.12s); }
.motion .panel .bs2 .lk { --d: 1; }
.motion .panel .bs3 .lk { --d: 2; }
.motion .panel .tw-row { transition-duration: 0.9s; transition-delay: calc(0.25s + var(--o) * 0.05s); }
.motion .panel .pu-bar i { transition-duration: 1.1s; transition-delay: 0.3s; }
.motion .panel .u2 .pu-bar i { transition-delay: 0.42s; }
.motion .panel .u3 .pu-bar i { transition-delay: 0.54s; }
.motion .panel .pu-cells i { transition-duration: 0.5s; transition-delay: calc(0.4s + var(--c, 0) * 0.03s); }
.motion .panel .pu-spike { transition-duration: 0.5s; transition-delay: 1.3s; }
.motion .panel .pu-n { transition-duration: 0.5s; transition-delay: 0.6s; }
.motion .panel .da-line { transition-duration: 1.5s; transition-delay: 0.3s; }
.motion .panel .da-area { transition-duration: 0.8s; transition-delay: 1.1s; }
.motion .panel .da-dot { transition-duration: 0.4s; transition-delay: 1.7s; }
.motion .panel .da-rows li { transition-duration: 0.6s; transition-delay: calc(0.6s + var(--r, 0) * 0.12s); }
.motion .panel .dr2 { --r: 1; }
.motion .panel .dr3 { --r: 2; }

.motion .panel:not(.is-on) .br-toast { opacity: 0; transform: translateY(70%) scale(0.94); }
.motion .panel:not(.is-on) .lk { opacity: 0; transform: scale(0.6); }
.motion .panel:not(.is-on) .tw-row { transform: translateY(calc((var(--f) - var(--o)) * var(--rowh))); }
.motion .panel:not(.is-on) .pu-bar i { transform: scaleX(0.04); }
.motion .panel:not(.is-on) .pu-cells i { opacity: 0.04; }
.motion .panel:not(.is-on) .pu-spike { opacity: 0; transform: translateY(1.4cqw) scale(0.7); }
.motion .panel:not(.is-on) .pu-n { opacity: 0; }
.motion .panel:not(.is-on) .da-line { stroke-dashoffset: 1; }
.motion .panel:not(.is-on) .da-area { opacity: 0; }
.motion .panel:not(.is-on) .da-dot { opacity: 0; transform: scale(0.3); }
.motion .panel:not(.is-on) .da-rows li { opacity: 0; transform: translateY(1.6cqw); }

/* 03 Markets: events, then rates (their lines draw, the day's move lands), then Credit Health. */
.motion .panel .mk-ev li,
.motion .panel .mk-rt li,
.motion .panel .mk-bands li,
.motion .panel .mk-spark path,
.motion .panel .mk-ch {
  transition-property: transform, opacity, stroke-dashoffset;
  transition-timing-function: var(--ease);
}
.motion .panel .mk-ev li { transition-duration: 0.6s; transition-delay: calc(0.25s + var(--x) * 0.12s); }
.motion .panel .mk-rt li { transition-duration: 0.6s; transition-delay: calc(0.4s + var(--x) * 0.12s); }
.motion .panel .mk-spark path { transition-duration: 1.1s; transition-delay: calc(0.6s + var(--x) * 0.12s); }
.motion .panel .mk-ch { transition-duration: 0.45s; transition-delay: calc(1.35s + var(--x) * 0.1s); }
.motion .panel .mk-bands li { transition-duration: 0.6s; transition-delay: calc(0.9s + var(--x) * 0.12s); }
.motion .panel:not(.is-on) .mk-ev li,
.motion .panel:not(.is-on) .mk-rt li,
.motion .panel:not(.is-on) .mk-bands li { opacity: 0; transform: translateY(1.4cqw); }
.motion .panel:not(.is-on) .mk-spark path { stroke-dashoffset: 1; }
.motion .panel:not(.is-on) .mk-ch { opacity: 0; transform: scale(0.6); }

/* 06 AI in Private Credit. */
.pa-nodes circle,
.pa-core {
  transform-box: fill-box;
  transform-origin: center;
}
.pa-nodes circle:nth-child(2), .pa-chips span:nth-child(2) { --n: 1; }
.pa-nodes circle:nth-child(3), .pa-chips span:nth-child(3) { --n: 2; }
.pa-nodes circle:nth-child(4) { --n: 3; }
.pa-nodes circle:nth-child(5) { --n: 4; }
.motion .panel .pa-core,
.motion .panel .pa-links,
.motion .panel .pa-nodes circle,
.motion .panel .pa-chips span {
  transition-property: transform, opacity;
  transition-timing-function: var(--ease);
}
.motion .panel .pa-core { transition-duration: 0.6s; transition-delay: 0.2s; }
.motion .panel .pa-links { transition-duration: 0.8s; transition-delay: 0.5s; }
.motion .panel .pa-nodes circle { transition-duration: 0.5s; transition-delay: calc(0.6s + var(--n, 0) * 0.1s); }
.motion .panel .pa-chips span { transition-duration: 0.6s; transition-delay: calc(1.1s + var(--n, 0) * 0.12s); }
.motion .panel:not(.is-on) .pa-core { opacity: 0; transform: scale(0.4); }
.motion .panel:not(.is-on) .pa-links { opacity: 0; }
.motion .panel:not(.is-on) .pa-nodes circle { opacity: 0; transform: scale(0); }
.motion .panel:not(.is-on) .pa-chips span { opacity: 0; transform: translateY(1.4cqw); }

/* Stagger for the heat cells: a few classes are enough to read as building. */
.pu-cells i:nth-child(7n + 2) { --c: 1; }
.pu-cells i:nth-child(7n + 3) { --c: 2; }
.pu-cells i:nth-child(7n + 4) { --c: 3; }
.pu-cells i:nth-child(7n + 5) { --c: 4; }
.pu-cells i:nth-child(7n + 6) { --c: 5; }
.pu-cells i:nth-child(7n) { --c: 6; }
.pu-cells i:nth-child(n + 8) { --c: 8; }
.pu-cells i:nth-child(n + 15) { --c: 12; }

/* In the flow, panels rise once into view. */
@media not all and (min-width: 1000px) and (min-height: 640px) {
  .motion .tour .panel {
    transition: transform 0.9s var(--ease), opacity 0.7s var(--ease);
  }
  .motion .tour .panel:not(.is-on) {
    opacity: 0.001;
    transform: translateY(28px);
  }
}

/* ============================================================
   1b. The tour, pinned (large windows with motion)
   ============================================================ */

@media (min-width: 1000px) and (min-height: 640px) {
  .motion .tour {
    --beat: 72vh;
    --lead: 14vh;
    --rest: 46vh;
    height: calc(100vh + var(--lead) + 6 * var(--beat) + var(--rest));
    padding-top: 0;
  }
  .motion .tour-pin {
    position: sticky;
    top: 0;
    display: block;
    max-width: none;
    height: 100vh;
    height: 100svh;
    margin: 0;
    padding: 0;
    overflow: clip;
  }
  .motion .t-stage {
    display: block;
    position: absolute;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    width: 60%;
    perspective: 1900px;
    perspective-origin: 40% 44%;
    pointer-events: none;
  }
  .motion .t-rig {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    --pw: clamp(380px, 31vw, 540px);
    transform:
      rotateX(calc(13deg + var(--cx) - var(--my) * 3deg))
      rotateY(calc(-23deg + var(--cy) + var(--mx) * 4.5deg))
      rotateZ(1.5deg);
    transition: --cy 1.6s var(--ease), --cx 1.6s var(--ease);
  }
  .motion .tour[data-beat='1'] .t-rig {
    --cy: 9deg;
    --cx: 3deg;
  }
  .motion .tour.has-focus .t-rig {
    --cy: -3deg;
    --cx: -1deg;
  }
  .motion .t-floor {
    display: block;
    position: absolute;
    left: 6%;
    right: 2%;
    top: 46%;
    height: 50%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgb(184 115 63 / 0.28), rgb(184 115 63 / 0.08) 55%, transparent);
    transition: opacity 0.8s var(--ease);
  }
  .motion .tour[data-beat='1'] .t-floor { opacity: 0.35; }
  .motion .t-ex {
    display: block;
    position: absolute;
    right: var(--gx);
    bottom: 132px;
  }
  .motion .tour:not([data-beat='0']) .t-ex {
    bottom: 32px;
  }
  .motion .panel {
    --k: 0;
    --push: 0;
    position: absolute;
    left: calc(var(--pw) / -2);
    top: calc(var(--pw) * -0.36);
    width: var(--pw);
    margin: 0;
    opacity: 1;
    transform-style: flat;
    transform:
      translate3d(
        calc(var(--k) * 18px - var(--push) * 10px),
        calc(var(--k) * -44px - var(--push) * 46px),
        calc(var(--k) * -84px - var(--push) * 260px));
    transition: transform 1.05s var(--ease), opacity 0.6s var(--ease);
    will-change: transform;
  }
  .motion .panel::before {
    display: none;
  }
  .motion .panel .pn-dots {
    visibility: visible;
  }
  .motion .tour .panel {
    animation: pile-in 1s var(--ease) both;
    animation-delay: calc((6 - var(--k)) * 0.11s + 0.15s);
  }
  /* The logo's gold square, beside the top bar of the Stack. */
  .motion .t-gold {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: calc(var(--pw) * 0.064);
    aspect-ratio: 1;
    border-radius: 22%;
    background: linear-gradient(145deg, #f3d9a4 0%, #e2a24a 46%, #b8733f 100%);
    box-shadow: 0 10px 22px -10px rgb(184 115 63 / 0.75);
    transform: translate3d(calc(var(--pw) * 0.5 + 84px), calc(var(--pw) * -0.36 - 176px), -336px);
    transition: opacity 0.6s var(--ease);
    animation: pile-in 1s var(--ease) both 0.05s;
  }
  .motion .tour.has-focus .t-gold,
  .motion .tour[data-beat='1'] .t-gold {
    opacity: 0;
  }
  .motion .pk0 { --k: 0; z-index: 6; }
  .motion .pk1 { --k: 1; z-index: 5; }
  .motion .pk2 { --k: 2; z-index: 4; }
  .motion .pk3 { --k: 3; z-index: 3; }
  .motion .pk4 { --k: 4; z-index: 2; }
  .motion .pk5 { --k: 5; z-index: 1; }
  .motion .pk6 { --k: 6; z-index: 0; }
  .motion .p-signal { display: block; }
  .motion .tour.has-focus .panel { --push: 1; }
  .motion .tour.has-focus .panel::after { opacity: 0.62; }
  .motion .tour[data-beat='1'] .panel::after { opacity: 0.5; }
  .motion .tour .panel.is-focus {
    --push: 0;
    z-index: 9;
    transform: translate3d(24px, 30px, 185px) rotateY(18deg) rotateX(-6deg);
  }
  .motion .tour .panel.is-focus::after {
    opacity: 0;
  }

  /* The copy column: the hero, then one caption per beat. */
  .motion .t-copy {
    display: block;
    position: absolute;
    left: var(--gx);
    top: var(--header-h);
    bottom: 96px;
    width: min(540px, 38vw);
  }
  .motion .cap,
  .motion .hero-copy {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin: 0;
    translate: 0 -50%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(26px);
    transition: opacity 0.45s var(--ease), transform 0.6s var(--ease);
  }
  .motion .cap.is-on,
  .motion .hero-copy.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: opacity 0.7s var(--ease) 0.2s, transform 0.9s var(--ease) 0.2s;
  }
  .motion .hero-copy:not(.is-on) {
    visibility: hidden;
    transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
  }
  .motion .hero-copy {
    gap: 16px;
  }
  .motion .hero-copy .display {
    font-size: clamp(2.5rem, 0.9rem + 2.9vw, 3.8rem);
  }
  .motion .cap:not(.hero-copy) {
    width: min(470px, 34vw);
  }
  .motion .cap .h2 {
    font-size: clamp(2rem, 1.1rem + 1.8vw, 2.9rem);
  }

  /* The four facts sit along the foot of the hero. */
  .motion .proof {
    position: absolute;
    left: var(--gx);
    right: var(--gx);
    bottom: 24px;
    z-index: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--rule-2);
    border-radius: 0;
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }
  .motion .proof li {
    padding: 14px 18px 0 0;
    background: transparent;
  }
  .motion .tour:not([data-beat='0']) .proof {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
  }

  /* The problem's questions float round the greyed pile. */
  .motion .asks {
    display: block;
    position: absolute;
    inset: 0;
    margin: 0;
  }
  .motion .ask {
    position: absolute;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
  }
  .motion .a1 { left: 8%; top: 16%; }
  .motion .a2 { left: 52%; top: 9%; }
  .motion .a3 { left: 58%; top: 70%; }
  .motion .a4 { left: 12%; top: 64%; }
  .motion .a5 { left: 30%; top: 84%; }
  .motion .tour[data-beat='1'] .ask {
    opacity: 1;
    transform: none;
  }
  .motion .tour[data-beat='1'] .a2 { transition-delay: 0.12s; }
  .motion .tour[data-beat='1'] .a3 { transition-delay: 0.24s; }
  .motion .tour[data-beat='1'] .a4 { transition-delay: 0.36s; }
  .motion .tour[data-beat='1'] .a5 { transition-delay: 0.48s; }

  .motion .hero-stack {
    display: none;
  }
}

/* Short laptop windows (about 640 to 820 px tall): the hero copy steps down so it never meets the facts strip. */
@media (min-width: 1000px) and (min-height: 640px) and (max-height: 820px) {
  .motion .hero-copy {
    gap: 10px;
  }
  .motion .hero-copy .display {
    font-size: clamp(2.1rem, 6.3vh, 3.5rem);
  }
  .motion .hero-copy .lede {
    font-size: clamp(0.9375rem, 2.15vh, 1.125rem);
    line-height: 1.45;
  }
  .motion .hero-copy .cta-block {
    margin-top: 0;
    gap: 8px;
  }
  .motion .hero-copy .cta-lead {
    font-size: 0.9375rem;
  }
  .motion .hero-copy .btn-lg {
    min-height: 48px;
  }
}

@media (min-width: 1000px) and (min-height: 640px) and (max-height: 700px) {
  .motion .hero-copy .status {
    display: none;
  }
}

/* ============================================================
   1c. The still layout on wide windows: two columns, row by row
   ============================================================ */

@media (min-width: 1000px) {
  html:not(.motion) .tour-pin {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: center;
    max-width: var(--wrap);
    padding-top: 56px;
  }
  html:not(.motion) .hero-copy { grid-column: 1; grid-row: 1; }
  html:not(.motion) .hero-stack { grid-column: 2; grid-row: 1; margin-top: 0; }
  html:not(.motion) .proof { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; }
  html:not(.motion) .cap-why { grid-column: 1; grid-row: 3; }
  html:not(.motion) .asks { grid-column: 2; grid-row: 3; margin-top: 84px; align-content: center; }
  html:not(.motion) .cap[data-cap='2'] { grid-column: 1; grid-row: 4; }
  html:not(.motion) .p-brief { grid-column: 2; grid-row: 4; }
  html:not(.motion) .cap[data-cap='3'] { grid-column: 1; grid-row: 5; }
  html:not(.motion) .p-top { grid-column: 2; grid-row: 5; }
  html:not(.motion) .cap[data-cap='4'] { grid-column: 1; grid-row: 6; }
  html:not(.motion) .p-markets { grid-column: 2; grid-row: 6; }
  html:not(.motion) .cap[data-cap='5'] { grid-column: 1; grid-row: 7; }
  html:not(.motion) .p-pulse { grid-column: 2; grid-row: 7; }
  html:not(.motion) .cap[data-cap='6'] { grid-column: 1; grid-row: 8; }
  html:not(.motion) .p-data { grid-column: 2; grid-row: 8; }
  html:not(.motion) .cap[data-cap='7'] { grid-column: 1; grid-row: 9; }
  html:not(.motion) .p-ai { grid-column: 2; grid-row: 9; }
  html:not(.motion) .panel { margin-top: 84px; }
  html:not(.motion) .hero-stack .hs-bar { height: 52px; font-size: 0.8125rem; }
  html:not(.motion) .hero-stack .hs1::after { width: 52px; height: 52px; right: -60px; }
  html:not(.motion) .hero-stack { padding-right: 60px; gap: 10px; }
}
@media (min-width: 1000px) and (max-height: 639px) {
  .motion .tour-pin {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(40px, 6vw, 96px);
    align-items: center;
    max-width: var(--wrap);
    padding-top: 48px;
  }
  .motion .hero-copy { grid-column: 1; grid-row: 1; }
  .motion .hero-stack { grid-column: 2; grid-row: 1; margin-top: 0; }
  .motion .proof { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
  .motion .cap-why { grid-column: 1; grid-row: 3; }
  .motion .asks { grid-column: 2; grid-row: 3; margin-top: 84px; align-content: center; }
  .motion .cap[data-cap='2'] { grid-column: 1; grid-row: 4; }
  .motion .p-brief { grid-column: 2; grid-row: 4; }
  .motion .cap[data-cap='3'] { grid-column: 1; grid-row: 5; }
  .motion .p-top { grid-column: 2; grid-row: 5; }
  .motion .cap[data-cap='4'] { grid-column: 1; grid-row: 6; }
  .motion .p-markets { grid-column: 2; grid-row: 6; }
  .motion .cap[data-cap='5'] { grid-column: 1; grid-row: 7; }
  .motion .p-pulse { grid-column: 2; grid-row: 7; }
  .motion .cap[data-cap='6'] { grid-column: 1; grid-row: 8; }
  .motion .p-data { grid-column: 2; grid-row: 8; }
  .motion .cap[data-cap='7'] { grid-column: 1; grid-row: 9; }
  .motion .p-ai { grid-column: 2; grid-row: 9; }
  .motion .tour .panel { margin-top: 84px; }
}

@keyframes pile-in {
  from { opacity: 0; translate: 0 90px; }
}
/* One pass of light across the brief when the page opens. */
@media (min-width: 1000px) and (min-height: 640px) {
  .motion .p-brief .br::after {
    content: '';
    position: absolute;
    inset: -20% -70%;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 42%, rgb(255 236 200 / 0.22) 48%, rgb(255 248 232 / 0.45) 50%, rgb(255 236 200 / 0.22) 52%, transparent 58%);
    transform: translateX(-60%);
    animation: sheen 2.4s var(--ease) 1.1s both;
  }
}
@keyframes sheen {
  to { transform: translateX(60%); }
}

/* The intro's index on phones and still layouts: seven bars, narrowing like the logo, plus Tredit's gold square. */
.hs-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--navy);
  color: #f3efe8;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[data-theme='dark'] .hs-bar {
  background: #f3efe8;
  color: #0b1b36;
}
.hs-bar b {
  margin-right: 10px;
  color: var(--gold);
}
[data-theme='dark'] .hs-bar b {
  color: #8f5a2e;
}
.hs-bar { white-space: nowrap; }
.hs1 { width: 100%; }
.hs2 { width: 94%; opacity: 0.92; }
.hs3 { width: 88%; opacity: 0.84; }
.hs4 { width: 82%; opacity: 0.76; }
.hs5 { width: 76%; opacity: 0.7; }
.hs6 { width: 70%; opacity: 0.64; }
.hs7 { width: 64%; opacity: 0.58; }
.hs1::after {
  content: '';
  position: absolute;
  right: -40px;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--gold);
}
.hero-stack {
  padding-right: 40px;
}
.motion .hero-stack .hs-bar {
  animation: hs-in 0.7s var(--ease) both;
}
.motion .hero-stack .hs2 { animation-delay: 0.08s; }
.motion .hero-stack .hs3 { animation-delay: 0.16s; }
.motion .hero-stack .hs4 { animation-delay: 0.24s; }
.motion .hero-stack .hs5 { animation-delay: 0.32s; }
.motion .hero-stack .hs6 { animation-delay: 0.4s; }
.motion .hero-stack .hs7 { animation-delay: 0.48s; }
@keyframes hs-in {
  from { opacity: 0; transform: translateX(-16px); }
}

/* ============================================================
   2. The step rail (pinned tour only)
   ============================================================ */

.rail {
  display: none;
}
@media (min-width: 1000px) and (min-height: 640px) {
  .motion .rail {
    position: fixed;
    left: var(--gx);
    bottom: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px 6px 6px;
    border-radius: 999px;
    background: var(--glass-fill);
    box-shadow: var(--glass-edge), var(--glass-drop);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  }
  .motion .rail.is-shown,
  .motion .rail:focus-within {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
@media (min-width: 1000px) and (min-height: 640px) and (pointer: fine) {
  .motion .rail {
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
  }
}
.rail-steps {
  display: flex;
  gap: 2px;
}
.rail button {
  display: grid;
  gap: 5px;
  min-width: 64px;
  padding: 8px 12px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}
.rail button:hover,
.rail button[aria-current='step'] {
  color: var(--ink);
}
.rail button[aria-current='step'] {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
}
.rail-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--rule-2);
  overflow: hidden;
}
.rail-bar i {
  display: block;
  height: 100%;
  background: var(--copper);
  transform: scaleX(var(--f, 0));
  transform-origin: left;
}
/* Skip: a copper button to the next section (Benefits), for anyone who does not want every product screen. */
.rail-skip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 9px 16px 9px 18px;
  border-radius: 999px;
  background: #e2a24a;
  color: #1a1f2e;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgb(226 162 74 / 0.8);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.rail-skip svg {
  width: 14px;
  height: 14px;
  transform: rotate(90deg);
}
.rail-skip:hover {
  background: #ecb565;
  color: #1a1f2e;
  transform: translateY(-1px);
}
.rail-skip:focus-visible {
  outline: 3px solid #f3d9a4;
  outline-offset: 3px;
}
