/* Scoutix — black-and-white transit kiosk: black bars frame a white canvas, colour lives only inside game art */

:root {
  --black: #000000;
  --white: #ffffff;
  --mist: #f6f6f6;
  --charcoal: #333333;
  --iron: #767676;
  --ash: #afafaf;
  --slate: #5e5e5e;
  --teal: #9dcdd6;

  --font-ui: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mark: 'Archivo', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --s4: 4px;
  --s8: 8px;
  --s12: 12px;
  --s16: 16px;
  --s24: 24px;
  --s32: 32px;
  --s48: 48px;
  --s64: 64px;

  --page: 1200px;
  --r: 8px;
  --r-pill: 9999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.43;
  padding-bottom: 56px; /* sticky bar */
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--black); padding: var(--s12) var(--s16); z-index: 60; }
.skip:focus { left: var(--s16); top: var(--s8); }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--s24); }
.wrap--narrow { max-width: 760px; }

/* ——— black top bar ——— */

.topbar { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; }
.topbar__inner {
  max-width: var(--page);
  margin-inline: auto;
  min-height: 56px;
  padding: var(--s8) var(--s24);
  display: flex;
  align-items: center;
  gap: var(--s24);
}
.logo { text-decoration: none; flex: none; }
.logo__text { font-family: var(--font-mark); font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 0.01em; }
.logo__accent { color: var(--ash); }
.topbar__nav { display: flex; align-items: center; gap: var(--s16); margin-right: auto; }
.topbar__link { font-size: 14px; text-decoration: none; padding: var(--s8) 0; white-space: nowrap; }
.topbar__link:hover { color: var(--ash); }
.pillbtn {
  flex: none;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--r-pill);
  padding: 6px var(--s16);
}
.pillbtn:hover { background: var(--mist); }

.burger { display: none; background: none; border: none; color: var(--white); padding: var(--s8); cursor: pointer; margin-left: auto; }

.mobile-nav { display: none; flex-direction: column; background: var(--black); padding: 0 var(--s24) var(--s16); }
.mobile-nav__link { color: var(--white); text-decoration: none; padding: var(--s12) 0; border-bottom: 1px solid var(--charcoal); font-size: 14px; }

/* ——— buttons ——— */

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.25;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 12px var(--s16);
  cursor: pointer;
  text-decoration: none;
  background: none;
  color: var(--black);
}
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--charcoal); }
.btn--outline { border-color: var(--iron); }
.btn--outline:hover { background: var(--mist); }
.btn--sm { font-size: 14px; padding: var(--s8) var(--s12); }

.link { text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--slate); }

/* ——— typography ——— */

.h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 400; line-height: 1.22; margin-bottom: var(--s12); }
.lead { color: var(--slate); font-size: 16px; max-width: 62ch; margin-bottom: var(--s16); }

.section { padding-block: var(--s64); scroll-margin-top: 64px; }
.section--mist { background: var(--mist); }

/* ——— hero ——— */

.hero { padding-block: var(--s48) var(--s64); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s48); align-items: center; }
.place { display: flex; align-items: center; gap: var(--s8); font-size: 18px; font-weight: 500; margin-bottom: var(--s16); }
.place__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--black); display: inline-block; }
.place__pill { background: var(--mist); border-radius: var(--r-pill); padding: 4px var(--s12); font-size: 14px; font-weight: 500; }
.hero__title { font-size: clamp(32px, 5vw, 52px); font-weight: 400; line-height: 1.23; max-width: 16ch; }
.hero__sub { color: var(--slate); margin-top: var(--s16); max-width: 54ch; }

.picker { margin-top: var(--s32); max-width: 460px; }
.picker__label { display: block; font-size: 14px; margin-bottom: var(--s8); }
.picker__field { position: relative; }
.picker__mark { position: absolute; left: var(--s16); top: 50%; transform: translateY(-50%); width: 8px; height: 8px; background: var(--black); display: block; }
.picker__select {
  width: 100%;
  appearance: none;
  background: var(--white);
  border: 1px solid var(--iron);
  border-radius: var(--r);
  padding: var(--s16) var(--s16) var(--s16) 36px;
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  cursor: pointer;
}
.picker__select:focus { border-color: var(--black); }
.picker__go { margin-top: var(--s12); }

.hero__panel { background: var(--mist); border-radius: var(--r); padding: var(--s32) var(--s24); }
.panel__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s16); justify-items: center; }
.panel__grid img { width: 88px; height: 88px; border-radius: var(--r); }
.panel__caption { color: var(--slate); font-size: 14px; margin-top: var(--s24); }

/* ——— tabs (single chromatic element) ——— */

.tabs { display: flex; flex-wrap: wrap; gap: 0; margin-block: var(--s24); }
.tab {
  background: none;
  border: none;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  padding: var(--s12) var(--s16);
  cursor: pointer;
}
.tab:hover { background: var(--mist); }
.tab--active, .tab--active:hover { background: var(--teal); }

/* ——— game tiles: suggestion-card grid ——— */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s16); }
.tile {
  background: var(--mist);
  border-radius: var(--r);
  padding: var(--s24);
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: var(--s16);
  align-items: start;
}
.tile[hidden] { display: none; }
.tile__title { font-size: 16px; font-weight: 500; line-height: 1.25; }
.tile__dev { font-size: 14px; color: var(--slate); margin-top: 2px; }
.tile__desc { font-size: 14px; color: var(--slate); margin-top: var(--s12); }
.tile__link { display: inline-block; font-size: 14px; font-weight: 500; margin-top: var(--s12); text-decoration: underline; text-underline-offset: 3px; }
.tile__art { position: relative; }
.tile__art img { width: 108px; height: 108px; object-fit: cover; border-radius: var(--r); }
.tile__art img.tile__icon { position: absolute; left: -10px; bottom: -10px; width: 40px; height: 40px; border: 2px solid var(--mist); }
.empty { color: var(--slate); margin-top: var(--s16); }

/* ——— stars ——— */

.rating { display: flex; align-items: center; gap: var(--s8); margin-top: var(--s8); }
.rating__value { font-size: 13px; color: var(--slate); }
.rating__free { font-size: 12px; color: var(--slate); border-left: 1px solid var(--iron); padding-left: var(--s8); }
.stars { position: relative; display: inline-flex; line-height: 0; }
.stars__base, .stars__fill { display: inline-flex; gap: 1px; }
.stars__base svg { fill: var(--ash); }
.stars__fill { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; }
.stars__fill svg { fill: var(--black); flex: none; }

/* ——— split sections ——— */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s48); align-items: center; }
.split--form { align-items: start; }
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.figure__cap { color: var(--slate); font-size: 14px; margin-top: var(--s8); }

.reasons { list-style: none; display: grid; gap: var(--s12); margin-block: var(--s16); }
.reasons__item { display: grid; grid-template-columns: 24px 1fr; gap: var(--s12); color: var(--slate); font-size: 15px; }
.reasons__n { color: var(--black); font-weight: 500; }

/* ——— quotes ——— */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s16); }
.quote { background: var(--mist); border-radius: var(--r); padding: var(--s24); }
.quote__body { font-size: 16px; margin-bottom: var(--s16); }
.quote__by { display: flex; align-items: center; gap: var(--s12); }
.ini { width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white); display: grid; place-items: center; font-size: 12px; flex: none; }
.quote__name { display: block; font-size: 14px; font-weight: 500; }
.quote__role { display: block; font-size: 13px; color: var(--slate); }

/* ——— steps ——— */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s16); }
.steps__item { background: var(--white); border-radius: var(--r); padding: var(--s24); }
.steps__n { font-size: 14px; color: var(--slate); }
.steps__t { font-size: 16px; font-weight: 500; margin-block: var(--s8); }
.steps__p { font-size: 14px; color: var(--slate); }

/* ——— numbers ——— */

.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s16); }
.nums__cell { border-top: 1px solid var(--iron); padding-top: var(--s12); }
.nums__k { font-size: 14px; color: var(--slate); }
.nums__v { font-size: clamp(30px, 3.6vw, 36px); line-height: 1.22; margin-top: var(--s4); }

/* ——— trio ——— */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s16); }
.trio__i { background: var(--white); border-radius: var(--r); padding: var(--s24); }
.trio__ico { margin-bottom: var(--s12); }
.trio__t { font-size: 16px; font-weight: 500; margin-bottom: var(--s8); }
.trio__p { font-size: 14px; color: var(--slate); }

/* ——— form ——— */

.form { display: grid; gap: var(--s16); }
.form__row { display: grid; gap: var(--s8); }
.form__lab { font-size: 14px; }
.form__opt { color: var(--slate); }
.form__in {
  border: 1px solid var(--iron);
  border-radius: var(--r);
  background: var(--white);
  padding: var(--s16);
  font-family: inherit;
  font-size: 16px;
  color: var(--black);
  width: 100%;
}
.form__in:focus { border-color: var(--black); }
.form__consent { display: grid; grid-template-columns: auto 1fr; gap: var(--s12); align-items: start; font-size: 14px; color: var(--slate); }
.form__consent input { margin-top: 3px; accent-color: var(--black); }
.form button[type="submit"] { justify-self: start; }
.form__err { font-size: 14px; border-left: 2px solid var(--black); padding-left: var(--s12); }
.form__ok { font-size: 14px; border-left: 2px solid var(--black); padding-left: var(--s12); color: var(--slate); }

/* ——— faq ——— */

.faq__i { border-bottom: 1px solid var(--iron); }
.faq__i:first-child { border-top: 1px solid var(--iron); }
.faq__q { font-weight: 400; }
.faq__b {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s16);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  color: var(--black);
  text-align: left;
  padding: var(--s24) 0;
  cursor: pointer;
}
.faq__chev { transition: transform .2s ease; flex: none; }
.faq__i--open .faq__chev { transform: rotate(180deg); }
.faq__a { padding-bottom: var(--s24); color: var(--slate); font-size: 15px; }

/* ——— black footer ——— */

.footer { background: var(--black); color: var(--white); padding-block: var(--s64); }
.footer__inner { max-width: var(--page); margin-inline: auto; padding-inline: var(--s24); }
.footer__top { margin-bottom: var(--s48); }
.footer__help { font-size: 24px; text-decoration: none; }
.footer__help:hover { color: var(--ash); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s32); }
.footer__col { display: flex; flex-direction: column; gap: var(--s12); }
.footer__title { font-size: 16px; font-weight: 500; }
.footer__note { color: var(--ash); font-size: 14px; max-width: 34ch; }
.footer__link { color: var(--ash); font-size: 14px; text-decoration: none; }
.footer__link:hover { color: var(--white); }
.footer__bottom { margin-top: var(--s48); padding-top: var(--s24); border-top: 1px solid var(--charcoal); color: var(--ash); font-size: 13px; }

/* ——— sticky black bar ——— */

.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--black); min-height: 56px; display: grid; place-items: center; }
.stickybar__link { color: var(--white); font-size: 16px; text-decoration: none; display: block; width: 100%; text-align: center; padding: var(--s16); }
.stickybar__link:hover { background: var(--charcoal); }

/* ——— back to top: sits above the sticky black bar ——— */

.totop {
  position: fixed;
  right: var(--s24);
  bottom: 72px;
  z-index: 44;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--iron);
  border-radius: var(--r);
  cursor: pointer;
}
.totop[hidden] { display: none; }
.totop:hover { background: var(--mist); }

/* ——— cookie ——— */

.cookie { position: fixed; left: 0; right: 0; bottom: 56px; z-index: 46; background: var(--white); border-top: 1px solid var(--iron); padding: var(--s16) var(--s24); display: flex; align-items: center; justify-content: center; gap: var(--s16); flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie__text { color: var(--slate); font-size: 14px; max-width: 70ch; }
.cookie__actions { display: flex; gap: var(--s8); }

/* ——— legal ——— */

.legal { padding-block: var(--s48) var(--s64); }
.legal__title { font-size: clamp(30px, 5vw, 52px); font-weight: 400; line-height: 1.23; }
.legal__updated { color: var(--slate); font-size: 14px; margin-top: var(--s8); }
.legal__back { margin-top: var(--s16); }
.legal h2 { font-size: 24px; font-weight: 400; margin-top: var(--s48); margin-bottom: var(--s12); }
.legal h3 { font-size: 18px; font-weight: 500; margin-top: var(--s24); margin-bottom: var(--s8); }
.legal p, .legal li { color: var(--slate); font-size: 15px; max-width: 74ch; }
.legal p { margin-bottom: var(--s12); }
.legal ul { margin: 0 0 var(--s16) var(--s24); }
.legal li { margin-bottom: var(--s8); }

/* ——— responsive ——— */

@media (max-width: 1100px) {
  .topbar__nav, .pillbtn { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .tiles, .quotes, .trio { grid-template-columns: repeat(2, 1fr); }
  .steps, .nums { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid, .split, .split--rev { grid-template-columns: 1fr; gap: var(--s32); }
  .split--rev .figure { order: 2; }
  .panel__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 640px) {
  .tiles, .quotes, .trio, .steps, .nums { grid-template-columns: 1fr; }
  .tile { grid-template-columns: 1fr 88px; }
  .tile__art img { width: 88px; height: 88px; }
  .tile__art img.tile__icon { width: 34px; height: 34px; }
  .panel__grid { grid-template-columns: repeat(3, 1fr); }
  .panel__grid img { width: 72px; height: 72px; }
  .section { padding-block: var(--s48); }
  .btn--black.picker__go, .form button[type="submit"] { width: 100%; }
  .cookie { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq__chev { transition: none; }
}
