/* Публичные страницы: посадочная Cortex, политика и «не найдено».
 *
 * Стиль «Сигнал · Бенто» (холст «Cortex — направления стиля», ряд «Бенто на сайте»):
 * светлый фон, сетка скруглённых плиток, лайм как главный акцент и сиреневый
 * как второй, мягкий. Цветные плитки — только заливкой, без рамок и градиентов.
 * Шрифты: Unbounded — заголовки, Golos Text — текст и интерфейс (fonts.css).
 *
 * Панель живёт на своих тёмных токенах из tokens.css; публичные страницы берут
 * цвета только из переменных ниже. Ширина от 360 px без горизонтальной
 * прокрутки: длинные слова и ссылки переносятся, сетки складываются в колонку.
 */

/* ---------- Токены ---------- */

body.public {
  --pub-paper: #efefea;   /* фон страницы */
  --pub-white: #ffffff;   /* светлые плитки и поля карточек */
  --pub-ink: #0d0d0d;     /* текст, тёмные плитки, главная кнопка */
  --pub-accent: #d4ff3a;  /* лайм: бейджи, акцентные плитки */
  --pub-lilac: #c9b8ff;   /* второй, мягкий акцент */
  --pub-text-2: #3a3a36;  /* второстепенный текст на светлом */
  --pub-text-3: #4b4b46;  /* подписи, подвал */
  --pub-line: #c8c8c0;    /* тонкие линии и контурные плитки */
  --pub-input: #8a8a82;   /* рамка поля ввода, 3:1 к фону */
  --pub-on-dark: #efefea; /* текст на тёмной плитке */
  --pub-on-dark-2: #c9c9c1;
  --pub-dark-chip: #262624;
  --pub-error: #b42318;
  --pub-error-soft: #fde8e6;
  --pub-success: #1d6b38;
  --pub-success-soft: #e3f4e8;

  --pub-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --pub-body: "Golos Text", "Inter", system-ui, sans-serif;

  --pub-radius-tile: 32px;
  --pub-radius-card: 28px;
  --pub-radius-field: 16px;
  --pub-gap: 12px;
}

/* ---------- Основа ---------- */

/* tokens.css задаёт панели тёмную схему; публичным страницам — светлая,
   чтобы флажки, полосы прокрутки и автозаполнение были светлыми. */
:root {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body.public {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--pub-paper);
  color: var(--pub-ink);
  font-family: var(--pub-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.public h1,
.public h2,
.public h3 {
  margin: 0;
  font-family: var(--pub-display);
  text-wrap: balance;
}

.public p,
.public figure {
  margin: 0;
}

.public a {
  color: var(--pub-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.public a:hover {
  color: var(--pub-text-2);
}

.public :focus-visible {
  outline: 2px solid var(--pub-ink);
  outline-offset: 3px;
  border-radius: 8px;
}

.public .tile--dark :focus-visible {
  outline-color: var(--pub-accent);
}

.public main:focus {
  outline: none;
}

.public .navigation-icon__glyph {
  flex: none;
  width: 20px;
  height: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.public-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.public-wrap--narrow {
  max-width: 860px;
}

.public-skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pub-ink);
  color: var(--pub-on-dark) !important;
  font-weight: 600;
  text-decoration: none;
}

.public-skip:focus {
  top: 12px;
}

/* ---------- Кнопки ---------- */

.public-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font-family: var(--pub-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.public .public-button--primary {
  background: var(--pub-ink);
  color: var(--pub-on-dark);
}

.public .public-button--primary:hover {
  background: #2a2a28;
  color: var(--pub-on-dark);
}

.public .public-button--primary:active {
  transform: translateY(1px);
}

/* Белая пилюля: «Войти» в шапке. */
.public .public-button--ghost {
  background: var(--pub-white);
  color: var(--pub-ink);
}

.public .public-button--ghost:hover {
  background: #f7f7f3;
  color: var(--pub-ink);
}

/* Пилюля цвета фона внутри белой плитки. */
.public .public-button--soft {
  padding: 0 24px;
  background: var(--pub-paper);
  color: var(--pub-ink);
  font-weight: 500;
}

.public .public-button--soft:hover {
  background: #e4e4de;
  color: var(--pub-ink);
}

.public-button--small {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.public-button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

/* ---------- Шапка ---------- */

.public-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(239, 239, 234, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.public::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 11;
  height: env(safe-area-inset-top, 0px);
  background: var(--pub-paper);
  content: "";
}

.public-header__inner {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 76px;
}

.public .public-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-right: auto;
  color: var(--pub-ink);
  font-family: var(--pub-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.public-nav {
  display: flex;
  gap: 8px;
}

.public .public-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--pub-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.public .public-nav a:hover {
  background: rgba(13, 13, 13, 0.06);
  color: var(--pub-ink);
}

/* ---------- Плитки ---------- */

.tile {
  min-width: 0;
  border-radius: var(--pub-radius-card);
  padding: 28px;
}

.tile--white {
  background: var(--pub-white);
}

.tile--accent {
  background: var(--pub-accent);
  color: var(--pub-ink);
}

.tile--lilac {
  background: var(--pub-lilac);
  color: var(--pub-ink);
}

.tile--dark {
  background: var(--pub-ink);
  color: var(--pub-on-dark);
}

.tile--outline {
  border: 1px solid var(--pub-line);
}

.tile--dark p {
  color: var(--pub-on-dark-2);
}

.tile--dark a {
  color: var(--pub-on-dark);
}

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.pill--accent {
  background: var(--pub-accent);
}

/* ---------- Первый экран ---------- */

.hero {
  padding: 8px 0 0;
}

.bento {
  display: grid;
  gap: var(--pub-gap);
}

.bento--hero {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.hero__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  grid-column: span 7;
  grid-row: span 2;
  min-height: 520px;
  padding: 40px;
  border-radius: var(--pub-radius-tile);
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__bottom {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__lead {
  max-width: 560px;
  color: var(--pub-text-2);
  font-size: 18px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tile--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--pub-radius-tile);
}

.tile--accent.tile--stat {
  grid-column: span 2;
}

.tile--lilac.tile--stat {
  grid-column: span 3;
}

.tile__label {
  font-size: 14px;
  font-weight: 600;
}

.tile__big {
  font-family: var(--pub-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.tile__title {
  font-family: var(--pub-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.tile__note {
  font-size: 14px;
}

/* Пример поста: тёмная плитка с настоящей версткой, а не картинкой. */
.post-sample {
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: span 5;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--pub-radius-tile);
}

.post-sample__head {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  color: #b5b5ad;
  font-size: 13px;
}

.post-sample__score {
  color: var(--pub-accent);
}

.tile--dark .post-sample__title {
  color: var(--pub-on-dark);
  font-family: var(--pub-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
}

.post-sample__text {
  font-size: 15px;
  line-height: 1.5;
}

.post-sample__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto !important;
  font-size: 13px;
}

.post-sample__tags span {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--pub-dark-chip);
  color: var(--pub-on-dark);
}

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

.section {
  padding: 96px 0 0;
}

.section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
}

.section__head--split h2 {
  max-width: 640px;
}

.section__eyebrow {
  color: var(--pub-text-3);
  font-size: 15px;
}

.section h2 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pub-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.step p {
  font-size: 15px;
  line-height: 1.5;
}

.tile--white.step p {
  color: var(--pub-text-2);
}

.step__num {
  font-family: var(--pub-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
}

.step__num--accent {
  color: var(--pub-accent);
}

/* Возможности: широкая плитка с рубриками и четыре узких. */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--pub-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: span 2;
  min-height: 220px;
}

.feature h3 {
  font-size: 22px;
}

.feature p {
  font-size: 15px;
  line-height: 1.5;
}

.tile--white.feature p {
  color: var(--pub-text-2);
}

.feature--wide {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  grid-column: span 4;
}

.feature__copy {
  display: flex;
  flex: 1 1 280px;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.chips {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--pub-ink);
  font-weight: 600;
}

.chip--accent {
  background: var(--pub-accent);
}

.chip--lilac {
  background: var(--pub-lilac);
}

.chip--paper {
  background: var(--pub-paper);
}

.chip--dashed {
  border: 1px dashed var(--pub-input);
  color: var(--pub-text-3);
  font-weight: 500;
}

/* Для кого */
.audience {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--pub-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.audience__item h3 {
  font-size: 18px;
}

.audience__item p {
  color: var(--pub-text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* Вопросы: заголовок слева, список справа. */
.faq-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--pub-gap);
}

.faq-layout > h2 {
  grid-column: span 4;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 8;
}

.faq__item {
  border-radius: 24px;
  background: var(--pub-white);
}

.faq__item summary {
  position: relative;
  min-height: 44px;
  padding: 22px 64px 22px 26px;
  border-radius: 24px;
  font-family: var(--pub-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pub-paper);
  content: "+";
  font-family: var(--pub-body);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.faq__item[open] summary::after {
  background: var(--pub-accent);
  transform: translateY(-50%) rotate(45deg);
}

.faq__item p {
  padding: 0 26px 22px;
  color: var(--pub-text-2);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------- Заявка ---------- */

.signup {
  padding-bottom: 96px;
}

.signup__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--pub-gap);
  align-items: stretch;
}

.signup__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: span 5;
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 40px;
  border-radius: var(--pub-radius-tile);
}

.signup__inner--closed .signup__copy {
  grid-column: 1 / -1;
  position: static;
}

.signup__copy > p {
  font-size: 17px;
}

.signup__points {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.signup__points li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.signup__card {
  grid-column: span 7;
  padding: 40px;
  border-radius: var(--pub-radius-tile);
}

.signup-form {
  display: grid;
  gap: 18px;
}

.signup-form[hidden],
.signup__done[hidden] {
  display: none;
}

.signup-form__required {
  color: var(--pub-text-3);
  font-size: 13px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.field__star {
  color: var(--pub-text-3);
}

.field__optional {
  margin-left: 4px;
  color: var(--pub-text-3);
  font-size: 13px;
  font-weight: 400;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border: 1px solid var(--pub-input);
  border-radius: var(--pub-radius-field);
  background: var(--pub-paper);
  color: var(--pub-ink);
  font-family: var(--pub-body);
  font-size: 16px; /* 16px: без автоматического увеличения на iOS */
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6b6b64;
  opacity: 1;
}

.field input[type="text"]:hover,
.field textarea:hover {
  border-color: var(--pub-ink);
}

.public .field input[type="text"]:focus-visible,
.public .field textarea:focus-visible {
  border-color: var(--pub-ink);
  outline: none;
  background: var(--pub-white);
  box-shadow: 0 0 0 3px var(--pub-accent);
}

.field--invalid input[type="text"],
.field--invalid textarea {
  border-color: var(--pub-error);
}

.field__hint {
  color: var(--pub-text-3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.field__error {
  display: flex;
  gap: 6px;
  color: var(--pub-error);
  font-size: 14px;
  font-weight: 500;
}

.field__error::before {
  content: "!";
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pub-error-soft);
  font-size: 12px;
  font-weight: 700;
}

.field__error[hidden] {
  display: none;
}

/* Выбор числа каналов: настоящие радиокнопки, оформленные как пилюли. */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.choice__option {
  position: relative;
  font-weight: 500 !important;
}

.choice__option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--pub-input);
  border-radius: 999px;
  background: var(--pub-paper);
  color: var(--pub-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.choice__option:hover span {
  border-color: var(--pub-ink);
}

.choice__option input:checked + span {
  border-color: var(--pub-ink);
  background: var(--pub-accent);
  font-weight: 600;
}

.choice__option input:focus-visible + span {
  outline: 2px solid var(--pub-ink);
  outline-offset: 3px;
}

/* Согласие */
.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--pub-ink);
  cursor: pointer;
}

.field .consent label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Ссылка на политику — под текстом согласия, вровень с ним. */
.consent__policy {
  padding-left: calc(22px + 12px);
  font-size: 14px;
}

/* Ловушка для роботов: вне экрана, но в разметке. */
.signup-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form__status {
  padding: 12px 16px;
  border-radius: var(--pub-radius-field);
  background: var(--pub-error-soft);
  color: var(--pub-error);
  font-size: 15px;
  font-weight: 500;
}

.signup-form__status[hidden] {
  display: none;
}

.signup-form__submit {
  justify-self: start;
  min-width: 220px;
}

.signup__done {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 8px 0;
}

.signup__done:focus {
  outline: none;
}

.signup__done-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--pub-accent);
  color: var(--pub-ink);
}

.signup__done-icon .navigation-icon__glyph {
  width: 28px;
  height: 28px;
}

.signup__done-title {
  font-family: var(--pub-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Подвал ---------- */

.public-footer {
  padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  color: var(--pub-text-3);
  font-size: 13px;
}

.public-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  /* Линия по ширине текста, а не по полям обёртки. */
  background:
    linear-gradient(var(--pub-line), var(--pub-line)) top center / calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px))) 1px no-repeat;
}

.public .public-brand--footer {
  margin-right: 0;
  font-size: 18px;
}

.public-footer a {
  color: var(--pub-text-3);
}

.public-footer a:hover {
  color: var(--pub-ink);
}

.operator-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}

.operator-line > span:not(:first-child),
.operator-line > a {
  white-space: nowrap;
}

/* ---------- Политика, согласие, условия ---------- */

.legal {
  padding-top: 48px;
  padding-bottom: 96px;
}

.legal h1 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.legal h2 {
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: var(--pub-text-2);
  overflow-wrap: anywhere;
}

.legal p + p {
  margin-top: 12px;
}

.legal ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding-left: 22px;
}

.legal li > ul {
  margin-bottom: 0;
}

.legal strong {
  color: var(--pub-ink);
}

.legal__text > p:first-child {
  margin-top: 12px;
  color: var(--pub-text-3);
  font-size: 15px;
}

.legal__text > p:first-child strong {
  color: inherit;
  font-weight: 600;
}

.legal ul + p {
  margin-top: 12px;
}

/* Страница «не найдено» для гостя: тот же спокойный макет, что у политики. */
.not-found {
  min-height: 50vh;
}

.not-found > p:not(.not-found__actions) {
  margin-top: 16px;
  color: var(--pub-text-2);
}

.not-found__actions {
  margin-top: 28px !important;
}

.fill {
  padding: 1px 6px;
  border: 1px dashed #a86b00;
  border-radius: 6px;
  background: #fff4d6;
  color: #6b4500;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.legal__back {
  margin-top: 48px !important;
}

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

@media (max-width: 1080px) {
  .hero__main {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }

  .tile--accent.tile--stat,
  .tile--lilac.tile--stat {
    grid-column: span 6;
    min-height: 200px;
  }

  .post-sample {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .steps,
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 0;
  }
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature,
  .feature--wide {
    grid-column: auto;
    min-height: 0;
  }

  .feature--wide {
    grid-column: 1 / -1;
  }

  .faq-layout > h2,
  .faq {
    grid-column: 1 / -1;
  }

  .faq-layout > h2 {
    margin-bottom: 16px;
  }

  .signup__copy,
  .signup__card {
    grid-column: 1 / -1;
  }

  .signup__copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .public-nav {
    display: none;
  }

  .public-header__inner {
    min-height: 64px;
  }

  .public .public-brand {
    font-size: 20px;
  }

  .section {
    padding-top: 64px;
  }

  .signup {
    padding-bottom: 64px;
  }

  .hero__main {
    gap: 18px;
    padding: 24px;
    border-radius: var(--pub-radius-card);
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.02;
  }

  .hero__lead {
    font-size: 16px;
  }

  .tile {
    padding: 20px;
    border-radius: 24px;
  }

  .tile--stat {
    min-height: 150px;
    padding: 18px;
  }

  .tile__big {
    font-size: 34px;
  }

  .tile__title {
    font-size: 17px;
  }

  .post-sample {
    padding: 20px;
  }

  .tile--dark .post-sample__title {
    font-size: 17px;
  }

  .steps,
  .features,
  .audience {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
  }

  .step__num {
    font-size: 24px;
  }

  .step h3 {
    flex: 1 1 0;
    min-width: 0;
    font-size: 16px;
  }

  .step p {
    flex-basis: 100%;
    font-size: 14px;
    line-height: 1.45;
  }

  .feature h3 {
    font-size: 18px;
  }

  .faq__item summary {
    padding: 18px 56px 18px 20px;
    font-size: 15px;
  }

  .faq__item summary::after {
    right: 16px;
  }

  .faq__item p {
    padding: 0 20px 18px;
    font-size: 14px;
  }

  .signup__copy,
  .signup__card {
    padding: 24px;
    border-radius: var(--pub-radius-card);
  }
}

@media (max-width: 480px) {
  .hero__actions .public-button,
  .signup-form__submit {
    width: 100%;
  }

  .public-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .public *,
  .public *::before,
  .public *::after {
    transition: none !important;
  }
}
