:root {
  color-scheme: light dark;
  --bg: #f7f8fb;
  --text: #111827;
  --muted: #4b5563;
  --panel: #ffffff;
  --line: #d9e2ec;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --shadow: rgb(15 23 42 / 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --text: #f8fafc;
    --muted: #cbd5e1;
    --panel: #151d31;
    --line: #334155;
    --accent: #60a5fa;
    --accent-strong: #93c5fd;
    --shadow: rgb(0 0 0 / 0.3);
  }
}

* {
  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-strong);
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

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

.brand-icon {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  max-width: 38px;
  max-height: 38px;
  border-radius: 11px;
  object-fit: cover;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 20px;
}

.site-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.declaration-table {
  width: 100%;
  margin: 18px 0 8px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}

.declaration-table th,
.declaration-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.declaration-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status {
  font-weight: 800;
  white-space: nowrap;
}

.status.supported {
  color: #047857;
}

.status.na {
  color: var(--muted);
}

.narrow {
  width: min(760px, calc(100% - 32px));
}

.hero {
  padding: 40px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.section-heading h2 {
  max-width: 620px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

p {
  margin: 0 0 18px;
}

.lede {
  max-width: 760px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.2rem;
}

.updated {
  margin-top: 12px;
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent-strong);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 7px 14px;
  border: 1px solid #000000;
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  background: #1d1d1f;
  color: #ffffff;
}

.apple-logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Symbol", sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.app-store-button span:last-child {
  display: grid;
  gap: 2px;
  font-size: 1.05rem;
}

.app-store-button small {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.screenshots {
  padding-bottom: 36px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 24px;
}

figure {
  margin: 0;
  min-width: 0;
}

.screenshot-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 16px 40px var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

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

article,
section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

@media (max-width: 860px) {
  .screenshot-grid,
  .grid {
    grid-template-columns: 1fr;
  }
}

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

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    padding: 40px 0;
  }

  .declaration-table {
    display: block;
    overflow-x: auto;
  }
}
