:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f7f7f9;
  --text: #171719;
  --muted: #696970;
  --border: #e6e6eb;
  --accent: #4b3ee8;
  --accent-hover: #3e32cd;
  --focus: #635bff;
  --content-width: 1120px;
  --reading-width: 760px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: auto;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

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

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 40%, transparent);
  outline-offset: 4px;
  border-radius: 6px;
}

.site-header,
.site-footer {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(61, 50, 205, 0.16);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

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

.home-main {
  width: min(100% - 48px, var(--content-width));
  min-height: calc(100vh - 174px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding: 72px 0 112px;
}

.hero {
  max-width: 820px;
}

.hero h1,
.page-heading h1,
.not-found-main h1 {
  margin: 0;
  color: var(--text);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.25rem, 8vw, 6.7rem);
}

.tagline {
  margin: 30px 0 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.intro {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

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

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

.button-secondary {
  border-color: var(--border);
  background: var(--background);
  color: var(--text);
}

.button-secondary:hover {
  border-color: #cfcfd8;
  background: var(--surface);
  color: var(--text);
}

.site-footer {
  min-height: 90px;
  margin-top: auto;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.content-main {
  width: min(100% - 48px, var(--reading-width));
  margin: 0 auto;
  padding: 76px 0 120px;
}

.page-heading {
  margin-bottom: 74px;
}

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

.page-heading h1 {
  font-size: clamp(3rem, 7vw, 5rem);
}

.page-heading > p:not(.eyebrow):not(.updated):not(.contact-line) {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
}

.updated {
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 15px;
}

.policy section {
  margin-top: 58px;
}

.policy h2,
.faq > h2 {
  margin: 0 0 18px;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.policy p,
.policy li,
.faq p {
  color: #37373c;
}

.policy p,
.faq p {
  margin: 15px 0 0;
}

.policy ul {
  margin: 18px 0 0;
  padding-left: 1.4em;
}

.policy li + li {
  margin-top: 8px;
}

.support-main {
  padding-bottom: 128px;
}

.support-lead {
  margin-top: 26px;
  color: var(--text) !important;
  font-size: 24px !important;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.contact-line {
  margin: 22px 0 0;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin-top: 34px;
}

.text-links a {
  font-weight: 650;
}

.faq {
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.faq article {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.faq h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.not-found-page {
  justify-content: center;
}

.not-found-main {
  width: min(100% - 48px, 680px);
  margin: auto;
  padding: 64px 0;
}

.error-code {
  margin: 68px 0 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.not-found-main h1 {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
}

.not-found-main > p:not(.error-code) {
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 19px;
}

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

  .site-header {
    min-height: 72px;
  }

  .site-nav,
  .site-footer nav {
    gap: 14px;
  }

  .site-nav a,
  .site-footer a {
    font-size: 14px;
  }

  .home-main {
    min-height: auto;
    padding: 88px 0 112px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 15vw, 4.8rem);
  }

  .tagline {
    margin-top: 24px;
  }

  .content-main {
    padding: 58px 0 92px;
  }

  .page-heading {
    margin-bottom: 58px;
  }

  .policy section {
    margin-top: 48px;
  }

  .site-footer {
    min-height: 118px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
  }
}

@media (max-width: 390px) {
  .brand span {
    font-size: 17px;
  }

  .site-nav {
    gap: 10px;
  }

  .site-nav a {
    padding-inline: 2px;
  }

  .hero-links .button {
    width: 100%;
  }
}
