@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 (site rule, 18 Nov): white, ink, dark green, sage and beige only. */
:root {
  color-scheme: light;
  --ink: #1e2421;
  --green: #1d322d;
  --sage: #dde5d8;
  --beige: #fffaf0;
  --muted: #4f6059;
  --line: #cbd3c7;
  --hair: #1d322d26;
  --rest: 0 2px 8px #1d322d0f;
  --lift: 0 12px 32px #1d322d2e;
}

* { 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) ---------- */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  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;
  transition: opacity .3s ease;
}
html.pre .stage { opacity: 0; }

/* ---------- top bar ---------- */
.top { flex: none; display: flex; align-items: center; height: 34px; }
.label {
  font: 900 15px/1 "Big Shoulders Display", "Arial Narrow", sans-serif;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- body: gauge, message, steps ---------- */
.body { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.gz { flex: 1 1 0; min-height: 0; container-type: size; display: grid; place-items: center; }

/* 1u = one unit of the 400 x 206 gauge drawing; everything inside scales with it */
.arc {
  --u: min(calc(100cqw / 400), calc(100cqh / 206));
  position: relative;
  width: calc(var(--u) * 400);
  height: calc(var(--u) * 206);
}
.dial { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* ticks: a light track when empty, one solid dark green when filled, raised outward when current */
.tk rect {
  fill: var(--line);
  transform: translateY(0);
  transition: fill .5s ease var(--d, 0ms), transform .6s cubic-bezier(.34, 1.4, .5, 1) var(--d, 0ms);
}
.tk[data-s="on"] rect, .tk[data-s="cur"] rect { fill: var(--green); }
.tk[data-s="cur"] rect { transform: translateY(-5px); }

/* centre readouts */
.rd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--u) * 15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.kick {
  font: 600 max(11px, calc(var(--u) * 10)) / 1 Archivo, Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.num {
  display: flex;
  align-items: baseline;
  margin: calc(var(--u) * 6) 0 calc(var(--u) * 4);
  font: 900 calc(var(--u) * 86) / .8 "Big Shoulders Display", "Arial Narrow", sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.pc { margin-left: .05em; font-size: .46em; }
.nm { min-height: 1.1em; font: 700 max(13px, calc(var(--u) * 15)) / 1.1 Archivo, Arial, sans-serif; color: var(--ink); }

.ready {
  max-width: calc(var(--u) * 240);
  font: 900 calc(var(--u) * 40) / .9 "Big Shoulders Display", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--green);
}
.chan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: calc(var(--u) * 9);
  padding: 4px 13px 4px 4px;
  border-radius: 999px;
  background: var(--beige);
  box-shadow: var(--rest), inset 0 0 0 1px #1d322d1f;
  font: 600 max(12px, calc(var(--u) * 12)) / 1 Archivo, Arial, sans-serif;
  color: var(--ink);
}
.mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--beige);
  box-shadow: inset 0 0 0 .5px var(--hair);
}

/* the single ripple (upper half only, it grows out of the gauge centre) */
.ripple {
  position: absolute;
  left: 50%;
  top: calc(var(--u) * 198);
  width: calc(var(--u) * 220);
  height: calc(var(--u) * 220);
  margin: calc(var(--u) * -110) 0 0 calc(var(--u) * -110);
  border: 2px solid var(--green);
  border-radius: 50%;
  background: radial-gradient(circle, #dde5d800 58%, #dde5d8d9 100%);
  clip-path: inset(0 0 50% 0);
  opacity: 0;
  pointer-events: none;
}

/* ---------- message strip ---------- */
.strip {
  position: relative;
  flex: none;
  height: 64px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px #1d322d14, 0 1px 2px #1d322d14;
}
.msg { position: absolute; inset: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 13px; }
.who {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--beige);
  box-shadow: inset 0 0 0 .5px var(--hair);
}
.who img, .who svg { width: 20px; height: 20px; }
.who svg { fill: var(--ink); }
.msg[data-who="user"] .w-hv, .msg[data-who="hv"] .w-user { display: none; }
.tx { min-width: 0; display: grid; gap: 4px; }
.say, .why { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.say { font: 600 15px/1.2 Archivo, Arial, sans-serif; color: var(--ink); }
.why { position: relative; padding-left: 13px; font: 500 12px/1.2 Archivo, Arial, sans-serif; color: var(--muted); }
.why::before { content: ""; position: absolute; left: 0; top: .32em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- step buttons ---------- */
.steps { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; height: 72px; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
}
.face {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--line);
  border-radius: inherit;
  background: #fff;
  box-shadow: var(--rest);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .4s ease;
}
.ic, .lb { position: relative; }
.ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--beige);
  box-shadow: inset 0 0 0 .5px var(--hair);
  color: var(--ink);
}
.ic svg { width: 18px; height: 18px; fill: currentColor; }
.lb { font: 600 14px/1.1 Archivo, Arial, sans-serif; color: var(--muted); transition: color .25s ease; }
.nb {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 700 11px/1 Archivo, Arial, sans-serif;
  color: var(--muted);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.nb b { font: inherit; }
.nb svg { display: none; width: 11px; height: 11px; }

.step.is-done .face { border-style: solid; }
.step.is-done .lb { color: var(--ink); }
.step.is-done .nb { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-done .nb b { display: none; }
.step.is-done .nb svg { display: block; }
.step:focus-visible { outline-offset: 3px; }
/* selected (palette rule): beige face, ink border and a 1px ink ring; the forward pose and the lift carry the rest */
.step.is-active .face { border-style: solid; border-color: var(--green); background: var(--beige); box-shadow: 0 0 0 1px var(--green), var(--lift); }
.step.is-active .lb { color: var(--ink); }
.step.is-active:not(.is-done) .nb { border-color: var(--green); color: var(--green); background: #fff; }
/* hover (palette rule): beige face, ink border; it previews the step a resting pointer will select */
@media (hover: hover) {
  .step:not(.is-active):hover .face { background: var(--beige); border-color: var(--green); }
}

/* a settled, motion-free frame: reduced motion */
.is-still, .is-still *, .is-still *::before, .is-still *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

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