/*
  NEXT24 developer website.

  One stylesheet for four static pages. No build step, no framework, no
  dependencies — the site exists so AdMob and Google Play have a real domain to
  read, and every dependency added here is one that can break that.

  Light and dark are both first-class: the pages follow the visitor's system
  setting rather than picking one and hoping.
*/

:root {
  --brand: #1da1f2;
  --brand-ink: #0b76b8;
  --bg: #ffffff;
  --surface: #f6f9fc;
  --text: #0f1419;
  --text-soft: #536471;
  --text-mute: #8b98a5;
  --line: #e6ecf0;
  --radius: 14px;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e11;
    --surface: #16191d;
    --text: #e7e9ea;
    --text-soft: #a9b3bd;
    --text-mute: #71767b;
    --line: #22262b;
    --brand-ink: #4db5f5;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------------- header */

header.site {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}

.mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

nav.site a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  margin-left: 18px;
}

nav.site a:hover,
nav.site a[aria-current='page'] {
  color: var(--brand-ink);
}

/* Nav wraps under the logo on narrow screens rather than overflowing. */
@media (max-width: 560px) {
  header.site .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  nav.site a {
    margin-left: 0;
    margin-right: 16px;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 76px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -1.6px;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p.lead {
  font-size: clamp(17px, 2.4vw, 20px);
  color: var(--text-soft);
  margin: 0 auto 30px;
  max-width: 34ch;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 22px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
}

.cta:hover {
  background: var(--brand-ink);
}

.cta-note {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-mute);
}

/* --------------------------------------------------------------- content */

.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-mute);
  margin: 0 0 22px;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ------------------------------------------------------------ legal pages */

.doc {
  padding: 44px 0 20px;
}

.doc h1 {
  font-size: clamp(28px, 5vw, 38px);
  letter-spacing: -1px;
  margin: 0 0 6px;
}

.doc .updated {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 26px;
}

.doc h2 {
  font-size: 20px;
  letter-spacing: -0.3px;
  margin: 34px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.doc p,
.doc li {
  color: var(--text-soft);
}

.doc strong {
  color: var(--text);
}

.doc ul {
  padding-left: 22px;
}

.doc li {
  margin-bottom: 7px;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 22px 0;
}

.callout p {
  margin: 0;
}

a {
  color: var(--brand-ink);
}

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------------ foot */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 46px;
  color: var(--text-mute);
  font-size: 14px;
}

footer.site nav a {
  color: var(--text-soft);
  text-decoration: none;
  margin-right: 16px;
  font-weight: 600;
}

footer.site nav a:hover {
  color: var(--brand-ink);
}

footer.site .copy {
  margin-top: 12px;
}
