/* Landing PawnBox: стили макета «Дерзкий» из PawnBox_demo/03-derzky.html.
   Tailwind-утилиты собираются отдельно в landing.tw.css, здесь только токены
   и компоненты. Шрифты локальные: Unbounded (заголовки) и Golos Text (текст). */

:root {
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --text: #111111;
  --muted: #4A4A4A;
  --accent: #CCFF00;
  --on-accent: #111111;
  --accent-2: #2563EB;
  --on-accent-2: #FFFFFF;
  --border: #111111;
  --border-width: 2px;
  --radius: 12px;
  --shadow: 5px 5px 0px #111111;
  --shadow-btn: 5px 5px 0px #111111;
  --shadow-btn-hover: 7px 9px 0px #111111;
  --bg-translucent: rgba(244, 243, 239, 0.82);
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --focus: #2563EB;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: var(--font-display); }
.muted { color: var(--muted); }

/* Только горизонтальные отступы: вертикальные задают utility-классы py-* */
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

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

section[id] { scroll-margin-top: 84px; }

.card {
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .2s ease, background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: .08s; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border: var(--border-width) solid var(--border);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { box-shadow: var(--shadow-btn-hover); filter: brightness(0.99); }
.btn-icon {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.btn:hover .btn-icon { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: var(--border-width) solid var(--border);
}
.btn-ghost:hover { background: var(--surface); }

.input {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font-body);
}
.input::placeholder { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: var(--border-width) solid var(--border);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.site-header .wrap { transition: height .3s var(--ease); }
.site-header.is-scrolled {
  background: var(--bg-translucent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
}
.site-header.is-scrolled .wrap { height: 56px; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: var(--border-width) solid var(--border);
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
}

.nav-link { color: var(--text); text-decoration: none; font-weight: 500; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
}

.free-card {
  background: var(--accent);
  color: var(--on-accent);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Появление при скролле */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(20px); }
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* Подсветка карточек под курсором */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(37, 99, 235, 0.07), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.spot:hover::before { opacity: 1; }

/* Переключатель Месяц / Год */
.switch {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: var(--border-width) solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.switch-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--accent);
  border-radius: 999px;
  transition: transform .3s var(--ease);
}
.switch[data-active="year"] .switch-pill { transform: translateX(100%); }
.switch-btn {
  position: relative;
  z-index: 1;
  min-width: 104px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.switch-btn.is-active { color: var(--on-accent); }

/* Конвейер «как это работает» */
.flow { position: relative; }

.flow-track { position: relative; height: 120px; margin-bottom: 28px; }
.flow-track::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 59px;
  height: 2px;
  background: #E4E1D6;
  border-radius: 999px;
}
.flow-progress {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 59px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .56s var(--ease);
}

.flow-card {
  position: absolute;
  top: 30px;
  left: 12.5%;
  width: 100px;
  height: 58px;
  transform: translateX(-50%);
  background: var(--surface);
  border: var(--border-width) solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-btn);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  scale: 1;
  transition: left .56s var(--ease), scale .3s var(--ease);
}
.flow-card.is-stamping { scale: 1.03; box-shadow: var(--shadow-btn-hover); }
.flow-card-photo {
  width: 36px;
  height: 20px;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.flow-card-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  white-space: nowrap;
  transition: opacity .18s var(--ease);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step { position: relative; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  transition: background-color .2s ease, box-shadow .2s ease;
}

@keyframes stampPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.step.is-active .step-num {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-btn);
  animation: stampPop .35s var(--ease);
}

.price-num { font-family: var(--font-display); letter-spacing: -0.02em; }

.price-old {
  display: none;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  margin-right: 10px;
}
.price-badge {
  display: none;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  margin-left: 10px;
  vertical-align: middle;
}
.price-wrap.is-year .price-old { display: inline-block; }
.price-wrap.is-year .price-badge { display: inline-block; }

/* Ответ формы заявки */
.status-line {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.status-line.is-ok { color: #0e5f2e; }
.status-line.is-error { color: #a02318; }

/* Подвал */
.site-footer {
  border-top: var(--border-width) solid var(--border);
  padding: 32px 0 40px;
  margin-top: 16px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #d9d6cc;
}

/* Короткий текст кнопки в шапке на узких экранах */
.cta-short { display: none; }

@media (max-width: 768px) {
  .flow-track { display: none; }
  .flow-steps { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .site-header .wrap { height: 60px; gap: 8px; }
  .logo { font-size: 17px; }
  .logo-mark { width: 22px; height: 22px; font-size: 11px; }
  .header-login { padding: 8px 10px; font-size: 13px; }
  .header-cta { padding: 8px 10px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .switch-btn { min-width: 88px; padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover, .btn:active { transition: none; transform: none; }
  .btn-icon { transition: none; }
  .btn:hover .btn-icon { transform: none; }
  .site-header, .site-header .wrap { transition: none; }
  .flow-track { display: none; }
  .step-num { transition: none; }
  .step.is-active .step-num { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .spot::before { transition: none; }
  .switch-pill, .switch-btn { transition: none; }
}
