:root {
  color-scheme: light dark;
  --background: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --separator: #d2d2d7;
  --accent: #0066cc;
  --accent-pressed: #004f9e;
  --content-width: 760px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px max(24px, calc((100vw - var(--content-width)) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 27, 69, 0.94);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 92px;
  height: 52px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .brand-logo {
    background: #ffffff;
    -webkit-mask-image: url("/images/255c246b4570802047134b97b91ba770.png");
    mask-image: url("/images/255c246b4570802047134b97b91ba770.png");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .brand-logo img {
    visibility: hidden;
    filter: none;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
}

nav a:hover {
  color: #ffffff;
}

main,
footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

main {
  padding-block: 56px 72px;
}

.document-header {
  margin-bottom: 48px;
}

.eyebrow,
.metadata {
  color: var(--secondary);
  font-size: 14px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 600;
}

h1,
h2 {
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 36px;
}

h2 {
  margin-bottom: 12px;
  font-size: 22px;
}

section {
  padding-block: 28px;
  border-top: 1px solid var(--separator);
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

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

dl div {
  display: grid;
  grid-template-columns: minmax(140px, 0.36fr) 1fr;
  gap: 16px;
  padding-block: 10px;
  border-top: 1px solid var(--separator);
}

dt {
  color: var(--secondary);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

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

.compact-header {
  margin-bottom: 28px;
}

.request-surface {
  border-top: 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--surface);
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 600;
}

.field-group input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--separator);
  border-radius: 6px;
  background: var(--background);
  color: var(--text);
  font: inherit;
}

.phone-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.confirmation-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin-block: 20px;
}

.confirmation-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.primary-command {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.primary-command:disabled {
  cursor: default;
  opacity: 0.55;
}

.verification-step {
  margin-top: 20px;
}

.verification-step .primary-command {
  margin-top: 16px;
}

.form-status {
  min-height: 28px;
  margin: 18px 0 0;
  color: var(--secondary);
}

footer {
  padding-block: 24px 40px;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 13px;
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 8px 16px;
  }

  .brand-logo {
    width: 72px;
    height: 41px;
  }

  nav {
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: flex-end;
    min-width: 0;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  main {
    padding-block: 36px 52px;
  }

  h1 {
    font-size: 30px;
  }

  dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --secondary: #a1a1a6;
    --separator: #38383a;
    --accent: #2997ff;
    --accent-pressed: #64b5ff;
  }
}

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