:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #3f3f46;
  --heading: #18181b;
  --muted: #71717a;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(24, 24, 27, 0.1);
  --shadow: rgba(24, 24, 27, 0.08);
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-ring: rgba(37, 99, 235, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 16px 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 24px var(--shadow);
}

.brand-mark picture,
.brand-mark img {
  display: block;
  width: 32px;
  height: 32px;
}

.brand-mark img {
  border-radius: 999px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px;
  box-shadow: 0 10px 24px var(--shadow);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a {
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav a:hover {
  color: var(--blue);
}

.nav .nav-primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.2);
}

.nav .nav-primary:hover {
  background: var(--blue-hover);
  color: #ffffff;
}

.page {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 40px;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 40px 16px 32px;
}

.intro {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 16px;
  color: var(--heading);
  font-size: 3.75rem;
  line-height: 1.05;
}

.lead {
  max-width: 672px;
  margin: 0 auto 28px;
  color: var(--text);
  font-size: 1.125rem;
  line-height: 1.75;
}

.actions {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  padding: 12px 24px;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.2);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.button:focus-visible,
.nav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--blue-ring);
  outline-offset: 3px;
}

.thank-you {
  max-width: 672px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: left;
}

.thank-you h2 {
  margin-bottom: 8px;
  color: var(--heading);
  font-size: 1.25rem;
  line-height: 1.4;
}

.thank-you p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  flex: 0 0 auto;
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .brand span:last-child {
    display: none;
  }

  .nav {
    max-width: calc(100vw - 76px);
    overflow-x: auto;
  }

  .page {
    padding-top: 48px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .lead {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #18181b;
    --text: #e4e4e7;
    --heading: #fafafa;
    --muted: #a1a1aa;
    --surface: rgba(39, 39, 42, 0.9);
    --surface-strong: #27272a;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.28);
    --blue: #60a5fa;
    --blue-hover: #93c5fd;
    --blue-ring: rgba(96, 165, 250, 0.28);
  }

  .nav .nav-primary,
  .button {
    color: #18181b;
  }
}
