:root {
  color-scheme: light dark;
  --page: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #6f5ce7;
  --accent-strong: #5845d8;
  --max-width: 920px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --surface: #151516;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383a;
    --accent: #8d7cf1;
    --accent-strong: #a092f5;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
  margin: 0;
  background: var(--page);
  line-height: 1.65;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.header-inner,
main,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

main {
  padding: 56px 0 72px;
}

.intro {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.home-intro {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 650;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0;
}

.lede,
.meta,
.secondary {
  color: var(--muted);
}

.lede {
  max-width: 720px;
  font-size: 18px;
}

.meta {
  margin-bottom: 4px;
  font-size: 13px;
}

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

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.topic-item p,
.note-list p,
.support-band p,
.company-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.company-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.company-list.compact {
  margin: 18px 0;
}

.company-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.company-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.company-list dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.company-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
}

.note-list article {
  padding: 20px 0;
}

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

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
}

.support-steps {
  padding-left: 22px;
}

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

.site-footer {
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 700px) {
  .header-inner,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  nav {
    width: 100%;
    gap: 16px;
    overflow-x: auto;
  }

  main {
    padding-top: 32px;
  }

  .home-intro {
    min-height: 210px;
  }

  h1 {
    font-size: 32px;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .company-panel {
    grid-template-columns: 1fr;
  }

  .support-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
