/**
 * Стили публичной страницы «Сценарии использования» (views/scenarios.ejs).
 * Страница переиспользует реальный компонент карты (public/wallet-card.css) и токены (public/tokens.css),
 * но НЕ инлайн-стили лендинга (landing.ejs держит их в своём <style>, off-limits). Поэтому примитивы,
 * общие с лендингом (Variant-A :root-оверрайды, gnav, btn-primary/ghost, footer), ПОРТИРОВАНЫ сюда
 * дословно — чтобы страница выглядела единой с главной. Меняешь общий вид лендинга — сверяй и здесь.
 */

/* ---------------------------------------------------------- Reset (как в landing.ejs) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-text); color: var(--ink); background: var(--a-page); }
a { color: inherit; }
img { max-width: 100%; }
.icon { flex-shrink: 0; }

/* ---------------------------------------------------------- Variant-A токены (дословно из landing.ejs) */
:root {
  --blue-action: #5546e0;
  --blue-focus: #6c5ce7;
  --blue-on-dark: #a99cf6;
  --parchment: #eef0f9;
  --a-page: #f5f6fb;
  --a-soft: #ecebfd;
  --a-soft-2: #e9ecfb;
  --a-hair: #e4e6f0;
  --a-band-a: #1a1b24;
  --a-band-b: #0e0f15;
  --a-muted: #595959;
  --shadow-indigo-btn: 0 8px 22px -10px rgba(85, 70, 224, 0.6);
  --shadow-indigo-card: 0 2px 6px rgba(20, 20, 50, 0.06), 0 24px 50px -28px rgba(60, 50, 180, 0.32);
}

/* ---------------------------------------------------------- GlobalNav (порт из landing.ejs) */
.gnav { position: sticky; top: 0; z-index: 50; }
.gnav__sub {
  height: 52px; background: var(--frosted-fill); backdrop-filter: var(--blur-frosted); -webkit-backdrop-filter: var(--blur-frosted);
  border-bottom: 1px solid var(--border-faint); display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.gnav__brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.gnav__logo-img { height: 30px; width: auto; display: block; }
.gnav__links { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.gnav__links a { text-decoration: none; letter-spacing: -0.2px; }
.gnav__try-short { display: none; }

/* ---------------------------------------------------------- Buttons (порт из landing.ejs) */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue-action); color: var(--on-primary); border: none; text-decoration: none;
  border-radius: var(--radius-pill); font-family: var(--font-text); cursor: pointer;
  box-shadow: var(--shadow-indigo-btn);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(85, 70, 224, 0.62); }
.btn-primary:active { transform: var(--press-scale); }
.btn-primary--sm { padding: 7px 15px; font-size: var(--t-caption-size); min-height: 32px; }
.btn-primary--lg { padding: 14px 28px; font-size: 18px; font-weight: var(--fw-light); min-height: 50px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--canvas); color: var(--ink); border: 1px solid var(--a-hair);
  text-decoration: none; border-radius: var(--radius-pill); font-family: var(--font-text);
  cursor: pointer; transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.btn-ghost:hover { box-shadow: var(--shadow-indigo-card); }
.btn-ghost:active { transform: var(--press-scale); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 2px; }
.btn-ghost--lg { padding: 14px 27px; font-size: 18px; font-weight: var(--fw-light); min-height: 50px; }
@media (pointer: coarse) {
  .btn-primary--sm { padding: 11px 18px; min-height: 44px; }
  .gnav__login { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------------------------------------------------------- Hero */
.sc-hero {
  padding: 64px 40px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px;
  background:
    radial-gradient(120% 85% at 88% -12%, var(--a-soft) 0%, transparent 46%),
    radial-gradient(90% 70% at -6% 108%, var(--a-soft-2) 0%, transparent 48%);
}
.sc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: -0.1px; color: var(--blue-action); background: var(--a-soft); padding: 6px 13px; border-radius: var(--radius-pill);
}
.sc-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-action); }
.sc-hero__title {
  margin: 0; font-family: var(--font-display); font-size: 52px; font-weight: var(--fw-bold);
  letter-spacing: -1.4px; line-height: 1.05; max-width: 18ch; text-wrap: balance;
}
.sc-hero__lede { margin: 0; font-size: 21px; font-weight: var(--fw-regular); line-height: 1.5; color: var(--ink-80); max-width: 54ch; }
.sc-hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.sc-note { margin: 4px 0 0; font-size: 14px; letter-spacing: -0.15px; color: var(--a-muted); }
.sc-note--on-dark { color: #c9cbe0; }

/* ---------------------------------------------------------- Липкая под-навигация по сферам (чистые якоря) */
.sc-tabs {
  position: sticky; top: 52px; z-index: 40; background: rgba(245, 246, 251, 0.86);
  backdrop-filter: var(--blur-frosted); -webkit-backdrop-filter: var(--blur-frosted);
  border-bottom: 1px solid var(--a-hair);
}
.sc-tabs__inner {
  max-width: 1140px; margin: 0 auto; display: flex; gap: 8px; padding: 12px 40px;
  overflow-x: auto; justify-content: center; -webkit-overflow-scrolling: touch;
}
.sc-tabs__link {
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: var(--fw-semibold);
  color: var(--ink-80); background: var(--canvas); border: 1px solid var(--a-hair); white-space: nowrap; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.sc-tabs__link:hover { color: var(--blue-action); border-color: var(--blue-action); }
.sc-tabs__link:focus-visible { outline: 2px solid var(--blue-focus); outline-offset: 2px; }

/* ---------------------------------------------------------- Секция сферы (зигзаг) */
.sc-sphere { padding: 64px 40px; scroll-margin-top: 116px; }
.sc-sphere--alt { background: var(--parchment); }
.sc-sphere__inner {
  max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center;
}
.sc-sphere--alt .sc-sphere__visual { order: 2; }

.sc-sphere__visual { display: flex; flex-direction: column; align-items: center; }
.sc-sphere__img { width: 100%; height: auto; border-radius: 20px; display: block; box-shadow: var(--shadow-indigo-card); }
.sc-sphere__card { margin-top: 20px; display: flex; justify-content: center; width: 100%; }
.sc-sphere__card .wallet-card, .sc-sphere__card .sc-stamp { width: min(290px, 88%); }

.sc-sphere__eyebrow { font-size: 13px; font-weight: var(--fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-action); }
.sc-sphere__name { margin: 6px 0 0; font-family: var(--font-display); font-size: 36px; font-weight: var(--fw-semibold); letter-spacing: -0.8px; line-height: 1.08; text-wrap: balance; }
.sc-sphere__tagline { margin: 12px 0 0; font-size: 19px; line-height: 1.42; color: var(--ink-80); max-width: 40ch; }

.sc-list { list-style: none; margin: 26px 0 0; display: flex; flex-direction: column; gap: 16px; }
.sc-item { display: flex; gap: 14px; align-items: flex-start; }
.sc-item__icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--a-soft); color: var(--blue-action);
  display: flex; align-items: center; justify-content: center;
}
.sc-item__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sc-item__pain { font-size: 15.5px; font-weight: var(--fw-semibold); color: var(--ink); line-height: 1.35; }
.sc-item__gain { font-size: 15px; color: var(--a-muted); line-height: 1.46; }
.sc-item__tag {
  align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: var(--fw-semibold); letter-spacing: 0.02em;
  color: var(--blue-action); background: var(--a-soft); padding: 2px 9px; border-radius: var(--radius-pill);
}
.sc-sphere__cta {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 26px; font-size: 15px; font-weight: var(--fw-semibold);
  color: var(--blue-action); text-decoration: none;
}
.sc-sphere__cta:hover { gap: 6px; }

/* ---------------------------------------------------------- Штамп-карта (кофейня): масштаб реальной карты */
.sc-stamp {
  border-radius: 12px; overflow: hidden; color: #fff; text-align: left;
  background: linear-gradient(160deg, #55382a 0%, #3f2a1f 100%); box-shadow: var(--shadow-product);
}
.sc-stamp__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 14px; }
.sc-stamp__logo {
  width: 30px; height: 30px; border-radius: 7px; background: #c6a15b; color: #3f2a1f; flex-shrink: 0;
  font-family: var(--font-display); font-weight: var(--fw-semibold); font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.sc-stamp__org { font-size: 13px; font-weight: var(--fw-semibold); display: block; }
.sc-stamp__type { font-size: 11px; opacity: 0.65; display: block; }
.sc-stamp__body { padding: 14px 18px 18px; }
.sc-stamp__label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.sc-stamp__value { font-family: var(--font-display); font-size: 22px; font-weight: var(--fw-semibold); margin-top: 3px; letter-spacing: -0.3px; }
.sc-stamp__row { display: flex; gap: 7px; flex-wrap: wrap; }
.sc-stamp__body .sc-stamp__row { margin-top: 12px; }
.sc-stamp__dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; border: 1.5px dashed rgba(255, 255, 255, 0.5);
  display: flex; align-items: center; justify-content: center; font-size: 13px; line-height: 1;
}
.sc-stamp__dot--filled { background: #c6a15b; border: 1.5px solid #c6a15b; }
.sc-stamp__note { margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, 0.82); }

/* Strip-фото под штампами (та же раскладка, что .wallet-card__strip) + оверлей с рядом штампов
   поверх нижнего края фото — градиент-подложка держит кружки читаемыми на любом фото. */
.sc-stamp__strip-wrap { position: relative; }
.sc-stamp__strip { width: 100%; height: 120px; object-fit: cover; display: block; }
.sc-stamp__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 14px 10px;
  background: linear-gradient(to top, rgba(20, 12, 8, 0.85) 0%, rgba(20, 12, 8, 0.35) 60%, rgba(20, 12, 8, 0) 100%);
}
.sc-stamp__overlay .sc-stamp__dot { width: 24px; height: 24px; font-size: 12px; }

/* ---------------------------------------------------------- Финальный CTA-band */
.sc-cta-band { padding: 64px 40px 72px; display: flex; justify-content: center; }
.sc-band {
  max-width: 840px; width: 100%; border-radius: 26px; padding: 52px 44px; text-align: center;
  background: linear-gradient(140deg, var(--a-band-a), var(--a-band-b)); color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 40px 90px -42px rgba(60, 50, 180, 0.6);
}
.sc-band__title { font-family: var(--font-display); font-size: 32px; font-weight: var(--fw-semibold); letter-spacing: -0.7px; line-height: 1.1; color: #fff; text-wrap: balance; }
.sc-band__sub { font-size: 17px; line-height: 1.5; color: #c9cbe0; max-width: 54ch; }

/* ---------------------------------------------------------- Footer (порт из landing.ejs) */
.footer { background: var(--parchment); padding: 64px 40px; color: var(--ink-80); font-size: 12px; letter-spacing: -0.12px; }
.footer__grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__col-title { font-size: 14px; font-weight: var(--fw-semibold); margin-bottom: 8px; }
.footer__col a { display: block; line-height: 2.41; color: var(--ink-80); text-decoration: none; }
.footer__legal { max-width: 1000px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--hairline); color: var(--ink-48); font-size: 10px; line-height: 1.3; }

/* ---------------------------------------------------------- Адаптив */
@media (max-width: 1023px) {
  .sc-sphere__inner { grid-template-columns: 1fr; gap: 32px; }
  /* На одной колонке иллюстрация всегда выше текста — сбрасываем зигзаг-порядок */
  .sc-sphere--alt .sc-sphere__visual { order: 0; }
  .sc-sphere__visual { max-width: 520px; margin: 0 auto; }
  .sc-sphere__body { max-width: 560px; margin: 0 auto; }
}

/* Тесное окно 769–800px: компактный ярлык кнопки (как на лендинге) */
@media (min-width: 769px) and (max-width: 800px) {
  .gnav__try-full { display: none; }
  .gnav__try-short { display: inline; }
}
@media (max-width: 430px) {
  .gnav__try-full { display: none; }
  .gnav__try-short { display: inline; }
}

@media (max-width: 768px) {
  .gnav__sub { padding: 0 20px; }
  .gnav__nav { display: none; }
  .gnav__links { gap: 14px; }
  .sc-hero { padding: 40px 20px 28px; }
  .sc-hero__title { font-size: var(--t-display-lg-size, 38px); line-height: var(--t-display-lg-lh, 1.08); letter-spacing: var(--t-display-lg-ls, -1px); }
  .sc-hero__lede { font-size: 18px; }
  .sc-tabs__inner { justify-content: flex-start; padding: 10px 20px; }
  .sc-sphere { padding: 40px 20px; scroll-margin-top: 104px; }
  .sc-sphere__name { font-size: 28px; }
  .sc-sphere__tagline { font-size: 17px; }
  .sc-cta-band { padding: 40px 20px 48px; }
  .sc-band { padding: 36px 24px; }
  .sc-band__title { font-size: 26px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
