:root {
  --accent: #0a84ff;
  --green: #30c85a;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav a { margin-left: 22px; color: var(--text); font-size: 0.95rem; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .app-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 24px 0 12px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}
.badge {
  display: inline-block;
  line-height: 0;
  background: none;
  padding: 0;
}
.badge img { height: 56px; width: auto; }
.badge:hover { text-decoration: none; opacity: 0.85; }

/* Screenshots */
.shots {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 24px 0 64px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.shots img {
  height: 520px;
  width: auto;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  scroll-snap-align: center;
  flex: 0 0 auto;
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}
section .sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
}
section.alt .card { background: var(--bg); }
.card .emoji { font-size: 2rem; }
.card h3 { margin: 10px 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

/* How it works */
ol.steps {
  list-style: none;
  counter-reset: step;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 56px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps strong { display: block; }
ol.steps span { color: var(--muted); }

/* Document pages (privacy, support) */
main.doc { padding: 56px 0 80px; max-width: 720px; }
main.doc h1 { font-size: 2.2rem; letter-spacing: -0.01em; margin-top: 0; }
main.doc h2 { text-align: left; font-size: 1.3rem; margin: 36px 0 8px; }
main.doc p, main.doc li { color: var(--text); }
main.doc details {
  background: var(--bg-alt);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
main.doc summary { cursor: pointer; font-weight: 600; }
main.doc details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
footer.site {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
}
footer.site a { color: var(--muted); margin: 0 10px; }

@media (max-width: 600px) {
  nav a { margin-left: 14px; }
  .shots { justify-content: flex-start; }
  .shots img { height: 440px; }
}
