/* SuperAppAnalytics — landing page. */

/* ================= Hero ================= */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(36px, 4vw, 56px));
  overflow: hidden;
}
.hero .aura { height: 1100px; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }

.announce {
  display: inline-flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 14px 0 5px;
  margin-bottom: 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em;
}
.announce-tag {
  display: inline-flex; align-items: center;
  height: 28px; padding: 0 11px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.announce .i { font-size: 15px; color: var(--text-2); transition: transform .35s var(--ease-out); }
.announce:hover .i { transform: translateX(3px); }

.hero-title { font-size: clamp(46px, 6.4vw, 94px); }
@media (max-width: 700px) { .br-lg { display: none; } }
.hero-live {
  background: linear-gradient(100deg, rgb(var(--primary)) 10%, rgb(var(--glow)) 70%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .04em;
}
[data-theme="light"] .hero-live { background-image: linear-gradient(100deg, rgb(var(--deep)) 10%, rgb(var(--primary)) 60%, rgb(var(--glow)) 100%); }
.hero-lede { max-width: 640px; margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; max-width: 100%; margin-top: 28px; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--text-2); }

/* Push banners: the phone's banner uses these. */
.toast {
  display: flex; gap: 12px;
  padding: 12px 14px;
  border-radius: 24px;
  transform-origin: top center;
  animation: toast-in .7s var(--ease-out) both;
}
.toast.is-leaving { animation: toast-out .5s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.94); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px) scale(.96); } }
.toast img { width: 38px; height: 38px; flex: none; border-radius: 10px; }
.toast-body { min-width: 0; flex: 1; }
.toast-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.toast-title { display: block; margin-top: 1px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.toast p { margin: 1px 0 0; font-size: 14px; line-height: 1.35; color: var(--text); opacity: .86; }

/* ================= Sales tape ================= */

.tape {
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
  border-block: 1px solid var(--hairline);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tape-track { display: flex; width: max-content; animation: tape 80s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 30px;
  border-right: 1px solid var(--hairline);
  font-size: 15px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tape-item .flag { font-size: 17px; }
.tape-item .what { color: var(--text-2); }
.tape-item b { font-weight: 650; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ================= Story: the phone tour ================= */

.story { padding-bottom: clamp(48px, 8vw, 120px); }
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) auto;
  justify-content: center;
  gap: clamp(56px, 10vw, 170px);
  align-items: stretch;
}
.story-steps { padding: 4vh 0 10vh; }
.story-step {
  min-height: 86vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 500px;
  opacity: .26;
  transition: opacity .6s ease;
}
.story-step.is-active { opacity: 1; }
.step-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.step-kicker .i { font-size: 17px; color: rgb(var(--primary)); }
.story-step > p:not(.step-kicker) { margin: 18px 0 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--text-2); }
.step-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; }
.step-points li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 500; }
.step-points li::before {
  content: ""; width: 16px; height: 4px; flex: none; border-radius: 4px;
  background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--glow)));
  box-shadow: 0 0 8px rgba(var(--primary), .6);
}

.story-device { position: relative; }
.device-sticky {
  position: sticky;
  top: max(96px, calc(50vh - 360px));
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.story-dots { display: flex; gap: 6px; }
.story-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--text-3); transition: width .4s var(--ease-out), background-color .3s ease; }
.story-dots i.is-on { width: 20px; background: var(--text); }

/* ---- iPhone 17 Pro, drawn in CSS. Screen content is laid out in iOS points (393 × 852). ---- */

.device { --s: .8; position: relative; flex: none; width: calc(421px * var(--s)); height: calc(880px * var(--s)); }
.device-body {
  position: absolute; left: 0; top: 0;
  width: 421px; height: 880px;
  padding: 14px;
  border-radius: 72px;
  transform: scale(var(--s)); transform-origin: 0 0;
  background: linear-gradient(150deg, #4a4c52, #1c1d21 20%, #2c2d32 48%, #17181b 76%, #3d3e44);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .18),
    inset 0 0 1px 4px rgba(0, 0, 0, .55),
    0 60px 120px -40px rgba(0, 0, 0, .8),
    0 40px 90px -50px rgba(var(--primary), .6);
}
[data-theme="light"] .device-body {
  background: linear-gradient(150deg, #f7f7f9, #c6c7cc 20%, #e8e9ec 48%, #b7b8bd 76%, #ecedf0);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .9),
    inset 0 0 1px 4px rgba(0, 0, 0, .12),
    0 60px 120px -40px rgba(0, 0, 0, .35),
    0 40px 90px -50px rgba(var(--primary), .45);
}
.device-btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #1d1e22, #55575e); }
[data-theme="light"] .device-btn { background: linear-gradient(90deg, #a9aaaf, #e3e4e7); }
.device-btn.action { left: -3px; top: 168px; height: 36px; }
.device-btn.vol-up { left: -3px; top: 228px; height: 64px; }
.device-btn.vol-down { left: -3px; top: 304px; height: 64px; }
.device-btn.power { right: -3px; top: 262px; height: 100px; }
.device-screen {
  position: relative;
  width: 393px; height: 852px;
  border-radius: 58px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 10px #050507;
  isolation: isolate;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.ios-status {
  position: absolute; left: 0; right: 0; top: 0; z-index: 9;
  height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 34px 0 52px;
  font-size: 17px; font-weight: 600;
  pointer-events: none;
}
.ios-time { letter-spacing: -.02em; }
.ios-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; }
.ios-icons { display: flex; align-items: center; gap: 6px; }
.ios-icons svg { fill: currentColor; }
.ios-home { position: absolute; z-index: 9; left: 50%; bottom: 8px; width: 138px; height: 5px; margin-left: -69px; border-radius: 3px; background: var(--text); opacity: .9; }

.screen {
  position: absolute; inset: 0;
  padding-top: 54px;
  overflow: hidden;
  background: var(--bg);
  opacity: 0;
  transform: translateX(26%);
  transition: transform .7s var(--ease-out), opacity .45s ease;
  pointer-events: none;
}
.screen.is-before { transform: translateX(-22%); }
.screen.is-active { opacity: 1; transform: none; z-index: 2; }

.ios-bar { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 4px 16px 0; }
.ios-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; }
.ios-btn .i { font-size: 21px; stroke-width: 2; }
.ios-btn.accent .i { color: rgb(var(--positive)); }
.ios-btn .app-icon { width: 32px; height: 32px; border-radius: 9px; }
.ios-bar-title { font-size: 17px; font-weight: 600; }
.ios-large-title { padding: 18px 20px 14px; font-size: 38px; font-weight: 800; letter-spacing: -.025em; }

/* Overview */
.ov-hero { padding-top: 30px; text-align: center; }
.ov-label { display: inline-flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 700; color: var(--text-2); }
.ov-label .i { font-size: 12px; stroke-width: 2.8; }
.ov-value { margin-top: 2px; font-size: 76px; font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
.ov-sub { display: flex; justify-content: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-2); }


.ov-chart { height: 196px; margin-top: 18px; }

/* Overview: the content scrolls under a floating top bar and bottom bar. */
.ov-scroll { position: absolute; left: 0; right: 0; top: 0; padding: 114px 0 150px; will-change: transform; }
.ov-topfade { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 130px; background: linear-gradient(var(--bg) 42%, rgba(var(--bg-rgb), 0)); pointer-events: none; }
.ov-bar { position: absolute; left: 0; right: 0; top: 54px; z-index: 4; }
.ios-apps { display: flex; align-items: center; height: 46px; padding: 0 12px 0 10px; border-radius: 999px; }
.ios-apps .app-icon { width: 30px; height: 30px; border-radius: 8px; }
.ios-apps .app-icon + .app-icon { margin-left: -13px; transform: scale(.86); opacity: .85; z-index: -1; }
.ov-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 16px 0; }
.ov-card {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
  transition: transform .28s cubic-bezier(.3, .7, .3, 1);
}
.ov-card.is-pressed, .ios-btn.is-pressed { transform: scale(.965); }
.ov-chev { position: absolute; right: 16px; bottom: 16px; font-size: 15px; stroke-width: 2.6; color: var(--text-3); }
.ov-live { display: flex; align-items: center; gap: 10px; min-height: 194px; }
.ov-live-text { display: flex; flex: 1; flex-direction: column; gap: 6px; }
.ov-live-label { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: rgb(var(--positive)); }
[data-theme="light"] .ov-live-label, [data-theme="light"] .ovm-live { color: rgb(var(--primary)); }
.ov-live-label .i { font-size: 22px; }
.ov-cap { font-size: 14px; color: var(--text-2); }
.ov-live-num { font-size: 52px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ov-globe { width: 150px; height: 150px; flex: none; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ov-metric { display: flex; flex-direction: column; min-height: 200px; padding: 16px; }
.ovm-head { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.ovm-head .i { font-size: 20px; }
.ovm-live { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 14px; font-weight: 600; color: rgb(var(--positive)); }
.ovm-live .i { font-size: 17px; }
.ovm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 12px; }
.ovm-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 24px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovm-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ovm-trend .i { font-size: 15px; stroke-width: 2.4; }
.ovm-trend.up { color: rgb(var(--positive)); }
[data-theme="light"] .ovm-trend.up { color: rgb(var(--primary)); }
.ovm-trend.down { color: rgb(var(--negative)); }
.ovm-chart { height: 76px; margin: 14px -4px 22px; }
.ovf-head { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; }
.ovf-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ovf-head .i { font-size: 19px; color: var(--text-2); }
.ovf-head .chip { height: 28px; padding: 0 11px; font-size: 13px; }
.ovf-big { margin-top: 10px; font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.ovf-big small { margin-left: 8px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.ovf-rows { display: grid; gap: 12px; margin: 16px 0 6px; }
.ovf-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 15px; font-weight: 600; }
.ovf-row b { font-variant-numeric: tabular-nums; }
.ovf-row i {
  grid-column: 1 / -1; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--primary)) 55%, rgb(var(--glow))) 0 0 / var(--w) 100% no-repeat, var(--track);
  box-shadow: 0 0 8px rgba(var(--primary), .35);
}
.ovp-value { margin-top: 8px; font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.ovp-chart { height: 96px; margin: 12px -4px 0; }
.ov-bottom { position: absolute; left: 20px; right: 20px; bottom: 30px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ios-btn-lg { width: 52px; height: 52px; flex: none; }
.ios-btn-lg .i { font-size: 25px; stroke-width: 1.8; }
.ov-bottom .seg-phone { padding: 4px; }
.ov-bottom .seg-phone .seg-btn { height: 46px; min-width: 46px; padding: 0 11px; font-size: 15px; }
.ov-bottom .seg-phone .seg-btn:first-of-type { min-width: 70px; }
.tap-ripple { position: absolute; left: 0; top: 0; z-index: 12; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: rgba(var(--text-rgb), .28); box-shadow: 0 0 0 1px rgba(var(--text-rgb), .25); opacity: 0; pointer-events: none; }

.ios-banner {
  position: absolute; left: 10px; right: 10px; top: 10px; z-index: 10;
  display: flex; gap: 11px;
  padding: 13px 14px;
  border-radius: 28px;
  transform: translateY(-150%);
  transition: transform .7s cubic-bezier(.2, 1.15, .3, 1);
}
.ios-banner.is-in { transform: none; }
.ios-banner img { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.ios-banner .toast-title { font-size: 15.5px; }
.ios-banner p { margin: 1px 0 0; font-size: 14.5px; line-height: 1.32; }

/* Funnel */
.chip-row { display: flex; gap: 8px; padding: 6px 16px 14px; }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--fill-2); font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.chip.is-on { background: var(--text); color: var(--bg); }
.p-card {
  margin: 0 16px 14px;
  padding: 18px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--card-shadow);
}
.p-center { text-align: center; }
.p-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.p-big { margin-top: 2px; font-size: 78px; font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.p-cap { font-size: 16px; color: var(--text-2); }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.p-stats div { display: flex; flex-direction: column; gap: 2px; }
.p-stats div + div { border-left: 1px solid var(--hairline); }
.p-stats b { font-size: 20px; font-weight: 700; }
.p-stats span { font-size: 14px; color: var(--text-2); }
.p-card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.p-card-head h5 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.p-card-head span { font-size: 14px; color: var(--text-2); }
.fsteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fsteps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.fsteps li:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 38px; bottom: -12px; width: 1.5px; background: var(--hairline-2); }
.fs-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); font-size: 14px; font-weight: 700; color: var(--text-2); }
.fs-top { display: flex; align-items: baseline; justify-content: space-between; font-size: 17px; }
.fs-top b:first-child { font-weight: 600; }
.fs-top b:last-child { font-size: 20px; font-weight: 700; }
.fs-bar { height: 5px; margin: 8px 0 7px; border-radius: 4px; background: var(--track); }
.fs-bar i {
  display: block; height: 100%; width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--primary)) 55%, rgb(var(--glow)));
  box-shadow: 0 0 8px rgba(var(--primary), .55);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease-out);
}
.screen.is-active .fs-bar i { transform: scaleX(1); }
.fsteps li:nth-child(2) .fs-bar i { transition-delay: .1s; }
.fsteps li:nth-child(3) .fs-bar i { transition-delay: .2s; }
.fsteps li:nth-child(4) .fs-bar i { transition-delay: .3s; }
.fs-bot { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.fs-flag { margin: -3px -2px 0 0; padding: 3px 10px; border-radius: 999px; background: var(--fill-2); color: var(--text); }

/* Customer */
.cu-head { padding: 6px 16px 0; text-align: center; }
.cu-avatar { position: relative; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--fill-2); color: var(--text-2); }
.cu-avatar .i { font-size: 34px; }
.cu-flag { position: absolute; right: -4px; bottom: -2px; font-size: 24px; line-height: 1; }
.cu-id { margin-top: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.cu-meta { font-size: 14px; color: var(--text-2); }
.cu-ltv { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 14px; }
.cu-ltv-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.cu-ltv-value { font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.cu-ltv-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.journey { list-style: none; margin: 0; padding: 0; }
.journey li { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 7px 0 7px 22px; }
.journey li::before { content: ""; position: absolute; left: 3px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.journey li:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: 25px; bottom: -9px; width: 1px; background: var(--hairline-2); }
.journey b { display: block; font-size: 15.5px; font-weight: 600; }
.journey span { font-size: 13px; color: var(--text-2); }
.journey time { flex: none; padding-top: 2px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.journey .is-money::before { background: rgb(var(--glow)); box-shadow: 0 0 8px rgb(var(--glow)); }
.journey .is-money time { font-size: 16px; font-weight: 700; color: rgb(var(--positive)); }
[data-theme="light"] .journey .is-money time { color: rgb(var(--deep)); }
.cu-attrs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 16px 14px; }
.cu-attrs span { padding: 5px 10px; border-radius: 999px; background: var(--fill-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); }

/* Payouts */
.po-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.po-ring { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(var(--positive), .2); }
.po-ring .live-dot { width: 10px; height: 10px; background: rgb(var(--positive)); }
.po-live { color: rgb(var(--positive)); }
[data-theme="light"] .po-live { color: rgb(var(--primary)); }
.po-title { color: var(--text-2); }
.po-head .i { margin-left: auto; color: var(--text-3); font-size: 18px; }
.po-value { margin-top: 8px; font-size: 60px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.po-sub { margin-top: 4px; font-size: 17px; color: var(--text-2); }
.po-sub b { color: var(--text); }
.po-chart { height: 104px; margin: 14px -4px 0; }
.po-axis { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.po-lock { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.po-lock > .i { font-size: 20px; color: var(--text-2); }
.po-lock div { flex: 1; }
.po-lock div b { display: block; font-size: 16.5px; }
.po-lock div span { font-size: 14px; color: var(--text-2); }
.po-lock .num { font-size: 18px; }
.fiscal { display: grid; grid-template-columns: repeat(7, 1fr) 54px; gap: 5px; align-items: center; }
.fiscal .fh { font-size: 11px; font-weight: 700; text-align: center; color: var(--text-2); }
.fiscal .fd { aspect-ratio: 1.3; border-radius: 7px; background: rgba(var(--primary), var(--a, .1)); }
.fiscal .fd.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--hairline-2); }
.fiscal .fd.is-today { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--text); }
.fiscal .fw { font-size: 12.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fiscal .fw.is-empty { color: var(--text-3); }

/* ================= How it works: 1 prompt → 2 it reads your app → 3 live ================= */

/* Three numbered steps, centered, joined by a thin line that glows blue toward the next step. */
.flow { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; }
.flow-step { position: relative; display: grid; justify-items: center; max-width: 760px; width: 100%; margin: 0 auto; }
.flow-step.flow-wide { max-width: none; justify-items: stretch; }
.flow-wide .flow-label { justify-self: center; }
.flow-step + .flow-step { padding-top: 112px; }
.flow-step + .flow-step::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 1px; height: 76px;
  background: linear-gradient(var(--hairline-2), rgba(var(--primary), .7));
}
.flow-step + .flow-step::after {
  content: ""; position: absolute; top: 18px; left: calc(50% - 2px); width: 5px; height: 5px; border-radius: 50%;
  background: rgb(var(--glow)); box-shadow: 0 0 10px rgba(var(--glow), .9);
  animation: flow-drop 2.6s cubic-bezier(.55, 0, .45, 1) infinite;
}
@keyframes flow-drop { 0% { transform: translateY(0); opacity: 0; } 20%, 75% { opacity: 1; } 100% { transform: translateY(72px); opacity: 0; } }

.flow-label { display: grid; justify-items: center; gap: 0; margin-bottom: 26px; text-align: center; }
.flow-n {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin-bottom: 14px;
  border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px rgba(var(--primary), .14), 0 0 28px rgba(var(--glow), .35);
}
.flow-label h3 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.028em; line-height: 1.15; }
.flow-label p { max-width: 520px; margin: 8px 0 0; font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }

/* 1. The prompt: the words you paste, with one big Copy. */
.prompt-bar {
  display: flex; align-items: center; gap: 16px;
  width: 100%;
  padding: 18px 14px 18px 22px;
  border-radius: 26px;
  box-shadow: var(--card-shadow), 0 30px 80px -50px rgba(var(--primary), .55);
}
.prompt-caret { flex: none; align-self: flex-start; font-family: var(--mono); font-size: 18px; line-height: 1.5; color: rgb(var(--primary)); user-select: none; -webkit-user-select: none; }
.prompt-bar .prompt-text { flex: 1; min-width: 0; margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.prompt-text b { font-family: var(--mono); font-size: .92em; font-weight: 600; }
.prompt-bar .copy-btn { height: 46px; padding: 0 20px; background: var(--btn-bg); color: var(--btn-fg); font-size: 15px; }
.prompt-bar .copy-btn:hover { background: var(--btn-bg); box-shadow: 0 0 0 4px rgba(var(--glow), .12), 0 10px 30px rgba(var(--primary), .3); }
.prompt-bar .copy-btn .i-done { color: inherit; }

/* 3. Live: the events the agent just added, arriving one by one. */
.live-feed { width: 100%; max-width: 560px; padding: 16px 18px 8px; border-radius: 24px; box-shadow: var(--card-shadow), 0 30px 80px -50px rgba(var(--primary), .5); }
.lf-head { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--hairline); }
.lf-app { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--text); }
.lf-app .app-icon { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.lf-rows { position: relative; list-style: none; margin: 0; padding: 0; height: calc(4 * 58px); overflow: hidden; }
.lf-row {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 12px;
  height: 58px;
  border-bottom: 1px solid var(--hairline);
  transform: translateY(calc(var(--slot) * 58px));
  transition: transform .7s var(--ease-out), opacity .5s ease;
}
.lf-row.is-new { opacity: 0; transform: translateY(-58px); }
.lf-row.is-gone { opacity: 0; }
.lf-badge {
  flex: none; min-width: 74px; padding: 5px 9px;
  border-radius: 999px; background: var(--fill-2); color: var(--text-2);
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-align: center; text-transform: uppercase;
}
.lf-row.is-paid .lf-badge, .lf-row.is-goal .lf-badge { background: rgba(var(--primary), .16); color: rgb(var(--glow)); }
[data-theme="light"] .lf-row.is-paid .lf-badge, [data-theme="light"] .lf-row.is-goal .lf-badge { color: rgb(var(--primary)); }
.lf-text { flex: 1; min-width: 0; display: grid; }
.lf-text code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: var(--text); }
.lf-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.lf-row time { flex: none; font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.flow-facts { display: flex; flex-wrap: wrap; width: max-content; max-width: 100%; justify-content: center; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--text-2); }
.flow-facts li { display: inline-flex; align-items: center; gap: 8px; }
.flow-facts .i { font-size: 16px; color: var(--text); }

/* ================= It reads your app: the agent crawls the project ================= */

.reads-tabs { display: flex; justify-content: center; margin-bottom: 28px; }
.reads-tabs .seg-btn { height: 44px; padding: 0 18px 0 12px; gap: 9px; font-size: 15px; }
.reads-tabs .seg-btn .app-icon { width: 22px; height: 22px; border-radius: 6px; box-shadow: none; }

/* Notebook AI's icon: a white page on amber. */
.app-icon.app-notebook { background: linear-gradient(150deg, #ffd65a, #ffad1f 58%, #ff8a00); }
.app-icon.app-notebook::before {
  width: 40%; height: 52%; border-radius: 2px;
  background: repeating-linear-gradient(180deg, #fff 0 22%, rgba(255, 173, 31, .55) 22% 30%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.crawl { overflow: hidden; }
.crawl-bar {
  display: flex; align-items: center; gap: 14px;
  height: 52px; padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--fill);
}
.crawl-app { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 15px; }
.crawl-app .app-icon { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.crawl-app b { font-weight: 650; letter-spacing: -.01em; }
.crawl-status {
  flex: 1; min-width: 0;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 13.5px; color: var(--text-2);
}
.cs-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crawl-status .i { flex: none; font-size: 15px; stroke-width: 2.4; color: var(--text); }
.cs-spin { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--hairline-2); border-top-color: var(--text); animation: cs-spin .8s linear infinite; }
@keyframes cs-spin { to { transform: rotate(360deg); } }
.crawl-replay { flex: none; margin-left: 0; background: var(--fill-2); color: var(--text); }
.crawl-replay:hover { background: var(--track); }

.crawl-grid { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.08fr); padding: 24px 28px 22px; }
.crawl-src, .crawl-out { min-width: 0; }

/* Weather-style module headers: caps title with a glyph, trailing note, divider. */
.cr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.cr-title { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.cr-title .i { font-size: 15px; }
.cr-trail { font-size: 13px; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-trail b { font-weight: 700; color: var(--text); }

/* The project tree, read top to bottom. */
.tree-wrap { position: relative; }
.scan {
  position: absolute; left: -8px; right: -8px; top: 0; height: 30px;
  border-radius: 9px;
  background: var(--fill-2);
  box-shadow: inset 2px 0 0 var(--text);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.scan.is-on { opacity: 1; }
.tree { position: relative; list-style: none; margin: 0; padding: 0; }
.tr {
  display: flex; align-items: center; gap: 8px;
  height: 30px; padding-left: calc(var(--depth) * 18px + 2px);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0;
  color: var(--text-3);
  white-space: nowrap;
  transition: color .3s ease;
  animation: crawl-in .5s var(--ease-out) both;
  animation-delay: calc(var(--i) * 22ms);
}
.tr.is-read { color: var(--text-2); }
.tr.is-dir { font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
.tr.is-hit { color: var(--text); }
.tr-glyph { font-size: 15px; stroke-width: 1.6; opacity: .8; }
.tr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tr-tag {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  background: var(--fill-2);
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--text);
  opacity: 0; transform: translateX(8px) scale(.9);
  transition: opacity .3s ease, transform .55s var(--ease-out);
}
.tr.is-hit .tr-tag { opacity: 1; transform: none; }
.tr.is-core .tr-tag { gap: 6px; }
.tr.is-core .tr-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--primary)); box-shadow: 0 0 6px rgba(var(--glow), .8); }
@keyframes crawl-in { from { opacity: 0; transform: translateY(5px); } }

/* A peek at the lines the agent writes. */
.peek {
  margin-top: 16px;
  border-radius: 14px;
  background: var(--fill);
  border: 1px solid var(--hairline);
  overflow: hidden;
  opacity: .4;
  transition: opacity .4s ease;
}
.peek.is-on { opacity: 1; }
.peek-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--hairline); font-size: 11.5px; color: var(--text-2); }
.peek-file { font-family: var(--mono); color: var(--text); }
.peek-file:empty::before { content: "Waiting for the first find"; font-family: var(--sans); color: var(--text-3); }
.peek-code { min-height: 82px; padding: 8px 0; font-family: var(--mono); font-size: 12px; line-height: 22px; letter-spacing: 0; }
.pk-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding-right: 12px; animation: crawl-in .4s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.pk-g { text-align: center; color: var(--text-3); user-select: none; -webkit-user-select: none; }
.pk-t { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.pk-t .k { color: var(--text-3); }
.pk-line.add { background: rgba(var(--primary), .1); }
.pk-line.add .pk-g { font-weight: 700; color: rgb(var(--primary)); }
.pk-line.add .pk-t { color: var(--text); }

/* From your code to your dashboard. */
.crawl-arrow { position: relative; display: grid; place-items: center; }
.crawl-arrow::before { content: ""; position: absolute; top: 40px; bottom: 40px; left: 50%; width: 1px; background: var(--hairline); }
.crawl-arrow span {
  position: relative; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--hairline-2);
}
.crawl-arrow span::before { content: ""; width: 8px; height: 8px; margin-left: -3px; border-top: 1.8px solid var(--text-2); border-right: 1.8px solid var(--text-2); transform: rotate(45deg); }

.mod + .mod { margin-top: 22px; }

/* Events: placeholders until the agent adds them, then a funnel. */
.evs, .attrs { list-style: none; margin: 0; padding: 0; }
.ev {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(80px, 36%) 40px;
  align-items: center; gap: 0 12px;
  min-height: 47px; padding: 5px 0;
  border-bottom: 1px solid var(--hairline);
}
.ev:last-child { border-bottom: 0; }
.ev.is-anchor { border-top: 1px dashed var(--hairline-2); }
.ev-n {
  display: grid; place-items: center;
  height: 22px; border-radius: 7px;
  background: var(--fill-2);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--text-2);
  transition: background-color .3s ease, color .3s ease, box-shadow .4s ease;
}
.ev-n .i { font-size: 13px; }
.ev-text { display: flex; flex-direction: column; min-width: 0; }
.ev-name, .ev-why, .at-key, .at-val { transition: color .35s ease, background-color .35s ease; }
.ev-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; overflow-wrap: anywhere; }
.ev-why { margin-top: 1px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.ev-goal {
  flex: none; display: inline-flex; align-items: center;
  height: 18px; padding: 0 7px; border-radius: 999px;
  background: rgba(var(--primary), .16); color: rgb(var(--positive));
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
[data-theme="light"] .ev-goal { background: rgba(var(--deep), .1); color: rgb(var(--deep)); }
.ev.is-goal .ev-n { background: linear-gradient(135deg, rgb(var(--glow)), rgb(var(--deep))); color: #fff; box-shadow: 0 0 12px rgba(var(--primary), .5); }
.ev:not(.is-in) .ev-n { background: var(--fill); color: transparent; box-shadow: none; }
.ev:not(.is-in) .ev-name, .ev:not(.is-in) .ev-why { width: fit-content; border-radius: 5px; background: var(--fill-2); color: transparent; }
.ev:not(.is-in) .ev-goal { opacity: 0; }

/* Weather meter: gray track, blue gradient fill, white "now" dot on the goal row. */
.ev-meter { position: relative; height: 6px; border-radius: 3px; background: var(--track); opacity: 0; transition: opacity .4s ease; }
.ev.is-in .ev-meter { opacity: .7; }
.crawl.is-funnel .ev-meter { opacity: 1; }
.ev-meter i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--primary)) 55%, rgb(var(--glow)));
  box-shadow: 0 0 8px rgba(var(--primary), .5);
}
.crawl.is-funnel .ev-meter i { width: var(--w); }
.ev.is-goal .ev-meter i::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px var(--surface), 0 0 8px rgba(var(--glow), .9);
}
[data-theme="light"] .ev.is-goal .ev-meter i::after { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25), 0 1px 4px rgba(0, 0, 0, .35), 0 0 8px rgba(var(--glow), .6);
  opacity: 0; transition: opacity .3s ease .9s;
}
.crawl.is-funnel .ev.is-goal .ev-meter i::after { opacity: 1; }
.ev-pct { text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; opacity: 0; transform: translateY(3px); transition: opacity .35s ease, transform .5s var(--ease-out); }
.crawl.is-funnel .ev-pct { opacity: 1; transform: none; transition-delay: calc(var(--delay, 0ms) + 380ms); }

/* Customer data: key, example answer; personal or free-form fields are skipped. */
.at { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; border-bottom: 1px solid var(--hairline); }
.at:last-child { border-bottom: 0; }
.at-key { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; color: var(--text); }
.at-val { padding: 2px 9px; border-radius: 999px; background: var(--fill-2); font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--text-2); }
.at.is-skip .at-key { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }
.at.is-skip .at-val { padding: 0; background: none; font-family: var(--sans); font-size: 12.5px; }
.at:not(.is-in) .at-key, .at:not(.is-in) .at-val { border-radius: 5px; background: var(--fill-2); color: transparent; text-decoration-color: transparent; }

/* The chip that flies from a file to its row. */
.fly {
  position: absolute; left: 0; top: 0; z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; line-height: 1.4;
  color: var(--text);
  white-space: nowrap;
  pointer-events: none;
  will-change: transform, opacity;
}
[data-theme="light"] .fly { box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .22); }
.fly-ev { box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55), 0 0 18px rgba(var(--glow), .28); }
.fly-skip { color: var(--text-2); text-decoration: line-through; }

/* The agent's four steps. */
.crawl-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px;
  margin: 0; padding: 16px 28px 18px;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.crawl-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; color: var(--text-2); transition: color .3s ease; }
.crawl-steps li b { font-weight: 700; color: var(--text); }
.crawl-steps li.is-active, .crawl-steps li.is-done { color: var(--text); }
.cs-dot { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: background-color .3s ease, border-color .3s ease; }
.is-active > .cs-dot { border-color: var(--hairline-2); border-top-color: var(--text); border-right-color: var(--text); animation: cs-spin .9s linear infinite; }
.is-done > .cs-dot { background: var(--text); border-color: var(--text); }
.is-done > .cs-dot::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border-right: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: rotate(45deg); }

/* ---- The one prompt ---- */

.cmd-prompt-pill .cmd-prompt { font-size: 17px; font-weight: 600; }
.cmd-label { font-family: var(--sans); font-size: 15px; font-weight: 500; text-align: left; }
.cmd-prompt-pill { max-width: min(100%, 380px); }
.ios-short { display: none; }

/* SuperAppAnalytics for iPhone: coming soon. */
.ios-soon { display: inline-flex; align-items: center; justify-content: center; gap: 9px; margin: 28px 0 0; font-size: 14px; color: var(--text-2); text-align: left; }
.ios-soon-icon { flex: none; }
.ios-soon-icon img { width: 24px; height: 24px; border-radius: 6px; box-shadow: 0 0 0 .5px var(--hairline-2); }
.ios-soon .text-link { font-size: inherit; }

@media (max-width: 1020px) {
  .crawl-grid { grid-template-columns: minmax(0, 1fr); }
  .crawl-arrow { height: 56px; }
  .crawl-arrow::before { top: 6px; bottom: 6px; }
  .crawl-arrow span { transform: rotate(90deg); }
  .crawl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .reads-tabs .seg-btn { padding: 0 12px 0 9px; gap: 7px; font-size: 14px; }
  .flow-step + .flow-step { padding-top: 84px; }
  .flow-step + .flow-step::before { height: 52px; }
  @keyframes flow-drop { 0% { transform: translateY(0); opacity: 0; } 20%, 75% { opacity: 1; } 100% { transform: translateY(48px); opacity: 0; } }
  .flow-label p { font-size: 16px; }
  .prompt-bar { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .prompt-caret { display: none; }
  .prompt-bar .prompt-text { flex-basis: 100%; font-size: 14.5px; }
  .prompt-bar .copy-btn { width: 100%; }
  .live-feed { padding: 14px 14px 6px; }
  .lf-badge { min-width: 64px; font-size: 10px; }
  .flow-facts { flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .crawl-bar { padding: 0 10px 0 14px; gap: 10px; }
  .crawl-status { font-size: 12.5px; }
  .cs-found { display: none; }
  .cr-head { flex-wrap: wrap; row-gap: 2px; }
  .cr-trail { font-size: 12.5px; }
  .crawl-grid { padding: 18px 16px 16px; }
  .crawl-steps { padding: 14px 16px 16px; gap: 10px 14px; }
  .crawl-steps li { font-size: 12.5px; align-items: flex-start; }
  .tr { height: 27px; font-size: 12px; }
  .pk-t { white-space: pre; overflow-wrap: normal; }
  .peek-code { overflow-x: auto; scrollbar-width: none; }
  .peek-code::-webkit-scrollbar { display: none; }
  .pk-line { width: max-content; min-width: 100%; }
  .ev { grid-template-columns: 28px minmax(0, 1fr) 40px; gap: 6px 10px; padding: 8px 0; }
  .ev-meter { grid-column: 2 / 3; grid-row: 2; }
  .ev-pct { grid-column: 3; grid-row: 1 / span 2; }
  .ev-name { font-size: 12px; }
  .cmd-prompt-pill .copy-btn .copy-label, .prompt-bar .copy-btn .prompt-copy-label { display: inline; }
  .cmd-prompt-pill .cmd-label { flex: 1; }
  .ios-long, .ios-soon-icon { display: none; }
  .ios-short { display: inline; }
  .ios-soon { white-space: nowrap; }
  .ev { row-gap: 0; }
  .ev-meter { height: 0; margin-top: 0; transition: opacity .4s ease, height .5s var(--ease-out), margin-top .5s var(--ease-out); }
  .crawl.is-funnel .ev-meter { height: 6px; margin-top: 7px; }
  .ev.is-in .ev-meter { opacity: 0; }
  .crawl.is-funnel .ev.is-in .ev-meter { opacity: 1; }
  .tr.is-plain { display: none; }
  .peek { display: none; }
  .crawl-steps { grid-template-columns: minmax(0, 1fr); }
  .crawl-replay { font-size: 0; gap: 0; padding: 0 9px; }
  .crawl-replay .i { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tr, .pk-line { animation: none; }
  .cs-spin, .is-active > .cs-dot { animation: none; }
  .flow-step + .flow-step::after { animation: none; opacity: 0; }
  .lf-row { transition: none; }
}

/* ================= Bento ================= */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.bento-card { display: flex; flex-direction: column; gap: 24px; padding: clamp(22px, 2.4vw, 30px); overflow: hidden; }
.b-globe { grid-column: span 2; grid-row: span 2; }
.b-push { grid-row: span 2; }
.b-refund { grid-column: span 2; }
.b-goal { grid-column: span 2; flex-direction: row; align-items: stretch; }
@media (min-width: 1101px) { .b-refund { grid-column: span 3; flex-direction: row; } .b-refund .bento-copy { flex: 0 0 34%; } .b-refund .refund { flex: 1; } }
.b-goal .bento-copy { flex: 1; }
.b-goal .goal { flex: 1.1; }
.kicker { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.kicker .i { font-size: 16px; }
.kicker.live { color: rgb(var(--positive)); }
[data-theme="light"] .kicker.live { color: rgb(var(--primary)); }
.kicker .pill { height: 22px; padding: 0 8px; font-size: 10.5px; }
.bento-copy h3 { margin: 0; font-size: clamp(21px, 1.9vw, 26px); font-weight: 700; letter-spacing: -.026em; line-height: 1.15; text-wrap: balance; }
.bento-copy p:not(.kicker) { margin: 10px 0 0; max-width: 540px; font-size: 16px; line-height: 1.5; color: var(--text-2); }

.meter { height: 4px; border-radius: 4px; background: var(--track); }
.meter i {
  display: block; height: 100%; width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--primary)) 55%, rgb(var(--glow)));
  box-shadow: 0 0 8px rgba(var(--primary), .55);
  transition: width 1s var(--ease-out);
}
.meter.faded i { background: color-mix(in srgb, rgb(var(--primary)) 30%, var(--surface)); box-shadow: none; }

/* Live globe */
.globe-stage { flex: 1; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: center; gap: 12px; }
.live-stats { display: flex; flex-direction: column; }
.live-cap { font-size: 14px; color: var(--text-2); }
.live-num { margin: 2px 0 2px; font-family: var(--display); font-size: clamp(52px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; }
.live-where { font-size: 14px; color: var(--text-2); }
.live-rows { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 300px; }
.live-rows li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px 10px; font-size: 15px; font-weight: 600; }
.live-rows .meter { grid-column: 2 / 4; }
.live-rows .lr-flag { font-size: 17px; }
.live-rows .lr-n { font-variant-numeric: tabular-nums; }
.globe { width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: end; }

/* Lock screen notifications */
.lock {
  position: relative; flex: 1;
  min-height: 440px;
  margin: 0 -10px -10px;
  padding: 30px 14px 14px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--deep), .6), transparent 62%),
    radial-gradient(90% 60% at 85% 100%, rgba(var(--glow), .28), transparent 60%),
    #04060c;
}
[data-theme="light"] .lock {
  color: #0b0d12;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(var(--glow), .5), transparent 62%),
    radial-gradient(90% 60% at 85% 100%, rgba(var(--primary), .32), transparent 60%),
    #e7ecf6;
}
.lock-time { text-align: center; font-family: var(--display); font-size: 76px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.lock-date { margin-top: 6px; text-align: center; font-size: 16px; font-weight: 600; opacity: .8; }
.notif-stack { position: relative; display: grid; gap: 8px; margin-top: 28px; }
.notif {
  display: flex; gap: 10px;
  padding: 12px 13px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14);
  animation: notif-in .7s var(--ease-out) both;
}
[data-theme="light"] .notif { background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .8), 0 6px 18px rgba(0, 0, 0, .06); }
.notif.is-leaving { animation: notif-out .45s ease forwards; }
@keyframes notif-in { from { opacity: 0; transform: translateY(-18px) scale(.95); } }
@keyframes notif-out { to { opacity: 0; transform: scale(.94); } }
.notif img { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.notif-body { flex: 1; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; opacity: .66; }
.notif b { display: block; font-size: 14.5px; font-weight: 650; }
.notif p { margin: 1px 0 0; font-size: 13.5px; line-height: 1.33; opacity: .92; }

/* Records podium */
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-head b { display: block; font-size: 17px; font-weight: 650; }
.mini-head span { font-size: 13px; color: var(--text-2); }
.chip-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px;
  color: var(--text);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}
.chip-btn .i { font-size: 13px; stroke-width: 2.2; }
.podium { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; align-items: end; min-height: 236px; margin-top: 14px; }
.pd-col { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.pd-col[data-rank="1"] { z-index: 1; }
.pd-label { margin-bottom: 8px; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .5s var(--ease-out); }
.pd-col.is-labeled .pd-label { opacity: 1; transform: none; }
.pd-label b { display: block; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-label span { font-size: 12px; color: var(--text-2); }
.pd-new { display: inline-block; margin-bottom: 4px; }
.pd-new .pill { height: 20px; padding: 0 7px; font-size: 10px; }
.podium-floor {
  position: absolute; left: 50%; bottom: 0;
  width: 260px; height: 40px; margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--primary), .32), transparent);
  filter: blur(10px);
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.podium.is-up .podium-floor { opacity: 1; }

/* Top markets ring */
.ring-stage { position: relative; width: min(100%, 262px); aspect-ratio: 1; margin: -8px auto -14px; }
.ring { width: 100%; height: 100%; overflow: visible; }
.ring .seg-g { cursor: pointer; transition: transform .55s var(--ease-out); }
.ring .seg-face { transition: fill .35s ease; }
.ring .seg-sheen { pointer-events: none; }
.ring .seg-body { transition: fill .35s ease; }
.ring .stop-glow { stop-color: rgb(var(--glow)); }
.ring .stop-primary { stop-color: rgb(var(--primary)); }
.ring .stop-deep { stop-color: rgb(var(--deep)); }
.ring-center { position: absolute; inset: 0 0 9% 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.rc-flag { font-size: 20px; line-height: 1; }
.rc-pct { margin-top: 4px; font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.rc-name { margin-top: 3px; font-size: 12.5px; color: var(--text-2); }
.ring-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ring-legend li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 14px; cursor: pointer; transition: background-color .25s ease; }
.ring-legend li:hover, .ring-legend li.is-on { background: var(--fill-2); }
.ring-legend .sw { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.ring-legend li.is-on .sw { background: linear-gradient(135deg, rgb(var(--glow)), rgb(var(--deep))) !important; box-shadow: 0 0 8px rgba(var(--primary), .6); }
.ring-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* MRR */
.mrr-value { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.mrr-sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; }
.mrr-chart { height: 92px; margin: 16px -4px 8px; }
.mrr-rows { margin: 0; display: grid; }
.mrr-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--hairline); font-size: 14.5px; }
.mrr-rows dt { color: var(--text-2); }
.mrr-rows dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
[data-theme="light"] .goal-value.up { color: rgb(var(--deep)); }

/* Refund requests */
.refund { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.refund-thread { display: grid; gap: 10px; }
.rf-msg { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 20px; background: var(--fill); border: 1px solid var(--hairline); transition: background-color .4s ease, border-color .4s ease; }
.rf-msg.rf-us { margin-left: 28px; background: rgba(var(--primary), .08); border-color: rgba(var(--primary), .22); }
.rf-from { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.rf-msg b { font-size: 16px; font-weight: 650; }
.rf-msg span:last-child { font-size: 14px; color: var(--text-2); }
.rf-msg.is-flash { animation: rf-flash .6s var(--ease-out); }
@keyframes rf-flash { from { transform: scale(.97); opacity: .4; } }
.rf-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.seg-vertical { display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px; border-radius: 24px; }
.seg-vertical .seg-thumb { top: 0; bottom: auto; left: 4px; right: 4px; width: auto; }
.seg-vertical .seg-btn { justify-content: flex-start; height: 42px; padding: 0 16px; font-size: 14.5px; }
.rf-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }

/* Widgets */
.homescreen {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start;
  margin: 0 -10px -10px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(var(--glow), .38), transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(var(--deep), .5), transparent 65%),
    #070a14;
}
[data-theme="light"] .homescreen {
  background:
    radial-gradient(90% 70% at 10% 0%, rgba(var(--glow), .45), transparent 60%),
    radial-gradient(80% 70% at 100% 100%, rgba(var(--primary), .35), transparent 65%),
    #e3e9f5;
}
.widget {
  display: flex; flex-direction: column;
  aspect-ratio: 1;
  padding: 14px 14px 10px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.w-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.w-value { margin-top: 2px; font-family: var(--display); font-size: clamp(22px, 2.1vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.widget .trend { font-size: 13px; }
.w-chart { flex: 1; min-height: 34px; margin: 4px -4px 0; }
.hs-icons { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 4px 6px 0; }
.hs-icon { aspect-ratio: 1; }
.hs-icon img, .hs-icon .app-icon { width: 100%; height: 100%; border-radius: 23%; }

/* North-star goal */
.goal { display: flex; flex-direction: column; padding: 20px; border-radius: 22px; background: var(--fill); border: 1px solid var(--hairline); }
.goal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 650; }
.goal-head > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.goal-head .muted { font-size: 13px; font-weight: 500; }
.goal-value { margin-top: 12px; font-family: var(--display); font-size: 50px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.goal-value.up { color: rgb(var(--positive)); }
.goal-cap { margin-top: 2px; font-size: 14px; }
.goal-split { display: flex; gap: 3px; height: 5px; margin: 18px 0 16px; }
.goal-split i { display: block; flex: 0 0 var(--w); border-radius: 4px; }
.goal-split i:first-child { flex-basis: calc(var(--w) - 3px); background: linear-gradient(90deg, rgb(var(--deep)), rgb(var(--glow))); box-shadow: 0 0 8px rgba(var(--primary), .55); }
.goal-split i:last-child { background: var(--text-3); }
.goal-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.goal-chips div { padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); }
.goal-chips span { display: block; font-size: 12.5px; color: var(--text-2); }
.goal-chips b { font-size: 17px; font-variant-numeric: tabular-nums; }
.goal-foot { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 13.5px; }

/* ================= Trust ================= */

.pipeline { display: flex; align-items: center; justify-content: center; margin: 0 auto clamp(56px, 7vw, 88px); }
.pipe-col { display: grid; gap: 12px; }
.pipe-node { display: flex; align-items: center; gap: 12px; min-width: 214px; padding: 14px 18px 14px 14px; border-radius: 20px; }
.pn-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--fill-2); }
.pn-icon .i { font-size: 20px; }
.pipe-core .pn-icon { background: linear-gradient(155deg, rgb(var(--glow)), rgb(var(--primary)) 50%, rgb(var(--deep))); color: #fff; box-shadow: 0 8px 24px -6px rgba(var(--primary), .7); }
.pipe-node b { display: block; font-size: 15.5px; font-weight: 650; }
.pipe-node span { font-size: 13px; color: var(--text-2); }
.pipe-link { position: relative; flex: none; width: clamp(28px, 4vw, 64px); height: 2px; background: var(--hairline-2); }
.pipe-link i { position: absolute; top: -2px; left: 0; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 10px rgb(var(--glow)); animation: flow 2.4s linear infinite; opacity: 0; }
.pipe-link i:nth-child(2) { animation-delay: .8s; }
.pipe-link i:nth-child(3) { animation-delay: 1.6s; }
@keyframes flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.trust-item > .i { font-size: 26px; color: rgb(var(--primary)); stroke-width: 1.7; }
.trust-item h3 { margin: 16px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.trust-item p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }

/* ================= Pricing teaser ================= */


/* ================= Final ================= */

.final { overflow: hidden; text-align: center; }
.final-aura { position: absolute; inset: 0; background: radial-gradient(48% 44% at 50% 34%, rgba(var(--deep), .32), transparent 72%); opacity: var(--aura); pointer-events: none; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-icon {
  width: 156px; height: 156px;
  margin-bottom: 44px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--hairline-2), 0 34px 90px -10px rgba(var(--primary), .55);
  animation: float 7s ease-in-out infinite;
}
.final-icon img { width: 100%; height: 100%; }
.final-icon .fi.light, [data-theme="light"] .final-icon .fi.dark { display: none; }
[data-theme="light"] .final-icon .fi.light { display: block; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.final-title { font-size: clamp(50px, 8.4vw, 116px); }
.final .lede { max-width: 560px; margin-top: 24px; }

/* ================= Responsive ================= */

@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-globe { grid-column: span 2; grid-row: span 1; }
  .b-push { grid-row: span 2; }
  .b-goal { grid-column: span 2; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { flex-direction: column; }
  .pipe-col { grid-template-columns: 1fr 1fr; }
  .pipe-link { width: 2px; height: 36px; }
  .pipe-link i { left: -2px; animation-name: flow-down; }
  @keyframes flow-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 6px); opacity: 0; } }
}

@media (max-width: 1020px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stack"; gap: 0; }
  .story-steps, .story-device { grid-area: stack; }
  .story-device { z-index: 3; pointer-events: none; }
  .device-sticky {
    top: 74px;
    padding: 8px 0 28px;
    gap: 12px;
    background: linear-gradient(var(--bg) 93%, rgba(var(--bg-rgb), 0));
  }
  .device { --s: .5; }
  .story-steps { padding: 520px 0 18vh; }
  .story-step { min-height: 62vh; justify-content: flex-start; max-width: 620px; margin: 0 auto; text-align: center; }
  .step-points { justify-items: center; }
}

@media (max-width: 760px) {
  .announce { font-size: 13px; }
  .announce .hide-sm { display: none; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .b-globe, .b-refund, .b-goal { grid-column: auto; }
  .b-push { grid-row: auto; }
  .b-goal { flex-direction: column; }
  .globe-stage { grid-template-columns: 1fr; }
  .globe { justify-self: center; max-width: 340px; }
  .refund { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .pipe-col { grid-template-columns: 1fr; }
  .hero-ctas .cmd { width: 100%; justify-content: space-between; }
  .cmd { font-size: 12.5px; }
  .copy-btn .copy-label { display: none; }
  .stairs .stair-per { display: none; }
}

@media (max-width: 420px) {
  .device { --s: .46; }
  .story-steps { padding-top: 480px; }
}


/* ================= Opening: the phone tour is the first section =================
   There is no separate hero: the hero copy sits above the tour's steps, so the
   same iPhone is on screen from the top. */

.story-first { padding-top: calc(var(--nav-h) + clamp(24px, 3vw, 48px)); }
.story-first .story-grid {
  grid-template-columns: minmax(0, 600px) auto;
  grid-template-rows: auto auto;
}
.story-intro {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  min-height: calc(100vh - var(--nav-h) - 120px);
  padding-bottom: 6vh;
}
.story-first .story-steps { grid-column: 1; grid-row: 2; padding-top: 0; }
.story-first .story-device { grid-column: 2; grid-row: 1 / span 2; }

.hb-title { font-size: clamp(44px, 4.6vw, 64px); }
.hb-lede { max-width: 520px; margin-top: 24px; }
.hb-ctas { justify-content: flex-start; margin-top: 32px; }

/* How it works, in three lines */
.hb-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  width: 100%; margin: 40px 0 0; padding: 26px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.hb-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.4; color: var(--text-2); }
.hb-steps b { display: block; font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.hb-n {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--fill-2); color: var(--text);
  font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* The tour's own heading, now leading into its steps. */
.story-head { max-width: 520px; padding-top: 12vh; }
.story-head .h2 { font-size: clamp(36px, 4vw, 56px); }
.story-head .lede { margin-top: 18px; }

/* ---- Responsive ---- */

@media (max-width: 1100px) {
  .hb-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}

/* Stacked: the copy first, then the sticky phone with the steps under it. */
@media (max-width: 1020px) {
  .story-first .story-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "intro" "stack"; }
  .story-intro { grid-area: intro; align-items: center; min-height: 0; padding-bottom: 40px; text-align: center; }
  .story-first { padding-top: calc(var(--nav-h) + 44px); }
  .story-first .story-steps, .story-first .story-device { grid-area: stack; }
  .story-first .story-steps { padding-top: 520px; }
  .hb-ctas { justify-content: center; }
  .hb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; margin-inline: auto; text-align: left; }
  .story-head { max-width: 620px; margin: 0 auto; padding-top: 0; text-align: center; min-height: 40vh; }
}

@media (max-width: 640px) {
  .hb-title { font-size: clamp(38px, 10.4vw, 56px); }
  /* Small phones: the install section explains the steps; get the iPhone on screen sooner. */
  .hb-steps { display: none; }
  .story-intro { padding-bottom: 28px; }
}

@media (max-width: 420px) {
  .story-first .story-steps { padding-top: 480px; }
}

/* The phone's Overview is the app's cards (assets/app/screen.html); it follows the page's theme. */
.screen-app { padding-top: 0; }

.app-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  .tape-track { animation: none; }
  .final-icon { animation: none; }
}

/* ---- The way into the live demo (/demo): a miniature of its hero ---- */

.demo-card {
  --demo-ease: cubic-bezier(.2, .8, .2, 1); --demo-ms: 520ms;
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 540px; margin-top: 26px; padding: 10px 14px 10px 10px;
  border-radius: 22px; color: var(--text); text-align: left; text-decoration: none;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--glass-rim-low), inset 0 1px 0 var(--glass-rim-low), 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform var(--demo-ms) var(--demo-ease), box-shadow .3s ease, background-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
[data-theme="light"] .demo-card { background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 30px rgba(0, 0, 0, .07); }
.demo-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 16px 40px rgba(0, 0, 0, .26); }
[data-theme="light"] .demo-card:hover { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .09), 0 16px 40px rgba(0, 0, 0, .1); }
.demo-card.is-pressed { transform: scale(.975); transition-duration: 160ms; }
.demo-card:focus-visible { outline: 2px solid rgba(var(--primary), .9); outline-offset: 3px; }

/* The miniature: the dashboard hero in 132 points. */
.demo-mini {
  position: relative; flex: none; display: flex; flex-direction: column; justify-content: flex-start;
  width: 132px; height: 86px; padding: 9px 0 0; border-radius: 14px; overflow: hidden;
  background: #07080b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  color: #fff; text-align: center;
}
.demo-mini::before { content: ""; position: absolute; inset: -30% -10% auto; height: 70%; background: radial-gradient(50% 60% at 50% 40%, rgba(var(--deep), .32), transparent 70%); pointer-events: none; }
[data-theme="light"] .demo-mini { background: #fff; color: #000; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05); }
[data-theme="light"] .demo-mini::before { background: radial-gradient(50% 60% at 50% 40%, rgba(var(--primary), .12), transparent 70%); }
.demo-mini-cap { position: relative; font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: rgba(235, 240, 255, .58); }
[data-theme="light"] .demo-mini-cap { color: rgba(60, 60, 67, .6); }
.demo-mini-fig { position: relative; margin-top: 1px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.demo-mini-chart { position: absolute; left: 0; right: 0; bottom: 4px; width: 100%; height: 34px; overflow: visible; }
.demo-mini-chart .dm-ghost { fill: none; stroke: rgba(142, 142, 147, .55); stroke-width: 1; stroke-dasharray: 2 2.4; vector-effect: non-scaling-stroke; }
.demo-mini-chart .dm-line { fill: none; stroke: rgb(var(--primary)); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(var(--glow), .7)); }
.demo-mini-chart .dm-area { fill: url(#dmArea); }
.demo-mini-orb { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgb(var(--glow)); box-shadow: 0 0 0 2px rgba(var(--glow), .25), 0 0 8px rgba(var(--glow), .9); }
.demo-mini-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(var(--glow), .6); animation: demo-ping 2.2s ease-out infinite; }
@keyframes demo-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3); opacity: 0; } }

.demo-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.demo-title { font-size: 17px; font-weight: 650; letter-spacing: -.015em; line-height: 1.25; }
.demo-sub { font-size: 14px; line-height: 1.35; color: var(--text-2); }
.demo-go {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--demo-ms) var(--demo-ease);
}
.demo-go .i { font-size: 17px; }
.demo-card:hover .demo-go { transform: translateX(3px); }

@media (max-width: 1020px) { .demo-card { margin-inline: auto; } }
@media (max-width: 640px) {
  .demo-card { gap: 12px; margin-top: 22px; padding: 8px 12px 8px 8px; border-radius: 20px; }
  .demo-mini { width: 112px; height: 76px; padding-top: 8px; border-radius: 13px; }
  .demo-mini-fig { font-size: 19px; }
  .demo-mini-chart { height: 28px; }
  .demo-title { font-size: 16px; }
  .demo-sub { font-size: 13.5px; }
  .demo-go { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-card, .demo-go { transition: none; }
  .demo-card:hover, .demo-card.is-pressed, .demo-card:hover .demo-go { transform: none; }
  .demo-mini-orb::after { animation: none; }
}

/* ---- Phones: full-width actions, and the tour as phone + caption ----
   The steps stay in the page as invisible scroll marks (screen readers still
   read them); the active step's words sit in a caption under the sticky
   phone, so no text ever scrolls behind it. */

.story-caption { display: none; }

@media (max-width: 760px) {
  .hb-ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 440px; margin-inline: auto; gap: 12px; }
  .hb-ctas .btn-lg { width: 100%; justify-content: center; }
  .hb-ctas .cmd-prompt-pill { width: 100%; max-width: none; }
  .demo-card { max-width: 440px; }

  .story-first .story-grid { grid-template-areas: none; grid-template-rows: auto; }
  .story-intro { grid-area: 1 / 1; }
  .story-first .story-steps { display: contents; }
  .story-head { grid-area: 2 / 1; min-height: 0; padding: 36px 0 28px; }
  .story-head .lede { font-size: 17px; }
  .story-step[data-step="0"] { grid-area: 3 / 1; }
  .story-step[data-step="1"] { grid-area: 4 / 1; }
  .story-step[data-step="2"] { grid-area: 5 / 1; }
  .story-step[data-step="3"] { grid-area: 6 / 1; }
  .story-step, .story-step.is-active { min-height: 58vh; opacity: 0; }
  .story-first .story-device { grid-area: 3 / 1 / 7 / 2; }

  .device-sticky { top: calc(var(--nav-h) + 10px); padding: 8px 0 16px; background: none; }
  .device-crop.is-cropped {
    height: var(--crop); overflow: hidden; padding: 0 26px; margin: 0 -26px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 72px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 72px), transparent);
  }
  .device-crop.is-cropped .device-body { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .18), inset 0 0 1px 4px rgba(0, 0, 0, .55); }
  [data-theme="light"] .device-crop.is-cropped .device-body { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9), inset 0 0 1px 4px rgba(0, 0, 0, .12); }
  .story-caption { display: grid; width: 100%; max-width: 440px; margin-top: 4px; text-align: center; }
  .cap { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s var(--ease-out); }
  .cap.is-on { opacity: 1; transform: none; }
  .cap .step-kicker { justify-content: center; margin: 0 0 8px; font-size: 13.5px; }
  .cap .step-kicker .i { font-size: 15px; }
  .cap .h3 { font-size: 23px; letter-spacing: -.02em; }
  .cap p:not(.step-kicker) { margin: 8px 0 0; font-size: 15.5px; line-height: 1.45; color: var(--text-2); text-wrap: pretty; }
}

@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .cap { transform: none; }
}
