/* Word Climber website. Same look as the app: white page, near-black ink, grey and green tiles, green buttons. */
:root {
  --bg: #ffffff;
  --ink: #1a1a1b;
  --muted: #787c7e;
  --line: #d3d6da;
  --tile: #787c7e;
  --green: #6aaa64;
  --green-dark: #3d7f3d;
  --gold: #e0a800;
  --soft: #f6f7f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }

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

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover { color: var(--green-dark); }
.lang { border: 2px solid var(--line); border-radius: 4px; padding: 2px 10px; }

/* Tile logo: WORD in dark tiles, CLIMBER in grey tiles climbing like stairs, ending in a green R */
.logo { position: relative; width: 332px; height: 139px; margin: 0 auto; }
.logo span {
  position: absolute; width: 44px; height: 44px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 24px;
  background: var(--tile);
  opacity: 0; transform: translateY(12px);
  animation: tile-in 0.45s ease-out forwards;
}
.logo span.w { background: var(--ink); }
.logo span.g { background: var(--green); }
@keyframes tile-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo span { animation: none; opacity: 1; transform: none; } }

/* Hero */
.hero { text-align: center; padding: 64px 0 56px; }
.hero h1 { font-size: 44px; line-height: 1.15; font-weight: 800; margin: 36px 0 12px; letter-spacing: -0.5px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 auto; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 220px; height: 52px; padding: 0 22px; border-radius: 4px;
  font-weight: 700; font-size: 17px; text-decoration: none;
}
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { background: #5c9a56; }
.btn.outline { border: 2px solid var(--line); color: var(--ink); background: #fff; }
.btn.soon { color: var(--muted); cursor: default; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--soft); }
h2 { font-size: 30px; font-weight: 800; text-align: center; margin: 0 0 8px; letter-spacing: -0.3px; }
.lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto 36px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 8px; padding: 24px; }
.card h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); }

/* Small word rows like the game's history */
.row { display: flex; gap: 4px; }
.row + .row { margin-top: 4px; }
.row b {
  width: 36px; height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  background: var(--tile); color: #fff; font-weight: 800; font-size: 18px;
}
.row b.on { background: var(--green); }
.row b.gold { background: var(--gold); }
.row b.empty { background: #fff; border: 2px solid var(--line); }

/* Premium checklist, like the shop */
.perks { list-style: none; padding: 0; margin: 0 auto; max-width: 420px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; padding: 8px 0; }
.perks li::before {
  content: "✓"; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.note { text-align: center; color: var(--muted); margin-top: 20px; }

/* Screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; }
.shots img { width: 240px; flex: none; border-radius: 16px; scroll-snap-align: center; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* Text pages (support, privacy, terms) */
.doc { padding: 40px 0 24px; }
.doc h1 { font-size: 32px; font-weight: 800; margin: 0 0 8px; }
.doc h2 { font-size: 20px; text-align: left; margin-top: 32px; }
.doc hr { border: 0; border-top: 2px solid var(--line); margin: 48px 0; }
.muted { color: var(--muted); }

@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 34px; }
  .logo { transform: scale(0.85); transform-origin: top center; margin-bottom: -20px; }
  h2 { font-size: 26px; }
}
