/* Rota — the morning sorting table at the nave.
   Concrete floor, steel sorting case, white thermal labels. Orange only on what moves or is touched;
   blue = recogida, green = entregado (stamp ink), as in the app. */

:root {
  --concrete: #e7e9e4;
  --concrete-2: #dde0da;
  --steel: #cdd2cc;
  --steel-bin: #b8beb7;
  --steel-line: #9aa29b;
  --steel-ink: #4b534d;
  --ink: #1e2433;
  --ink-2: #48506a;
  --paper: #ffffff;
  --orange: #ff6b00;
  --orange-press: #e65f00;
  --blue: #2563eb;
  --green: #12703a;
  --road: #1e2433;
  --road-2: #2a3144;
  --road-text: #e7e9e4;
  --road-muted: #aeb5c4;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --stencil: "Saira Stencil One", "Barlow Condensed", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --rail: 132px;
  --radius: 6px;
  --lift: 0 1px 1px rgba(30, 36, 51, 0.06), 0 10px 24px -12px rgba(30, 36, 51, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--orange); color: var(--ink); }
html { scrollbar-color: var(--steel-line) var(--concrete-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--concrete-2); }
::-webkit-scrollbar-thumb { background: var(--steel-line); border-radius: 6px; border: 3px solid var(--concrete-2); }

img, svg { display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.75rem, 1.5rem + 4.6vw, 5.4rem); line-height: 0.94; }
h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 0.98; }
p { margin: 0; text-wrap: pretty; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: var(--concrete); border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter);
  background: var(--concrete);
  border-bottom: 1px solid var(--steel-line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.6rem/1 var(--display); }
.brand img { border-radius: 9px; }
.top-nav { display: flex; gap: 24px; margin-left: auto; font-weight: 600; }
.top-nav a { text-decoration: none; padding: 8px 0; }
.top-nav a:hover { text-decoration: underline; }
.top-get { display: none; }
.lang { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button {
  font: 700 0.85rem/1 var(--body); letter-spacing: 0.04em;
  min-width: 44px; min-height: 36px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink);
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--concrete); }
.lang button:hover:not([aria-pressed="true"]) { background: var(--concrete-2); }

/* ---------- the day: a time card rail beside every section ---------- */
.day {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) minmax(0, 1.08fr);
  column-gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  border-bottom: 1px solid var(--steel-line);
}
.clock {
  position: sticky; top: 92px;
  display: grid; gap: 2px;
  padding-top: 10px;
  border-top: 3px solid var(--ink);
}
.clock b { font: 800 2rem/1 var(--display); letter-spacing: 0.01em; }
.clock span { font: 700 0.8rem/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.day-copy { display: grid; gap: 22px; max-width: 34rem; }
.day-copy > p { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }

.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.ticks b { font-weight: 700; color: var(--ink); }
.ticks li > span:last-child { color: var(--ink-2); }

/* The app's numbered pins, one colour one meaning. */
.stop, .pin, .label-stop {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font: 800 0.95rem/1 var(--display);
  box-shadow: 0 0 0 2px var(--paper);
}
.stop-blue, .pin-blue { background: var(--blue); }
.stop-green { background: var(--green); }

.scene { margin: 0; position: relative; display: grid; gap: 10px; justify-items: start; }
.scene figcaption { font: 600 0.8rem/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel-ink); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 88px); min-height: calc(100svh - 61px); align-items: center; }
.hero .clock { align-self: start; margin-top: 8px; }
.hero-copy { display: grid; gap: 26px; align-content: center; }
.lead { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem); color: var(--ink-2); max-width: 36ch; }
.how-link { justify-self: start; font-weight: 700; padding: 6px 0; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 16px;
  border: 1.5px solid var(--ink); border-radius: 10px;
  background: var(--paper); color: var(--ink);
  font: 700 1.05rem/1 var(--body); text-decoration: none;
}
.store svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.store[data-store="android"] svg { fill: currentColor; stroke: none; }
.store[aria-disabled="true"] { cursor: default; }
.store[aria-disabled="true"] .store-name { opacity: 0.55; }
/* "Muy pronto" as a rubber stamp across the button. */
.store-stamp {
  position: absolute; right: -10px; top: -12px;
  padding: 4px 8px 3px;
  border: 2px solid var(--ink); border-radius: 4px;
  background: var(--concrete);
  font: 800 0.78rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-6deg);
}
a.store { background: var(--ink); color: var(--paper); }
a.store:hover { background: #2c3449; }
a.store .store-stamp { display: none; }

/* The sorting case */
.case-wrap {
  align-self: center;
  background: var(--steel);
  border: 3px solid var(--steel-line);
  border-radius: var(--radius);
  box-shadow: 0 2px 2px rgba(30, 36, 51, 0.08), 0 18px 30px -18px rgba(30, 36, 51, 0.45);
  padding: 12px;
  display: grid; gap: 12px;
}
.case-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 2px 4px 0; }
.case-route { font: 800 1.35rem/1 var(--display); }
.case-note { margin-top: 4px; font: 600 0.75rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-ink); }
.case-stats { display: flex; gap: 18px; margin: 0; }
.case-stats div { display: grid; gap: 2px; text-align: right; }
.case-stats dt { font: 700 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel-ink); }
.case-stats dd { margin: 0; font: 800 1.7rem/1 var(--display); }
.case-stats dd.is-better { color: var(--green); }

.case {
  list-style: none; margin: 0; padding: 8px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  background: var(--steel-line);
  border-radius: 4px;
}
.bin {
  position: relative;
  aspect-ratio: 1 / 0.86;
  background: var(--steel-bin);
  border-radius: 3px;
  box-shadow: inset 0 10px 14px -8px rgba(30, 36, 51, 0.45), inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  padding: 26px 6px 6px;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: end;
}
.bin-no {
  position: absolute; left: 7px; top: 3px;
  font: 400 1.45rem/1 var(--stencil); color: #4a524c;
}
.pkg {
  position: relative;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(30, 36, 51, 0.12), 0 6px 10px -6px rgba(30, 36, 51, 0.5);
  padding: 10px 6px 5px;
  display: grid; gap: 2px;
  min-width: 0;
  will-change: transform;
}
/* The service stripe printed across the top of the label: orange entrega, blue recogida. */
.pkg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 3px 3px 0 0; background: var(--orange); }
.pkg.pickup::before { background: var(--blue); }
.pkg-addr { font: 700 0.74rem/1.15 var(--body); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pkg-meta { display: flex; justify-content: space-between; gap: 4px; min-width: 0; font: 600 0.66rem/1.2 var(--body); color: var(--ink-2); white-space: nowrap; }
.pkg-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pkg-n { flex: none; display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.pkg-n svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.pkg-n b { font-weight: 800; }
.pkg-win { justify-self: start; margin-top: 1px; padding: 1px 4px; border-radius: 3px; background: var(--ink); color: var(--paper); font: 700 0.6rem/1.3 var(--body); letter-spacing: 0.02em; }
.pkg-win:empty { display: none; }
.pkg-pin {
  position: absolute; right: -6px; top: -12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font: 800 0.78rem/1 var(--display);
  box-shadow: 0 0 0 2px var(--paper);
  transition: background-color 0.4s var(--ease-out);
}
.case.is-sorted .pkg-pin { background: var(--orange); color: var(--ink); }

.case-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 2px 4px 2px; }
.btn-optimize {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--orange); color: var(--ink);
  font: 800 1.2rem/1 var(--display); letter-spacing: 0.02em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 14px -8px rgba(30, 36, 51, 0.55);
  transition: background-color 0.2s, transform 0.2s var(--ease-out);
}
.btn-optimize:hover { background: var(--orange-press); }
.btn-optimize:active { transform: translateY(1px); }
.btn-optimize[disabled] { cursor: progress; opacity: 0.75; }
.btn-optimize svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.case-status { font-weight: 600; color: var(--ink-2); }

/* ---------- scenes ---------- */
.search, .label, .roster { box-shadow: var(--lift); }

.search {
  width: min(100%, 26rem);
  background: var(--paper); border-radius: 14px; padding: 14px;
  display: grid; gap: 12px;
}
.search-field {
  display: flex; align-items: center; gap: 10px;
  min-height: 50px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 10px;
  font-weight: 600;
}
.search-field svg { width: 20px; height: 20px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.15em; background: var(--orange); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; }
.search-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--concrete-2); }
.search-list li:first-child { background: var(--concrete); border-radius: 8px; padding-inline: 10px; }
.search-list b { font-weight: 700; }
.search-list span { grid-column: 1; font-size: 0.9rem; color: var(--ink-2); }
.search-list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 700 0.72rem/1 var(--body); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.search-svc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.svc { padding: 8px 12px; border-radius: 999px; font: 700 0.85rem/1 var(--body); border: 1.5px solid var(--concrete-2); }
.svc-del { background: #fff1e6; border-color: #ffd2b0; }
.svc-pick { color: var(--blue); }
.bultos { margin-left: auto; font-weight: 600; color: var(--ink-2); }
.bultos { display: inline-flex; align-items: center; gap: 10px; }
.step { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1.5px solid var(--concrete-2); border-radius: 999px; }
.step svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.step b { color: var(--ink); font: 800 1.05rem/1 var(--display); }

.plan {
  width: min(100%, 28rem);
  list-style: none; margin: 0; padding: 6px 14px;
  background: var(--paper); border-radius: 14px 14px 0 0;
  box-shadow: var(--lift);
}
.plan li { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--concrete-2); }
.plan li:last-child { border-bottom: 0; }
.plan .pin { width: 28px; height: 28px; background: var(--orange); color: var(--ink); box-shadow: none; }
.plan .pin-blue { background: var(--blue); color: var(--paper); }
.plan-more .pin { background: var(--concrete-2); color: var(--ink-2); }
.plan-addr { font-weight: 600; }
.plan-addr em { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 5px; background: var(--ink); color: var(--paper); font: 700 0.72rem/1 var(--body); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.1em; }
.plan-addr em.em-blue { background: var(--blue); }
.plan-more .plan-addr { color: var(--ink-2); font-weight: 500; }
.plan-t { font: 800 1.15rem/1 var(--display); }
.hud {
  width: min(100%, 28rem);
  margin-top: -10px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); color: var(--concrete);
  border-radius: 0 0 14px 14px;
}
.hud div { display: grid; gap: 4px; padding: 14px; border-left: 1px solid var(--road-2); }
.hud div:first-child { border-left: 0; }
.hud span { font: 700 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--road-muted); }
.hud b { font: 800 1.6rem/1 var(--display); }

/* the road: the one dark band, like the van on the street */
.day-road { background: var(--road); color: var(--road-text); border-bottom-color: var(--road); }
.day-road .clock { border-top-color: var(--road-text); }
.day-road .clock span, .day-road .day-copy > p, .day-road .ticks li > span:last-child { color: var(--road-muted); }
.day-road .ticks b, .day-road h2 { color: var(--road-text); }
.day-road .stop { background: var(--road-text); color: var(--road); box-shadow: none; }
.day-road .scene figcaption { color: var(--road-muted); }
.day-road ::selection { color: var(--road); }

.nav-screen {
  width: min(100%, 24rem);
  aspect-ratio: 4 / 5;
  position: relative; overflow: hidden;
  border-radius: 14px;
  background: #eef0eb;
  color: var(--ink);
}
.nav-turn {
  position: absolute; left: 10px; right: 10px; top: 12px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 16px;
  background: #111418; color: var(--paper);
}
.nav-turn svg { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--paper); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.nav-turn b { display: block; font: 800 1.7rem/1 var(--display); }
.nav-turn span { font-weight: 700; font-size: 0.95rem; }
.nav-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.streets path { stroke: #ffffff; stroke-width: 9; stroke-linecap: round; }
.river { fill: none; stroke: #c7ddee; stroke-width: 16; }
.route-done { stroke: #b8bcc4; stroke-width: 7; stroke-linecap: round; }
.route { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.puck circle { fill: var(--paper); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)); }
.puck path { fill: var(--orange); }
.door circle { fill: var(--orange); stroke: var(--paper); stroke-width: 3; }
.door text { fill: var(--ink); font: 800 13px var(--display); text-anchor: middle; }
.nav-eta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; justify-items: center; gap: 2px;
  padding: 14px 10px 18px; border-radius: 18px 18px 0 0;
  background: var(--paper); color: var(--ink);
}
.nav-eta b { font: 800 1.6rem/1 var(--display); color: var(--ink); }
.nav-eta span { font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }

/* the thermal label and its stamp */
.label {
  position: relative;
  width: min(100%, 24rem);
  background: var(--paper);
  border-radius: 8px;
  padding: 0 20px 20px;
  display: grid; gap: 4px;
  overflow: hidden;
}
.label-strip { display: flex; justify-content: space-between; margin: 0 -20px 14px; padding: 10px 20px; background: var(--orange); color: var(--ink); font: 800 1.05rem/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.label-to { font: 700 0.75rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.label-addr { font: 800 2rem/1.05 var(--display); }
.label-town { font: 600 1.1rem/1.2 var(--body); }
.label-row { display: flex; align-items: center; gap: 16px; margin: 12px 0 8px; padding: 10px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 600; }
.label-row .label-stop { margin-left: auto; background: var(--orange); color: var(--ink); box-shadow: none; }
/* The label foot: barcode on the left, blank thermal paper on the right where the stamp lands. */
.label-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 4px; }
.barcode { flex: 1 1 0; min-width: 0; max-width: 46%; height: 56px; }
.barcode path { stroke: var(--ink); stroke-width: 2.2; }
.stamp {
  position: relative; flex: none; margin-right: 4px;
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 16px 8px;
  border: 3px solid var(--green); border-radius: 10px;
  color: var(--green);
  transform: rotate(-7deg);
  mix-blend-mode: multiply;
}
.stamp b { font: 800 1.9rem/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.stamp span { font: 700 0.85rem/1 var(--body); letter-spacing: 0.04em; }
.js .stamp { opacity: 0; }
.js .is-stamped .stamp { animation: stamp 0.55s var(--ease-out) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-7deg) scale(1.9); filter: blur(4px); }
  60% { opacity: 1; transform: rotate(-7deg) scale(0.96); filter: blur(0); }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* the end of the route: a thermal ticket, torn off the printer */
.ticket {
  width: min(100%, 24rem);
  background: var(--paper);
  padding: 22px 18px 30px;
  box-shadow: 0 2px 2px rgba(30, 36, 51, 0.08), 0 16px 26px -16px rgba(30, 36, 51, 0.4);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / 14px 10px repeat-x;
}
.ticket-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 2px dashed var(--ink); }
.ticket-head b { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.ticket-head span { font-weight: 600; color: var(--ink-2); }
.ticket-foot { margin-top: 14px; padding-top: 12px; border-top: 2px dashed var(--ink); font: 700 0.85rem/1.2 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { padding: 14px 6px 10px; text-align: right; font: 700 0.72rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.ledger td { padding: 12px 6px; text-align: right; font: 800 1.25rem/1 var(--display); border-bottom: 1px solid var(--concrete-2); }
.ledger th:first-child, .ledger td:first-child { text-align: left; }
.ledger td:first-child { font: 600 1rem/1 var(--body); }
.ledger tr:last-child td { border-bottom: 0; }

/* the team */
.teams { background: var(--concrete-2); }
.roster { width: min(100%, 26rem); list-style: none; margin: 0; padding: 6px 16px; background: var(--paper); border-radius: 14px; }
.roster li { display: grid; grid-template-columns: 14px auto 1fr auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--concrete-2); }
.roster li:last-child { border-bottom: 0; }
.roster i { width: 12px; height: 12px; border-radius: 50%; }
.st-road { background: var(--orange); }
.st-nave { background: transparent; border: 2.5px solid var(--steel-ink); }
.st-done { background: var(--green); }
.roster b { font: 800 1.25rem/1 var(--display); }
.roster span { color: var(--ink-2); font-size: 0.95rem; }
.roster em { font-style: normal; font-weight: 700; }
.team-code { font-weight: 600; color: var(--ink-2); }
.team-code b { margin-left: 6px; padding: 6px 10px; border: 1.5px dashed var(--ink); border-radius: 6px; color: var(--ink); font: 800 1.05rem/1 var(--display); letter-spacing: 0.08em; }

/* ---------- questions ---------- */
.faq { padding: clamp(64px, 9vw, 120px) var(--gutter); display: grid; gap: 8px; max-width: calc(52rem + 2 * var(--gutter)); margin: 0 auto; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-of-type { border-bottom: 1.5px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font: 700 1.5rem/1.1 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, 0); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* ---------- get it: the band you touch ---------- */
.get {
  display: grid; justify-items: center; text-align: center; gap: 18px;
  padding: clamp(72px, 10vw, 136px) var(--gutter);
  background: var(--ink); color: var(--road-text);
}
.get h2 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.2rem); }
.get > p { font-size: 1.25rem; font-weight: 600; }
.stores-big { justify-content: center; margin-top: 10px; }
.get > p { color: var(--road-muted); }
.get .store { border-color: var(--paper); }
.get .store-stamp { border-color: var(--road-text); background: var(--road); color: var(--road-text); }
.get a.store { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.foot { border-top: 1px solid var(--road-2); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--road-muted); }
.foot .brand { color: var(--road-text); font-size: 1.3rem; }
.foot-year { margin-left: auto; }
.foot-link { color: var(--road-text); text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }

/* Every other step the picture leads: the scroll alternates instead of repeating one layout. */
.day.flip > .scene { grid-column: 2; grid-row: 1; }
.day.flip > .day-copy { grid-column: 3; grid-row: 1; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .day { grid-template-columns: 96px minmax(0, 1fr); row-gap: 40px; }
  .day > .scene, .hero > .case-wrap, .day.flip > .scene { grid-column: 2; grid-row: auto; }
  .day.flip > .day-copy { grid-column: 2; grid-row: auto; }
  .hero { min-height: 0; }
  .clock b { font-size: 1.7rem; }
}

@media (max-width: 720px) {
  .top { gap: 12px; }
  .top-nav { gap: 16px; font-size: 0.95rem; }
  .top-nav a:not(.top-get) { display: none; }
  .top-get { display: inline; }
  /* The clock becomes a narrow strip in the left gutter, read sideways, still beside the heading. */
  .day { grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 32px; padding-left: 12px; }
  .clock { top: 76px; border-top: 0; padding: 0; writing-mode: vertical-rl; transform: rotate(180deg); justify-self: start; gap: 8px; display: flex; align-items: center; }
  .clock b { font-size: 1.35rem; }
  .clock span { font-size: 0.72rem; }
  .hero-copy { gap: 20px; }
  .case { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
  .case-wrap { padding: 10px; }
  .case-head { flex-wrap: wrap; }
  .pkg-addr { font-size: 0.68rem; }
  .bin { padding: 20px 4px 4px; }
  .store { min-height: 52px; padding-right: 18px; }
  .faq summary { font-size: 1.3rem; }
  .ledger th, .ledger td { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .js .stamp { opacity: 1; animation: none !important; }
  .btn-optimize, .pkg-pin, .faq summary::after { transition: none; }
}
