/* Horizon RP store: blue and white.
   Type: Barlow (drawn from California road signs and plates), condensed for display.
   Every colour is a variable here, so the palette can be changed in one place. */

:root {
  --white: #ffffff;
  --mist: #f2f6fd;          /* pale blue page bands */
  --line: #d5e1f5;          /* borders on white */
  --ink: #0b2a6f;           /* headings, deep blue */
  --text: #263b66;          /* body text */
  --muted: #586a8f;         /* secondary text */
  --blue: #1f5fd6;          /* buttons, links, accents */
  --blue-hover: #174bb0;
  --blue-deep: #0b2a6f;     /* hero, footer */
  --blue-night: #071d52;
  --on-blue: #ffffff;
  --on-blue-muted: #c9d8f5;
  /* tiers: lighter blue = further back, deepest blue = first in line */
  --tier-1: #8fb6f3;
  --tier-2: #5b8fe6;
  --tier-3: #2e6bd8;
  --tier-4: #0b2a6f;
  --radius: 6px;
  --wrap: 1180px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 132px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: 0.005em; color: var(--ink); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }

code {
  font: 600 0.95em var(--body);
  background: #e6eefc;
  color: var(--blue-hover);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--blue); color: var(--on-blue); padding: 0.5rem 0.9rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.muted { color: var(--muted); }
.error { color: #b42318; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 44px; padding: 0.55rem 1.15rem;
  font: 600 1rem/1 var(--body);
  border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn[disabled] { cursor: progress; opacity: 0.7; }
.btn--primary { background: var(--blue); color: var(--on-blue); }
.btn--primary:hover { background: var(--blue-hover); color: var(--on-blue); }
.btn--outline { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--mist); color: var(--ink); }
.btn--text { background: none; color: var(--muted); padding-inline: 0.4rem; min-height: 36px; text-decoration: underline; text-decoration-color: transparent; }
.btn--text:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn--done { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn--done::before { content: ""; width: 0.9em; height: 0.5em; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -2px); }
.btn--block { width: 100%; }
.btn--basket { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--basket:hover { border-color: var(--blue); color: var(--ink); }
.count {
  min-width: 1.6em; height: 1.6em; padding: 0 0.35em; border-radius: 1em;
  display: inline-grid; place-items: center;
  background: var(--blue); color: var(--on-blue); font-size: 0.85rem;
}

/* light buttons for use on the blue hero */
.hero .btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--on-blue); }
.hero .btn--outline:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); color: var(--on-blue); }
.hero .btn--primary { background: var(--white); color: var(--ink); }
.hero .btn--primary:hover { background: #e6eefc; color: var(--ink); }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: var(--radius); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--mist); color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 34px; color: var(--blue); }
.brand__name { font: 700 1.5rem/1 var(--display); letter-spacing: 0.01em; }
.topbar__actions { display: flex; gap: 0.5rem; margin-left: auto; }
#account-button { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }

.demo-banner {
  background: repeating-linear-gradient(-45deg, var(--blue) 0 14px, #2a69dd 14px 28px);
  color: var(--on-blue); text-align: center; font-weight: 600; padding: 0.55rem 1rem; font-size: 0.95rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--blue-night) 0%, var(--blue-deep) 45%, #1747a8 80%, #2a62cf 100%);
  color: var(--on-blue);
  padding: clamp(3.5rem, 9vw, 7rem) 0 0;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 2rem;
  min-height: clamp(420px, 58vh, 560px);
}
.hero__copy { padding-bottom: clamp(3rem, 7vw, 5.5rem); position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 700; line-height: 0.95;
  letter-spacing: -0.005em; color: var(--on-blue);
}
.hero h1 span { display: block; }
.hero__lede { margin-top: 1.4rem; max-width: 34rem; font-size: 1.2rem; color: var(--on-blue-muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__links { display: flex; gap: 1.25rem; margin-top: 1.4rem; font-weight: 500; }
.hero__links a { color: var(--on-blue); }
.hero__links a:hover { color: var(--on-blue-muted); }

.hero__scene { position: relative; align-self: stretch; display: grid; place-items: end center; min-height: 340px; }
.sun {
  position: absolute; bottom: -120px; left: 50%; width: 420px; height: 420px; margin-left: -210px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #dce8fd 34%, #8fb6f3 64%, rgba(143, 182, 243, 0) 72%);
  opacity: 0.85;
  animation: sunrise 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes sunrise {
  from { transform: translateY(140px); opacity: 0.2; }
  to { transform: translateY(0); opacity: 0.85; }
}

.horizon-line { position: relative; z-index: 3; height: 4px; background: var(--white); }

/* ---------------------------------------------------------------- plate */

.plate {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 60%, #e4ebf6 100%);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: inset 0 0 0 3px #c4d2ea, inset 0 0 0 5px #fff, 0 18px 40px rgba(4, 16, 48, 0.45);
}
.plate::before,
.plate::after {
  content: ""; position: absolute; top: 12%; width: 14px; height: 9px; border-radius: 5px;
  background: radial-gradient(circle, #8494b0 0 3px, #c4cddd 3.5px 100%);
}
.plate::before { left: 18%; }
.plate::after { right: 18%; }
.plate__chars { font: 700 1em/1 var(--display); letter-spacing: 0.05em; text-shadow: 0 1px 0 #fff, 0 -1px 0 rgba(0, 0, 0, 0.25); }
.plate__state { font: 600 1.35rem/1 var(--display); color: var(--blue); letter-spacing: 0.06em; }
.plate__tag { font: 600 1rem/1 var(--display); letter-spacing: 0.08em; }

.plate--hero {
  position: relative; z-index: 2; margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  width: min(440px, 92%); aspect-ratio: 2 / 1; gap: 0.35rem; padding: 0.8rem;
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  transform: rotate(-3deg);
}
.plate--hero .plate__chars { font-size: 1em; }
.plate--hero .plate__tag { text-transform: uppercase; }

/* ---------------------------------------------------------------- sections */

.status:not(:empty) { padding: 2.5rem 0 0; color: var(--muted); }
.status .wrap { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--quiet { background: var(--mist); }
.section__head { max-width: 46rem; margin-bottom: 2.6rem; }
.section__head p, .section__desc { margin-top: 0.9rem; color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

/* priority lane: left is the back of the line, right is the city */
.lane__track { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; font: 600 1.1rem/1 var(--display); letter-spacing: 0.02em; }
.lane__end--start { color: var(--muted); }
.lane__end--city { color: var(--blue); }
.lane__rule {
  flex: 1; height: 2px; position: relative;
  background: repeating-linear-gradient(90deg, var(--tier-1) 0 18px, transparent 18px 30px);
}
.lane__rule::after {
  content: ""; position: absolute; right: -2px; top: -5px;
  border-left: 10px solid var(--tier-1); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.lane__tiers {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--tiers, 3), minmax(0, 1fr));
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
}
.tier {
  --tone: var(--blue);
  position: relative; display: flex; flex-direction: column; gap: 0.6rem;
  padding: 2rem 1.6rem 1.6rem;
  border-top: 4px solid var(--tone);
}
.tier + .tier {
  background-image: repeating-linear-gradient(180deg, var(--line) 0 22px, transparent 22px 40px);
  background-size: 2px 100%; background-repeat: no-repeat; background-position: left top;
}
.tier--bronze { --tone: var(--tier-1); }
.tier--silver { --tone: var(--tier-2); }
.tier--gold { --tone: var(--tier-3); }
.tier--platinum { --tone: var(--tier-4); background-color: var(--mist); }
.tier__stop { position: absolute; top: -12px; left: 1.6rem; width: 20px; height: 20px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px var(--white); }
.tier__name { font-size: clamp(1.6rem, 2.4vw, 2rem); color: var(--ink); }
.tier__ahead { color: var(--muted); font-size: 0.98rem; }
@media (min-width: 981px) { .tier__ahead { min-height: 3.2em; } }
.tier__price { font: 600 1.5rem/1.2 var(--display); margin-top: 0.4rem; color: var(--blue); }
.tier__perks { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--text); }
.tier__perks li + li { margin-top: 0.3rem; }
.tier__perks li::marker { color: var(--tone); }
.tier__text { color: var(--text); }
.tier__actions { margin-top: auto; padding-top: 1rem; }
.tier__actions .btn { width: 100%; }

/* any other category */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.item { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.item__img { border-radius: 4px; margin-bottom: 0.4rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.item__name { font-size: 1.5rem; }
.item__blurb { color: var(--muted); }
.item__price { font: 600 1.35rem/1.2 var(--display); margin-top: auto; padding-top: 0.4rem; color: var(--blue); }
.item__actions { display: flex; gap: 0.5rem; align-items: center; }

/* how it works: a real sequence, so it's numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  font: 700 3.6rem/1 var(--display); color: var(--blue);
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { color: var(--muted); max-width: 32ch; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2.5rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 600 1.3rem/1.25 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--text); padding: 0 0 1.25rem; max-width: 62ch; }

/* footer */
.footer { background: var(--blue-deep); padding: 3rem 0 3.5rem; color: var(--on-blue-muted); font-size: 0.95rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer__about { max-width: 30rem; display: grid; gap: 0.6rem; align-content: start; }
.footer__brand { font: 700 1.6rem/1 var(--display); color: var(--on-blue); }
.footer__cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__cols div { display: grid; gap: 0.45rem; align-content: start; }
.footer__head { font: 600 1.15rem/1.2 var(--display); color: var(--on-blue); margin-bottom: 0.2rem; }
.footer__cols a { color: var(--on-blue-muted); text-decoration: none; }
.footer__cols a:hover { color: var(--on-blue); text-decoration: underline; }

/* ---------------------------------------------------------------- dialogs */

dialog { color: var(--text); border: 0; padding: 0; background: var(--white); }
dialog::backdrop { background: rgba(7, 29, 82, 0.55); }

.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(440px, 100vw); max-width: 100vw;
  display: none; flex-direction: column; border-left: 1px solid var(--line);
}
.drawer[open] { display: flex; animation: drawer-in 0.22s ease-out; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.25rem 1.1rem 1.5rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.9rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; display: grid; align-content: start; gap: 1.25rem; }
.drawer__foot { padding: 1.25rem 1.5rem 1.5rem; border-top: 1px solid var(--line); display: grid; gap: 0.75rem; background: var(--mist); }
.drawer__foot:empty { display: none; }
.empty { color: var(--muted); }
.basket__who { font-size: 0.95rem; }

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.line__name { font: 600 1.25rem/1.2 var(--display); color: var(--ink); }
.line__price { color: var(--muted); }

.coupon { display: grid; gap: 0.4rem; }
.coupon label { font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.coupon__row { display: flex; gap: 0.5rem; }
.coupon input {
  flex: 1; min-width: 0; min-height: 44px; padding: 0.5rem 0.75rem;
  font: 500 1rem var(--body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.coupon input:focus { border-color: var(--blue); outline: none; }
.coupon--applied p { color: var(--muted); }

.totals__row { display: flex; justify-content: space-between; color: var(--muted); }
.totals__row--total { color: var(--ink); font: 600 1.5rem/1.2 var(--display); }
.fineprint { font-size: 0.85rem; color: var(--muted); }

.modal { width: min(600px, calc(100vw - 2rem)); border-radius: 10px; border: 1px solid var(--line); padding: 0; overflow: hidden; }
.modal[open] { animation: modal-in 0.18s ease-out; }
@keyframes modal-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal--small { width: min(440px, calc(100vw - 2rem)); }
.modal__close { position: absolute; right: 0.6rem; top: 0.6rem; z-index: 2; }
#package-body, #login-body { padding: 1.75rem 1.75rem 1.75rem; display: grid; gap: 0.9rem; }
#package-body > .modal__img { margin: -1.75rem -1.75rem 0.4rem; }
#package-body h2, #login-body h2 { font-size: 2.2rem; padding-right: 2.5rem; }
.modal__price { font: 600 1.5rem/1.2 var(--display); color: var(--blue); }
.modal__actions { padding-top: 0.5rem; }
.login-methods { display: grid; gap: 0.6rem; margin-top: 0.4rem; }

.prose { color: var(--text); }
.prose > * + * { margin-top: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin-bottom: 0; }
.prose li + li { margin-top: 0.3rem; }
.prose img { border-radius: 4px; }

/* toasts */
.toasts { position: fixed; left: 1rem; bottom: 1rem; z-index: 100; display: grid; gap: 0.5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast {
  background: var(--blue-deep); color: var(--on-blue); padding: 0.8rem 1rem; border-radius: var(--radius);
  font-weight: 500; box-shadow: 0 10px 30px rgba(7, 29, 82, 0.3); border-left: 5px solid var(--tier-1);
  transition: opacity 0.35s, transform 0.35s;
}
.toast--success { border-left-color: #6fd39b; }
.toast--error { border-left-color: #ff8a80; }
.toast--out { opacity: 0; transform: translateY(6px); }

/* ---------------------------------------------------------------- terms page */

.doc { padding: clamp(3rem, 7vw, 5rem) 0; }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 1rem; }
.doc h2 { font-size: 1.8rem; margin-top: 2.4rem; margin-bottom: 0.6rem; }
.doc p, .doc li { color: var(--text); }
.doc p + p { margin-top: 0.8rem; }
.doc ul { padding-left: 1.2rem; }
.doc li + li { margin-top: 0.4rem; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding-bottom: 0; }
  .hero__scene { min-height: 230px; margin-top: 1rem; }
  .plate--hero { margin-bottom: 2.5rem; }
  .sun { width: 340px; height: 340px; margin-left: -170px; bottom: -130px; }
  .lane__tiers { grid-template-columns: 1fr; }
  .tier + .tier { background-image: none; border-top-width: 4px; }
  .tier { border-bottom: 1px solid var(--line); }
  .lane__track { display: none; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .faq { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .topbar__inner { gap: 0.5rem; }
  .brand__name { font-size: 1.25rem; }
  .btn--ghost { padding-inline: 0.6rem; }
  .hero__lede { font-size: 1.08rem; }
  .items { grid-template-columns: 1fr; }
  #package-body, #login-body { padding: 1.4rem; }
  #package-body > .modal__img { margin: -1.4rem -1.4rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- queue page */


.phero {
  background: linear-gradient(180deg, var(--blue-night) 0%, var(--blue-deep) 60%, #1747a8 100%);
  color: var(--on-blue);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}
.phero__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.phero h1 { color: var(--on-blue); font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 0.95; }
.phero__lede { margin-top: 1rem; max-width: 36rem; font-size: 1.15rem; color: var(--on-blue-muted); }

.qstats { display: flex; gap: 2.5rem; margin: 0; }
.qstat dt { font-weight: 500; color: var(--on-blue-muted); font-size: 0.95rem; }
.qstat dd { margin: 0.2rem 0 0; font: 700 2.6rem/1 var(--display); color: var(--on-blue); }
.qstat__of { font-size: 1.4rem; color: var(--on-blue-muted); font-weight: 600; }
.qstat--wide { min-width: 12rem; }
.meter { display: block; height: 6px; margin-top: 0.7rem; border-radius: 3px; background: rgba(255, 255, 255, 0.22); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--white); border-radius: 3px; transition: width 0.4s; }

.qmain { padding-top: clamp(2.5rem, 5vw, 4rem); }
.qgrid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.qcard {
  border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1.1rem; background: var(--white);
}
.qcard h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.qcard__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.qcard__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.qcard__cta { justify-self: start; min-width: 14rem; }
.qcard > .btn--text { justify-self: start; }

.qcard--turn { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.qcard--turn h2 { color: var(--on-blue); }
.qcard--turn .btn--primary { background: var(--white); color: var(--ink); }
.qcard--turn .btn--primary:hover { background: #e6eefc; color: var(--ink); }
.qcard--turn .btn--outline { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: var(--on-blue); }
.qcard--turn .btn--outline:hover { border-color: var(--white); color: var(--on-blue); background: rgba(255, 255, 255, 0.1); }
.qcard--turn .btn--text { color: var(--on-blue-muted); }
.qcard--turn .btn--text:hover { color: var(--on-blue); }

.qfeatures { list-style: none; margin: 0.2rem 0; padding: 0; display: grid; gap: 0.7rem; }
.qfeatures li { position: relative; padding-left: 1.9rem; color: var(--text); }
.qfeatures li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--mist); box-shadow: inset 0 0 0 2px var(--blue);
}
.qfeatures li::after {
  content: ""; position: absolute; left: 0.3rem; top: 0.6em; width: 0.5rem; height: 0.26rem;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}

.qnote { background: var(--mist); border-radius: var(--radius); padding: 0.75rem 1rem; color: var(--text); font-size: 0.98rem; }
.qnote--ok { box-shadow: inset 4px 0 0 var(--blue); }
.qnote__btn { padding: 0; min-height: 0; color: var(--blue); text-decoration: underline; font-weight: 600; }

.plate--queue { width: 220px; aspect-ratio: 2 / 1; flex: none; gap: 0.2rem; font-size: 3.2rem; transform: rotate(-2deg); }
.plate--queue .plate__state { font-size: 0.95rem; }
.plate--queue .plate__tag { font-size: 0.8rem; text-transform: uppercase; }
.plate--turn { box-shadow: inset 0 0 0 3px #c4d2ea, inset 0 0 0 5px #fff, 0 0 0 6px rgba(255, 255, 255, 0.25), 0 18px 40px rgba(4, 16, 48, 0.35); }

.qside { display: grid; gap: 1.5rem; }
.qpanel { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: 0.8rem; background: var(--white); }
.qpanel__title { font-size: 1.7rem; }
.qpanel__kicker { color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.qpanel__lede { font-size: 0.98rem; }

/* line order: a real sequence, so it's numbered */
.order { list-style: none; counter-reset: order; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.order__item {
  counter-increment: order; position: relative; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center;
  column-gap: 0.6rem; padding: 0.55rem 0.75rem; border-radius: var(--radius);
}
.order__item::before { content: counter(order); grid-row: span 2; font: 700 1.3rem/1 var(--display); color: var(--tier-2); }
.order__name { font: 600 1.15rem/1.2 var(--display); color: var(--ink); }
.order__note { grid-column: 2; font-size: 0.88rem; color: var(--muted); }
.order__you { grid-column: 3; grid-row: 1 / span 2; background: var(--blue); color: var(--on-blue); font-weight: 600; font-size: 0.85rem; padding: 0.15rem 0.6rem; border-radius: 1rem; }
.order__item--you { background: var(--mist); box-shadow: inset 3px 0 0 var(--blue); }

@media (max-width: 980px) {
  .qgrid { grid-template-columns: 1fr; }
  .qstats { gap: 1.75rem; }
}
@media (max-width: 520px) {
  .plate--queue { width: 180px; font-size: 2.6rem; }
  .qcard__cta { width: 100%; }
}


/* ---------------------------------------------------------------- shared page parts */



/* home: live status strip under the hero */
.stats-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.stat { padding: 1.4rem 0 1.4rem 1.5rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { color: var(--muted); font-size: 0.95rem; }
.stat dd { margin: 0.25rem 0 0; font: 700 2.2rem/1 var(--display); color: var(--ink); }
.stat dd.is-online { color: #13804b; }
.stat dd.is-offline { color: #b42318; }

/* home: what's in the city */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.feature { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; align-items: start; }
.feature__icon { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--blue); }
.feature__icon svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--muted); margin-top: 0.35rem; }

/* call-to-action band */
.band { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.band p { margin-top: 0.7rem; color: var(--muted); max-width: 38rem; font-size: 1.1rem; }
.band__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* about */
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; max-width: 70rem; }
.columns p { font-size: 1.1rem; color: var(--text); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.values li { border-top: 3px solid var(--blue); padding-top: 1rem; }
.values p { color: var(--muted); margin-top: 0.5rem; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.person { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: 0.4rem; align-content: start; }
.person__avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); font: 700 1.6rem/1 var(--display); margin-bottom: 0.5rem; }
.person__name { font-size: 1.6rem; }
.person__role { color: var(--blue); font-weight: 600; }
.person__about { color: var(--muted); }
.person__links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; font-weight: 500; }

/* rules */
.rules { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.rules__nav { position: sticky; top: 136px; border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; }
.rules__nav-title { font: 600 1.3rem/1.2 var(--display); color: var(--ink); margin-bottom: 0.6rem; }
.rules__nav ol { list-style: none; margin: 0; padding: 0; counter-reset: nav; display: grid; gap: 0.15rem; }
.rules__nav li { counter-increment: nav; }
.rules__nav a { display: flex; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: var(--radius); color: var(--text); text-decoration: none; font-weight: 500; }
.rules__nav a::before { content: counter(nav); color: var(--tier-2); font-weight: 600; min-width: 1rem; }
.rules__nav a:hover { background: var(--mist); }
.rules__nav a.is-active { background: var(--mist); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.rules__count { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.rules__intro { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; background: var(--mist); margin-bottom: 2rem; }
.rules__intro p { max-width: 62ch; }
.rules__updated { margin-top: 0.8rem; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.rule-group { scroll-margin-top: 140px; margin-bottom: 2.75rem; }
.rule-group h2 { display: flex; align-items: center; gap: 0.75rem; font-size: 2.1rem; margin-bottom: 1rem; }
.rule-group__num { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); font-size: 1.3rem; }
.rule-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rule { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rule__title { font: 600 1.25rem/1.3 var(--display); color: var(--ink); display: flex; gap: 0.7rem; }
.rule__num { color: var(--tier-2); min-width: 2.2rem; }
.rule__text { color: var(--text); margin-top: 0.3rem; padding-left: 2.9rem; max-width: 68ch; }

/* apply */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem; align-items: start; }
.apply__side { display: grid; gap: 1.5rem; }

.mini-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.5rem; color: var(--text); }
.mini-steps li::marker { color: var(--blue); font-weight: 600; }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; color: var(--ink); }
.field__optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0.6rem 0.8rem;
  font: 400 1rem/1.5 var(--body); color: var(--ink);
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field__count { font-size: 0.85rem; color: var(--muted); justify-self: end; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--text); }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--blue); flex: none; }
.form__error { background: #fdecea; color: #8a1c12; border-radius: var(--radius); padding: 0.75rem 1rem; font-weight: 500; }
.form .btn--primary { justify-self: start; min-width: 14rem; }

/* support */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.topic { border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; display: grid; gap: 0.9rem; align-content: start; }
.topic h2 { font-size: 1.8rem; }
.topic ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--text); }
.topic ul li::marker { color: var(--blue); }
.topic .btn { justify-self: start; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .features, .values, .columns { grid-template-columns: 1fr; }
  .rules, .apply { grid-template-columns: 1fr; }
  .rules__nav { position: static; }
}
@media (max-width: 520px) {
  .rule__text { padding-left: 0; }
  .form .btn--primary { width: 100%; }
}

.brand__name { white-space: nowrap; }
@media (max-width: 520px) {
  .basket__label { display: none; }
  .btn--basket { padding-inline: 0.8rem; }
}


/* ---------------------------------------------------------------- tabs */

.topbar__inner { min-height: 64px; }
.tabs { border-top: 1px solid var(--line); }
.tabs__list { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  flex: none; position: relative; padding: 0.85rem 0.95rem 0.8rem;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 1rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab:first-child { margin-left: -0.95rem; }
.tab:hover { color: var(--ink); border-bottom-color: var(--line); }
.tab[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.tab:focus-visible { outline-offset: -3px; }
.panel { animation: panel-in 0.18s ease-out; }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 700px) {
  .topbar__discord { display: none; }
  .tab { padding: 0.75rem 0.75rem 0.7rem; font-size: 0.98rem; }
  .tab:first-child { margin-left: -0.75rem; }
}
