/* The website's own pages (about, privacy, terms, in English and Turkish), next to the app. Same
   colors and font as the app (theme/colors.ts), served from here rather than a font service. Like
   the app they're light unless the app is set to dark: each page reads the app's saved setting and
   sets data-theme (see make-site.py). */

@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url('/fonts/Nunito_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: Nunito; font-weight: 700; font-display: swap; src: url('/fonts/Nunito_700Bold.ttf') format('truetype'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url('/fonts/Nunito_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #e9edf4;
  --surface: #ffffff;
  --surface-alt: #f2f5fa;
  --text: #1e2b45;
  --muted: #5f6f8e;
  --line: #d6dde8;
  --primary: #3b6fe0;
  --primary-soft: #e3ebfc;
  --orange: #ff8a3d;
  --shadow: 0 1px 3px rgba(30, 43, 69, 0.08), 0 8px 24px rgba(30, 43, 69, 0.06);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f141d;
  --surface: #182030;
  --surface-alt: #1e283a;
  --text: #e7ecf5;
  --muted: #9aa6bd;
  --line: #2a3548;
  --primary: #5b8bf5;
  --primary-soft: #1d2a45;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--primary); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header: the logo, the other language, and Play. */
.top { padding: 16px 0; }
.top .wrap { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; margin-right: auto; }
.brand span { color: var(--primary); }
.logo { width: 34px; height: 34px; flex: none; }
.lang { font-weight: 700; text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.brand b, .button { white-space: nowrap; }
@media (max-width: 440px) {
  .top .wrap { gap: 4px; }
  .brand { font-size: 17px; gap: 8px; }
  .logo { width: 30px; height: 30px; }
  .lang { padding: 8px 6px; font-size: 15px; }
  .button.small { padding: 0 12px; }
}
/* The smallest phones: the hero's Play button is right below, so the header's goes. */
@media (max-width: 380px) {
  .top .button { display: none; }
}
.lang:hover { background: var(--primary-soft); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
}
.button:hover { filter: brightness(1.06); }
.button.soft { background: var(--primary-soft); color: var(--primary); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* The first screen: what it is, and a phone showing a game. */
.hero { padding: 24px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero .lead { font-size: 20px; color: var(--muted); margin-top: 16px; max-width: 34em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.phone {
  width: min(320px, 78vw); margin: 0 auto; padding: 10px; border-radius: 38px;
  background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}

section { padding: 48px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 18px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.card .tag { color: var(--text); font-weight: 700; margin-top: 6px; font-size: 16px; }
.dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }

.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 0.8fr 1.2fr; }
}
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.list li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.list b { display: block; font-weight: 800; }
.list span { color: var(--muted); font-size: 16px; }

.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style-position: outside; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

.band { background: var(--primary); color: #fff; border-radius: 24px; padding: 36px 28px; text-align: center; }
.band p { opacity: 0.9; margin: 10px auto 22px; max-width: 32em; }
.band .button { background: #fff; color: var(--primary); }

/* Privacy policy and terms. */
.doc { padding: 16px 0 56px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc .updated { color: var(--muted); margin-top: 8px; }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc .box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin-top: 20px; }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
footer a { color: var(--muted); }
footer .copy { margin-left: auto; }
