/* Eleven — Pitch Night marketing site. Mirrors app/lib/utils/app_colors.dart
   and app_text_styles.dart (Baloo 2 display + Lexend body). */

:root {
  --pitch-green: #0F4C2A;
  --dark-pitch: #051A0E;
  --floodlight: #DAFF00;
  --sunset: #FF6B35;
  --icon-blue: #4A90E2;
  --legend: #FFD93D;
  --error: #E63946;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.8);
  --dim: rgba(255, 255, 255, 0.5);
  --card: rgba(0, 0, 0, 0.3);
  --card-border: rgba(218, 255, 0, 0.15);
  --shadow: #000000;
  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(15, 76, 42, 0.55), transparent 60%),
    var(--dark-pitch);
  color: var(--text);
  font-family: 'Lexend', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

a { color: var(--floodlight); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── Header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 26, 14, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--dark-pitch); }
.brand span { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; border: 2px solid var(--card-border); border-radius: 999px;
  overflow: hidden; background: var(--card);
}
.lang-toggle button {
  background: transparent; border: 0; color: var(--dim); cursor: pointer;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 13px;
  padding: 5px 12px;
}
.lang-toggle button.active { background: var(--floodlight); color: var(--dark-pitch); }

/* ── Buttons (sticker style: solid offset shadow, no blur) ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 16px;
  padding: 14px 22px; border-radius: 14px; border: 3px solid var(--dark-pitch);
  box-shadow: 0 4px 0 var(--shadow); cursor: pointer; transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover { text-decoration: none; transform: translateY(2px); box-shadow: 0 2px 0 var(--shadow); }
.btn-primary { background: var(--floodlight); color: var(--dark-pitch); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--card-border); box-shadow: none; }

/* Store badges (Coming soon) */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border: 2px solid rgba(255,255,255,0.18);
  border-radius: 14px; padding: 10px 18px; min-width: 200px;
  position: relative; opacity: 0.92;
}
.store-badge svg { width: 26px; height: 26px; flex: 0 0 auto; }
.store-badge .label { display: flex; flex-direction: column; line-height: 1.15; }
.store-badge .label small { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .5px; }
.store-badge .label b { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 17px; }
.store-badge .soon {
  position: absolute; top: -10px; right: -8px;
  background: var(--sunset); color: #fff; font-size: 10px; font-weight: 700;
  font-family: 'Baloo 2', sans-serif; padding: 2px 8px; border-radius: 999px;
  border: 2px solid var(--dark-pitch);
}

/* ── Hero ── */
.hero { padding: 64px 0 40px; text-align: center; }
.hero .logo-big {
  width: 104px; height: 104px; border-radius: 26px; border: 4px solid var(--dark-pitch);
  box-shadow: 0 6px 0 var(--shadow); margin: 0 auto 22px;
}
.hero h1 { font-size: clamp(44px, 9vw, 84px); letter-spacing: 2px; }
.hero h1 .accent { color: var(--floodlight); }
.hero .tagline { color: var(--muted); font-size: clamp(16px, 3.5vw, 22px); margin: 10px 0 26px; font-weight: 500; }
.hero .stores { justify-content: center; margin-bottom: 14px; }
.hero .fineprint { color: var(--dim); font-size: 13px; }

/* ── Feature cards ── */
.section { padding: 48px 0; }
.section h2 { font-size: clamp(28px, 5vw, 40px); text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature {
  background: var(--card); border: 2px solid var(--card-border); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 4px 0 var(--shadow);
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px; border: 2px solid var(--dark-pitch);
}
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ── Screenshot strip ── */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.shots img {
  height: 520px; width: auto; border-radius: 28px; border: 3px solid var(--dark-pitch);
  box-shadow: 0 8px 0 var(--shadow); scroll-snap-align: center; flex: 0 0 auto;
  background: var(--pitch-green);
}

/* ── CTA band ── */
.cta-band {
  background: var(--pitch-green); border: 3px solid var(--dark-pitch); border-radius: 24px;
  box-shadow: 0 6px 0 var(--shadow); text-align: center; padding: 40px 24px; margin: 24px 0;
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .stores { justify-content: center; }

/* ── Legal / support article pages ── */
.doc { padding: 40px 0 64px; }
.doc .card {
  background: var(--card); border: 2px solid var(--card-border); border-radius: var(--radius);
  padding: 28px clamp(20px, 5vw, 44px); box-shadow: 0 4px 0 var(--shadow);
}
.doc h1 { font-size: clamp(30px, 6vw, 46px); margin-bottom: 6px; }
.doc .updated { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 26px 0 8px; color: var(--floodlight); }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: var(--muted); margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin-bottom: 10px; }
.doc strong { color: var(--text); }
.doc .back { display: inline-block; margin-bottom: 18px; color: var(--dim); font-size: 14px; }

/* FAQ */
.faq details {
  background: var(--card); border: 2px solid var(--card-border); border-radius: 14px;
  padding: 6px 18px; margin-bottom: 12px;
}
.faq summary {
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 17px; cursor: pointer;
  padding: 12px 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--floodlight); font-size: 22px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 14px; }

.support-cta {
  text-align: center; background: var(--pitch-green); border: 3px solid var(--dark-pitch);
  border-radius: 20px; box-shadow: 0 6px 0 var(--shadow); padding: 30px; margin-top: 8px;
}
.support-cta a.email { font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: clamp(20px, 5vw, 30px); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--card-border); padding: 28px 0; margin-top: 40px;
  color: var(--dim); font-size: 14px;
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* i18n: show active language only */
[data-i18n-lang] { display: none; }
html[lang="en"] [data-i18n-lang="en"] { display: revert; }
html[lang="tr"] [data-i18n-lang="tr"] { display: revert; }

@media (max-width: 640px) {
  .nav-links a:not(.lang-host) { display: none; }
  .shots img { height: 420px; }
}
