/* ═══════════════════════════════════════════════════════════════════
   start.css — посадочная /start.html (трафик из bio, волна 3, 07.09.2026).
   Один экран, mobile-first. Загружается ТОЛЬКО start.html вместе с
   _tokens.css и fonts.css — app-бандл (206 КБ) сюда не подключаем, поэтому
   нужные .tsr-* (дроп-зона, спиннер, ошибка) продублированы здесь компактно.
   Токены: paper #F4F6EE, зелёный #2D5F3F / #1A3D2A, моно-кикеры, без градиентов.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* iPhone: чёлка и home-индикатор */
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--accent-soft); }
img { max-width: 100%; height: auto; display: block; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }

.st-shell { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── шапка ── */
.st-head { border-bottom: var(--bar) solid var(--rule-soft); }
.st-head .st-shell { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.st-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.st-brand:hover { text-decoration: none; }
.st-brand img { width: 26px; height: 26px; flex: none; }
.st-brand b { font-weight: 800; }
.st-brand span { color: var(--accent); }
.st-head-note { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }

/* ── сетка: на телефоне колонка, на десктопе текст слева + плашка справа ── */
.st-main { display: grid; grid-template-columns: 1fr; gap: 18px; padding: 14px 0 22px; }
.st-intro { min-width: 0; }
.st-kicker { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .06em; color: var(--accent); margin: 0 0 8px; }
.st-h1 { margin: 0; font-size: clamp(22px, 5.9vw, 40px); line-height: 1.16; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); text-wrap: balance; }
.st-h1 em { font-style: normal; color: var(--accent); font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; letter-spacing: -0.02em; }

/* ── плашка загрузки резюме — главное действие ── */
.st-plate { background: #fff; border: var(--bar) solid var(--rule-soft); border-radius: 18px; padding: 16px; box-shadow: 0 14px 34px -22px rgba(26, 61, 42, .35); }
.st-plate-title { margin: 0 0 12px; font-size: 15.5px; line-height: 1.35; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.st-plate-title small { display: block; margin-top: 3px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

/* .tsr-* — компактная копия из _hero.css (там она в бандле) */
.tsr-state[hidden] { display: none; }
.tsr-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 18px 14px; border: 2px dashed var(--accent-rule); border-radius: 14px;
  background: var(--accent-tint-2); color: var(--muted); cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s;
}
.tsr-drop:hover, .tsr-drop:focus-visible, .tsr-drop.drag { border-color: var(--accent); background: var(--accent-tint); color: var(--ink); outline: none; }
.tsr-drop-icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 2px; }
.tsr-drop-title { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.tsr-drop-hint { margin: 0; font-size: 12px; color: var(--muted); }
.tsr-consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-2); cursor: pointer; text-align: left; }
.tsr-consent input { margin: 2px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--accent); }
.tsr-consent a { text-decoration: underline; text-decoration-color: var(--accent-soft); }
.tsr-privacy { margin: 8px 0 0; font-size: 11px; line-height: 1.45; color: var(--muted); }
.tsr-state[data-st="loading"] { text-align: center; padding: 22px 0 18px; }
.tsr-spinner { width: 34px; height: 34px; margin: 0 auto 12px; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: tsrSpin .8s linear infinite; }
@keyframes tsrSpin { to { transform: rotate(360deg); } }
.tsr-loading-text { margin: 0; font-size: 14px; color: var(--muted); }
.tsr-state[data-st="error"] { text-align: center; padding: 8px 0 4px; }
.tsr-error-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.tsr-retry { padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: 10px; cursor: pointer; }
.tsr-retry:hover { background: var(--accent-soft); }

/* компактный результат (seo-teaser.js, opts.compact) */
.tsr-mini { text-align: left; }
.tsr-mini-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.tsr-ring { position: relative; width: 84px; height: 84px; flex: none; }
.tsr-ring svg { width: 84px; height: 84px; display: block; }
.tsr-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--accent-deep); }
.tsr-ring-num b { font-size: 26px; font-weight: 700; line-height: 1; }
.tsr-ring-num small { font-size: 9.5px; color: var(--ink-2); margin-top: 2px; }
.tsr-mini-title { font-size: 16px; font-weight: 800; color: var(--accent-deep); letter-spacing: -0.01em; }
.tsr-mini-title span { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tsr-mini-sum { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tsr-mini-vacs { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; background: var(--accent-tint-2); border: 1px solid var(--rule-soft); border-radius: 10px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.tsr-mini-vacs b { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--accent-deep); }
.tsr-mini-vacs svg { flex: none; color: var(--accent); }
.tsr-mini-cta { display: block; width: 100%; padding: 14px 18px; font: inherit; font-size: 15.5px; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 12px; cursor: pointer; transition: background .15s, transform .15s; }
.tsr-mini-cta:hover { background: var(--accent-deep); transform: translateY(-1px); }
.tsr-mini-sub { margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); text-align: center; }

/* ── что откроется после регистрации ── */
.st-gets { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.st-gets li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.st-gets svg { flex: none; width: 18px; height: 18px; color: var(--accent); }
.st-gets-label { display: block; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }

/* ── отзывы ── */
.st-reviews { display: grid; grid-template-columns: 1fr; gap: 10px; }
.st-review { margin: 0; background: #fff; border: var(--bar) solid var(--rule-soft); border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.st-review a { display: block; line-height: 0; }
.st-review img { width: 96px; border-radius: 8px; border: 1px solid var(--rule-soft); aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--accent-tint-2); }
.st-review blockquote { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.st-reviews-cap { margin: 6px 0 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); }

/* ── вторичная ссылка ── */
.st-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; color: var(--accent-deep); padding: 10px 0; }

/* ── подвал ── */
.st-foot { border-top: var(--bar) solid var(--rule-soft); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.st-foot p { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.st-foot a { color: var(--muted); }

/* ── десктоп: две колонки, плашка справа и «липкая» ── */
@media (min-width: 900px) {
  .st-head .st-shell { height: 60px; }
  .st-brand { font-size: 19px; } .st-brand img { width: 30px; height: 30px; }
  .st-main { grid-template-columns: 1.05fr .95fr; column-gap: 56px; row-gap: 26px; padding: 44px 0 56px; align-items: start; }
  .st-intro, .st-gets-wrap, .st-reviews-wrap, .st-more-wrap { grid-column: 1; }
  .st-plate { grid-column: 2; grid-row: 1 / span 4; position: sticky; top: 24px; padding: 24px; border-radius: 22px; }
  .st-plate-title { font-size: 18px; margin-bottom: 16px; }
  .tsr-drop { padding: 30px 18px; gap: 6px; }
  .tsr-drop-icon { width: 36px; height: 36px; }
  .st-kicker { font-size: 12px; margin-bottom: 14px; }
  .st-h1 { max-width: 17ch; }
  .st-gets li { font-size: 15px; }
  .st-reviews { grid-template-columns: 1fr 1fr; gap: 14px; }
  .st-review { grid-template-columns: 1fr; padding: 12px; }
  .st-review img { width: 100%; aspect-ratio: 16 / 10; }
  .st-review blockquote { font-size: 13.5px; }
}

/* ── очень узкие телефоны (SE): чуть плотнее, чтобы плашка осталась в первом экране ── */
@media (max-width: 360px) {
  .st-main { gap: 14px; padding-top: 10px; }
  .st-h1 { font-size: 20px; }
  .tsr-drop { padding: 14px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tsr-spinner { animation-duration: 1.6s; }
  .tsr-mini-cta:hover { transform: none; }
}
