:root {
  color-scheme: light;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --accent: #2557d6;
  --accent-dark: #193f9f;
  --border: #dfe5ec;
  --max-width: 1120px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 3px solid rgba(37, 87, 214, 0.3);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--text);
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.narrow,
.policy {
  max-width: 760px;
}

.hero {
  padding: 112px 0 96px;
}

.hero.compact {
  padding-bottom: 64px;
}

.eyebrow,
.app-type {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 850px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.25rem);
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  margin-bottom: 16px;
  font-size: 2rem;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.45;
}

.hero > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.075rem;
}

.apps-section {
  padding: 0 0 112px;
}

.app-card,
.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.app-card {
  min-height: 260px;
  padding: clamp(28px, 5vw, 52px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.app-card p:not(.app-type) {
  max-width: 650px;
  margin-bottom: 0;
  font-size: 1.075rem;
}

.button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.support-card {
  padding: clamp(28px, 5vw, 48px);
}

.support-card h2 {
  margin-bottom: 16px;
}

.support-card p {
  max-width: 620px;
}

.email-link {
  font-size: 1.075rem;
  font-weight: 700;
}

.policy-link {
  margin: 28px 0 112px;
}

.policy-header {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--border);
}

.policy-header h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.last-updated {
  margin-bottom: 0;
}

.policy-content {
  padding: 48px 0 96px;
}

.policy-content > p {
  font-size: 1.1rem;
}

.policy-content section {
  margin-top: 40px;
}

.policy-content h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.policy-content p {
  margin-bottom: 0;
}

footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--border);
}

footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero.compact {
    padding-bottom: 48px;
  }

  .apps-section {
    padding-bottom: 72px;
  }

  .app-card {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .button {
    width: 100%;
  }

  .policy-link {
    margin-bottom: 72px;
  }

  .policy-header {
    padding: 64px 0 40px;
  }

  .policy-content {
    padding: 40px 0 72px;
  }
}

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