:root {
  --bg: #f0f9ff;
  --accent: #0ea5e9;
  --text: #0c4a6e;
  --line: #bae6fd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

section {
  padding: 96px 0;
}

section:first-child {
  padding-top: 72px;
}

h1 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 24px;
  font-size: 22px;
}

.lead {
  margin: 0 0 32px;
  font-size: 19px;
}

.cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta:hover {
  background: #0284c7;
}

.count {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress {
  height: 10px;
  margin: 0 0 28px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.glasses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}

.glass {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 64px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.glass-icon {
  display: block;
  width: 22px;
  height: 30px;
  border: 2px solid var(--accent);
  border-top-width: 4px;
  border-radius: 3px 3px 8px 8px;
  background: transparent;
  transition: background 0.15s ease;
}

.glass[aria-pressed="true"] {
  border-color: var(--accent);
}

.glass[aria-pressed="true"] .glass-icon {
  background: var(--accent);
}

.reset {
  min-height: 44px;
  padding: 12px 22px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.steps,
.benefit-list {
  margin: 0;
  padding-left: 22px;
}

.step,
.benefit {
  margin-bottom: 12px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 32px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  section {
    padding: 64px 0;
  }

  h1 {
    font-size: 27px;
  }

  .glasses {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .glass-icon,
  .progress-fill {
    transition: none;
  }
}
