/* ============================================================
   Лендинг sprint.kz — стилистика мобильного приложения.
   Токены = site.css (:root) = lib/app_theme.dart:
   Inter, radius-card 14, radius-ui 28, spacing 4/8/16/24/32/48.
   Тёмная тема — через существующий prefers-color-scheme.
   ============================================================ */

.lv2 {
  font-family: var(--font);
  color: var(--text-primary);
}

.lv2 h1,
.lv2 h2 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.lv2 .lv2-display {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Хиро ---------- */

.lv2-hero {
  background: var(--gradient-brand);
  color: #ffffff;
}

.lv2-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 5rem clamp(1.5rem, 5vw, 4.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.lv2-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px; /* ~25% стороны — как у иконки приложения */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.lv2-hero-copy h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.12;
  color: #ffffff;
}

.lv2-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
}

.lv2-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lv2-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-ui);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.lv2-btn:hover { text-decoration: none; transform: translateY(-1px); }

.lv2-btn-store { background: #ffffff; color: var(--primary); }
.lv2-btn-store:hover { color: var(--primary); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

.lv2-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  padding: calc(1rem - 1px) 1.5rem;
}
.lv2-btn-ghost:hover { color: #ffffff; border-color: #ffffff; }

.lv2-btn-primary { background: var(--primary); color: #ffffff; }
.lv2-btn-primary:hover { color: #ffffff; background: var(--primary-dark); }
.lv2-btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: calc(1rem - 1px) 1.5rem;
}
.lv2-btn-outline:hover { color: var(--primary-dark); border-color: var(--primary-dark); }


/* ---------- Секции ---------- */

.lv2-inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.lv2-section {
  padding: 4rem clamp(1.5rem, 5vw, 4.5rem);
}

.lv2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.lv2-section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.lv2-section-head .lv2-tagline { font-size: 0.9375rem; color: var(--text-tertiary); }

/* ---------- Возможности ---------- */

.lv2-features { background: var(--surface-variant); }

.lv2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lv2-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}
.lv2-card-title { font-size: 1.0625rem; font-weight: 600; color: var(--text-primary); }
.lv2-card p { margin: 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-tertiary); }

.lv2-note {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}
.lv2-note svg { flex-shrink: 0; }
.lv2-note p { margin: 0; font-size: 0.9375rem; line-height: 1.6; color: var(--text-secondary); }
.lv2-note b { color: var(--text-primary); font-weight: 600; }

/* ---------- Челлендж ---------- */

.lv2-duel-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding-bottom: 1.5rem;
}
.lv2-kicker {
  align-self: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--accent-orange-soft);
  color: var(--accent-orange);
  font-size: 0.8125rem;
  font-weight: 600;
}
.lv2-duel-intro h2 { font-size: clamp(1.625rem, 3vw, 2.375rem); line-height: 1.15; max-width: 52rem; }
.lv2-duel-intro p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--text-secondary); max-width: 42.5rem; }

.lv2-versus {
  display: flex;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.lv2-versus-side {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.lv2-versus-you { background: var(--gradient-brand); color: #ffffff; }
.lv2-versus-them { background: var(--accent-orange); color: #14100a; align-items: flex-end; text-align: right; }

.lv2-versus-label {
  font-size: 0.8125rem;
  font-weight: 600;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.5rem;
}
.lv2-versus-name { font-size: clamp(1.75rem, 3vw, 2.625rem); line-height: 1.05; }
.lv2-versus-time { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-variant-numeric: tabular-nums; }
.lv2-versus-meta { font-size: 0.9375rem; font-weight: 500; opacity: 0.78; display: block; margin-top: 0.375rem; }

.lv2-versus-vs {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.lv2-versus-vs .lv2-display { font-size: 1.25rem; color: var(--text-primary); }

.lv2-duel-bottom {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
  padding-top: 2.5rem;
}
.lv2-duel-text { flex: 1; display: flex; flex-direction: column; gap: 0.875rem; }
.lv2-duel-text h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}
.lv2-duel-text p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--text-secondary); }

.lv2-top { width: 100%; display: flex; flex-direction: column; gap: 0.625rem; }
.lv2-top-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
}
.lv2-top-row .lv2-display {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-full);
  background: rgba(1, 94, 234, 0.12);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.lv2-top-leader .lv2-display { background: var(--accent-orange-soft); color: var(--accent-orange); }
.lv2-top-row .lv2-top-name { flex: 1; font-weight: 500; font-size: 0.9375rem; color: var(--text-primary); }

/* ---------- sprint.kz ---------- */

.lv2-web {
  max-width: min(720px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 3rem;
}
.lv2-web-text { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.lv2-web-text h3 { margin: 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.lv2-web-text p { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var(--text-secondary); }

/* ---------- CTA ---------- */

.lv2-cta {
  max-width: min(720px, calc(100% - 3rem));
  margin: 4rem auto;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.lv2-cta h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); color: #ffffff; }
.lv2-cta p { margin: 0; font-size: 1.0625rem; color: rgba(255, 255, 255, 0.88); max-width: 35rem; }

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
}

@media (max-width: 720px) {
  .lv2-grid { grid-template-columns: 1fr; }
  .lv2-versus { flex-direction: column; }
  .lv2-versus-them { align-items: flex-start; text-align: left; }
  .lv2-versus-vs { display: none; }
  .lv2-web { flex-direction: column; align-items: flex-start; }
  .lv2-note { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}
