/* Цвета взяты из приложения: vesper/ui/theme.py */
:root {
  --night: #0f1117;
  --sidebar: #0b0d12;
  --surface: #161922;
  --surface-2: #1d2130;
  --surface-3: #262b3d;
  --border: #242a3a;
  --border-2: #343b52;
  --text: #e9ebf1;
  --muted: #8c93a8;
  --accent: #8b7cff;
  --accent-2: #6a8dff;
  --accent-soft: rgba(139, 124, 255, 0.16);
  --green: #4ad6a0;
  --red: #ff6b81;
  --gold: #e8c37a;
  --grad: linear-gradient(90deg, var(--accent), var(--accent-2));

  --font: "Geologica", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --sharp: "SHRP" 100;
  --soft: "SHRP" 0;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 14px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 350;
  line-height: 1.6;
  font-variation-settings: var(--soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #b3a9ff; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; font-weight: 650; font-variation-settings: var(--sharp); }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* текст для поисковиков и экранных дикторов, на экране не виден */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.skip:focus { top: 12px; }

.h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section { padding-block: clamp(44px, 5.5vw, 80px); }

/* --- шапка */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(36, 42, 58, 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  font-variation-settings: var(--sharp);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav-links a:hover { color: var(--text); }

.nav-gh {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: var(--muted);
}
.nav-gh:hover { color: var(--text); background: var(--surface-2); }

.nav-dl {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #c9c1ff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.nav-dl:hover { background: rgba(139, 124, 255, 0.26); color: #fff; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px);
  /* вечернее небо: чуть фиолетовее сверху, к основному фону ниже */
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(139, 124, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #15162b 0%, var(--night) 78%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  font-size: clamp(4rem, 2.2rem + 6.4vw, 7.75rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.wordmark-logo {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  filter: drop-shadow(0 10px 30px rgba(139, 124, 255, 0.45));
}

.tagline {
  display: block;
  margin-top: 22px;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: var(--sharp);
}

.lead {
  margin-top: 14px;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.download { margin-top: 34px; }

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-text { display: flex; flex-direction: column; line-height: 1.25; }
.btn-label { font-size: 17px; font-weight: 600; font-variation-settings: var(--sharp); }
.btn-sub { font-size: 13.5px; font-variant-numeric: tabular-nums; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 118, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  color: #fff;
  background: linear-gradient(90deg, #9d90ff, #82a0ff);
  box-shadow: 0 14px 36px -8px rgba(124, 118, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary .btn-sub { color: rgba(255, 255, 255, 0.78); }
.btn-icon { flex: none; }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text); }
.btn-secondary .btn-sub { color: var(--muted); }

.download-meta {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.not-windows {
  margin-top: 10px;
  color: var(--gold);
  font-size: 14.5px;
}

.smartscreen {
  display: flex;
  gap: 10px;
  max-width: 34em;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(29, 33, 48, 0.6);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.smartscreen svg { flex: none; margin-top: 1px; color: var(--accent); }
.smartscreen b { color: var(--text); font-weight: 500; }

.hero-shot {
  position: relative;
  width: 820px;
  max-width: none;
}
.hero-shot img {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 70px rgba(139, 124, 255, 0.18));
}

/* --- демо распределения */

.idea-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.idea-copy p:not(.idea-hint) {
  margin-top: 18px;
  max-width: 30em;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}
.idea-copy p:first-of-type { margin-top: 24px; }

.idea-hint {
  margin-top: 28px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 15px;
  max-width: 30em;
}

.demo {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.demo-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.demo-stock {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 4px 10px;
}
.demo-stock label { color: var(--muted); font-size: 15px; }
.demo-stock output {
  justify-self: start;
  font-size: 24px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  font-variation-settings: var(--sharp);
}
.demo-stock input { grid-column: 1 / -1; }

.demo-reserve {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 14px;
  transition: opacity 0.2s ease;
}
.demo.no-alchemy .demo-reserve { opacity: 0.45; }

/* ползунок */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 45%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--surface-3) var(--fill) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--surface-3) var(--fill) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.35);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent); }

/* переключатель как в программе */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: start;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: var(--surface-3);
  transition: background-color 0.2s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.switch input:checked + .switch-track { background: var(--accent); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }

.demo-list {
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}

.demo-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 32px;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.row-n {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.row-top { display: flex; align-items: baseline; gap: 10px; }
.row-name { font-weight: 550; }
.row-need { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

.bar {
  display: flex;
  height: 8px;
  margin-top: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-3);
}
.bar i { display: block; height: 100%; transition: width 0.35s cubic-bezier(0.3, 0.7, 0.2, 1); }
.bar-stock { background: var(--grad); }
.bar-craft {
  background: repeating-linear-gradient(-45deg, #8b7cff 0 4px, #5d52b8 4px 8px);
}
.bar-miss {
  background: repeating-linear-gradient(-45deg, rgba(255, 107, 129, 0.55) 0 3px, rgba(255, 107, 129, 0.18) 3px 7px);
}
.demo-row.is-done .bar-stock { background: var(--green); }

.row-status {
  display: flex;
  gap: 8px;
  min-width: 96px;
  justify-content: flex-end;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ok { color: var(--green); }
.craft { color: #a99eff; }
.miss { color: var(--red); }

.row-up {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.row-up:hover { background: var(--surface-3); color: var(--text); }
.row-up[hidden] { display: grid; visibility: hidden; }

.demo-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  padding-top: 16px;
}

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }

.demo-sum { display: flex; gap: 22px; margin: 0; }
.demo-sum div { display: flex; flex-direction: column; align-items: flex-end; }
.demo-sum dt { color: var(--muted); font-size: 13px; }
.demo-sum dd {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  font-variation-settings: var(--sharp);
}
#demo-craft { color: #a99eff; }
#demo-farm { color: var(--red); }
#demo-farm.is-zero { color: var(--green); }

/* --- возможности */

.features {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr) 300px;
  gap: 12px 48px;
  align-items: center;
  padding-block: 30px;
  border-top: 1px solid var(--border);
}
.feature:last-child { border-bottom: 1px solid var(--border); }

.feature h3 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.feature p {
  max-width: 34em;
  color: var(--muted);
  text-wrap: pretty;
}

.feature-visual { display: flex; justify-content: flex-end; }

.mini-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 300px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.mini-title { font-weight: 600; font-size: 15px; }
.mini-meta { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.mini-bar i { display: block; height: 100%; background: var(--grad); }

.chain { display: flex; align-items: center; gap: 10px; }
.chain-arrow { color: var(--muted); font-size: 18px; }

/* фоны редкости как у иконок в программе (RARITY_BG) */
.gem {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 12px;
}
.gem svg { width: 30px; height: 30px; fill: rgba(255, 255, 255, 0.9); }
.gem b {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--night);
  box-shadow: inset 0 0 0 1px var(--border-2);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.gem-2 { background: linear-gradient(180deg, #3d6a5f, #5c9a84); }
.gem-3 { background: linear-gradient(180deg, #3f5d8f, #5d8dcb); }
.gem-4 { background: linear-gradient(180deg, #5d4a8a, #a07ecb); }

.beta-list { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.beta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  font-size: 15px;
  font-weight: 500;
}
.badge {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.import-flow { display: flex; align-items: center; gap: 12px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.file-chip svg { color: var(--muted); }

.week {
  display: grid;
  grid-template-columns: repeat(7, 30px);
  gap: 6px;
  justify-items: center;
}
.week span { color: var(--muted); font-size: 12.5px; }
.week i {
  width: 30px;
  height: 14px;
  border-radius: 4px;
  background: var(--surface-2);
}
.week i.on { background: var(--grad); }

/* --- как это выглядит: видео с шагами */

.tour-lead {
  max-width: 40em;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  text-wrap: pretty;
}

.tour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px clamp(28px, 3.5vw, 48px);
  align-items: center;
  margin-top: clamp(28px, 3vw, 40px);
}

.tour-screen { position: relative; }

.tour-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--sidebar);
  box-shadow: 0 0 0 1px var(--border), 0 40px 70px -30px rgba(0, 0, 0, 0.7), 0 0 80px rgba(139, 124, 255, 0.12);
}
.tour.is-ready .tour-video { cursor: pointer; }

.tour-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 13, 18, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--border-2);
  color: var(--text);
  cursor: pointer;
}
.tour-play:hover { background: var(--accent); }
.tour-play .icon-play { margin-left: 2px; }
.tour-play .icon-play, .tour.is-paused .tour-play .icon-pause { display: none; }
.tour.is-paused .tour-play .icon-play { display: block; }

.tour-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tour;
}

.tour-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 12px;
  width: 100%;
  padding: 14px 16px 16px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  counter-increment: tour;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.tour-step::before {
  content: counter(tour);
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 650;
  font-variation-settings: var(--sharp);
}
.tour-step:hover { color: var(--text); background: rgba(29, 33, 48, 0.55); }
.tour-step[aria-current="step"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
}
.tour-step[aria-current="step"]::before { background: var(--accent-soft); color: #c9c1ff; }

.tour-title { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.tour-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

.tour-bar {
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.tour-bar i { display: block; width: 0; height: 100%; background: var(--grad); }

/* --- как начать */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 3vw, 48px);
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 56px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #c9c1ff;
  font-weight: 650;
  font-variation-settings: var(--sharp);
}
/* линия между шагами */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 52px;
  right: -14px;
  top: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--border);
}
.steps h3 { font-size: 20px; line-height: 1.3; }
.steps p { max-width: 30em; margin-top: 8px; color: var(--muted); text-wrap: pretty; }

/* --- вопросы */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 88px);
  align-items: start;
}

.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 19px;
  font-weight: 550;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq summary:hover { color: #fff; }
.faq details p {
  max-width: 40em;
  padding-bottom: 22px;
  color: var(--muted);
  text-wrap: pretty;
}

/* --- как помочь */

.help { background: linear-gradient(180deg, var(--night), #13152a); }
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px clamp(40px, 6vw, 88px);
}
.help-copy p { max-width: 40em; color: var(--muted); text-wrap: pretty; }
.help-copy p + p { margin-top: 14px; }

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

.footer {
  padding-block: 40px 48px;
  background: #13152a;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-brand { display: flex; gap: 14px; max-width: 520px; }
.footer-brand img { flex: none; }
.footer-name { font-weight: 650; font-variation-settings: var(--sharp); }
.footer-note { margin-top: 4px; color: var(--muted); font-size: 14px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

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

@media (max-width: 1100px) {
  .feature { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 260px; gap: 12px 32px; }
}

@media (max-width: 999px) {
  .nav-links { display: none; }
  .nav-gh { margin-left: auto; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 620px; }
  .hero-shot { width: 135%; }

  .idea-grid, .faq-grid, .help-grid, .tour { grid-template-columns: minmax(0, 1fr); }
  .tour-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { padding: 0 0 28px 58px; }
  .steps li::before { top: -3px; }
  .steps li:not(:last-child)::after { left: 18px; right: auto; top: 44px; bottom: 8px; width: 2px; height: auto; }

  .feature { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; }
  .feature h3 { grid-column: 1; }
  .feature p { grid-column: 1; }
  .feature-visual { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 680px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }

  .nav-inner { gap: 12px; }

  .lead, .idea-copy p:not(.idea-hint) { font-size: 17px; }
  .download-buttons { flex-direction: column; align-items: stretch; }
  .btn { justify-content: flex-start; }
  .hero-shot { width: 165%; }

  .demo { padding: 16px; margin-inline: -4px; }
  .demo-controls { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 24px minmax(0, 1fr) 32px; }
  .row-status { grid-column: 2; grid-row: 2; justify-content: flex-start; min-width: 0; }
  .row-up { grid-column: 3; grid-row: 1 / span 2; }
  .demo-sum { width: 100%; justify-content: space-between; }
  .demo-sum div { align-items: flex-start; }

  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature-visual { grid-column: 1; grid-row: auto; justify-content: flex-start; margin-top: 8px; }
  .beta-list { align-items: flex-start; }

  .tour-lead { font-size: 17px; }
  .tour-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tour-step { padding: 12px 14px; }
  .tour-step:not([aria-current="step"]) .tour-text { display: none; }
  .tour-play { right: 8px; bottom: 8px; width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
