/*
 * Numdle public site — brand-aligned style.
 * Brand: Deep-Blue #2530A7, Pink-Accent #E84A93, Pale-Blue #EAEFFE.
 */

:root {
  --blue: #2530A7;
  --blue-dark: #161B6E;
  --blue-soft: #EAEFFE;
  --pink: #E84A93;
  --pink-soft: #FFE7F0;
  --ink: #14163E;
  --ink-soft: #3B3F62;
  --muted: #6B6F8C;
  --max: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--blue-soft);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--pink); }

header.top {
  background: var(--blue);
  color: white;
}

header.top .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header.top a {
  color: white;
  border-bottom: none;
}

header.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

header.top .brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

header.top nav { display: flex; gap: 18px; font-size: 14px; }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  text-align: center;
  padding: 32px 0 24px;
}

.hero img.logo {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(37, 48, 167, 0.3);
}

.hero h1 {
  margin: 18px 0 6px;
  font-size: 38px;
  letter-spacing: -0.01em;
  color: var(--blue-dark);
}

.hero p.tagline {
  margin: 0;
  font-size: 18px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.feature {
  background: white;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(37, 48, 167, 0.1);
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--blue-dark);
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.cta {
  text-align: center;
  margin: 32px 0;
}

.cta .pill {
  display: inline-block;
  background: var(--blue);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  border-bottom: none;
}

article.legal h1 {
  font-size: 30px;
  margin: 24px 0 6px;
  color: var(--blue-dark);
}

article.legal p.subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

article.legal h2 {
  font-size: 20px;
  margin: 28px 0 8px;
  color: var(--blue-dark);
}

article.legal ul { padding-left: 22px; }
article.legal li { margin: 4px 0; }

.lang-switcher {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}
.lang-switcher a { border-bottom: none; margin-left: 10px; }

footer.bottom {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid rgba(37, 48, 167, 0.12);
  margin-top: 48px;
}
footer.bottom a { color: var(--muted); border-bottom: 1px dotted currentColor; }

@media (prefers-color-scheme: dark) {
  body {
    background: var(--blue-dark);
    color: #E7E9FB;
  }
  .feature {
    background: rgba(37, 48, 167, 0.4);
    border-color: rgba(232, 74, 147, 0.2);
  }
  .feature h3 { color: #B6C0FA; }
  .feature p { color: #C2C5DD; }
  .hero h1 { color: white; }
  article.legal h1, article.legal h2 { color: #B6C0FA; }
  footer.bottom { border-top-color: rgba(232, 74, 147, 0.2); }
}
