/* Блоки новых SEO-страниц: варианты по тону, кнопки установки, веб-инструменты. Токены из pages.v1.css */
.tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 8px;
}
.tone-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.tone-card h3 {
  margin: 0 0 12px;
  color: var(--leaf-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tone-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tone-card li {
  padding: 10px 12px;
  border-radius: 12px 12px 12px 4px;
  background: var(--soft);
  font-size: 16px;
  line-height: 1.45;
}
.dont-list li::marker {
  color: #c2410c;
}
.store-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.article-cta .store-cta .action-link {
  margin-top: 0;
}
.article-cta .store-cta .action-link.secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.article-cta .store-cta .action-link.secondary:hover {
  border-color: var(--leaf-ink);
  background: var(--soft);
}
.store-meta {
  margin-top: 12px;
  font-size: 14px;
}
/* Веб-инструмент */
.tool {
  margin-top: 32px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}
.tool label,
.tool legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}
.tool textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.tool textarea:focus-visible,
.tone-chips input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.tool fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}
.tone-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tone-chips label {
  margin: 0;
  font-weight: 400;
}
.tone-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tone-chips span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}
.tone-chips input:checked + span {
  border-color: var(--leaf-ink);
  background: var(--memory);
  color: var(--leaf-ink);
  font-weight: 600;
}
.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}
.tool button[type="submit"] {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--btn);
  color: var(--btn-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tool button[type="submit"]:hover {
  background: var(--btn-hover);
}
.tool button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.tool-status {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
.tool-results {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.tool-results:empty {
  display: none;
}
.tool-results li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  line-height: 1.5;
}
.tool-results p {
  flex: 1;
  margin: 0;
}
.tool-results button {
  flex: none;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.tool-after {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.tool-after[hidden] {
  display: none;
}
.tool-privacy {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14px;
}
@media (max-width: 640px) {
  .tool-results li {
    flex-direction: column;
  }
}
.quick-cta {
  margin-top: 12px;
}
.quick-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--leaf-ink);
  font-weight: 600;
  text-decoration: none;
}
.quick-cta a:hover span {
  text-decoration: underline;
}
.quick-cta .ui-icon {
  flex: none;
  width: 20px;
  height: 20px;
}
/* На компьютере ссылка на App Store под заголовком не нужна: там ведём на Mac и Windows */
@media (hover: hover) and (pointer: fine) {
  .quick-cta {
    display: none;
  }
}
/* Промо-блок: живое демо Троеточия и кнопки скачивания */
.promo {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  grid-template-areas: "title title" "stage copy";
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin: 32px 0 40px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, var(--memory), var(--soft));
}
.promo-desk {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.promo-title { grid-area: title; }
.promo-stage { grid-area: stage; }
.promo-copy { grid-area: copy; }
.promo .promo-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
}
.promo-copy p {
  margin: 0 0 16px;
  color: var(--ink-2);
}
.promo-points {
  display: grid;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.promo-points li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--leaf-ink);
  font-weight: 700;
}
.promo [data-for] { display: none; }
.promo-phone [data-for="phone"],
.promo-desk [data-for="desk"] { display: inline; }
.promo-phone p[data-for="phone"],
.promo-desk p[data-for="desk"] { display: block; }
.promo-phone .desk,
.promo-desk .phone { display: none; }
.promo-actions {
  margin-top: 0;
}
.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid var(--btn);
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}
.promo-btn:hover {
  background: var(--btn-hover);
  color: var(--btn-text);
}
.promo-btn .ui-icon { width: 22px; height: 22px; }
.promo-btn.secondary {
  min-height: 44px;
  padding: 8px 14px;
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.promo-btn.secondary:hover { border-color: var(--leaf-ink); background: var(--soft); }
.promo-meta {
  margin-top: 12px !important;
  font-size: 14px;
}
/* Телефон */
.phone {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  padding: 10px;
  border-radius: 40px;
  background: #1c1f1d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.ph-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 470px;
  overflow: hidden;
  border-radius: 31px;
  background: #fff;
  color: #111512;
  font-size: 14px;
  line-height: 1.35;
}
.ph-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 44px 14px 10px;
}
.bubble {
  max-width: 85%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.35;
}
.bubble.them { align-self: flex-start; background: #eef0ee; border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: #1fa64a; color: #fff; border-bottom-right-radius: 5px; }
.ph-field {
  margin: 0 12px 8px;
  padding: 9px 12px;
  min-height: 20px;
  border-radius: 18px;
  background: #f1f2f1;
}
.ph-kb {
  padding: 8px 8px 14px;
  border-radius: 18px 18px 0 0;
  background: #e4e7e4;
}
.ph-reply {
  margin: 0 4px 6px !important;
  overflow: hidden;
  color: #5b625d !important;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ph-tones { display: flex; gap: 6px; margin-bottom: 6px; }
.ph-tones span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}
.ph-tones .on { background: #1fa64a; color: #fff; font-weight: 600; }
.ph-vars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ph-vars li {
  padding: 9px 30px 9px 12px;
  border-radius: 12px;
  background: #fff;
  position: relative;
  font-size: 13px;
}
.ph-vars li::after { content: "↖"; position: absolute; right: 10px; color: #1fa64a; font-weight: 700; }
/* Окно чата на компьютере */
.desk {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #111512;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
.desk-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f1f2f1;
  font-size: 12px;
  color: #5b625d;
}
.desk-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d9d5; }
.desk-bar i:nth-child(1) { background: #ff5f57; }
.desk-bar i:nth-child(2) { background: #febc2e; }
.desk-bar i:nth-child(3) { background: #28c840; }
.desk-bar span { margin-left: 8px; }
.desk-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 170px;
  padding: 18px 16px;
  background: #e7efe9;
}
.desk-field {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 24px;
  padding: 12px 14px;
  border-top: 1px solid #e3e6e3;
  font-size: 14px;
}
.desk-typed { color: #111512; }
.desk-ghost { color: #9aa29c; }
.desk-field kbd {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid #c9cec9;
  border-bottom-width: 3px;
  border-radius: 6px;
  background: #fff;
  color: #3d443f;
  font: 600 12px var(--sans);
  transition: transform 0.12s, border-bottom-width 0.12s;
}
/* Анимация: JS ставит классы шагов, без JS остаётся .final */
.promo .bubble.me,
.promo .ph-kb,
.promo .ph-vars li,
.promo .ph-text { transition: opacity 0.35s, transform 0.35s; }
.promo:not(.final) .bubble.me { opacity: 0; transform: translateY(8px); }
.promo:not(.final):not(.st-kb) .ph-kb { transform: translateY(100%); }
.promo:not(.final) .ph-vars li { opacity: 0; transform: translateY(6px); }
.promo.st-v1 .ph-vars li:nth-child(1),
.promo.st-v2 .ph-vars li:nth-child(-n + 2),
.promo.st-v3 .ph-vars li { opacity: 1; transform: none; }
.promo.st-pick .ph-vars li:first-child { outline: 2px solid #1fa64a; }
.promo:not(.final):not(.st-insert) .ph-text { opacity: 0; }
.promo.st-sent .bubble.me { opacity: 1; transform: none; }
.promo.st-sent .ph-text { opacity: 0; }
.promo.st-tab kbd { transform: translateY(2px); border-bottom-width: 1px; background: #e7f6ec; }
.promo.final .ph-text { opacity: 0; }
.promo.final .desk-ghost { color: #9aa29c; }
.ph-caret {
  display: inline-block;
  width: 2px;
  height: 16px;
  margin-left: 1px;
  vertical-align: -3px;
  background: #1fa64a;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 760px) {
  .promo,
  .promo-desk { grid-template-columns: 1fr; grid-template-areas: "title" "stage" "copy"; gap: 20px; }
  .promo-copy > p:not(.promo-meta) { display: none !important; }
  .ph-screen { height: 430px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-caret { animation: none; }
}
