/* The scroll gallery ("Inside Xee"): each step is the Xee dashboard, its sidebar marking the page shown.
   Tokens come from dashboard/app/globals.css so the mockups read as the real product. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

.xg {
  --x-ink: #1a1a19;
  --x-ink-2: #3d3c38;
  --x-muted: #6b6a66;
  --x-faint: #8a8984;
  --x-line: #ededed;
  --x-side: #fafafa;
  --x-grey: #f5f5f3;
  --x-current: #eeeeeb;
  --x-green: #2e6b3e;
  --x-green-bg: #eaf4ec;
  --x-blue: #2f5fd0;
  --x-blue-bg: #eaf1fc;
  --x-shadow: 0 4px 2px rgb(0 0 0 / 0.01), 0 8px 80px -4px rgb(0 0 0 / 0.03);
}

/* Progress-driven helpers, same curve as the gallery's .rv */
.xg .xw-draw,
.xg .xw-fill {
  --k: clamp(0, (var(--p) - var(--at, 0)) / var(--dur, 0.2), 1);
}
.xg .xw-draw {
  fill: none;
  stroke: var(--x-blue);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--k));
  vector-effect: non-scaling-stroke;
}
.xg .xw-fill {
  display: block;
  height: 100%;
  width: calc(var(--w) * var(--k));
  border-radius: inherit;
  background: var(--c, var(--x-ink));
}
.xg .ml-auto {
  margin-left: auto;
}
.xg .tnum {
  font-variant-numeric: tabular-nums;
}

/* ---------- The window ---------- */
.xw {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  overflow: hidden;
  container-type: inline-size;
  background: #ffffff;
  border: 1px solid #e6e6e3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 60px -20px rgb(0 0 0 / 0.18);
  color: var(--x-ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: left;
}

.xw-side {
  flex: 0 0 188px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  overflow: hidden;
  background: var(--x-side);
  border-right: 1px solid var(--x-line);
  -webkit-mask-image: linear-gradient(#000 85%, transparent);
  mask-image: linear-gradient(#000 85%, transparent);
}
.xw-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 8px 4px 6px;
  border: 1px solid var(--x-line);
  border-radius: 12px;
  background: #ffffff;
}
.xw-switch b {
  flex: 1;
  font-weight: 600;
}
.xw-switch svg {
  color: var(--x-faint);
}
.xw-app {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #fbeee9;
  color: #a2462a;
  font-size: 11px;
  font-weight: 600;
}
.xw-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.xw-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 2px;
  color: var(--x-faint);
  font-size: 11px;
  font-weight: 500;
}
.xw-label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--feature);
}
.xw-label[data-shape="square"]::before { border-radius: 1px; }
.xw-label[data-shape="circle"]::before { border-radius: 50%; }
.xw-label[data-shape="triangle"]::before { width: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.xw-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--x-ink-2);
  font-weight: 500;
}
.xw-link > svg {
  flex: none;
  color: var(--x-faint);
}
.xw-link > span:not(.xw-count) {
  flex: 1;
  white-space: nowrap;
}
.xw-link[aria-current="page"] {
  background: var(--x-current);
  color: var(--x-ink);
  font-weight: 600;
}
.xw-link[aria-current="page"] > svg {
  color: var(--x-ink);
}
.xw-count {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--x-current);
  color: var(--x-muted);
  font-size: 10.5px;
  text-align: center;
}
.xw-link[aria-current="page"] .xw-count {
  background: #ffffff;
}

.xw-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.xw-head {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 20px;
  border-bottom: 1px solid var(--x-line);
}
.xw-head:empty {
  display: none;
}
.xw-title {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.xw-sub {
  color: var(--x-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.xw-body {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  overflow: hidden;
}

.xw-tabs {
  display: flex;
  gap: 16px;
  align-self: stretch;
}
.xw-tabs span {
  display: flex;
  align-items: center;
  color: var(--x-muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.xw-tabs span[aria-current="page"] {
  color: var(--x-ink);
  border-bottom-color: var(--x-ink);
}

/* Shared parts */
.xw-card {
  background: #ffffff;
  border: 1px solid var(--x-line);
  border-radius: 12px;
  box-shadow: var(--x-shadow);
}
.xw-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  color: var(--x-ink);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.xw-btn--ink {
  background: #171717;
  border-color: #171717;
  color: #ffffff;
}
.xw-ctl,
.xw-field {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  color: var(--x-muted);
  font-size: 11.5px;
  white-space: nowrap;
}
.xw-field {
  min-width: 150px;
}
.xw-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--x-grey);
  color: var(--x-ink-2);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}
.xw-pill--green { background: var(--x-green-bg); color: var(--x-green); }
.xw-pill--blue { background: var(--x-blue-bg); color: var(--x-blue); }
.xw-pill--green::before,
.xw-pill--blue::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
}
.xw-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #f0f0ee;
  overflow: hidden;
}
.xw-spark {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--x-grey);
  color: var(--x-ink);
}
.xw-dotted {
  color: #525252;
  font-size: 11.5px;
  text-decoration: underline dotted #a3a3a3;
  text-underline-offset: 3px;
}
.xw-up {
  color: #15803d;
  font-size: 11.5px;
  font-weight: 500;
}
.xw-chart {
  display: block;
  width: 100%;
}
.xw-chart circle {
  fill: #ffffff;
  stroke: var(--x-blue);
  stroke-width: 2;
}
.hm-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  background: #171717;
  color: #ffffff;
}

/* 1. Home */
.xw--home .xw-body {
  justify-content: center;
}
.xw-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(23 23 23 / 0.28) 0.9px, transparent 1.1px);
  background-size: 11px 11px;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, transparent 10%, #000 60%), linear-gradient(#000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 35%, transparent 10%, #000 60%), linear-gradient(#000 30%, transparent 85%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
  margin: 0 auto;
}
.hm-ask {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: 74px;
  padding: 12px 10px 10px 14px;
  border: 1px solid #e4e4e1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px -2px rgb(0 0 0 / 0.08);
  font-size: 13.5px;
}
.hm-ask .gx-type {
  align-self: flex-start;
}
.hm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hm-chips span {
  padding: 4px 9px;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--x-ink-2);
  font-size: 11px;
}
.hm-card {
  width: 100%;
  padding: 12px 14px 8px;
}
.hm-answer {
  display: flex;
  gap: 10px;
}
.hm-answer p {
  margin: 0;
  color: var(--x-ink-2);
}
.hm-card .xw-chart {
  height: 70px;
  margin-top: 6px;
}

/* 2. Analytics */
.an-seg {
  display: flex;
  gap: 4px;
}
.an-seg span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 7px;
  color: var(--x-muted);
}
.an-seg span[aria-current="page"] {
  background: var(--x-grey);
  color: var(--x-ink);
  font-weight: 500;
}
.an-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  flex: 1;
  min-height: 0;
}
.an-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
}
.an-pane + .an-pane {
  border-left: 1px solid var(--x-line);
}
.an-fig {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 6px 0 4px;
}
.an-fig b {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.an-fig small {
  color: var(--x-muted);
}
.an-pane .xw-chart {
  flex: 1;
  min-height: 80px;
}
.an-prev {
  fill: none;
  stroke: #c9c9c5;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.an-legend {
  display: flex;
  gap: 14px;
  color: #525252;
  font-size: 11px;
}
.an-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.an-key::before {
  content: "";
  width: 14px;
  border-top: 2px solid var(--x-blue);
}
.an-key.prev::before {
  border-top: 2px dashed #a3a3a3;
}
.an-rank {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.an-rank li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border-bottom: 1px solid var(--x-line);
}
.an-rank li:last-child {
  border-bottom: 0;
}
.an-rank i {
  color: var(--x-faint);
  font-style: normal;
}
.an-rank b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* 3. To decide */
.dc-list {
  display: grid;
  gap: 10px;
}
.dc {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
}
.dc-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-top .xw-label {
  padding: 0;
}
.dc-top .xw-pill {
  margin-left: auto;
}
.dc-title {
  font-weight: 600;
  font-size: 13px;
}
.dc-why {
  margin: 0;
  color: var(--x-muted);
}
.dc-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* 4. Chat */
.ch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  width: min(560px, 100%);
  margin: 0 auto;
}
.ch-me {
  align-self: flex-end;
  max-width: 80%;
  padding: 7px 12px;
  border-radius: 14px;
  background: var(--x-grey);
}
.ch-ai {
  display: grid;
  gap: 8px;
}
.ch-ai p {
  margin: 0;
  color: var(--x-ink-2);
}
.ch-table {
  padding: 2px 12px;
}
.ch-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border-bottom: 1px solid var(--x-line);
  font-variant-numeric: tabular-nums;
}
.ch-row:last-child {
  border-bottom: 0;
}
.ch-row--head {
  color: var(--x-faint);
  font-size: 11px;
}
.ch-row span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ch-row .xw-bar {
  flex: 1;
}
.ch-row .xw-fill {
  --c: var(--x-blue);
}
.ch-compose {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding: 8px 8px 8px 14px;
  border: 1px solid #e4e4e1;
  border-radius: 14px;
  color: var(--x-faint);
}

/* 5. Paywalls, with the coding agent beside it */
.xw--term {
  margin-left: 0;
}
.xw-term {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: min(330px, 46%);
  border-radius: 10px;
  box-shadow: 0 20px 50px -12px rgb(0 0 0 / 0.45);
  z-index: 2;
}
.xw-claude {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #d97757;
  color: #ffffff;
  font-size: 11px;
}
.pw {
  display: flex;
  max-width: 560px;
  margin-left: auto;
  overflow: hidden;
}
.pw-prev {
  flex: 0 0 150px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--x-grey);
  border-right: 1px solid var(--x-line);
}
.pp {
  width: 112px;
  padding: 4px;
  border-radius: 18px;
  background: #111111;
}
.pp-screen {
  display: grid;
  gap: 5px;
  padding: 12px 8px 8px;
  border-radius: 14px;
  background: #0b0b0b;
  color: #ffffff;
  font-size: 7px;
}
.pp-badge {
  justify-self: start;
  padding: 1px 4px;
  border-radius: 3px;
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
}
.pp-h {
  font-size: 10px;
  line-height: 1.15;
}
.pp ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 9px;
  color: #c7c7c7;
}
.pp-plan {
  display: flex;
  justify-content: space-between;
  padding: 3px 5px;
  border: 1px solid #333333;
  border-radius: 4px;
}
.pp-plan--on {
  border-color: #22c55e;
}
.pp-cta {
  padding: 4px;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-weight: 700;
  text-align: center;
}
.pw-stats {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}
.pw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pw-top b {
  font-size: 13.5px;
}
.pw-big {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 8px 0;
}
.pw-big b {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.pw-big small {
  color: var(--x-muted);
  font-size: 10.5px;
  text-align: right;
}
.pw-split {
  height: 6px;
  border-radius: 2px;
  background: #e5e5e2;
  overflow: hidden;
}
.pw-keys {
  display: flex;
  gap: 12px;
  margin: 6px 0 4px;
  font-size: 11px;
}
.pw-keys .muted {
  color: var(--x-faint);
}
.pw dl {
  margin: 0;
}
.pw dl div {
  display: flex;
  justify-content: space-between;
  min-height: 28px;
  align-items: center;
  border-top: 1px solid var(--x-line);
}
.pw dt {
  color: var(--x-muted);
}
.pw dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* 6. Views */
.vw {
  padding: 14px 16px;
}
.vw-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vw-row {
  display: flex;
  gap: 14px;
  margin: 14px 0;
}
.vw-screen {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 1;
}
.vw-screen small {
  color: var(--x-muted);
}
.vw-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 120px;
  aspect-ratio: 9 / 16;
  max-height: 190px;
  padding: 12px 10px 10px;
  border: 1px solid var(--x-line);
  border-radius: 16px;
  background: linear-gradient(#ffffff, #f7f7f5);
  text-align: center;
}
.vw-phone i {
  width: 38px;
  height: 38px;
  margin-top: 10px;
  border-radius: 12px;
  background: #ede9fe;
}
.vw-phone b {
  font-size: 11px;
  line-height: 1.2;
}
.vw-phone span {
  width: 100%;
  margin-top: auto;
  padding: 5px 0;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 9.5px;
}
.vw-vars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--x-line);
}
.vw-vars code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--x-grey);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
}
.vw-vars .ml {
  margin-left: 8px;
}

/* 7. Tests */
.ts {
  padding: 14px 16px;
}
.ts-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-top b {
  font-size: 13.5px;
}
.ts-arms {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}
.ts-arm {
  display: grid;
  grid-template-columns: auto 140px 1fr auto;
  align-items: center;
  gap: 10px;
}
.ts-arm .xw-bar {
  height: 8px;
}
.ts-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--d);
}
.ts-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--x-line);
}

/* 8. Test ideas */
.ti-list {
  display: grid;
  gap: 10px;
}
.ti {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.ti-text {
  flex: 1;
  min-width: 0;
}
.ti-text b {
  font-weight: 600;
}
.ti-text p {
  margin: 2px 0 0;
  color: var(--x-muted);
}

/* 9. Keywords, 10. Apple Ads */
.kw,
.ad-table {
  padding: 2px 14px;
}
.kw-row,
.ad-row {
  display: grid;
  grid-template-columns: 1.6fr 0.6fr 0.6fr 1.2fr;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  border-bottom: 1px solid var(--x-line);
}
.kw-row:last-child,
.ad-row:last-child {
  border-bottom: 0;
}
.kw-row--head,
.ad-row--head {
  min-height: 30px;
  color: var(--x-faint);
  font-size: 11px;
}
.kw-d {
  font-size: 11px;
  font-weight: 600;
}
.kw-d--up { color: #15803d; }
.kw-d--down { color: #b91c1c; }
.kw-pop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.kw-pop .xw-bar {
  flex: 1;
}
.kw-idea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #d4d4d0;
  border-radius: 12px;
  background: var(--x-side);
}
.kw-idea .xw-label {
  padding: 0;
  white-space: nowrap;
}
.ad-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ad-tile {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
}
.ad-tile b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ad-row {
  grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr;
}

/* Narrow: drop the sidebar, then tighten */
@container (max-width: 640px) {
  .xw-side {
    display: none;
  }
  .xw-body {
    padding: 14px;
  }
  .an-split {
    grid-template-columns: 1fr;
  }
  .an-pane + .an-pane {
    display: none;
  }
  .xw-term {
    left: 10px;
    right: 10px;
    width: auto;
  }
  .xw-field,
  .vw-vars,
  .ti .xw-pill {
    display: none;
  }
  .ts-arm {
    grid-template-columns: auto 1fr auto;
  }
  .ts-arm .xw-bar {
    grid-column: 1 / -1;
  }
}

/* The sidebar scrolls per step so the page being shown is always in view */
.xw-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(var(--shift, 0px));
}
.xw-side {
  -webkit-mask-image: linear-gradient(#000 85%, transparent);
  mask-image: linear-gradient(#000 85%, transparent);
}
.xw-switch {
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 10px -6px rgb(0 0 0 / 0.08);
}
.vw-phone {
  max-height: 150px;
}
.vw-row {
  margin: 10px 0;
}

/* Fades out as the step plays (the approved card's buttons) */
.xg .xw-out {
  --k: clamp(0, (var(--p) - var(--at, 0)) / var(--dur, 0.1), 1);
  opacity: calc(1 - var(--k));
}

/* Story steps: install cards sit right of the terminal; values row; the shipped-day marker; Home's daily card */
.vw--side {
  max-width: 560px;
  margin-left: auto;
}
.vw--side .vw-phone {
  max-height: 128px;
}
.pw-vars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 10px 0 8px;
}
.pw-vars .xw-sub {
  width: 100%;
}
.pw-vars code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--x-grey);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
}
.ti--mark {
  border-color: #ddd6fe;
  box-shadow: 0 0 0 3px #f5f3ff, var(--x-shadow);
}
.an-plot {
  position: relative;
  flex: 1;
  min-height: 80px;
  display: flex;
}
.an-plot .xw-chart {
  flex: 1;
}
.an-mark {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  padding-left: 6px;
  border-left: 1px dashed #7c3aed;
  color: #7c3aed;
  font-size: 10.5px;
  font-weight: 500;
}
.hm-today {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}
.hm-line {
  display: grid;
  grid-template-columns: 1fr auto 110px;
  align-items: center;
  gap: 12px;
  min-height: 32px;
  border-top: 1px solid var(--x-line);
}
.hm-line b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hm-line > :last-child {
  justify-self: end;
}
.hm-line .xw-label {
  padding: 0;
}

/* Home recap: five rows, a touch tighter */
.hm-today .hm-line {
  min-height: 29px;
}
.hm-today .xw-label {
  white-space: nowrap;
}

/* Step 2: a grid of views, each a different kind of screen */
.vg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-left: auto;
}
.vg-card {
  display: flex;
  gap: 12px;
  padding: 10px;
}
.vg-phone {
  flex: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 112px;
  padding: 8px 6px 6px;
  border: 1px solid var(--x-line);
  border-radius: 12px;
  background: linear-gradient(#ffffff, #f7f7f5);
  text-align: center;
}
.vg-phone i {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  border-radius: 7px;
}
.vg-phone b {
  font-size: 7.5px;
  line-height: 1.2;
}
.vg-phone span {
  width: 100%;
  margin-top: auto;
  padding: 3px 0;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 6.5px;
}
.vg-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.vg-meta b {
  font-weight: 600;
}
.vg-meta small {
  color: var(--x-muted);
  margin-bottom: auto;
}
@container (max-width: 640px) {
  .vg {
    grid-template-columns: 1fr;
  }
}

/* Step 9: revenue as the headline number, wins in green */
.hm-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}
.hm-big {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.hm-big b {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.hm-spark {
  width: 132px;
  height: 44px;
  flex: none;
}
.hm-spark .xw-draw {
  stroke: #15803d;
  stroke-width: 2.25;
}
.hm-good {
  color: #15803d;
}

/* Step 1: just the Claude Code window, centred. It rises in from under the heading with no tilt. */
.xi {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.xi-term {
  width: min(660px, 100%);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1), 0 30px 70px -24px rgb(0 0 0 / 0.5);
  font-size: 13.5px;
  line-height: 1.6;
}
.xi-term .gx-term__bar {
  height: 46px;
  padding: 0 16px;
}
.xi-term .gx-term__body {
  flex: none;
  justify-content: flex-start;
  min-height: 300px;
  padding: 18px 20px 22px;
}
.xi-term .gx-term__lines {
  gap: 6px;
}
@container (max-width: 640px) {
  .xi-term { font-size: 12px; }
}
@media (max-width: 767px) {
  .xi-term { font-size: 12px; }
  .xi-term .gx-term__body { min-height: 240px; padding: 14px; }
}

/* "See the real dashboard": a screenshot of a real Xee page fills the exhibit */
.xs-shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e6e6e3;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 24px 60px -20px rgb(0 0 0 / 0.2);
}
.xs-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  user-select: none;
  -webkit-user-drag: none;
}

/* Step 2: a real way into the live demo, since the picture beside it is inert */
.fg-placard .fg-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.fg-placard .fg-try:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
