:root {
  --bg: #ffffff;
  --bg-elevated: #f2f2f7;
  --text: #000000;
  --text-secondary: #6c6c70;
  --separator: #d1d1d6;
  --button-bg: #000000;
  --button-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-elevated: #1c1c1e;
    --text: #ffffff;
    --text-secondary: #98989d;
    --separator: #38383a;
    --button-bg: #ffffff;
    --button-text: #000000;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

a { color: inherit; }

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}

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

.site-header nav a {
  margin-left: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
}

.site-header nav a:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero p {
  margin: 0 0 32px;
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 480px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--button-text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { opacity: 0.85; }

.button[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* App mockup, drawn in CSS so no screenshots are needed */
.phone {
  justify-self: center;
  width: 280px;
  padding: 14px;
  border-radius: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--separator);
}

.screen {
  border-radius: 32px;
  background: var(--bg);
  padding: 20px 14px 28px;
  min-height: 420px;
}

.screen .title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 28px 6px 14px;
}

.screen .list {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 0 16px;
}

.row {
  display: flex;
  align-items: center;
  padding: 14px 0;
  font-size: 17px;
}

.row + .row { border-top: 1px solid var(--separator); }

.row .name { flex: 1; }
.row .count {
  color: var(--text-secondary);
  margin-right: 12px;
  font-variant-numeric: tabular-nums;
}

.plus {
  position: relative;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--bg);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.plus::before { width: 12px; height: 2px; }
.plus::after { width: 2px; height: 12px; }

.plus:active { transform: scale(0.88); }

.plus:focus-visible {
  outline: 2px solid var(--text-secondary);
  outline-offset: 3px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 72px;
}

.feature {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 24px;
}

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

.feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Text pages */
.page {
  max-width: 680px;
  padding-bottom: 72px;
}

.page h1 {
  font-size: 40px;
  letter-spacing: -0.02em;
  margin: 32px 0 8px;
}

.page h2 {
  font-size: 22px;
  margin: 32px 0 8px;
}

.page p, .page li { color: var(--text-secondary); font-size: 17px; }
.page p.meta { font-size: 15px; }
.page a { color: var(--text); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--separator);
  padding-block: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer a { text-decoration: none; margin-right: 20px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; gap: 40px; }
  .features { grid-template-columns: 1fr; }
}
