:root {
  color-scheme: light;
  --background: #f8f8f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #62666d;
  --line: #e4e4e2;
  --brand: #223546;
  --radius: 18px;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

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

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus {
  color: var(--brand);
}

.language-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  cursor: pointer;
}

.language-globe {
  font-size: 0.95em;
  line-height: 1;
}

.language-trigger:hover,
.language-trigger:focus {
  color: var(--brand);
}

.language-options {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  z-index: 100;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 48px rgba(34, 53, 70, 0.13);
  transform: translate(-50%, -50%);
  -webkit-overflow-scrolling: touch;
}

.language-option {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus,
.language-option[aria-current="true"] {
  background: #f1f1ef;
}

.home-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.home-shell {
  width: min(100%, var(--content-width));
  text-align: center;
}

.hero {
  margin-top: 0;
  padding: 112px 0 88px;
  border-top: 0;
}

.hero h1 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(64px, 15vw, 132px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero p {
  margin: 28px auto 0;
  max-width: 640px;
  color: var(--text);
  font-size: clamp(22px, 4.8vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.footer-links,
.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  color: var(--muted);
}

.footer-links a,
.support-links a {
  font-size: 17px;
  font-weight: 600;
}

.home-app-entry a {
  font-size: 22px;
}

.home-language {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.language-menu.is-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(29, 29, 31, 0.18);
}

.site-header {
  display: flex;
  width: min(100% - 40px, 980px);
  margin: 0 auto;
  padding: 28px 0;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}

.home-page .site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
}

.brand-link {
  color: var(--brand);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

.site-header nav a,
.nav-section-label {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

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

.content-page {
  width: min(100% - 40px, var(--content-width));
  margin: 56px auto 88px;
  padding: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

.content-page h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
}

section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

section h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

section p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.support-links {
  justify-content: flex-start;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

@media (min-width: 641px) {
  .home-page {
    place-items: start center;
  }

  .home-shell {
    margin-top: clamp(120px, 20vh, 196px);
  }
}

@media (max-width: 640px) {
  .home-page {
    padding: 24px 18px;
  }

  .hero {
    padding: 84px 0 68px;
  }

  .site-header {
    width: min(100% - 32px, 980px);
    align-items: flex-start;
    flex-direction: column;
  }

  .content-page {
    width: min(100% - 32px, var(--content-width));
    margin: 32px auto 56px;
    padding: 28px;
    border-radius: 14px;
  }

  .lead {
    font-size: 19px;
  }

  section {
    margin-top: 32px;
    padding-top: 26px;
  }

  section h2 {
    font-size: 22px;
  }

  section p {
    font-size: 17px;
  }
}
