/* BGF Landing — additional styles on top of colors_and_type.css
 * --------------------------------------------------------------
 * Accent variable + pixel-density variable + dark mode + sections
 */

:root {
  /* Accent — overridable via tweak. Defaults to green primary. */
  --accent:       var(--green-500);
  --accent-deep:  var(--green-700);
  --accent-tint:  var(--green-100);

  /* Pixel density — 0..1, scales sprite sizes / opacity / decoration density */
  --pixel-density: 1;

  /* OVERRIDE: Press Start 2P has no Cyrillic glyphs. Insert Pixelify Sans
     (also imported in colors_and_type.css) between PS2P and the mono
     fallback — browsers do per-character fallback, so Latin chars stay
     in Press Start 2P while Cyrillic chars get Pixelify Sans. */
  --font-pixel:   "Press Start 2P", "Pixelify Sans", "VT323", monospace;
  --font-display: "Press Start 2P", "Pixelify Sans", "VT323", monospace;
}

/* Same font-stack rule applied to inline pixel labels in JSX — they
   set font-family directly so the CSS-var override doesn't reach them.
   Authoring `font-family: var(--font-pixel)` would be cleaner, but
   patching here keeps the components portable. */
.pixel-font, [style*="Press Start 2P"] {
  /* Can't actually rewrite inline style with CSS — we patch the JSX
     constants instead. This selector exists as a contract reminder. */
}

/* Light theme already lives in colors_and_type.css :root */

body[data-theme="dark"] {
  --bg:          #1A1814;
  --bg-2:        #29261F;
  --paper:       #1A1814;
  --paper-2:     #29261F;
  --surface:     #29261F;
  --surface-2:   #353128;
  --ink:         #F1E7CC;
  --ink-2:       #BFB69E;
  --ink-3:       #7F7868;
  --ink-inverse: #1A1814;
  --border-subtle: #3A352B;
  /* Shadows still use ink (cream on dark). */
  --shadow-card:  3px 3px 0 #000000;
  --shadow-pop:   5px 5px 0 #000000;
  --shadow-press: 1px 1px 0 #000000;
  color: var(--ink);
  background: var(--bg);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

* { box-sizing: border-box; }

a { color: inherit; text-decoration: none; }

img.pix, .pix-img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

button { font-family: inherit; -webkit-tap-highlight-color: transparent; }

/* ─────────────────────  GLOBAL LAYOUT  ───────────────────── */

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

/* Paper checker — only at high pixel density */
.page::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(45deg, var(--paper-2) 25%, transparent 25%),
    linear-gradient(-45deg, var(--paper-2) 25%, transparent 25%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 0;
  opacity: calc(0.07 * var(--pixel-density));
  z-index: 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─────────────────────  NAV  ───────────────────── */

.nav {
  position: sticky; top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 12px; }
.nav-logo img { height: 36px; width: auto; image-rendering: pixelated; }
.nav-logo .mark {
  width: 36px; height: 36px;
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.nav-logo .mark img { height: 22px; }
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
}
.nav-links a { color: var(--ink-2); cursor: pointer; transition: color 90ms steps(2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .login-btn { display: none; }
}

/* ─────────────────────  HERO  ───────────────────── */

.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-pixel);
  font-size: 9px;
  letter-spacing: var(--track-caps);
  color: var(--ink);
  margin-bottom: 28px;
}
.hero-eyebrow .pip {
  width: 8px; height: 8px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
}
.hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(28px, 5.6vw, 56px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0 0 24px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .em {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0 8px 4px;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  margin: 4px 2px;
}
body[data-theme="dark"] .hero h1 .em { color: #fff; }
.hero p.lead {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 520px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-trust {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap;
}
.hero-trust .stat { display: flex; align-items: baseline; gap: 8px; }
.hero-trust .stat .n {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--ink);
}
.hero-trust .stat .l {
  font-family: var(--font-pixel);
  font-size: 8px;
  letter-spacing: var(--track-caps);
  color: var(--ink-2);
}
.hero-trust .sep { width: 2px; height: 24px; background: var(--ink); opacity: 0.5; }

/* Hero right side — phone stage */
.hero-right {
  position: relative;
  min-height: 640px;
  display: flex; align-items: center; justify-content: center;
}

/* Pixel sprite decorations around hero */
.hero-sprite {
  position: absolute;
  pointer-events: none;
  opacity: var(--pixel-density);
  image-rendering: pixelated;
}
.hero-sprite.s1 { top: 8%; left: -24px; width: 64px; transform: rotate(-12deg); }
.hero-sprite.s2 { bottom: 8%; right: -16px; width: 80px; transform: rotate(8deg); }
.hero-sprite.s3 { top: 50%; right: 5%; width: 56px; transform: rotate(-6deg); }

@media (max-width: 980px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { min-height: 580px; }
  .hero-sprite.s1, .hero-sprite.s3 { display: none; }
}

/* ─────────────────────  SECTION HEADERS  ───────────────────── */

.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
body[data-theme="dark"] .section.alt { background: var(--bg-2); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: var(--track-caps);
  color: var(--ink-2);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}
.section-sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink-2);
  max-width: 620px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

/* ─────────────────────  HOW IT WORKS  ───────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
}
.step .num {
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--accent-deep);
  line-height: 1;
  text-shadow: 3px 3px 0 var(--accent-tint);
}
.step h3 {
  font-family: var(--font-pixel);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.step p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.step .arrow {
  position: absolute;
  right: -14px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--accent);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  z-index: 2;
}
.step:last-child .arrow { display: none; }

@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) .arrow { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step .arrow { display: none !important; }
}

/* ─────────────────────  FEATURES  ───────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
}
.feature:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.feature .icon-cap {
  height: 88px;
  background: var(--accent-tint);
  border-bottom: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.feature .icon-cap.purple { background: var(--purple-100); }
.feature .icon-cap.red    { background: var(--red-100); }
.feature .icon-cap.yellow { background: var(--yellow-300); }
.feature .icon-cap svg { color: var(--ink); }
.feature .body { padding: 20px; flex: 1; }
.feature h3 {
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: var(--ink);
  text-transform: uppercase;
}
.feature p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* ─────────────────────  LIVE PREVIEW  ───────────────────── */

.preview-feed {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .preview-feed { grid-template-columns: 1fr; } }

.preview-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.preview-tagline {
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--font-pixel);
  font-size: 9px; letter-spacing: var(--track-caps);
  color: var(--ink-2);
}
.preview-tagline .live-dot {
  width: 10px; height: 10px;
  background: var(--red-500);
  border: 1.5px solid var(--ink);
  animation: pix-pulse 1.4s steps(2) infinite;
}
@keyframes pix-pulse {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.35; }
}

/* ─────────────────────  HOSTS  ───────────────────── */

.hosts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hosts-art {
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-pop);
  padding: 36px;
  position: relative;
  min-height: 400px;
  display: flex; flex-direction: column; gap: 16px;
}
.hosts-art .placard {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hosts-art .placard.r1 { transform: rotate(-1.5deg); }
.hosts-art .placard.r2 { transform: rotate(1.5deg) translateX(20px); }
.hosts-art .placard.r3 { transform: rotate(-1deg) translateX(-10px); }
.hosts-art .placard img { width: 36px; height: auto; image-rendering: pixelated; }
.hosts-art .placard .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hosts-art .placard .name {
  font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.02em; color: var(--ink);
}
.hosts-art .placard .seats {
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2);
}
.hosts-bullets { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 16px; }
.hosts-bullets li { display: flex; gap: 12px; align-items: flex-start; }
.hosts-bullets li .bx {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: var(--accent-tint);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-deep);
  font-family: var(--font-pixel);
  font-size: 11px;
}
.hosts-bullets li .bt { font-family: var(--font-body); font-size: 15px; line-height: 1.5; color: var(--ink); }
.hosts-bullets li .bt strong { font-weight: 700; }
.hosts-bullets li .bt em { font-style: normal; color: var(--ink-2); display: block; font-size: 14px; }

@media (max-width: 880px) {
  .hosts { grid-template-columns: 1fr; gap: 32px; }
  .hosts-art { padding: 24px; min-height: 340px; }
}

/* ─────────────────────  KIROV / CITY  ───────────────────── */

.kirov {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.kirov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.district {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.district .n {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.district .c {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--accent-deep);
}
.district .l {
  font-family: var(--font-pixel);
  font-size: 7px;
  letter-spacing: var(--track-caps);
  color: var(--ink-2);
}
.district.heat-3 { background: var(--accent-tint); }
.district.heat-2 { background: var(--surface-2); }

.kirov-side .pixel-pin {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
  padding: 8px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

@media (max-width: 880px) {
  .kirov { grid-template-columns: 1fr; gap: 32px; }
  .kirov-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─────────────────────  FAQ  ───────────────────── */

.faq {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 14px;
}
.faq-item {
  background: var(--surface);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: var(--accent-tint);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-deep);
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1;
  transition: transform 90ms steps(2);
}
.faq-item[open] summary .toggle { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-item .answer {
  padding: 0 22px 20px;
  border-top: 2px dashed var(--border-subtle);
  padding-top: 16px;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ─────────────────────  FINAL CTA  ───────────────────── */

.final-cta {
  padding: 80px 0 96px;
  background: var(--accent);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.final-cta .container {
  text-align: center;
  position: relative;
}
.final-cta h2 {
  font-family: var(--font-pixel);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 20px;
  text-wrap: balance;
  text-shadow: 4px 4px 0 var(--ink);
}
.final-cta p {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin: 0 auto 32px;
}
.final-cta .actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final-cta .deco {
  position: absolute;
  opacity: calc(0.4 * var(--pixel-density));
  pointer-events: none;
  image-rendering: pixelated;
}
.final-cta .deco.l { left: 4%; top: 20%; width: 88px; transform: rotate(-14deg); }
.final-cta .deco.r { right: 5%; bottom: 16%; width: 100px; transform: rotate(12deg); }

/* ─────────────────────  FOOTER  ───────────────────── */

.footer {
  background: var(--bg);
  border-top: 2px solid var(--ink);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer .brand-col { display: flex; flex-direction: column; gap: 14px; }
.footer .brand-col img { height: 44px; width: auto; image-rendering: pixelated; }
.footer .brand-col p {
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
  color: var(--ink-2); margin: 0; max-width: 320px;
}
.footer .store-badges { display: flex; gap: 10px; margin-top: 8px; }
.footer .col h4 {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: var(--track-caps);
  color: var(--ink);
  margin: 0 0 16px;
}
.footer .col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer .col a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 90ms steps(2);
}
.footer .col a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 2px solid var(--border-subtle);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-3);
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Store badge — black pixel pill */
.store-badge {
  background: var(--ink);
  color: var(--ink-inverse);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 8px 14px;
  display: inline-flex; flex-direction: column; gap: 0;
  cursor: pointer;
  transition: transform 90ms steps(2), box-shadow 90ms steps(2);
}
.store-badge:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.store-badge .top { font-family: var(--font-pixel); font-size: 7px; letter-spacing: 0.06em; line-height: 1.2; opacity: 0.7; }
.store-badge .bot { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.02em; line-height: 1.4; }
body[data-theme="dark"] .store-badge { background: var(--ink); color: var(--bg); }
