:root {
  color-scheme: light;
  --surface: #faf9fb;
  --card: #ffffff;
  --ink: #1b1b1f;
  --ink-soft: #45464f;
  --slate: #757680;
  --outline: #c5c6d0;
  --primary: #005c9e;
  --primary-soft: #d1e4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-width {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

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

h1,
h2 {
  letter-spacing: -0.05em;
  line-height: 1.2;
}

h1 {
  margin: 76px 0 80px;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
}

h2 {
  margin-bottom: 24px;
  font-size: 1.55rem;
}

.support-section {
  margin-bottom: 88px;
}

.faq-list {
  border-top: 1px solid var(--outline);
}

details {
  border-bottom: 1px solid var(--outline);
}

summary {
  position: relative;
  padding: 19px 38px 19px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.98rem;
  font-weight: 700;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 19px;
  right: 3px;
  color: var(--primary);
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  max-width: 650px;
  margin: -2px 38px 20px 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.contact-section {
  margin-bottom: 108px;
}

.contact-link {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 34px;
  border-top: 1px solid var(--outline);
  color: var(--slate);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover,
.contact-link:hover {
  text-decoration: underline;
}

.contact-link:focus-visible,
.footer-links a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .page-width {
    width: min(100% - 32px, 480px);
  }

  h1 {
    margin-top: 56px;
    margin-bottom: 58px;
  }

  .support-section {
    margin-bottom: 68px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
