/* Numpal site styles — mirrors the in-app theme (GameTheme / GameTypography). */

@font-face {
  font-family: "Lexend";
  src: url("/fonts/Lexend-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #003049;
  --navy-light: #00476b;
  --magenta: #d90368;
  --orange: #f77f00;
  --yellow: #fcbf49;
  --cream: #eae2b7;
  --ink: #003049;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  background-attachment: fixed;
}

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

/* Top brand bar */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.brand {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
.brand a { color: var(--cream); }
.brand a:hover { text-decoration: none; color: var(--yellow); }

/* Content card — cream, rounded, orange top accent (like in-app cards/dialogs) */
.card {
  max-width: 760px;
  margin: 0 auto 56px;
  background: var(--cream);
  border-radius: 16px;
  border-top: 5px solid var(--orange);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 36px 34px 40px;
}

h1 {
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  margin: 0 0 4px;
}
h2 {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-top: 34px;
}
.lead { font-size: 1.08rem; }
.updated { color: #5c6b78; font-size: 0.9rem; margin-top: 0; }

ul { padding-left: 1.2em; }
li { margin: 6px 0; }

footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 48, 73, 0.18);
  color: #5c6b78;
  font-size: 0.9rem;
}
footer a { color: var(--navy); font-weight: 600; }

/* Landing page hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  max-width: 620px;
  margin: 0 auto;
}
.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}
.hero .brand {
  font-size: 3rem;
  margin: 0 0 2px;
  line-height: 1;
}
.hero .tagline {
  color: var(--yellow);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.hero .lede {
  color: #d6dcec;
  font-size: 1.2rem;
  margin: 0 0 6px;
}
.hero .hook {
  color: var(--cream);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 18px 0 4px;
}

/* Feature list */
.hero .features {
  list-style: none;
  padding: 0;
  margin: 18px 0 6px;
  text-align: left;
  display: inline-block;
}
.hero .features li {
  color: #d6dcec;
  position: relative;
  padding-left: 28px;
  margin: 10px 0;
  font-size: 1rem;
}
.hero .features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--magenta);
}

/* Store buttons */
.hero .stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 6px;
}
.store-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 180px;
  padding: 10px 22px;
  background: var(--cream);
  color: var(--navy);
  border-radius: 14px;
  text-align: left;
  line-height: 1.25;
}
.store-btn:hover { text-decoration: none; background: var(--yellow); }
.store-btn .store-kicker { font-size: 0.7rem; opacity: 0.75; }
.store-btn .store-name { font-size: 1.15rem; font-weight: 800; }

/* Disabled state — used until the apps clear store review */
.store-btn.is-disabled {
  background: rgba(234, 226, 183, 0.12);
  color: #8893ab;
  border: 1px solid rgba(199, 206, 222, 0.18);
  cursor: default;
  box-shadow: none;
}
.store-btn.is-disabled:hover { background: rgba(234, 226, 183, 0.12); }

/* Legal links */
.hero .links { margin-top: 34px; }
.hero .links a {
  display: inline-block;
  margin: 4px 6px;
  color: #c7cede;
  font-size: 0.95rem;
}
.hero .links a:hover { color: var(--yellow); }

.hero .publisher {
  margin-top: 22px;
  color: #8893ab;
  font-size: 0.9rem;
}
.hero .publisher a { color: #c7cede; font-weight: 600; }
.hero .publisher a:hover { color: var(--yellow); }

@media (max-width: 600px) {
  .card { margin: 0 12px 40px; padding: 28px 22px 32px; border-radius: 14px; }
  h1 { font-size: 1.7rem; }
  .hero .brand { font-size: 2.3rem; }
}

/* Language switcher in the legal-page header */
.site-header { display: flex; align-items: center; justify-content: space-between; }
.lang-switch { display: flex; align-items: center; gap: 6px; color: var(--cream); }
.lang-switch select {
  font: inherit;
  color: var(--navy, #1f2d3d);
  background: var(--cream, #fff);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 4px 8px;
  max-width: 60vw;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Convenience-translation disclaimer banner (rendered inside translated fragments) */
.legal-disclaimer {
  background: #fff6e0;
  border: 1px solid var(--orange, #e8911f);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #5c4a1a;
}
