:root {
  color-scheme: light dark;
  --background: #f6f7fb;
  --surface: #ffffff;
  --text: #181822;
  --secondary: #565666;
  --accent: #4742a0;
  --accent-strong: #343078;
  --border: #dadae5;
  --focus: #e07818;
  --shadow: 0 16px 40px rgb(27 25 74 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Text", sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--text);
  background: var(--background);
}

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

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

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  color: #ffffff;
  background: #181822;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.nav-wrap,
main,
footer {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

nav a {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

main {
  padding-block: clamp(2.5rem, 7vw, 6rem);
}

.hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.app-icon {
  width: clamp(7rem, 18vw, 10rem);
  height: auto;
  border-radius: 22.4%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-top: 2.25rem;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

p,
li {
  max-width: 68ch;
}

.lede {
  color: var(--secondary);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.panel {
  margin-top: 3rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
}

.content-page {
  max-width: 52rem;
}

.content-page h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
}

.policy section:not(.panel) {
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.email-link {
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  font-weight: 700;
}

footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 0.9rem;
}

footer p {
  margin: 0.25rem 0;
}

@media (max-width: 38rem) {
  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.85rem;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    padding-inline: 0.35rem;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .app-icon {
    width: 7rem;
  }

  h1 {
    max-width: none;
  }

  .actions,
  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .button,
  .panel,
  .site-header,
  footer {
    border-color: CanvasText;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #101016;
    --surface: #1b1b24;
    --text: #f4f3fb;
    --secondary: #c1bfce;
    --accent: #b5b0ff;
    --accent-strong: #d2ceff;
    --border: #3b3947;
    --focus: #ffb45f;
    --shadow: 0 16px 40px rgb(0 0 0 / 28%);
  }
}
