@font-face {
  font-family: "Overpass";
  src: url("/fonts/overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Big Shoulders Stencil";
  src: url("/fonts/big-shoulders-stencil.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* concrete and asphalt */
  --concrete: #e7e8e6;
  --surface: #f7f7f6;
  --line: #d3d5d2;
  --asphalt: #1c1e1d;
  --asphalt-2: #252826;
  --asphalt-line: #393c39;
  --paint: #f6f5f1;
  --paint-dim: #b9b8b1;
  --ink: #1d1f1e;
  --ink-soft: #565850;

  /* level paint: stripes, keys and one job each */
  --yellow: #f2c200;
  --blue: #1f5fbf;
  --red: #c4371f;
  --green: #217646;

  /* reserved: only the message being handled */
  --cone: #ff6a13;

  --text: "Overpass", "Segoe UI", system-ui, sans-serif;
  --stencil: "Big Shoulders Stencil", "Overpass", sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
p, h1, h2, h3, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--yellow); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; border-radius: 6px;
}
.skip:focus { top: 1rem; }

/* ---------- level keys (the elevator buttons) ---------- */
.key {
  display: inline-grid; place-items: center; flex: none;
  width: 1.65rem; height: 1.65rem; border-radius: 50%;
  font-weight: 800; font-size: 0.72rem; letter-spacing: -0.02em; line-height: 1; padding-top: 0.12em;
  color: var(--paint); background: var(--lvl, var(--ink));
}
.key--g { --lvl: var(--yellow); color: var(--ink); }
.key--p1 { --lvl: var(--blue); }
.key--p2 { --lvl: var(--red); }
.key--p3 { --lvl: var(--green); }
.key--p4 { --lvl: var(--yellow); color: var(--ink); }
.key--lg { width: 2.5rem; height: 2.5rem; font-size: 0.95rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.4rem 0.6rem; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  transition: background-color 160ms, transform 160ms var(--ease-out);
}
.btn:hover { background: #ffd23a; }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 2.4rem; padding: 0.45rem 1rem 0.35rem; font-size: 0.92rem; }

.link-quiet { color: var(--paint-dim); text-decoration: none; font-weight: 600; font-size: 0.92rem; transition: color 150ms; }
.link-quiet:hover { color: var(--paint); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(28, 30, 29, 0.92);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: var(--paint);
  border-bottom: 1px solid var(--asphalt-line);
}
.topbar__inner {
  max-width: var(--max); margin: 0 auto; padding: 0.7rem var(--gutter);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand__mark { width: 1.8rem; height: 1.8rem; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }

.nav { display: flex; gap: 0.25rem; margin-left: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.7rem 0.3rem 0.4rem; border-radius: 999px;
  color: var(--paint-dim); text-decoration: none; font-size: 0.9rem; font-weight: 600;
  transition: color 150ms, background-color 150ms;
}
.nav__link .key { width: 1.45rem; height: 1.45rem; font-size: 0.62rem; opacity: 0.55; transition: opacity 150ms; }
.nav__link:hover, .nav__link.is-here { color: var(--paint); }
.nav__link:hover .key, .nav__link.is-here .key { opacity: 1; }
.nav__link.is-here { background: var(--asphalt-2); }
.topbar__actions { display: flex; align-items: center; gap: 1.1rem; margin-left: 0.75rem; }

/* ---------- hero (ground level, on asphalt) ---------- */
.hero { background: var(--asphalt); color: var(--paint); }
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--gutter) clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__copy { display: grid; gap: 1.6rem; justify-items: start; }
.hero__title {
  font-weight: 800; font-size: clamp(2.4rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance; max-width: 20ch;
}
.hero__lede { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--paint-dim); max-width: 31em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; margin-top: 0.4rem; }
.hero__price { color: var(--paint-dim); font-size: 0.95rem; }
.hero__price strong { color: var(--paint); font-weight: 800; font-size: 1.1rem; }

/* demo panel */
.demo { display: grid; gap: 0.9rem; }
.demo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.demo__title { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.005em; }
.demo__note { font-size: 0.78rem; color: #9a9993; }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  font: inherit; font-size: 0.82rem; font-weight: 600; line-height: 1;
  padding: 0.5rem 0.75rem 0.42rem; border-radius: 999px; cursor: pointer;
  color: var(--paint-dim); background: transparent; border: 1px solid var(--asphalt-line);
  transition: color 150ms, border-color 150ms, background-color 150ms;
}
.chip time { font-variant-numeric: tabular-nums; color: #9a9993; margin-right: 0.25rem; transition: color 150ms; }
.chip:hover { color: var(--paint); border-color: #565953; }
.chip.is-active { color: var(--paint); border-color: var(--cone); background: rgba(255, 106, 19, 0.1); }
.chip.is-active time { color: #ffb185; }

.ticket {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow: inset 0 0 0 2px var(--cone);
}
.ticket__head { display: flex; align-items: baseline; gap: 0.7rem; font-size: 0.85rem; color: var(--ink-soft); }
.ticket__who { font-weight: 800; color: var(--ink); }
.ticket__time { margin-left: auto; font-variant-numeric: tabular-nums; }
.ticket__msg { margin-top: 0.45rem; font-weight: 700; font-size: clamp(1.15rem, 1.5vw, 1.32rem); line-height: 1.35; letter-spacing: -0.012em; }
.ticket__out { margin-top: 0.95rem; padding-top: 0.95rem; border-top: 1px solid var(--line); }
.ticket__verdict {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.01em;
  padding: 0.28rem 0.6rem 0.2rem; border-radius: 999px; color: var(--paint); background: var(--green);
}
.ticket__out[data-dest="host"] .ticket__verdict { background: var(--red); }
.ticket__out[data-dest="quiet"] .ticket__verdict { background: var(--ink-soft); }
.ticket__reply { margin-top: 0.6rem; font-size: 0.97rem; line-height: 1.55; }
.ticket__out[data-dest="host"] .ticket__reply::before { content: "Draft for you: "; font-weight: 700; }
.ticket__facts-title { margin-top: 0.85rem; font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); }
.ticket__facts { margin-top: 0.25rem; display: grid; gap: 0.15rem; font-size: 0.84rem; line-height: 1.45; color: var(--ink-soft); }
.ticket__facts li { padding-left: 0.9rem; position: relative; }
.ticket__facts li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: #aaa69c; }
.ticket.is-routing .ticket__out { animation: out-in 480ms var(--ease-out) both; }
@keyframes out-in { from { opacity: 0; transform: translateY(5px); } }

/* the painted floor under the ticket */
.floor {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--asphalt-2); border-radius: 10px; overflow: hidden;
}
.lane {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 0.85rem 0.5rem 0.75rem 2.25rem;
  color: rgba(246, 245, 241, 0.4); transition: color 400ms var(--ease-out);
}
.lane + .lane::before {
  content: ""; position: absolute; left: 0; top: 0.65rem; bottom: 0.65rem; border-left: 2px dashed rgba(246, 245, 241, 0.28);
}
.lane__word { font-family: var(--stencil); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 0.1em; }
.lane.is-lit { color: var(--paint); }
.lane.is-lit::after { content: ""; position: absolute; left: 25%; right: 25%; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--cone); }
.floor__arrow {
  position: absolute; top: 50%; left: 0; z-index: 1; width: 1.05rem; height: auto; margin-top: -0.8rem;
  fill: var(--paint);
  transform: translateX(var(--arrow-x, 0px)) rotate(var(--arrow-tilt, 0deg));
  transition: transform 620ms var(--ease-out);
}
.floor:not(.is-ready) .floor__arrow { opacity: 0; }

/* ---------- levels ---------- */
.level { border-top: 4px solid var(--lvl); }
.level--p1 { --lvl: var(--blue); }
.level--p2 { --lvl: var(--red); }
.level--p3 { --lvl: var(--green); }
.level--p4 { --lvl: var(--yellow); }
.level__inner { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); }
.level__head { display: grid; gap: 1.1rem; justify-items: start; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.level__title { font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; text-wrap: balance; }
.level__lede { font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--ink-soft); max-width: 36em; }
.level__aside { margin-top: 2rem; color: var(--ink-soft); max-width: 40em; }

/* P1 */
.how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.sources__row { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1.25rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.sources__row:last-child { border-bottom: 1px solid var(--line); }
.sources dt { font-weight: 800; letter-spacing: -0.01em; }
.sources dd { color: var(--ink-soft); }
.sources__row--note dt { color: var(--blue); }

.sheet {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 20px 40px -24px rgba(40, 36, 28, 0.35);
}
.sheet__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 1.5rem 0.85rem; border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line);
}
.sheet__title { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.sheet__biz { font-size: 0.82rem; color: var(--ink-soft); }
.sheet__body { padding: 0.35rem 1.5rem; }
.sheet__body > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; font-size: 0.93rem; line-height: 1.5; }
.sheet__body > div + div { border-top: 1px solid #e4e5e2; }
.sheet__body dt { font-weight: 700; }
.sheet__body dd { color: var(--ink-soft); }
.sheet__cap { padding: 0.8rem 1.5rem; font-size: 0.8rem; color: var(--ink-soft); background: #eeefed; }

/* P2: the no-parking zone, one quiet plate with a hatched edge */
.zone {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--asphalt); color: var(--paint); border-radius: var(--radius); overflow: hidden;
  position: relative; padding-top: 10px;
}
.zone::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 8px, var(--asphalt) 8px 18px);
}
.zone__item { padding: clamp(1.5rem, 2.6vw, 2.1rem) clamp(1.25rem, 2.2vw, 1.75rem); display: grid; gap: 0.5rem; align-content: start; }
.zone__item + .zone__item { border-left: 1px dashed rgba(246, 245, 241, 0.22); }
.zone__word { font-family: var(--stencil); font-weight: 800; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: 0.05em; text-transform: uppercase; }
.zone__desc { font-size: 0.93rem; line-height: 1.5; color: var(--paint-dim); }

/* P3 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.step { display: grid; gap: 0.55rem; align-content: start; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.step__num { font-family: var(--stencil); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--green); }
.step__title { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.015em; }
.step p { color: var(--ink-soft); }

.live { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.live__copy { display: grid; gap: 0.75rem; }
.live__title { font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.live__copy p { color: var(--ink-soft); max-width: 32em; }
.settings {
  background: var(--surface); border-radius: var(--radius); padding: 1.2rem 1.5rem 0.6rem;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 20px 40px -24px rgba(40, 36, 28, 0.35);
}
.settings__title { font-weight: 800; font-size: 0.95rem; }
.settings__list { margin-top: 0.4rem; }
.settings__list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.65rem 0; font-size: 0.93rem; }
.settings__list li + li { border-top: 1px solid #e4e5e2; }
.pill { flex: none; font-size: 0.76rem; font-weight: 700; padding: 0.22rem 0.6rem 0.14rem; border-radius: 999px; background: #e4e5e2; color: var(--ink-soft); }
.pill--on { background: rgba(33, 118, 70, 0.12); color: var(--green); }

/* P4 */
.rate {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--asphalt); color: var(--paint); border-radius: 20px; overflow: hidden;
}
.rate__price { padding: clamp(2rem, 4vw, 3rem); display: grid; align-content: center; gap: 0.35rem; border-right: 1px solid var(--asphalt-line); }
.rate__amt { font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -0.045em; color: var(--yellow); font-variant-numeric: lining-nums; }
.rate__per { font-weight: 700; font-size: 1.1rem; }
.rate__rule { margin-top: 0.5rem; color: var(--paint-dim); font-size: 0.95rem; }

.calc { padding: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.8rem; align-content: center; justify-items: start; }
.calc__label { font-weight: 700; font-size: 0.92rem; color: var(--paint-dim); }
.calc__ctrl { display: inline-flex; align-items: stretch; border: 1px solid var(--asphalt-line); border-radius: 999px; overflow: hidden; background: var(--asphalt-2); }
.calc__step { display: grid; place-items: center; width: 2.9rem; min-height: 2.9rem; background: transparent; color: var(--paint); border: 0; cursor: pointer; transition: background-color 150ms; }
.calc__step:hover { background: var(--asphalt-line); }
.calc__step svg { width: 1rem; height: 1rem; }
.calc__input {
  width: 3.5rem; text-align: center; border: 0; background: transparent; color: var(--paint);
  font: inherit; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield; caret-color: var(--yellow);
}
.calc__input::-webkit-outer-spin-button, .calc__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc :focus-visible { outline-color: var(--yellow); outline-offset: -2px; }
.calc__out { color: var(--paint-dim); font-size: 0.95rem; margin-bottom: 0.6rem; }
.calc__out span { color: var(--paint); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ---------- questions ---------- */
.info { border-top: 1px solid var(--line); }
.info__inner { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5.5rem); }
.info__title { font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.025em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: 1.1rem 0 1rem; font-weight: 700; font-size: 1.05rem; line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 0.9rem; height: 0.9rem; background: var(--ink-soft);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M9 2h2v7h7v2h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue); }
.faq__item p { padding: 0 0 1.2rem; max-width: 40em; color: var(--ink-soft); }

/* ---------- exit ---------- */
.exit { background: var(--asphalt); color: var(--paint); border-top: 6px solid var(--yellow); }
.exit__inner {
  max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 6.5rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
}
.exit__title { font-weight: 800; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 16ch; text-wrap: balance; }

.foot { background: var(--asphalt); color: #9a9993; font-size: 0.85rem; border-top: 1px solid var(--asphalt-line); }
.foot__inner { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gutter); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: center; }
.foot__brand { font-weight: 800; color: var(--paint); letter-spacing: -0.02em; }
.foot__legal { flex: 1 1 22rem; }
.foot__links a { color: var(--paint-dim); }

/* 404 */
.notfound { max-width: var(--max); margin: 0 auto; padding: var(--section-y) var(--gutter); display: grid; gap: 1.25rem; justify-items: start; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__link { font-size: 0; gap: 0; padding: 0.3rem; }
  .nav__link .key { width: 1.6rem; height: 1.6rem; font-size: 0.68rem; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__title { max-width: 16ch; }
  .zone { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zone__item:nth-child(3) { border-left: 0; }
  .zone__item:nth-child(n+3) { border-top: 1px dashed rgba(246, 245, 241, 0.22); }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .nav, .link-quiet { display: none; }
  .topbar__actions { margin-left: auto; }
  .how, .live, .rate, .info__inner { grid-template-columns: minmax(0, 1fr); }
  .sources__row, .sheet__body > div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .zone { grid-template-columns: minmax(0, 1fr); }
  .zone__item + .zone__item { border-left: 0; border-top: 1px dashed rgba(246, 245, 241, 0.22); }
  .rate__price { border-right: 0; border-bottom: 1px solid var(--asphalt-line); }
  .lane { padding-left: 1.6rem; }
  .lane__word { font-size: 0.95rem; letter-spacing: 0.03em; }
  .floor__arrow { width: 0.8rem; margin-top: -0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
