@font-face {
  font-family: Archivo;
  src: url("../../assets/fonts/archivo-latin-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../../assets/fonts/big-shoulders-display-latin-900.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

/* Palette: white, ink, dark green, sage / pale sage, beige. Muted text and lines are the only other neutrals.
   Shadows are dark green at low alpha. */
:root {
  color-scheme: light;
  --white: #fff;
  --ink: #1e2421;
  --green: #1d322d;
  --sage: #dde5d8;
  --pale: #eef2e9;
  --paper: #fffef5;
  --beige: #fffaf0;
  --muted: #4f6059;
  --line: #cbd3c7;
  --hair: inset 0 0 0 .5px #00000026;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
body { font-family: Archivo, Arial, sans-serif; color: var(--ink); -webkit-text-size-adjust: 100%; }
p { margin: 0; }
button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; }
i { display: block; font-style: normal; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }

/* ---------- stage: pale sage with the dotted grid (Option A); the surfaces on it lean on beige ---------- */
.stage {
  position: fixed;
  inset: 0;
  container: stage / size;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  /* Option A stage (user decision 2026-11-18): pale sage with the Pulsos dotted grid. */
  background: radial-gradient(#1d322d27 .7px, transparent .7px) 0 0 / 13px 13px, #eef2e9;
  -webkit-user-select: none;
  user-select: none;
}

.layout {
  --pad: 14px;
  --gap: 12px;
  --rail-h: 48px;
  --pill-w: 188px;
  --pill-h: 32px;
  --pill-fs: 12.5px;
  --fade: 24px;
  --tray-pad: 6px;
  --lane-gap: 6px;
  --lane-px: 12px;
  --tile: 36px;
  --title-fs: 15px;
  --sub-fs: 12px;
  --num-fs: 38px;
  --cap-fs: 12.5px;
  --count-w: 74px;
  --grow: .3;
  --qx: calc(var(--tray-pad) + var(--lane-px) + 1px);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  height: 100%;
  padding: var(--pad);
}

/* ---------- intake rail: the next question waits here, then drops through the bottom edge ---------- */
.top {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: 6px;
}
.label {
  grid-area: 1 / 1;
  font: 900 14px/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}
.rail {
  grid-area: 2 / 1;
  position: relative;
  height: var(--rail-h);
  border-radius: 12px;
  background: var(--beige);
  box-shadow: inset 0 0 0 1px var(--line);
}
.track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
}
.wait {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 0 var(--fade) 0 var(--qx);
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1.2;
  color: var(--muted);
  opacity: 0;
}
/* A question bubble: same shape in the rail and in a lane slot */
.q, .land {
  display: grid;
  place-items: center;
  width: var(--pill-w);
  height: var(--pill-h);
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  font-size: var(--pill-fs);
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 2px 8px #1d322d14;
}
.q {
  position: absolute;
  left: var(--qx);
  top: 50%;
  margin-top: calc(var(--pill-h) / -2);
  opacity: 0;
  will-change: transform, opacity;
}

/* ---------- tray: white panel holding the three lanes ---------- */
.tray {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--lane-gap);
  padding: var(--tray-pad);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 32px #1d322d1a, 0 1px 2px #1d322d14;
}
.lane {
  --hi: var(--ink);
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  border-radius: 11px;
  box-shadow: 0 2px 8px #1d322d0f;
  transform: scale(.965);
  will-change: transform;
}
.lane[data-i="0"] { --bg: var(--white); --edge: 1px solid var(--line); --tile-bg: var(--beige); --tile-fg: var(--ink); --well: var(--beige); --well-edge: var(--line); --badge-bg: var(--beige); --badge-edge: var(--line); --glint: var(--pale); }
.lane[data-i="1"] { --bg: var(--beige); --edge: 1.5px solid var(--green); --tile-bg: var(--green); --tile-fg: var(--beige); --well: var(--paper); --well-edge: var(--line); --badge-bg: var(--white); --badge-edge: var(--green); --glint: var(--white); --hi: var(--green); }
.lane[data-i="2"] { --bg: var(--sage); --edge: 1px solid var(--line); --tile-bg: var(--beige); --tile-fg: var(--ink); --well: #fffaf0b3; --badge-bg: var(--white); --badge-edge: transparent; --glint: #ffffffb3; }

.lift {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 12px 32px #1d322d2e;
  opacity: 0;
  pointer-events: none;
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 11px var(--lane-px) 9px;
  overflow: hidden;
  border: var(--edge);
  border-radius: inherit;
  background: var(--bg);
  color: var(--ink);
}

.head { position: relative; flex: none; display: flex; align-items: center; gap: 10px; height: var(--tile); }
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: 9px;
  background: var(--tile-bg);
  color: var(--tile-fg);
  box-shadow: var(--hair);
}
.tile img { width: 20px; height: 20px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.titles { flex: 1; min-width: 0; display: grid; gap: 3px; }
.title { font-weight: 700; font-size: var(--title-fs); line-height: 1.1; white-space: nowrap; }
.sub { font-size: var(--sub-fs); line-height: 1.15; color: var(--muted); white-space: nowrap; }
.count { flex: none; width: var(--count-w); display: grid; justify-items: end; gap: 3px; }
/* the number is two stacked values; a spring rolls the old one out and the new one in */
.num {
  display: grid;
  overflow: hidden;
  padding: 3px 1px;
  margin: -3px -1px;
  font: 900 var(--num-fs)/.82 var(--display);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  color: color-mix(in srgb, var(--hi) var(--on, 0%), var(--muted));
}
.num > span { grid-area: 1 / 1; justify-self: end; }
.num > span + span { opacity: 0; }
.unit { font-weight: 500; font-size: 11.5px; line-height: 1; color: var(--muted); }

/* the slot is reserved: a quiet well when empty, the landed question when full */
.slot {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--pill-h);
  margin-top: 10px;
}
.well {
  position: relative;
  flex: none;
  width: var(--pill-w);
  height: 100%;
  overflow: hidden;
  border-radius: 12px 12px 12px 4px;
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--well-edge, transparent);
}
.empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
}
.land { position: absolute; inset: 0; width: auto; height: auto; opacity: 0; will-change: transform, opacity; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 9px;
  background: var(--badge-bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  box-shadow: inset 0 0 0 1px var(--badge-edge), 0 1px 0 #1d322d14, 0 2px 6px #1d322d14;
}
.wa { width: 14px; height: 14px; fill: var(--green); }
.tick { width: 14px; height: 14px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dot { position: relative; width: 8px; height: 8px; margin: 0 3px 0 1px; border-radius: 50%; background: var(--green); }
.ring { position: absolute; inset: -3px; border: 1.5px solid var(--green); border-radius: 50%; opacity: 0; }

.cap { position: relative; flex: none; margin-top: 8px; font-weight: 500; font-size: var(--cap-fs); line-height: 1.3; color: var(--ink); opacity: 0; }
.sweep {   /* a sheen that glides under the lane's content, never over text */
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 34%, var(--glint) 50%, transparent 66%);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

/* ---------- fluid sizing: the stage is the container ---------- */
@container stage (max-width: 479px) {
  .layout { --pill-w: 172px; --title-fs: 14.5px; --num-fs: 36px; --count-w: 68px; }
}
@container stage (max-width: 399px) {
  .layout { --pad: 12px; --pill-w: 160px; --pill-fs: 12px; --fade: 20px; --tile: 34px; --title-fs: 14px; --sub-fs: 11.5px; --num-fs: 34px; --cap-fs: 12px; --lane-px: 11px; --count-w: 62px; }
  .more { display: none; }
}
@container stage (max-width: 339px) {
  .layout { --pad: 10px; --pill-w: 154px; --fade: 18px; --title-fs: 13.5px; --count-w: 58px; --num-fs: 32px; --tray-pad: 5px; --lane-gap: 5px; --lane-px: 10px; }
  .head { gap: 8px; }
}
@container stage (max-height: 479px) {
  .layout { --gap: 8px; --rail-h: 42px; --pill-h: 30px; --grow: .4; }
  .top { row-gap: 4px; }
  .face { padding-top: 8px; padding-bottom: 6px; }
  .slot, .cap { margin-top: 7px; }
}
@container stage (max-height: 419px) {
  .layout { --pad: 10px; --gap: 6px; --rail-h: 38px; --pill-h: 28px; --tile: 30px; --num-fs: 30px; --tray-pad: 5px; --lane-gap: 5px; --lane-px: 10px; }
  .head { gap: 8px; }
  .slot, .cap { margin-top: 6px; }
}

/* Text selection in the sage of the homepage buttons (2026-11-18). */
::selection { color: #1e2421; background-color: #dde5d8; }
