:root {
  color-scheme: light dark;
  --page: #f3f7fb;
  --surface: #ffffff;
  --surface-muted: #eaf2f8;
  --text: #10233c;
  --muted: #51657b;
  --border: #cfdeea;
  --accent: #0d6aa8;
  --accent-strong: #084c7c;
  --accent-soft: #dcedf8;
  --focus: #f0a500;
  --shadow: 0 18px 50px rgba(16, 35, 60, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #09131f;
    --surface: #101f30;
    --surface-muted: #162a3e;
    --text: #edf6fc;
    --muted: #b5c7d6;
    --border: #2b4358;
    --accent: #71c6f4;
    --accent-strong: #a7def9;
    --accent-soft: #173c55;
    --focus: #ffd166;
    --shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(103, 190, 235, 0.16), transparent 32rem),
    var(--page);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  border-radius: 0.25rem;
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--surface);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner,
.page-shell,
.site-footer {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
}

.page-shell {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.hero {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 2.4rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.lede {
  max-width: 46rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.updated {
  display: inline-flex;
  margin-top: 1.2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.app-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.app-card {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.app-card h2 {
  margin-top: 0;
}

.app-card p {
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.legal-card {
  max-width: 54rem;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.legal-card p,
.legal-card li {
  max-width: 72ch;
}

.legal-card ul {
  padding-left: 1.35rem;
}

.legal-card li + li {
  margin-top: 0.45rem;
}

.notice {
  margin-block: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--accent);
  border-radius: 0.65rem;
  background: var(--accent-soft);
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 42rem) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
