/* ============================================================
   BUS TRAFFIC FEVER — Fan Guide Stylesheet
   Warm paper + ink + bus-amber. Neo-brutalist shell.
   Fonts: Lilita One (display) + Nunito (body) via Google Fonts.
   Base template: mecchachameleononline.net (accent re-tuned to bus yellow).
   ============================================================ */

/* ── Design tokens ─────────────────────────────────────── */
:root {
  /* palette — warm paper ground + bus amber accent */
  --paper:       oklch(0.972 0.018 90);   /* warm cream ground */
  --paper-deep:  oklch(0.938 0.026 92);   /* slightly deeper cream */
  --paper-card:  oklch(0.985 0.012 90);   /* card surface */
  --ink:         oklch(0.285 0.020 70);   /* warm asphalt charcoal text */
  --ink-soft:    oklch(0.430 0.025 70);   /* muted text */
  --ink-faint:   oklch(0.560 0.028 70);   /* faint captions */

  --accent:      oklch(0.790 0.160 82);   /* bus amber yellow */
  --accent-deep: oklch(0.590 0.150 70);   /* deep amber (borders / hover) */
  --accent-pale: oklch(0.925 0.080 92);   /* pale amber wash */

  --signal-red:  oklch(0.560 0.190 28);   /* traffic stop red */
  --red-pale:    oklch(0.940 0.050 25);
  --signal-green:oklch(0.620 0.160 145);  /* traffic go green */
  --green-pale:  oklch(0.930 0.070 150);

  --blue:        oklch(0.700 0.120 235);
  --blue-pale:   oklch(0.940 0.045 245);
  --yellow:      oklch(0.880 0.150 92);
  --yellow-pale: oklch(0.960 0.060 95);
  --pink:        oklch(0.730 0.160 8);
  --pink-pale:   oklch(0.945 0.045 15);

  /* geometry */
  --radius:      18px;
  --radius-lg:   26px;
  --border:      3px solid var(--ink);
  --border-soft: 2px solid oklch(0.80 0.03 70);
  --shadow:      6px 6px 0 0 var(--ink);
  --shadow-lg:   9px 9px 0 0 var(--ink);
  --shadow-sm:   4px 4px 0 0 var(--ink);

  /* type */
  --font-display: "Lilita One", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Nunito", -apple-system, "Segoe UI", sans-serif;

  --maxw: 1120px;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--accent-deep); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
table { border-collapse: separate; border-spacing: 0; }
::selection { background: var(--accent); color: #241f18; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

/* ── Layout primitives ─────────────────────────────────── */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.section { padding: 72px 0; position: relative; }
.section--alt { background: var(--paper-deep); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-pale);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 14px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 0.25em;
}
.lead {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 1.6em;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: var(--border);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--ink); }
.btn--primary { background: var(--accent); color: #241f18; }
.btn--primary:hover { background: var(--accent-deep); color: #fff; }
.btn--ghost { background: var(--paper-card); }
.btn--small { padding: 8px 16px; font-size: 0.9rem; box-shadow: 3px 3px 0 0 var(--ink); }
.btn .icon { font-size: 1.1em; line-height: 1; }

/* ── Header / nav ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: oklch(0.972 0.018 90 / 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
  border: var(--border);
  background: var(--accent);
  box-shadow: 3px 3px 0 0 var(--ink);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 24px; height: 24px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.12s, border-color 0.12s;
}
.nav-links a:hover { background: var(--accent-pale); border-color: var(--ink); }
.nav-toggle {
  display: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  background: #fff;
  border: var(--border);
  border-radius: 10px;
  padding: 4px 12px;
  cursor: pointer;
  box-shadow: 3px 3px 0 0 var(--ink);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 56px 0 64px;
  border-bottom: 3px solid var(--ink);
  background:
    radial-gradient(1200px 420px at 82% -10%, oklch(0.925 0.080 92 / 0.65), transparent 60%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  margin: 0 0 0.35em;
}
.hero h1 .accent { color: var(--accent-deep); }
.hero-lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 56ch; margin: 0 0 1.5em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 12px;
  margin-bottom: 26px;
}
.stat {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 3px 3px 0 0 var(--ink);
  min-width: 96px;
}
.stat .num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink);
}
.stat .lbl {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* level jump search */
.level-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--paper-card);
  border: var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.level-jump label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  white-space: nowrap;
}
.level-jump input {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  width: 116px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.level-jump .hint { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }

/* hero visual — traffic signal motif */
.hero-visual {
  position: relative;
}
.traffic-card {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.traffic-card .bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper-deep);
}
.traffic-card .bar .title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.traffic-lights {
  display: flex;
  gap: 6px;
}
.traffic-lights span {
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--ink);
}
.traffic-lights span:nth-child(1) { background: var(--signal-red); }
.traffic-lights span:nth-child(2) { background: var(--accent); }
.traffic-lights span:nth-child(3) { background: var(--signal-green); }

.traffic-card .stage {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, oklch(0.30 0.01 70) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(90deg, oklch(0.30 0.01 70) 0 2px, transparent 2px 42px),
    oklch(0.47 0.03 70);
  color: #fff;
  position: relative;
}
.traffic-card .stage .road {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, oklch(0.36 0.02 70) 42%, oklch(0.36 0.02 70) 58%, transparent 58%);
  opacity: 0.9;
}
.traffic-card .stage .bus-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 0 oklch(0 0 0 / 0.35));
}
.traffic-card .stage .bus-row .pax { font-size: 1.4rem; }
.traffic-card .caption {
  font-size: 0.86rem;
  color: var(--ink-faint);
  text-align: center;
  padding: 9px 14px;
  margin: 0;
  border-top: 2px dashed oklch(0.80 0.03 70);
}

/* ── Featured banners ──────────────────────────────────── */
.featured { padding: 48px 0; }
.banner-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.banner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-card);
  border: var(--border);
  border-radius: 16px;
  padding: 14px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.banner-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.banner-card .flag {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; border: 2px solid var(--ink);
  font-size: 1.3rem;
}
.banner-card .flag--hot { background: var(--red-pale); }
.banner-card .flag--first { background: var(--accent-pale); }
.banner-card .flag--latest { background: var(--green-pale); }
.banner-card .flag--hard { background: var(--yellow-pale); }
.banner-card .banner-body { min-width: 0; }
.banner-card .banner-tag {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.banner-card .banner-title {
  font-family: var(--font-display);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Level directory ───────────────────────────────────── */
.range-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.range-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  background: #fff;
  color: var(--ink-soft);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 0 var(--ink);
  transition: all 0.13s ease;
  text-decoration: none;
}
.range-tab:hover { background: var(--accent-pale); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.range-tab.is-active { background: var(--accent); color: #241f18; }

.jam-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
.jam-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}
.jam-item {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.jam-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.jam-item p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-faint);
}
.jam-item .jam-lv {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--accent);
}
.empty-range {
  margin: 8px 0 0;
  padding: 16px 18px;
  background: var(--accent-pale);
  border: 2px dashed var(--ink);
  border-radius: 12px;
  font-weight: 700;
  color: var(--ink);
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.level-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.level-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.level-card .thumb {
  aspect-ratio: 16 / 9;
  display: block;
  border-bottom: 3px solid var(--ink);
  position: relative;
  background: #241f18;
  overflow: hidden;
}
.level-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.level-card .thumb .lv {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
  line-height: 1;
  background: rgba(36, 31, 24, 0.84);
  border: 2px solid #fff;
  padding: 6px 9px;
  border-radius: 9px;
}
.level-card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.level-card .body h3 { font-size: 1rem; margin: 0; }
.level-card .body .meta { font-size: 0.82rem; color: var(--ink-faint); margin: 0; }
.level-card .body .go {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-deep);
}

/* ── Features ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card .feat-emoji {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px; border: 2px solid var(--ink);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ── About ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-copy { font-size: 1.03rem; }
.about-facts { display: grid; gap: 14px; }
.fact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--paper-card);
  border: var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.fact-row .ic {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; border: 2px solid var(--ink);
  font-size: 1.1rem;
}
.fact-row p { margin: 0; font-size: 0.94rem; }
.fact-row p strong { font-family: var(--font-display); font-weight: 400; }

/* ── How to play (steps) ───────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step-card {
  display: flex;
  gap: 16px;
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  color: #241f18; background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.step-card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }

/* ── Tips ──────────────────────────────────────────────── */
.tips-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tip-card {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.tip-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tip-card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.tip-card .badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 9px;
  margin-bottom: 8px;
}
.badge--hard { background: var(--red-pale); color: var(--signal-red); }

/* ── Download band ─────────────────────────────────────── */
.download-band {
  background: var(--ink);
  color: oklch(0.90 0.03 80);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.download-band h3 { color: #fff; margin: 0; font-size: 1.35rem; }
.download-band p { margin: 4px 0 0; color: oklch(0.78 0.03 80); font-size: 0.96rem; }
.download-band .store-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.download-band .btn { color: var(--ink); }
.download-band .btn--primary { color: #241f18; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
details.faq-item {
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 16px 18px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .plus {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s ease;
  background: #fff;
}
details.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--accent); color: #241f18; }
details.faq-item .faq-body { padding: 0 18px 18px; font-size: 0.97rem; color: var(--ink-soft); }
details.faq-item .faq-body p { margin: 0; }
details.faq-item .faq-body a { font-weight: 700; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: oklch(0.90 0.03 80);
  padding: 52px 0 28px;
  border-top: 3px solid var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.site-footer a { color: var(--accent); }
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .footer-brand { font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin-bottom: 10px; display: inline-block; text-decoration: none; }
.site-footer .footer-brand:hover { color: var(--accent); }
.disclaimer {
  font-size: 0.86rem;
  color: oklch(0.74 0.03 80);
  border-top: 1px solid oklch(0.42 0.03 80);
  padding-top: 20px;
  margin: 0;
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    padding: 12px 18px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; padding: 12px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .features-grid { grid-template-columns: 1fr; }
  .banner-strip { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .level-jump { flex-direction: column; align-items: stretch; }
  .level-jump input { width: 100%; }
}

/* ============================================================
   LEVEL PAGES — walkthrough / solution (info-increment style)
   ============================================================ */
.breadcrumb { font-size: 0.88rem; color: var(--ink-faint); margin: 18px 0 6px; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.level-hero { padding: 26px 0 8px; }
.level-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); max-width: 22ch; }
.level-hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 64ch; margin-top: 0.4em; }

.level-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 8px; }
.lfact {
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.lfact .k {
  display: block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
.lfact .v { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }

.tier-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 11px;
}
.tier-intro { background: var(--green-pale); color: oklch(0.50 0.13 145); }
.tier-quick { background: var(--accent-pale); color: oklch(0.50 0.12 70); }
.tier-route { background: var(--yellow-pale); color: oklch(0.50 0.13 55); }
.tier-stretch { background: var(--red-pale); color: var(--signal-red); }

.level-body { padding: 30px 0 72px; }
.level-body .block-h2 { font-size: 1.5rem; margin: 1.6em 0 0.5em; }
.level-body .block-h3 { font-size: 1.15rem; margin: 1.2em 0 0.5em; }
.level-body article { max-width: 74ch; }
.level-body article p { color: var(--ink-soft); }

.video-shell {
  max-width: 520px;
  margin: 0 auto;
  background: #000;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.video-shell iframe { width: 100%; aspect-ratio: 9 / 16; border: 0; display: block; }
.video-note { font-size: 0.88rem; color: var(--ink-faint); text-align: center; max-width: 60ch; margin: 14px auto 0; }

.video-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--paper-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  margin: 4px 0 0;
  max-width: 680px;
}
.video-thumb {
  width: 150px;
  height: 112px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #000;
  flex-shrink: 0;
}
.video-meta { display: flex; flex-direction: column; gap: 10px; }
.video-meta p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.video-meta .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .video-card { flex-direction: column; align-items: stretch; }
  .video-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

.method-steps { counter-reset: m; list-style: none; padding: 0; margin: 0 0 1.4em; }
.method-steps li {
  position: relative;
  padding: 14px 16px 14px 60px;
  background: var(--paper-card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}
.method-steps li::before {
  counter-increment: m;
  content: counter(m);
  position: absolute;
  left: 14px; top: 14px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #241f18;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.method-steps li strong { font-family: var(--font-display); font-weight: 400; font-size: 1.02rem; }
.method-steps li p { margin: 3px 0 0; font-size: 0.95rem; }

.opening-hint {
  background: var(--accent-pale);
  border: var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.opening-hint strong { font-family: var(--font-display); font-weight: 400; }
.opening-hint p { margin: 4px 0 0; font-size: 0.95rem; color: var(--ink-soft); }

.mistake-list { list-style: none; padding: 0; margin: 0; }
.mistake-list li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-soft); }
.mistake-list li::before { content: "✗"; position: absolute; left: 0; font-weight: 800; color: var(--signal-red); }

.recover-box {
  background: var(--green-pale);
  border: var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.recover-box p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.prepared-box {
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
}
.prepared-box p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.related-nav { display: flex; justify-content: space-between; gap: 12px; margin: 36px 0 8px; }
.level-nav-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 8px; }
.level-nav-grid a {
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 2px 2px 0 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.level-nav-grid a:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 0 var(--ink); }
.level-nav-grid a.is-here { background: var(--accent); color: #241f18; }

@media (max-width: 720px) {
  .level-facts { grid-template-columns: 1fr 1fr; }
  .level-nav-grid { grid-template-columns: repeat(5, 1fr); }
  .related-nav { flex-direction: column; }
  .related-nav .btn { justify-content: center; }
}
@media (max-width: 460px) {
  .level-nav-grid { grid-template-columns: repeat(4, 1fr); }
}
