/* Bus Escape site: the game's candy palette (vehicle colours from JAM_REBUILD_SPEC section 6), chunky "clay" cards
   with a solid bottom lip like the in-game buttons, Baloo 2 for display and Nunito for text (both SIL OFL 1.1, same
   pairing as Hungry Pan). The fonts are served from this site (/fonts, Latin + Turkish subsets built by
   site/build_fonts.py), so no page makes a third-party request. No build step: this file is served as is. */
@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo2-800-latin.woff2") format("woff2"); font-style: normal; font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-600-900-latin.woff2") format("woff2"); font-style: normal; font-weight: 600 900; font-display: swap; }
:root {
  color-scheme: light;
  --red: #FF3B4F;
  --red-ink: #C8102E;      /* white text on red needs the deeper shade (AA) */
  --blue: #2B7BFF;
  --blue-ink: #1556D0;
  --yellow: #FFD21A;
  --yellow-lip: #D9A800;
  --green: #2BD25A;
  --green-lip: #1E9E42;
  --purple: #9A4DFF;
  --purple-ink: #6E22E0;
  --cyan: #18D2F2;
  --orange: #FF8A1C;
  --grass: #5CC84A;
  --grass-dark: #3E9E30;
  --navy: #1B2233;
  --navy-soft: #3A4560;
  --sky: #EAF4FF;
  --sky-deep: #D3E7FF;
  --card: #FFFFFF;
  --radius: 26px;
  --display: "Baloo 2", "Nunito", ui-rounded, system-ui, sans-serif;
  --text: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; } /* keep #anchors (/#ios, /privacy#tr, ...) clear of the sticky header */
body { margin: 0; color: var(--navy); background: var(--sky); font-family: var(--text); font-weight: 600; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 10px 14px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--purple-ink); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(234, 244, 255, .9); border-bottom: 3px solid var(--sky-deep); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 3px 0 rgba(27, 34, 51, .25); }
.brand small { display: block; margin-top: 3px; font-family: var(--text); font-size: 10px; font-weight: 900; letter-spacing: .18em; color: var(--red-ink); }
.links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.links a { text-decoration: none; font-weight: 800; font-size: 15px; }
.nav-link:hover { color: var(--blue-ink); }

/* ---------- buttons and badges ---------- */
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; background: var(--yellow); color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 5px 0 var(--yellow-lip); transition: transform .12s ease, box-shadow .12s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--yellow-lip); }
.button--small { min-height: 42px; padding: 0 16px; font-size: 16px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.store-badge { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 210px; min-height: 64px; padding: 10px 20px 10px 14px; border-radius: 18px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 5px 0 #000, 0 14px 26px rgba(27, 34, 51, .22); transition: transform .14s ease, box-shadow .14s ease; }
a.store-badge:hover { transform: translateY(-2px) rotate(-1deg); }
a.store-badge:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.store-badge img { flex: none; width: 40px; height: 40px; }
.store-badge span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.store-badge small { margin-bottom: 4px; font-family: var(--text); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.store-badge--soon { background: #4A5470; box-shadow: 0 5px 0 #2C3348; cursor: default; }
.store-badge--soon img { opacity: .75; }
.soon-tag { position: absolute; top: -12px; right: -8px; padding: 3px 10px; border-radius: 99px; background: var(--yellow); color: var(--navy); font-family: var(--text); font-size: 12px; font-weight: 900; letter-spacing: .04em; box-shadow: 0 3px 0 var(--yellow-lip); transform: rotate(4deg); }
.text-link { font-weight: 900; color: var(--blue-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 16px; border-radius: 99px; font-size: 13px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; background: var(--card); color: var(--navy); box-shadow: 0 4px 0 var(--sky-deep); }
.pill--red { background: var(--red-ink); color: #fff; box-shadow: 0 4px 0 #8E0B20; }
.pill--yellow { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-lip); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(43, 210, 90, .25); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 96px; background:
  radial-gradient(circle at 82% 26%, rgba(24, 210, 242, .35), transparent 36%),
  radial-gradient(circle at 6% 88%, rgba(255, 210, 26, .35), transparent 32%),
  repeating-linear-gradient(45deg, rgba(43, 123, 255, .05) 0 22px, transparent 22px 44px),
  var(--sky); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin: 6px 0 12px; font-size: clamp(46px, 7vw, 86px); }
.hero h1 .sub { display: block; font-size: .5em; color: var(--blue-ink); margin-top: 6px; }
.pitch { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.15; }
.pitch .c-red { color: var(--red-ink); } .pitch .c-blue { color: var(--blue-ink); } .pitch .c-purple { color: var(--purple-ink); }
.hero__description { max-width: 540px; margin: 0; font-size: clamp(17px, 1.9vw, 19px); color: var(--navy-soft); }
.hero__footnote { margin: 22px 0 0; font-size: 14px; font-weight: 800; color: var(--navy-soft); }
.hero__art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }
.icon-frame { position: relative; z-index: 1; width: min(380px, 80%); aspect-ratio: 1; border-radius: 22%; overflow: hidden; border: 8px solid #fff; box-shadow: 0 12px 0 rgba(27, 34, 51, .18), 0 34px 60px rgba(21, 86, 208, .28); transform: rotate(-4deg); }
.icon-frame img { display: block; width: 100%; height: 100%; }
.toy { position: absolute; z-index: 2; display: grid; place-items: center; width: 92px; height: 46px; border-radius: 14px; color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 6px 0 rgba(27, 34, 51, .18); animation: bob 3.2s ease-in-out infinite; }
.toy svg { width: 40px; height: 24px; }
.toy--red { background: var(--red); top: 6%; left: 2%; transform: rotate(-12deg); }
.toy--yellow { background: var(--yellow); color: var(--navy); bottom: 10%; left: 0; transform: rotate(8deg); animation-delay: -1s; }
.toy--purple { background: var(--purple); top: 14%; right: 0; transform: rotate(14deg); animation-delay: -2s; }
.toy--green { background: var(--green); bottom: 4%; right: 6%; width: 120px; transform: rotate(-6deg); animation-delay: -.5s; }
.road-edge { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: var(--grass); border-top: 6px solid var(--grass-dark); }
.road-edge::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 60px, transparent 60px 120px); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section h2 { margin: 0 0 12px; font-size: clamp(34px, 5vw, 56px); }
.section-intro { max-width: 600px; margin: 0 0 34px; font-size: 18px; color: var(--navy-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.card { position: relative; padding: 26px 24px 28px; border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 0 var(--lip, var(--sky-deep)); border: 3px solid var(--lip, var(--sky-deep)); }
.card h3 { margin: 14px 0 8px; font-size: 26px; }
.card p { margin: 0; color: var(--navy-soft); }
.card__art { display: grid; place-items: center; height: 120px; border-radius: 18px; background: var(--tint, var(--sky)); }
.card__art svg { width: 150px; height: 100px; }
.card__num { position: absolute; top: -16px; left: 22px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 20px; color: #fff; background: var(--badge, var(--navy)); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.card--red { --lip: #FFC2C9; --tint: #FFE8EB; --badge: var(--red-ink); }
.card--blue { --lip: #BFD6FF; --tint: #E6F0FF; --badge: var(--blue-ink); }
.card--purple { --lip: #DCC5FF; --tint: #F2EAFF; --badge: var(--purple-ink); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts li { padding: 18px; border-radius: 20px; background: var(--card); box-shadow: 0 5px 0 var(--sky-deep); }
.facts strong { display: block; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--blue-ink); }
.facts span { font-size: 14px; color: var(--navy-soft); }

/* Gameplay screenshots (index.html has the commented-out section; enable it once real captures exist). */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phone { margin: 0; }
.phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 8px solid var(--navy); border-radius: 32px; background: var(--navy); box-shadow: 0 8px 0 rgba(27, 34, 51, .2); }
.phone figcaption { margin-top: 10px; font-weight: 800; text-align: center; }

.download { padding: 70px 0; background: var(--blue-ink); color: #fff; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 22px, transparent 22px 44px); }
.download__inner { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.download__icon { width: 160px; height: 160px; border-radius: 36px; border: 6px solid #fff; box-shadow: 0 10px 0 rgba(0, 0, 0, .2); transform: rotate(5deg); }
.download h2 { margin: 0 0 8px; font-size: clamp(32px, 4.6vw, 50px); }
.download p { margin: 0; font-size: 18px; color: rgba(255, 255, 255, .92); }
.download .store-badge { box-shadow: 0 5px 0 #0B1020; }
.store-note { margin-top: 22px !important; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); font-size: 16px !important; }
.store-note[hidden] { display: none; }
#ios:target .store-note, #android:target .store-note { outline: 3px solid var(--yellow); }
.download .text-link { color: #fff; }

.support-strip { padding: 34px 0; background: var(--yellow); }
.support-strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.support-strip p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; }
.support-strip .text-link { color: var(--navy); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .82); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 0; }
.footer .brand { color: #fff; }
.footer .brand small { color: var(--yellow); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { text-decoration: none; font-weight: 800; font-size: 15px; }
.footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; padding: 16px 0 26px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }

/* ---------- legal, support and data pages ---------- */
.legal { width: min(820px, calc(100% - 32px)); margin: 40px auto 80px; padding: 36px clamp(20px, 5vw, 52px); border-radius: var(--radius); background: var(--card); border: 3px solid var(--sky-deep); box-shadow: 0 8px 0 var(--sky-deep); }
.legal h1 { margin: 10px 0 16px; font-size: clamp(34px, 5vw, 52px); }
.legal h2 { margin: 34px 0 8px; font-size: 25px; line-height: 1.15; }
.legal h3 { margin: 22px 0 4px; font-size: 20px; }
.legal p, .legal li { color: var(--navy-soft); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue-ink); font-weight: 800; }
.legal a.button { color: var(--navy); text-decoration: none; }
.legal a.store-badge { color: #fff; }
.legal .lang-split { margin-top: 64px; padding-top: 28px; border-top: 4px dashed var(--sky-deep); }
.note { margin: 18px 0; padding: 16px 18px; border-radius: 18px; background: #FFF6CC; border: 2px solid #F2D45C; color: var(--navy) !important; }
.note p { margin: 0; color: var(--navy); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--sky); text-decoration: none; font-size: 14px; }
details.faq { margin: 12px 0; padding: 0; border-radius: 18px; background: var(--sky); border: 2px solid var(--sky-deep); }
details.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--display); font-weight: 800; font-size: 19px; list-style-position: inside; }
details.faq > div { padding: 0 18px 14px; }
details.faq p { margin: 0 0 8px; }
.go { text-align: center; max-width: 32rem; }
.go__icon { display: block; width: 140px; height: 140px; margin: 0 auto 12px; border-radius: 32px; box-shadow: 0 6px 0 rgba(27, 34, 51, .18); }
.go .store-actions { justify-content: center; }
.go__lead { margin: 0 0 6px; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--navy) !important; }

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

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 340px; order: -1; }
  .icon-frame { width: min(280px, 70%); }
  .features { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .download__inner { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 600px) {
  .nav .nav-link { display: none; }
  .hero { padding: 26px 0 80px; }
  .hero__art { min-height: 250px; }
  .icon-frame { width: 210px; border-width: 6px; }
  .toy { width: 72px; height: 38px; }
  .toy--green { width: 96px; }
  .store-actions { flex-direction: column; align-items: stretch; }
  .store-badge { min-width: 0; }
  .section { padding: 56px 0; }
  .download__icon { width: 112px; height: 112px; border-radius: 26px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
