/* TeleRocket landing — quick start, compare cards, FAQ */

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 560px;
  margin: -40px auto 48px;
  font-weight: 400;
}

/* ── Быстрый старт ── */
.tr-quickstart {
  padding: 100px 0 80px;
  position: relative;
}

.tr-quickstart::before {
  content: "";
  position: absolute;
  inset: 20% 10% auto;
  height: 220px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.tr-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.tr-steps-track {
  position: absolute;
  top: 44px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}

html.theme-light .tr-steps-track {
  background: rgba(0, 119, 255, 0.14);
}

.tr-steps-progress {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple), #22d3ee);
  background-size: 200% 100%;
  animation: trStepProgressFlow 2.8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.65);
}

.tr-quickstart.is-running .tr-steps-progress {
  animation: trStepProgressMove 10s ease-in-out infinite, trStepProgressFlow 2.8s linear infinite;
}

@keyframes trStepProgressFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes trStepProgressMove {
  0%, 18% { transform: translateX(0); width: 25%; }
  25%, 43% { transform: translateX(100%); width: 25%; }
  50%, 68% { transform: translateX(200%); width: 25%; }
  75%, 93% { transform: translateX(300%); width: 25%; }
  100% { transform: translateX(0); width: 25%; }
}

.tr-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
}

.tr-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(15, 19, 31, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.12);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tr-step-card {
  padding: 20px 16px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  min-height: 120px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.tr-step h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tr-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.tr-step.is-active .tr-step-num {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.65), 0 0 56px rgba(139, 92, 246, 0.3);
  transform: scale(1.1);
  animation: trStepPulse 2.5s ease-in-out infinite;
}

.tr-step.is-active .tr-step-card {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.18);
  transform: translateY(-4px);
}

.tr-step.is-active h3 {
  color: var(--text-main);
}

@keyframes trStepPulse {
  0%, 100% { box-shadow: 0 0 24px rgba(59, 130, 246, 0.5), 0 0 48px rgba(139, 92, 246, 0.22); }
  50% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.85), 0 0 64px rgba(34, 211, 238, 0.4); }
}

/* ── Compare cards ── */
.tr-compare {
  padding: 80px 0;
}

.tr-compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.tr-compare-card {
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}

.tr-compare-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tr-compare-card--win {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.12) 0%, var(--glass-bg) 100%);
}

.tr-compare-card--win h3 {
  color: var(--accent-blue);
}

.tr-compare-card--lose h3 {
  color: var(--text-muted);
}

.tr-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tr-compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
}

.tr-compare-list li:last-child {
  border-bottom: none;
}

.tr-compare-list .fa-check {
  color: #34d399;
  margin-top: 3px;
  flex-shrink: 0;
}

.tr-compare-list .fa-xmark {
  color: #f87171;
  margin-top: 3px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── FAQ ── */
.tr-faq {
  padding: 80px 0 100px;
}

.tr-faq .container {
  max-width: 720px;
}

.tr-faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin-bottom: 10px;
  background: rgba(15, 19, 31, 0.6);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

html.theme-light .tr-faq-item {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 119, 255, 0.16);
}

.tr-faq-item.is-open {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.06);
}

.tr-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.tr-faq-q i {
  color: var(--accent-blue);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-size: 13px;
}

.tr-faq-item.is-open .tr-faq-q i {
  transform: rotate(180deg);
}

.tr-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
  padding: 0 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0;
}

.tr-faq-item.is-open .tr-faq-a {
  max-height: 240px;
  padding: 0 22px 18px;
  opacity: 1;
}

.tr-faq-a a {
  color: var(--accent-blue);
  text-decoration: none;
}

.tr-faq-a a:hover {
  text-decoration: underline;
}

/* ── Тарифы ── */
.price-features {
  list-style: none;
  text-align: left;
  margin: 0 0 24px;
  padding: 0;
  flex-grow: 1;
}

.price-features li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.price-features li i {
  color: var(--accent-blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.price-card .price-desc {
  flex-grow: 0;
  margin-bottom: 12px;
}

.price-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.2));
  color: #93c5fd;
  margin-bottom: 12px;
}

html.theme-light .price-badge {
  color: #1d4ed8;
}

.feature-card {
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15), 0 0 0 1px rgba(59, 130, 246, 0.2);
}

html.theme-light .feature-card:hover {
  box-shadow: 0 20px 50px rgba(0, 119, 255, 0.12);
}

@media (max-width: 900px) {
  .tr-steps {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }

  .tr-steps-track {
    display: none;
  }

  .tr-compare-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tr-steps {
    grid-template-columns: 1fr;
  }

  .section-sub {
    font-size: 16px;
    margin-top: -32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-steps-progress,
  .tr-step.is-active .tr-step-num {
    animation: none !important;
  }

  .tr-quickstart.is-running .tr-steps-progress {
    animation: none !important;
    width: 100%;
    opacity: 0.5;
  }
}
