:root {
  --bg: #f6faf8;
  --surface: #ffffff;
  --text: #10231d;
  --muted: #4d6660;
  --line: #d9e7e2;
  --accent: #0f886e;
  --accent-strong: #0b6b57;
  --hero-top: #33c79e;
  --hero-bottom: #0a4f42;
  --radius: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07110e;
    --surface: #111d19;
    --text: #e8f3ef;
    --muted: #9db3ac;
    --line: #20332d;
    --accent: #33c79e;
    --accent-strong: #5fd9b6;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--hero-top), var(--hero-bottom));
  color: #fff;
  border-radius: 28px;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.05;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero p { font-size: 19px; margin: 0 0 24px; opacity: 0.95; max-width: 30em; }
.hero .app-icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.25); margin-bottom: 20px; }
.hero .phone { justify-self: center; width: min(280px, 100%); }

.badge {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.badge.soon { background: rgba(0,0,0,.28); cursor: default; }
.badge.join { background: #fff; color: #0a4f42; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.badge.join:hover { background: #eafaf4; color: #0a4f42; }
.badge + .badge { margin-left: 10px; }
.badge small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }

.phone {
  display: block;
  border-radius: 32px;
  border: 6px solid #1a1a1a;
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  background: #000;
  width: 100%;
  height: auto;
}

/* Sections */
section { padding: 56px 0 8px; }
h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 36em; }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.steps li, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.steps h3, .card h3 { margin: 0 0 6px; font-size: 19px; }
.steps p, .card p { margin: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.shots figure { margin: 0; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }

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

/* Text pages */
.page { max-width: 720px; padding-top: 24px; }
.page h1 { font-size: 38px; letter-spacing: -0.02em; margin: 8px 0 4px; }
.page .updated { color: var(--muted); margin: 0 0 28px; }
.page h2 { font-size: 22px; margin: 32px 0 8px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
summary { font-weight: 600; cursor: pointer; }
details p { color: var(--muted); margin: 10px 0 0; }

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin: 8px 0 32px;
}
.contact p { margin: 0 0 8px; }
.contact .email { font-size: 20px; font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 16px; }

/* Phones */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 36px 22px; text-align: left; }
  .hero .phone { width: min(240px, 80%); }
  .steps, .grid-2 { grid-template-columns: 1fr; }
  .shots {
    grid-template-columns: repeat(3, 70%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .shots figure { scroll-snap-align: start; }
  .site-nav { gap: 14px; }
}
