:root {
  color-scheme: light;
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fb;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --line: #d8d8de;
  --accent: #007aff;
  --accent-soft: #e8f2ff;
  --ink: #111114;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 980px;
  min-height: 58px;
  margin: 12px auto 0;
  padding: 8px 10px;
  border: 1px solid rgba(216, 216, 222, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(28, 28, 30, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.hero,
.document {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - 80px);
  padding: 64px 0;
}

.hero-copy {
  min-width: 0;
}

.app-icon-large {
  width: 112px;
  height: 112px;
  margin: 0 0 24px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0, 122, 255, 0.16);
}

.eyebrow,
.updated {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
  word-break: keep-all;
}

h1 {
  max-width: 680px;
  font-size: 56px;
  font-weight: 900;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 21px;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

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

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 64px;
}

.feature-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-card h3 {
  font-size: 18px;
}

.feature-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.document {
  max-width: 820px;
  padding: 72px 0;
}

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

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.document h1 {
  font-size: 44px;
}

.document section {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document h2 {
  font-size: 22px;
}

.document p,
.document li {
  color: var(--muted);
}

.document table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.document th,
.document td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.document th {
  color: var(--ink);
  background: var(--surface-soft);
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    padding: 48px 0;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 18px;
  }

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