/*
 * Посадочная «автоматизация разработки» (`/dev`). Остальное — бандл главной
 * (`home.css`): карточки, шаги, тарифы и разметка окна приложения.
 *
 * Здесь две вещи, которых нет на других страницах: кольцо цикла в первом
 * экране и статичное окно приложения. Окно — картинка интерфейса, а не
 * проигрыватель демо-тура: правой панели нет, колонок две, кнопка отправки
 * видна без набранного текста, а на телефоне остаётся один чат.
 */

/* Первый экран: текст слева, кольцо справа. */
.dev-hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  text-align: left;
}

.dev-hero .showcase-title,
.dev-hero .hero-subtitle {
  text-align: left;
}

/* Заголовок здесь короче, чем на других витринах: он в две строки, поэтому
 * может быть крупнее. */
.dev-hero .showcase-title {
  font-size: clamp(1.875rem, 1.1rem + 2.2vw, 2.75rem);
}

/* Навигация по разделам идёт под текстом, а не по центру страницы. */
.dev-hero + .showcase-nav {
  justify-content: flex-start;
}

.dev-hero-copy {
  max-width: 40rem;
}

/* Плашка над заголовком — три роли одним зелёным ярлыком. */
.dev-eyebrow {
  border-color: rgb(31 111 63 / 0.18);
  background: #e8f4ec;
  color: #1f6f3f;
}

/* Вводная строка — крупнее и светлее, чем абзац под ней. */
.dev-hero-lead {
  max-width: 40rem;
  font-size: 1.375rem;
  line-height: 1.45;
}

.dev-hero-text {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #252f3d;
}

.dev-hero .home-hero-note {
  margin-top: 1rem;
}

@media (min-width: 1024px) {
  .dev-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

/* Кольцо цикла: шесть шагов вокруг знака Сведума. Карточка шага стоит на
 * линии кольца и закрывает её собой — поэтому линия не режет текст. */
.dev-cycle {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

.dev-cycle-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.92;
}

.dev-cycle-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dev-cycle-ring ellipse {
  fill: none;
  stroke: rgb(15 23 42 / 0.14);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.dev-cycle-ring-inner {
  stroke: rgb(15 23 42 / 0.09);
  stroke-dasharray: 4 7;
}

.dev-cycle-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  width: 3.25rem;
  height: 3.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(15 23 42 / 0.08);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.08);
  transform: translate(-50%, -50%);
}

.dev-cycle-nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dev-cycle-node {
  position: absolute;
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.625rem;
  border: 1px solid rgb(15 23 42 / 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.05);
  transform: translate(-50%, -50%);
}

.dev-cycle-node--ticket {
  top: 21%;
  left: 50%;
}

.dev-cycle-node--reply {
  top: 35.5%;
  left: 78.6%;
}

.dev-cycle-node--fix {
  top: 64.5%;
  left: 78.6%;
}

.dev-cycle-node--review {
  top: 79%;
  left: 50%;
}

.dev-cycle-node--tests {
  top: 64.5%;
  left: 21.4%;
}

.dev-cycle-node--release {
  top: 35.5%;
  left: 21.4%;
}

.dev-cycle-icon {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgb(15 23 42 / 0.05);
  color: #252f3d;
}

.dev-cycle-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.dev-cycle-text {
  display: flex;
  flex-direction: column;
  gap: 0.0625rem;
  white-space: nowrap;
}

.dev-cycle-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #252f3d;
}

.dev-cycle-sub {
  font-size: 0.6875rem;
  line-height: 1.2;
  color: #6b7280;
}

.dev-cycle-note {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  text-align: center;
  color: #6b7280;
}

/* На телефоне кольцо не читается: шаги становятся списком. */
@media (max-width: 559px) {
  .dev-cycle-stage {
    aspect-ratio: auto;
  }

  .dev-cycle-ring,
  .dev-cycle-core {
    display: none;
  }

  .dev-cycle-nodes {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .dev-cycle-node {
    position: static;
    width: auto;
    transform: none;
  }
}

@media (max-width: 479px) {
  .dev-cycle-nodes {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Статичное окно приложения: правой панели демо-тура здесь нет — колонок две,
 * кнопка отправки видна без набранного текста, на телефоне остаётся один чат. */
.product-mock--static .mock-body {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.product-mock--static .mock-composer:not(.has-text) .mock-composer-send {
  display: flex;
}

/* Шеврон у «Новый чат» и подпись аккаунта — как в приложении: строка меню
 * тянется на всю ширину, а стрелка стоит у правого края. */
.product-mock--static .mock-row-end {
  width: 13px;
  height: 13px;
  margin-left: auto;
  color: var(--m-muted);
}

.product-mock--static .mock-sidebar-bottom {
  border-top: 1px solid var(--m-split);
}

@media (max-width: 559px) {
  .product-mock--static .mock-sidebar {
    display: none;
  }
}

@media (min-width: 560px) {
  .product-mock--static .mock-body {
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 560px;
  }

  .product-mock--static .mock-sidebar-bottom {
    display: block;
  }
}
