/* Girls vs Boys Tapping — landing page shared styles */

:root {
  --pink: #E91E63;
  --magenta: #D81B60;
  --purple: #7B1FA2;
  --sky: #0288D1;
  --cyan: #00BCD4;
  --ink: #1a0f2e;
  --card-bg: rgba(255, 255, 255, 0.10);
  --card-border: rgba(255, 255, 255, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: #fff;
  font-family: 'Fredoka', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Thai', 'Noto Sans SC', system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 25%, var(--purple) 50%, var(--sky) 78%, var(--cyan) 100%);
  min-height: 100vh;
}

img { max-width: 100%; }

a { color: inherit; }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 960px;
  margin: 0 auto;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}

header.site .brand img { width: 34px; height: 34px; border-radius: 9px; }

select#langSelect {
  background: rgba(255, 255, 255, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

select#langSelect option { color: #1a0f2e; }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px 30px;
}

.hero img.icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35), 0 0 0 4px rgba(255,255,255,0.5);
  margin-bottom: 22px;
}

/* "GIRLS VS BOYS" logo-style title: same font family (Baloo 2, weight 900)
   and flat brand colors as the in-app logo. VS overlaps both words,
   matching the app logo's overlapRatio stacking.

   The white outline is faked with 8 offset text-shadows instead of
   -webkit-text-stroke: Baloo 2's rounded glyph outlines (esp. A/G/H/R/S)
   make Chrome/Safari's text-stroke renderer self-intersect and paint a
   stray rectangular artifact inside the letter — confirmed by toggling
   text-stroke off, which removes the glitch outright. Plain text-shadow
   layers don't go through that stroke-outline path, so they stay clean. */
.hero h1.logo-title {
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 0.8;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}

.hero h1.logo-title span { display: block; text-transform: uppercase; position: relative; }

.hero h1.logo-title .line-girls,
.hero h1.logo-title .line-boys {
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.5),
     1px -1px 0 rgba(255,255,255,0.5),
    -1px  1px 0 rgba(255,255,255,0.5),
     1px  1px 0 rgba(255,255,255,0.5),
     0   -1px 0 rgba(255,255,255,0.5),
     0    1px 0 rgba(255,255,255,0.5),
    -1px  0   0 rgba(255,255,255,0.5),
     1px  0   0 rgba(255,255,255,0.5),
     0 4px 6px rgba(0,0,0,0.4);
}

.hero h1.logo-title .line-girls {
  color: #E94EA5;
}

.hero h1.logo-title .line-boys {
  color: #2D96EC;
  margin-top: -0.3em;
}

.hero h1.logo-title .line-vs {
  font-size: 0.55em;
  color: #E4DCE7;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,0.4),
     1px -1px 0 rgba(255,255,255,0.4),
    -1px  1px 0 rgba(255,255,255,0.4),
     1px  1px 0 rgba(255,255,255,0.4),
     0 2px 5px rgba(0,0,0,0.4);
  margin: -0.18em 0 -0.15em;
  position: relative;
  top: -0.2em;
  z-index: 1;
}

/* The single citable "what is this" sentence (entity + category + platforms
   + mechanic in one line) — the #1 thing generative engines look for when
   deciding whether/how to cite a page, per direct feedback from ChatGPT,
   Grok and Claude on the previous version of this site. */
.hero .definition {
  font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 16px;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 600;
  max-width: 640px;
  margin: 0 auto 16px;
  opacity: 0.97;
}

.hero .description {
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
  opacity: 0.92;
  font-weight: 400;
}

/* Download badges — recreated as HTML/CSS (not screenshots of the real
   badges) so the small pretext line can be translated per-locale like the
   official Apple/Google badges do, while staying crisp and tiny (zero
   image bytes). */
.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border-radius: 12px;
  text-decoration: none;
  background: #000;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 190px;
}

.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.4); }

.store-badge .badge-icon { width: 28px; height: 28px; flex: none; }
.store-badge .badge-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-badge .badge-text .l1 { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.4px; color: #fff; text-transform: uppercase; }
.store-badge .badge-text .l2 { font-size: 1.2rem; font-weight: 600; color: #fff; font-family: system-ui, -apple-system, sans-serif; }

.store-badge.soon {
  opacity: 0.6;
  cursor: default;
  border-style: dashed;
}

/* Sections */
section.block {
  padding: 34px 20px;
}

section.block h2 {
  text-align: center;
  font-family: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

section.block .section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 26px;
  opacity: 0.92;
  line-height: 1.6;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 20px;
  padding: 22px 20px;
  backdrop-filter: blur(6px);
}

.feature-card .emoji { font-size: 2rem; margin-bottom: 10px; display: block; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; }
.feature-card p { margin: 0; font-size: 0.92rem; line-height: 1.55; opacity: 0.92; font-weight: 400; }

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.screens-grid figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  background: rgba(0,0,0,0.15);
}

.screens-grid img { display: block; width: 100%; height: auto; }

/* Characters */
.characters-highlight {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 480px;
  margin: 0 auto 28px;
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 22px;
  padding: 18px 24px;
  backdrop-filter: blur(6px);
}

.characters-highlight .flip-char {
  position: relative;
  width: 96px;
  height: 150px;
}

.characters-highlight .flip-char img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.4));
}

.characters-highlight .animated-tag {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #FFD600, #FF6D00);
  color: #2a1400;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.characters-grid {
  /* flex + wrap (not CSS grid) so an incomplete last row centers instead of
     sitting flush left under the grid's fixed column tracks. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}

.characters-grid figure {
  margin: 0;
  text-align: center;
  flex: 0 0 84px;
  width: 84px;
}

.characters-grid .char-thumb {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 6px 4px 0;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.characters-grid img { max-height: 96px; width: auto; }

.characters-grid figcaption {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 5px;
  opacity: 0.85;
}

/* Scenarios */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.scenarios-grid figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid var(--card-border);
  background: rgba(255,255,255,0.08);
}

.scenarios-grid img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.scenarios-grid figcaption {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  padding: 5px 4px 7px;
  opacity: 0.9;
}

/* Footer */
footer.site {
  padding: 30px 20px 40px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 10px;
}

footer.site .links { margin-bottom: 10px; }
footer.site .links a { text-decoration: underline; margin: 0 8px; font-weight: 600; }
footer.site .brand-credit { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; opacity: 0.8; }
footer.site .brand-credit img { width: 20px; height: 20px; border-radius: 5px; }

/* RTL support (Arabic) */
html[dir="rtl"] .store-badge { flex-direction: row-reverse; }
html[dir="rtl"] .store-badge .badge-text { align-items: flex-end; }
html[dir="rtl"] footer.site .links a { margin: 0 8px; }
html[dir="rtl"] .characters-highlight .animated-tag { left: 50%; }

/* Privacy page */
.policy {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 50px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  line-height: 1.7;
}
.policy h1 { font-size: 1.6rem; margin-top: 0; }
.policy .updated { opacity: 0.75; font-size: 0.85rem; margin-bottom: 24px; }
.policy h2 { font-size: 1.15rem; margin-top: 28px; }
.policy p { font-weight: 400; opacity: 0.95; }
.policy a { text-decoration: underline; font-weight: 600; }
.back-link { display: inline-block; margin: 20px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* FAQ — native <details>/<summary> so the answers sit in the DOM (and the
   accessibility tree) whether expanded or not, no JS needed, fully
   readable by crawlers that don't execute click interactions. */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 18px;
}

.faq-list summary {
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::before {
  content: '+';
  display: inline-block;
  width: 1.2em;
  font-weight: 800;
  color: #FFD54A;
}

.faq-list details[open] summary::before { content: '−'; }

.faq-list p {
  margin: 10px 0 2px;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.92;
  font-weight: 400;
}

html[dir="rtl"] .faq-list summary::before { margin-left: 0.4em; }
html[dir="ltr"] .faq-list summary::before { margin-right: 0.4em; }

@media (max-width: 480px) {
  .hero img.icon { width: 100px; height: 100px; }
  .store-badge { padding: 8px 16px; min-width: 0; }
  .characters-highlight { gap: 16px; padding: 16px; }
  .characters-highlight .flip-char { width: 76px; height: 120px; }
}
