:root {
  color-scheme: light dark;
  --ink: #111411;
  --muted: #626862;
  --paper: #f4f5f0;
  --card: #ffffff;
  --line: #d7dad2;
  --accent: #007aff;
  --accent-deep: #006bd6;
  --dark: #0f1110;
  --dark-card: #181b18;
  --max: 1080px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a { color: inherit; }

.site-header,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%);
}

nav { display: flex; gap: 28px; }

nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

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

.home,
.document {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  max-width: 820px;
  padding: clamp(72px, 12vw, 142px) 0 clamp(64px, 9vw, 108px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(62px, 11vw, 124px);
  font-weight: 850;
}

.hero h1 span { color: var(--accent-deep); }

.lead {
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-bottom: 88px;
}

.feature-card {
  min-height: 290px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #9ca596;
  box-shadow: 0 18px 50px rgb(26 38 24 / 8%);
}

.card-number {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.feature-card div { align-self: end; }

.feature-card h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 45px);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.arrow { font-size: 25px; line-height: 1; }

.document { max-width: 820px; }

.document-title {
  padding: clamp(68px, 10vw, 112px) 0 54px;
  border-bottom: 1px solid var(--line);
}

.document-title h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(50px, 8vw, 88px);
  font-weight: 850;
}

.updated,
.contact-line {
  color: var(--muted);
  font-size: 14px;
}

.summary {
  margin: 48px 0;
  padding: 28px 30px;
  border-left: 5px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: var(--card);
}

.summary strong { display: block; margin-bottom: 8px; }
.summary p { margin-bottom: 0; }

article { padding-bottom: 72px; }

article section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

article h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 3.5vw, 36px);
}

article p,
article li { color: #3f453f; }
article p:last-child { margin-bottom: 0; }
article li + li { margin-top: 8px; }
article a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 720;
  text-decoration: none;
}

.primary-button:hover { background: var(--accent-deep); }
.contact-line { margin: 13px 0 0; }
.support-page article > section:first-child { padding-top: 54px; }

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

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

summary {
  padding: 23px 38px 23px 0;
  position: relative;
  cursor: pointer;
  font-size: 18px;
  font-weight: 730;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

details[open] summary::after { content: "−"; }
details p { padding: 0 42px 24px 0; }

.support-callout {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-top: 28px;
  padding: 36px;
  border: 0;
  border-radius: 20px;
  background: var(--dark);
  color: #f5f6f1;
}

.support-callout h2 { margin-bottom: 10px; }
.support-callout p { color: #adb3ab; }
.support-callout .eyebrow { color: var(--accent); }
.text-link { flex: none; font-weight: 720; color: var(--accent); }

footer {
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

footer a { text-underline-offset: 3px; }

@media (max-width: 680px) {
  .site-header, footer, .home, .document { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 72px; }
  nav { gap: 18px; }
  .link-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; padding: 24px; }
  .summary { padding: 24px; }
  article section { padding: 32px 0; }
  .support-callout { align-items: start; flex-direction: column; padding: 28px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f3ee;
    --muted: #a9afa7;
    --paper: #0f1110;
    --card: #181b18;
    --line: #30352f;
    --accent: #007aff;
    --accent-deep: #007aff;
  }

  .brand-mark { color: #ffffff; }
  article p, article li { color: #c4c9c1; }
  .primary-button { background: var(--accent); color: #ffffff; }
  .primary-button:hover { background: #409cff; }
  .support-callout { background: #1b211a; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card { transition: none; }
}
