/* SayMo inherits the current SKARR shell, type and page gutters. */

/* Alexa, 19.10.2026: SayMo in the type of the home and the service pages —
   regular headings in sentence case, light explanatory copy, the system's
   muted ink. Same values as the heading system in css/lab.css (.lab--service);
   kept here, as /apps keeps its own in css/apps.css, so the page ships alone.
   Crumbs, edition tags, chips, buttons and the island keep their own type. */
.lab--saymo { --home-heading-mute: #92989d; --ink-dim: #b6babd; }
.lab--saymo :is(.sp-title, .lab-h2, .sm-ed-name) {
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.035em;
  line-height: 1.12;
}
.lab--saymo .sp-title { font-size: clamp(48px, 6.25vw, 96px); line-height: 1.08; }
.lab--saymo .lab-h2 { font-size: clamp(34px, 3.2vw, 48px); }
/* Edition name — the level of a service card title (.spc-title), not bold */
.lab--saymo .sm-ed-name { font-size: 24px; line-height: 28px; }
.lab--saymo :is(
  .sp-explain, .sm-hint, .sm-list li, .sm-ed-note, .sm-visor-shot figcaption,
  .sm-clip figcaption, .sm-get-note, .sm-download-meta, .sm-beta-note
) { font-weight: 300; }
@media (max-width: 719.98px) {
  .lab--saymo .sp-title { font-size: clamp(40px, 11vw, 56px); }
  .lab--saymo .lab-h2 { font-size: 32px; }
}

.sm {
  --sm-accent: #ff4f2a;
  --sm-card: var(--panel);
  --sm-well: var(--ground);
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-bottom: 32px;
}
.sm > :not(.sm-intro) { margin-inline: var(--g); }
.sm ::selection { background: var(--ink); color: var(--ground); }
.sm a { text-underline-offset: 4px; }
.sm button, .sm button * { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.sm button { white-space: nowrap; }

/* ---------- Сцена: рабочий стол с живым островком ---------- */

.sm-demo { display: flex; flex-direction: column; gap: 18px; }

/* Той же породы, что карточка приложения: плитка отбита на 4, радиусы 20/16 */
.sm-stagecard {
  padding: 4px;
  background: var(--sm-card);
  border-radius: 20px;
}

.sm-menubar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0.02em;
  color: rgba(234, 234, 234, 0.78);
}
.sm-apple { font-size: 13px; }
.sm-appname { font-weight: 600; color: var(--light); }
.sm-sp { flex: 1; }
.sm-clock { color: rgba(234, 234, 234, 0.55); }
@media (max-width: 768px) {
  .sm-menubar > span:nth-child(3),
  .sm-menubar > span:nth-child(4),
  .sm-menubar > span:nth-child(5) { display: none; }
}

/* Окно острова: iframe живёт в родном размере 1280×480 и ужимается
   transform-ом целиком — так вёрстка островка не перетекает, а клики
   и наведение продолжают попадать (координаты масштабирует браузер). */
.sm-stage {
  position: relative;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--sm-well);
}
.sm-stage iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 480px;
  border: 0;
  transform-origin: 0 0;
}

/* ---------- Управление сценой ---------- */

.sm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 0 2px;
}

.sm-walls { display: flex; align-items: center; gap: 8px; }
.sm-wall {
  width: 44px;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 10px;
  background-clip: content-box !important;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(234, 234, 234, 0.25);
  transition: transform 220ms var(--lab-ease),
              box-shadow 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sm-wall:hover { box-shadow: 0 0 0 2px var(--ink); }
.sm-wall.on { box-shadow: 0 0 0 2px var(--sm-accent); }
.sm-wall:focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 3px; }

/* Чипсы состояний и переключатель изданий — тот же закон, что у чипсов
   сайта (css/95-chips.css): капсула заливки въезжает слева направо и
   уезжает тем же путём; вход 300 мс, выход 240 мс, та же кривая. */
.sm-chip, .sm-seg {
  --chip-in: 300ms;
  --chip-out: 240ms;
  --chip-ease: cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(217, 217, 217, 0.22);
  border-radius: 999px;
  background: transparent;
  font: 600 12px/14px Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: color var(--chip-out) linear,
              border-color var(--chip-out) var(--chip-ease),
              opacity 220ms ease;
}
.sm-chip::after, .sm-seg::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: var(--ww);
  clip-path: inset(0 100% 0 0 round 999px);
  transition: clip-path var(--chip-out) var(--chip-ease);
}
.sm-chip:hover::after, .sm-chip.on::after,
.sm-seg:hover::after, .sm-seg.on::after {
  clip-path: inset(0 round 999px);
  transition-duration: var(--chip-in);
}
.sm-chip:hover, .sm-chip.on,
.sm-seg:hover, .sm-seg.on {
  color: var(--dark);
  border-color: var(--ww);
}
.sm-chip:focus-visible, .sm-seg:focus-visible {
  outline: 2px solid var(--sm-accent);
  outline-offset: 3px;
}

/* Чипсы Pro-возможностей в издании Lite стоят на месте, но не зовут */
.sm-chip[disabled] {
  opacity: 0.35;
  pointer-events: none;
}

.sm-states { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.sm-editions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(217, 217, 217, 0.22);
  border-radius: 999px;
}
.sm-editions .sm-seg { border-color: transparent; }

.sm-hint {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 22px;
  color: var(--text-secondary);
}

/* ---------- Издания ---------- */

.sm-h2 { margin: 0 0 24px; }

.sm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sm-ed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
  background: var(--sm-card);
  border-radius: 20px;
}
.sm-ed--pro { box-shadow: inset 0 0 0 1px rgba(255, 79, 42, 0.28); }

.sm-ed-head { display: flex; flex-direction: column; gap: 22px; }
.sm-ed-name {
  margin: 0;
  font-size: 22px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: -0.44px;
  color: var(--light);
}
.sm-ed-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.sm-ed-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sm-accent);
}

.sm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sm-list li {
  position: relative;
  padding-left: 22px;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -0.01em;
  color: var(--text-dim);
}
.sm-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
}
.sm-ed--pro .sm-list li::before { background: var(--sm-accent); }

.sm-ed-note {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 217, 217, 0.14);
  font-size: 15px;
  line-height: 23px;
  color: var(--ink-dim);
}

/* ---------- Козырёк Pro: подтверждения Claude Code и Codex ----------
   Кадры — настоящий вид панели, отрисованный офскрин из исходника Pro
   (Tools/claude-approvals-render), английский, без клиентских имён.
   Панель висит от верхней кромки экрана, поверх строки меню. */

.sm-visor-shot {
  margin: 0;
  padding: 4px;
  background: var(--sm-card);
  border-radius: 20px;
}
.sm-visor-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 24px 56px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(120deg, #3f6fb5 0%, #7fa8d9 45%, #cddcec 100%);
  container: sm-visor / inline-size;
}
.sm-visor-bar {
  position: absolute;
  inset: 0 0 auto;
  padding-block: 5px;
  background: rgba(14, 18, 28, 0.26);
  color: rgba(255, 255, 255, 0.9);
}
.sm-visor-bar .sm-clock { color: rgba(255, 255, 255, 0.82); }
.sm-visor-stage img {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1144px;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(10, 16, 32, 0.35));
}
.sm-visor-shot figcaption {
  max-width: 75ch;
  padding: 12px 14px 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-dim);
}

/* ---------- Клипы ---------- */

.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sm-clip {
  margin: 0;
  padding: 4px;
  background: var(--sm-card);
  border-radius: 20px;
}
.sm-clip video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--sm-well);
}
.sm-clip figcaption {
  padding: 12px 14px 10px;
  font-size: 14px;
  line-height: 18px;
  color: var(--ink-dim);
}

/* ---------- Загрузка ---------- */

.sm-get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--sm-card);
  border-radius: 20px;
}
.sm-get .sm-h2 { margin-bottom: 10px; }
.sm-get-note {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-dim);
}

.sm-foot { margin-block: 0; }
.sm-foot .sm-back { display: inline-flex; align-items: center; min-height: 44px; }
.sm-back {
  color: inherit;
  text-decoration: none;
  transition: color 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sm-back:hover, .sm-back:focus-visible { color: var(--light); }
.sm-back:focus-visible { outline: 2px solid var(--sm-accent); outline-offset: 3px; }

/* ---------- Брейкпоинты ---------- */

@media (max-width: 900px) {
  .sm-cols, .sm-grid { grid-template-columns: 1fr; }
}
/* Две карточки — только там, где по бокам остаётся строка меню; уже —
   кадр с одной карточкой. Надписи строки меню прячутся, когда им нет
   места рядом с панелью, а не режутся её краем. */
@media (max-width: 1359.98px) {
  .sm-visor-stage img { max-width: 580px; }
}
/* Запрос контейнера меряет ширину без полей сцены */
@container sm-visor (max-width: 679.98px) {
  .sm-visor-bar > span { visibility: hidden; }
}
@media (min-width: 1360px) and (max-width: 1639.98px) {
  .sm-visor-bar > span:nth-child(n+3):nth-child(-n+5) { visibility: hidden; }
}
@media (max-width: 719.98px) {
  .sm { gap: 32px; padding-bottom: 24px; }
  .sm-controls { gap: 12px; }
  .sm-ed, .sm-get { padding: 20px 16px; }
  .sm-list li { font-size: 16px; line-height: 24px; }
  .sm-get { align-items: flex-start; }
  .sm-visor-stage { padding: 0 12px 32px; }
}
@media (max-width: 430px) {
  .sm-chip, .sm-seg { padding-inline: 12px; font-size: 11px; }
  .sm-hint { font-size: 14px; line-height: 22px; }
  .sm-download { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-wall, .sm-chip, .sm-seg, .sm-chip::after, .sm-seg::after { transition: none; }
}
@media (forced-colors: active) {
  .sm-chip::after, .sm-seg::after { display: none; }
  .sm-chip.on, .sm-seg.on, .sm-wall.on { outline: 2px solid Highlight; }
}
.sm-get-copy { flex: 1 1 340px; max-width: 64ch; }
.sm-download-group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 100%; }
.sm-download { max-width: 100%; }
.sm-download-label { user-select: none; -webkit-user-select: none; }
.sm-download-meta { margin: 0; font: 400 14px/22px Inter, sans-serif; color: var(--ink-dim); }
.sm-beta-note { margin-block: -24px 0; max-width: 75ch; font: 400 15px/23px Inter, sans-serif; color: var(--ink-dim); }
#saymo-pro, #saymo-notch, #download { scroll-margin-top: var(--clear); }
