:root {
  color-scheme: light;
  --background: #f7f7f5;
  --surface: #ffffff;
  --text: #292929;
  --secondary: #5d5d5d;
  --tertiary: #9e9e9e;
  --line: #e7e7e4;
  --accent: #315c52;
  --accent-soft: #e8f0ed;
  --max-width: 1040px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #151515;
    --surface: #1d1d1d;
    --text: #eeeeec;
    --secondary: #b6b6b3;
    --tertiary: #858582;
    --line: #30302e;
    --accent: #98c4b8;
    --accent-soft: #23332f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -.15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible,
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.site-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header-actions,
.language-switch,
.card-links,
.legal-links {
  display: flex;
  align-items: center;
}

.header-actions { gap: 16px; }
.header-actions > a { color: var(--secondary); font-size: 13px; }

.language-switch {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switch button {
  border: 0;
  border-radius: 6px;
  padding: 4px 7px;
  background: transparent;
  color: var(--tertiary);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
}

.language-switch button[aria-pressed="true"] {
  background: var(--text);
  color: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr);
  gap: 72px;
  padding: 104px 0 72px;
}

.hero-copy { max-width: 620px; }

.kicker,
.section-label {
  color: var(--tertiary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kicker { margin: 0 0 14px; }

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-weight: 500;
  line-height: 1.25;
}

h1 { margin-bottom: 16px; font-size: 24px; }
h2 { margin-bottom: 10px; font-size: 14px; }
h3 { margin-bottom: 8px; font-size: 14px; }

.lead {
  max-width: 600px;
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}

.hero-note {
  align-self: end;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 13px;
}

.apps-section { padding: 0 0 88px; }

.section-label {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

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

.app-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.app-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 48px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 500;
}

.app-card p { margin: 0; color: var(--secondary); font-size: 13px; }

.card-links {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.pill.primary { border-color: var(--text); background: var(--text); color: var(--surface); }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.primary:hover { background: var(--accent); color: var(--surface); }

.page {
  display: grid;
  grid-template-columns: 180px minmax(0, 680px);
  gap: 72px;
  padding: 72px 0 104px;
}

.page-aside { color: var(--tertiary); font-size: 12px; }
.page-aside p { margin: 0 0 10px; }
.page-aside a { display: block; margin-top: 7px; color: var(--secondary); }

.document-header {
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.document-header .lead { font-size: 13px; }
.updated { margin: 14px 0 0; color: var(--tertiary); font-size: 12px; }
.document section { margin-top: 32px; }
.document p,
.document li { color: var(--secondary); font-size: 14px; }
.document ul,
.document ol { padding-left: 18px; }
.document li + li { margin-top: 6px; }

.callout {
  margin: 32px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--accent-soft);
}

.callout p { margin: 0; color: var(--text); font-size: 13px; }
.app-summary { margin: 32px 0; color: var(--secondary); }

.legal-links {
  align-items: stretch;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.legal-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.legal-links a::after { content: "\2192"; color: var(--tertiary); font-size: 14px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-size: 12px;
}

[data-language][hidden] { display: none; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, var(--max-width)); }
  .header-actions > a { display: none; }
  .hero,
  .page { grid-template-columns: 1fr; }
  .hero { gap: 24px; padding: 64px 0 56px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 250px; }
  .app-mark { margin-bottom: 36px; }
  .page { gap: 28px; padding: 48px 0 72px; }
  .page-aside { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
