:root {
  --accent: #10b981;
  --accent-strong: #0f766e;
  --text: #0b3b36;
  --muted: #4b6b66;
  --surface: #ffffff;
  --line: rgba(15, 118, 110, 0.15);
  --background: #f4fbf8;
  --hero: linear-gradient(135deg, #eefbf6 0%, #dff5ee 45%, #c7eee3 100%);
  --code: #0b2b27;
  --menubar: rgba(255, 255, 255, 0.55);
  --menubar-text: #1d2b29;
  --tray: rgba(0, 0, 0, 0.09);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-strong: #34d399;
    --text: #e6f4f0;
    --muted: #9bb8b2;
    --surface: #13201e;
    --line: rgba(52, 211, 153, 0.18);
    --background: #0c1513;
    --hero: linear-gradient(135deg, #0f1e1b 0%, #10261f 50%, #0d2c24 100%);
    --code: #060d0c;
    --menubar: rgba(255, 255, 255, 0.08);
    --menubar-text: #e6f4f0;
    --tray: rgba(255, 255, 255, 0.14);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.nav-link {
  font-weight: 500;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  max-width: 1120px;
  margin: 0 auto 96px;
  padding: 56px 48px;
  border-radius: 28px;
  background: var(--hero);
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 60px);
}

.lead {
  margin: 24px 0 0;
  max-width: 34ch;
  font-size: 21px;
  color: var(--muted);
}

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

.button {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

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

.note {
  font-size: 14px;
  color: var(--muted);
}

.hero-shot {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.menubar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--menubar);
  font-size: 13px;
  font-weight: 500;
  color: var(--menubar-text);
}

.menubar {
  gap: 14px;
  align-items: center;
}

.apple {
  margin-right: auto;
  font-size: 15px;
}

.tray {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 1px 8px;
  border-radius: 5px;
  background: var(--tray);
}

.tray svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.window {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #e3e4e4;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.28),
    0 30px 70px -10px rgba(10, 60, 52, 0.35),
    0 12px 24px -8px rgba(10, 60, 52, 0.18);
}

main > section:not(.hero) {
  max-width: 1120px;
  margin: 0 auto 96px;
  padding: 0 24px;
}

h2 {
  margin: 0 0 32px;
  font-size: 34px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.grid p {
  margin: 0;
  color: var(--muted);
}

.screens img {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  margin: 0 auto;
}

.start {
  max-width: 720px !important;
}

pre {
  overflow-x: auto;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--code);
  color: #d1fae5;
  font-size: 14px;
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    margin: 0 16px 72px;
    padding: 40px 24px;
  }

  .hero-shot {
    align-items: center;
  }

  main > section:not(.hero) {
    padding: 0 16px;
  }
}

ol {
  padding-left: 22px;
}

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

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

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

.compare th,
.compare td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.compare tbody tr:last-child > * {
  border-bottom: none;
}

.compare thead th {
  font-size: 13px;
  line-height: 1.3;
}

.compare thead a {
  color: inherit;
  text-decoration: none;
}

.compare thead span {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.compare tbody th {
  position: sticky;
  left: 0;
  background: var(--surface);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.compare .ours,
.compare td:nth-child(2) {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.compare .yes {
  color: var(--accent-strong);
  font-weight: 700;
}

.compare .no {
  color: var(--muted);
}

.compare td {
  color: var(--text);
}
