:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: rgba(0, 0, 0, 0.08);
  --success: #34c759;
  --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-secondary: #98989d;
    --accent: #2997ff;
    --accent-hover: #52a9ff;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 20px;
  text-align: center;
}

.brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lang-switch {
  display: inline-flex;
  gap: 2px;
  background: var(--border);
  padding: 3px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 24px;
}

.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.progress {
  margin: 28px auto 8px;
  max-width: 320px;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

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

.progress-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.offer {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  background-image: url("icons/asmetry-mark.png");
  background-size: cover;
  background-position: center;
}

@media (prefers-color-scheme: dark) {
  .offer-icon {
    background-image: url("icons/asmetry-mark-light.png");
  }
}

.offer-body {
  flex: 1;
  min-width: 0;
}

.offer-body h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.offer-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  border-radius: 980px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.offer-action:hover {
  background: var(--accent-hover);
}

.offer-action:active {
  transform: scale(0.96);
}

.unlock-section {
  text-align: center;
  padding: 8px 0 32px;
}

.unlock-button {
  appearance: none;
  border: none;
  border-radius: 980px;
  background: var(--text-secondary);
  color: var(--surface);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 36px;
  cursor: pointer;
  transition: background 0.3s ease, opacity 0.2s ease, transform 0.15s ease;
  width: 100%;
  max-width: 340px;
}

.unlock-button:hover {
  opacity: 0.85;
}

.unlock-button:active {
  transform: scale(0.98);
}

.unlock-button.ready {
  background: var(--success);
}

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

.last-section {
  text-align: center;
  padding: 0 20px 24px;
}

.last-section p {
  font-size: 11px;
  color: var(--text-secondary);
  opacity: 0.7;
  margin: 0;
}

.footer {
  text-align: center;
  padding: 24px 20px 40px;
  color: var(--text-secondary);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 200;
}

.toast[hidden] {
  display: none;
}
