/* SmartPrice landing — tokens from app theme */
:root {
  --sp-primary: #005bff;
  --sp-primary-soft: #e8f0ff;
  --sp-primary-deep: #0046cc;
  --sp-secondary: #ff6b00;
  --sp-secondary-soft: #fff0e6;
  --sp-bg: #f5f7fa;
  --sp-surface: #ffffff;
  --sp-ink: #1a1a2e;
  --sp-muted: #6b7280;
  --sp-outline: #e5e7eb;
  --sp-success: #2e7d32;
  --sp-success-soft: #ecf7ed;
  --sp-error: #e53935;
  --sp-on-primary: #ffffff;
  --sp-ink-dark: #0f1117;
  --sp-radius-sm: 8px;
  --sp-radius-md: 12px;
  --sp-radius-lg: 16px;
  --sp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Motion — спокойнее, чем «мгновенно» */
  --sp-dur-fast: 0.35s;
  --sp-dur: 0.9s;
  --sp-dur-slow: 1.25s;
  --sp-stagger: 0.14s;
  --sp-header-h: 64px;
  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Якоря: верх секции (паддинг + фон) под липким хедером, не под заголовком. */
  scroll-padding-top: var(--sp-header-h);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--sp-ink);
  background: var(--sp-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sp-primary);
  text-decoration: none;
}

a:hover {
  color: var(--sp-primary-deep);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.85rem, 4.2vw, 3rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sp-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner.shell {
  width: min(1240px, calc(100% - 2rem));
}

.mono {
  font-family: var(--mono);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--sp-header-h);
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--sp-dur-fast) ease, background var(--sp-dur-fast) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--sp-outline);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--sp-ink);
  letter-spacing: -0.03em;
}

.logo:hover {
  color: var(--sp-ink);
}

.nav .header-home {
  color: var(--sp-muted);
}

.nav-sep {
  flex-shrink: 0;
  color: var(--sp-muted);
  opacity: 0.4;
  font-weight: 500;
  user-select: none;
}

.nav {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.7rem;
  margin-left: auto;
}

.nav a {
  color: var(--sp-muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover {
  color: var(--sp-ink);
}

.nav-page {
  color: var(--sp-ink) !important;
}

.header-cta {
  display: inline-flex;
  margin-left: auto;
  margin-right: 0.35rem;
}

.header-auth {
  display: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sp-ink);
  white-space: nowrap;
  margin-right: 0.35rem;
}

/* Первый заход (статус ещё неизвестен): только логотип и «Скачать» справа */
html:not(.auth-ui-known) body.auth-checking .nav,
html:not(.auth-ui-known) body.auth-checking .header-home,
html:not(.auth-ui-known) body.auth-checking .header-auth,
html:not(.auth-ui-known) body.auth-checking .nav-toggle,
html:not(.auth-ui-known) body.auth-checking .mobile-nav {
  display: none !important;
}

html:not(.auth-ui-known) body.auth-checking .header-cta {
  margin-left: auto !important;
  margin-right: 0;
}

@keyframes header-reveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация только при первом узнавании статуса, не при переходах */
html:not(.auth-ui-known) body.auth-ready .nav,
html:not(.auth-ui-known) body.auth-ready .header-auth,
html:not(.auth-ui-known) body.auth-ready .nav-toggle {
  animation: header-reveal 0.45s var(--sp-ease) both;
}

html:not(.auth-ui-known) body.auth-ready .nav > * {
  opacity: 0;
  animation: header-reveal 0.4s var(--sp-ease) both;
}

html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(1) {
  animation-delay: 0.04s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(2) {
  animation-delay: 0.08s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(3) {
  animation-delay: 0.12s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(4) {
  animation-delay: 0.16s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(5) {
  animation-delay: 0.2s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(6) {
  animation-delay: 0.24s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(7) {
  animation-delay: 0.28s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(8) {
  animation-delay: 0.32s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(9) {
  animation-delay: 0.36s;
}
html:not(.auth-ui-known) body.auth-ready .nav > *:nth-child(n + 10) {
  animation-delay: 0.4s;
}

html:not(.auth-ui-known) body.auth-ready .header-auth {
  animation-delay: 0.18s;
}

html:not(.auth-ui-known) body.auth-ready .nav-toggle {
  animation-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.auth-ui-known) body.auth-ready .nav,
  html:not(.auth-ui-known) body.auth-ready .nav > *,
  html:not(.auth-ui-known) body.auth-ready .header-auth,
  html:not(.auth-ui-known) body.auth-ready .nav-toggle {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.header-auth:hover,
.header-auth[aria-current="page"] {
  color: var(--sp-primary);
}

.header-auth.is-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #7eb3ff 0%, #2f7aff 40%, #005bff 72%, #0040d6 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0, 91, 255, 0.28);
}

.header-auth.is-avatar:hover,
.header-auth.is-avatar[aria-current="page"] {
  color: #fff !important;
  background: linear-gradient(145deg, #9ec5ff 0%, #4d8aff 38%, #005bff 70%, #003fbf 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 91, 255, 0.38);
}

.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sp-ink);
  transition: transform var(--sp-dur-fast) ease;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1rem;
  background: var(--sp-surface);
  border-bottom: 1px solid var(--sp-outline);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem;
  color: var(--sp-ink);
  font-weight: 600;
  border-radius: var(--sp-radius-sm);
}

.mobile-nav a:hover {
  background: var(--sp-primary-soft);
}

.mobile-nav .nav-sep {
  display: block;
  margin: 0.35rem 0.75rem;
  border-top: 1px solid var(--sp-outline);
  height: 0;
  overflow: hidden;
  color: transparent;
}

.mobile-nav .nav-page {
  color: var(--sp-ink);
}

@media (min-width: 1120px) {
  .nav {
    display: flex;
  }
  .header-auth {
    display: inline-flex;
    align-items: center;
  }
  .header-auth.is-avatar {
    margin-left: 0;
  }
  .header-cta {
    margin-left: 0;
    margin-right: 0;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: var(--sp-radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  transition: background var(--sp-dur-fast) ease, color var(--sp-dur-fast) ease,
    transform var(--sp-dur-fast) ease, border-color var(--sp-dur-fast) ease;
}

.btn-sm {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--sp-primary);
  color: var(--sp-on-primary);
}

.btn-primary:hover {
  background: var(--sp-primary-deep);
  color: var(--sp-on-primary);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--sp-ink);
  border: 1px solid var(--sp-outline);
}

.btn-ghost:hover {
  border-color: var(--sp-ink);
  color: var(--sp-ink);
  background: var(--sp-surface);
}

.btn-danger {
  background: #fdecea;
  color: #c62828;
  border: 1px solid #f5c6c2;
}

.btn-danger:hover {
  background: #c62828;
  color: #fff;
  border-color: #c62828;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 0.75rem;
}

.hero-text-link,
.text-link {
  font-weight: 700;
  color: var(--sp-primary-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-primary-deep) 35%, transparent);
}

.hero-text-link:hover,
.text-link:hover {
  color: var(--sp-primary-deep);
  border-bottom-color: var(--sp-primary-deep);
}

.cta-row.center {
  justify-content: center;
}

.micro {
  font-size: 0.88rem;
  color: var(--sp-muted);
  max-width: 36rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--sp-muted);
  max-width: 34rem;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

.section-head p {
  color: var(--sp-muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.extension .section-cta {
  align-items: center;
  text-align: center;
}

/* Reveal — только opacity: transform ломает sticky у потомков (секция #day). */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--sp-dur-slow) var(--sp-ease);
}

[data-reveal].is-visible {
  opacity: 1;
}

[data-hero-item] {
  opacity: 0;
  transform: translateY(16px);
}

body.is-ready [data-hero-item] {
  animation: rise var(--sp-dur-slow) var(--sp-ease) forwards;
}

body.is-ready [data-hero-item]:nth-child(1) {
  animation-delay: calc(var(--sp-stagger) * 0.5);
}
body.is-ready [data-hero-item]:nth-child(2) {
  animation-delay: calc(var(--sp-stagger) * 1.5);
}
body.is-ready [data-hero-item]:nth-child(3) {
  animation-delay: calc(var(--sp-stagger) * 2.5);
}
body.is-ready [data-hero-item]:nth-child(4) {
  animation-delay: calc(var(--sp-stagger) * 3.5);
}
body.is-ready [data-hero-item]:nth-child(5) {
  animation-delay: calc(var(--sp-stagger) * 4.5);
}
body.is-ready [data-hero-phone] {
  animation-delay: calc(var(--sp-stagger) * 2.8);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  [data-reveal],
  [data-hero-item] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .btn-primary:hover {
    transform: none;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 4.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, #eef3ff 0%, var(--sp-bg) 55%, var(--sp-bg) 100%);
}

.hero-glow {
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(0, 91, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 3.5rem 0 5.5rem;
    min-height: calc(100vh - var(--sp-header-h));
    display: flex;
    align-items: center;
  }
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.brand-mark {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0 0 1rem;
  color: var(--sp-ink);
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Мира выглядывает из-за телефона (слева), телефон — справа */
.hero.hero-mira {
  background: #ffffff;
}

.hero-visual {
  position: relative;
}

.hero-mira-peek {
  position: absolute;
  /* правый край выреза — на 40 px за левым краем телефона (ширина телефона 292 px),
     поэтому прямая линия среза всегда скрыта */
  right: calc(292px - 10px);
  bottom: 20%;
  height: 60%;
  width: auto;
  max-width: none;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  filter: drop-shadow(0 18px 32px rgba(0, 91, 255, 0.2));
}

.hero-visual .phone-sim {
  position: relative;
  z-index: 1;
}

/* Телефон — к правому краю колонки: слева остаётся место Мире (как в макете) */
@media (min-width: 960px) {
  .hero-visual .phone-sim {
    align-self: flex-end;
  }
}

/* На узких экранах слева от телефона нет места — не показываем обрезок */
@media (max-width: 959px) {
  .hero-mira-peek {
    display: none;
  }
}

/* Phone shell — mirrors light theme app chrome */
.phone {
  width: min(292px, 100%);
  filter: drop-shadow(0 24px 50px rgba(26, 26, 46, 0.18));
}

.phone-chrome {
  background: #1a1a2e;
  border-radius: 32px;
  padding: 11px;
  animation: phone-float 5.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.sf-card-price.is-price-tick {
  animation: price-tick 0.55s var(--sp-ease);
}

@keyframes price-tick {
  0% {
    transform: scale(1);
    color: inherit;
  }
  35% {
    transform: scale(1.08);
    color: var(--sp-secondary);
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}

.worker-switch.is-demo-flip {
  animation: switch-nudge 0.7s var(--sp-ease);
}

@keyframes switch-nudge {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  55% {
    filter: brightness(1.12);
  }
}

.member-row.is-demo-pulse {
  animation: member-in 0.55s var(--sp-ease);
}

@keyframes member-in {
  from {
    opacity: 0.35;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ext-queue-badge.is-live {
  background: var(--sp-primary-soft);
  color: var(--sp-primary-deep);
}

.ext-queue-badge.is-done {
  background: var(--sp-success-soft);
  color: var(--sp-success);
}

@media (prefers-reduced-motion: reduce) {
  .phone-chrome,
  .sf-card-price.is-price-tick,
  .worker-switch.is-demo-flip,
  .member-row.is-demo-pulse {
    animation: none !important;
  }
}

.phone-notch {
  width: 34%;
  height: 9px;
  margin: 2px auto 8px;
  background: #0a0b0f;
  border-radius: 999px;
}

.phone-screen.app-screen,
.app-screen {
  background: #f5f7fa;
  border-radius: 24px;
  min-height: 520px;
  height: 520px;
  color: #1a1a2e;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}

/* Day phone: frames fill the screen; only one visible */
[data-day-screen] {
  display: block;
  padding: 0;
}

[data-day-screen] .day-frame.is-active {
  height: 100%;
}

.day-frame {
  display: none;
  flex-direction: column;
  height: 100%;
  min-height: 520px;
}

.day-frame.is-active {
  display: flex;
  animation: frame-enter 0.45s var(--sp-ease);
}

@keyframes frame-enter {
  from {
    opacity: 0.4;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-frame.is-active {
    animation: none;
  }
}

.app-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 14px 4px;
  background: transparent;
  flex-shrink: 0;
}

.app-top-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

.mode-badge {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #eff6ff;
  color: #005bff;
  border: 1px solid #bfdbfe;
}

.app-scroll {
  flex: 1;
  overflow: hidden;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-scroll.home-pad {
  padding: 14px 12px;
  gap: 12px;
}

.app-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 8px 4px 10px;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.app-tabs .active {
  color: #005bff;
}

/* Каталог — как на реальном экране приложения */
.app-back {
  font-size: 1.35rem;
  font-weight: 500;
  color: #111827;
  line-height: 1;
  margin-right: 2px;
}

.app-pill {
  margin-left: auto;
  font-size: 0.56rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border-radius: 6px;
  padding: 0.16rem 0.4rem;
  white-space: nowrap;
}

.app-actions {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #dbeafe;
  color: #2563eb;
  margin-left: 2px;
}

.app-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 0;
  background: transparent;
  flex-shrink: 0;
}

.app-switch {
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: #005bff;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 2px;
  flex-shrink: 0;
}

.app-switch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
}

.app-sub-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.app-info {
  display: inline-flex;
  align-items: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.app-search {
  flex: 1;
  min-width: 0;
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  font-size: 0.66rem;
  color: #9ca3af;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
}

.app-search-ico {
  display: inline-flex;
  align-items: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.app-hint {
  margin: 6px 0 0;
  padding: 0 14px;
  font-size: 0.58rem;
  color: #6b7280;
  flex-shrink: 0;
}

.cat-article {
  margin: 2px 0 0;
  font-size: 0.56rem;
  color: #9ca3af;
}

.cat-status {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.56rem;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 5px;
  padding: 0.12rem 0.36rem;
}

.cat-status.is-ok {
  color: #15803d;
  background: #dcfce7;
}

.cat-status.is-neutral {
  color: #52525b;
  background: #f4f4f5;
}

.app-cta {
  flex-shrink: 0;
  margin: 8px 12px 12px;
  padding: 9px;
  border-radius: 10px;
  background: #a9c7fb;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

/* CatalogListItem — как в приложении: фото 56, артикул, стек цен, статус */
.cat-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.cat-card.focus {
  border: 2px solid #93c5fd;
  box-shadow: none;
}

.cat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cat-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #f4f4f5;
  object-fit: cover;
  display: block;
}

.cat-mid {
  min-width: 0;
  flex: 1;
  padding-right: 2px;
}

.cat-name {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.22;
  color: #111827;
}

.sf-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex-shrink: 0;
}

.sf-old {
  font-size: 0.56rem;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.sf-shelf {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.sf-card-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

/* Плашку «С картой» в новом дизайне убрали — гасим старые узлы,
   чтобы не переписывать разметку во всех кадрах */
.sf-shelf-label,
.sf-badge {
  display: none;
}

.sf-card-well {
  display: contents;
}

.cat-editor {
  margin-top: 10px;
}

/* Кликабельная карточка каталога */
.cat-card[data-catalog-item] {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cat-card[data-catalog-item]:active {
  transform: scale(0.99);
}

.cat-card[data-catalog-item]:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

/* Bottom sheet — CatalogItemEditorSheet из приложения */
.app-sheet {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.app-sheet[hidden] {
  display: none;
}

.app-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.app-sheet-inner {
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.app-sheet.is-open .app-sheet-backdrop {
  opacity: 1;
}

.app-sheet.is-open .app-sheet-inner {
  transform: translateY(0);
}

.app-sheet-panel {
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid #e5e7eb;
  padding: 8px 14px 12px;
}

/* Экранная клавиатура (на тач-устройствах открывается системная) */
.app-keyboard {
  display: grid;
  gap: 4px;
  padding: 6px;
  background: #d1d5db;
}

.app-kb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.app-kb-row button {
  padding: 7px 0;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a2e;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.18);
}

.app-kb-row button:active {
  background: #e5e7eb;
}

.app-kb-row button.is-wide {
  grid-column: span 2;
}

@media (hover: none) and (pointer: coarse) {
  .app-keyboard {
    display: none;
  }
}

.app-sheet-handle {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #d4d4d8;
  margin: 4px auto 10px;
}

.app-sheet-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.app-sheet-head-mid {
  min-width: 0;
  flex: 1;
}

.app-sheet-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a2e;
}

.app-sheet-article {
  margin: 2px 0 0;
  font-size: 0.62rem;
  color: #6b7280;
}

.app-sheet-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.64rem;
  font-weight: 700;
  color: #6b7280;
}

.app-sheet-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #1a1a2e;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.app-sheet-input:focus {
  border-color: #005bff;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.16);
}

.app-sheet-status {
  margin: 6px 0 0;
  font-size: 0.62rem;
  font-weight: 700;
}

.app-sheet-status.is-warn {
  color: #b45309;
}

.app-sheet-status.is-ok {
  color: #15803d;
}

.app-sheet-done {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #005bff;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.app-sheet-done:active {
  background: #0047cc;
}

@media (prefers-reduced-motion: reduce) {
  .app-sheet-inner,
  .app-sheet-backdrop {
    transition: none;
  }
}

/* Статичная шторка редактора внутри кадра «дня» */
.day-sheet {
  margin-top: 10px;
  padding: 6px 10px 8px;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
}

.day-sheet .app-sheet-handle {
  margin: 2px auto 6px;
}

.day-sheet .app-sheet-label {
  margin-bottom: 3px;
  font-size: 0.6rem;
}

.day-sheet .app-sheet-input {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.day-sheet .app-sheet-status {
  margin-top: 4px;
  font-size: 0.58rem;
}

.day-sheet .app-sheet-done {
  margin-top: 6px;
  padding: 8px;
  font-size: 0.72rem;
}

.cat-status.is-pop {
  animation: sim-ico-pop 0.45s var(--sp-ease);
}

@media (prefers-reduced-motion: reduce) {
  .cat-status.is-pop {
    animation: none;
  }
}

.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
}

.price-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #1a1a2e;
}

.price-input.focus {
  border-color: #16a34a;
  background: #ecfdf5;
}

.price-input.warn {
  border-color: #fbbf24;
  background: #fffbeb;
}

.price-input.ok:not(.focus) {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.price-input-field {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
  outline: none;
  width: 100%;
}

.cat-card-live .price-input {
  cursor: text;
  transition:
    border-color var(--sp-dur-fast) ease,
    background var(--sp-dur-fast) ease,
    box-shadow var(--sp-dur-fast) ease;
}

.cat-card-live .price-input:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.15);
}

.cat-card-live .price-input.ok:focus-within {
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.sim-status {
  margin: 6px 2px 0;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
  min-height: 1.3em;
  transition: color var(--sp-dur-fast) ease;
}

.sim-status-warn {
  color: #b45309;
}

.sim-status-ok {
  color: #15803d;
}

.sim-status-empty {
  color: #6b7280;
  font-weight: 500;
}

.sim-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--sp-muted);
  max-width: 16rem;
  line-height: 1.4;
}

.sim-hint strong {
  color: var(--sp-ink);
  font-weight: 800;
}

.phone-sim .input-ico.is-pop {
  animation: sim-ico-pop 0.45s var(--sp-ease);
}

@keyframes sim-ico-pop {
  0% {
    transform: scale(0.7);
  }
  55% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-sim .input-ico.is-pop {
    animation: none;
  }
}

.input-ico {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.input-ico.ok {
  background: #ecfdf5;
  color: #16a34a;
}

.input-ico.warn {
  background: #fef3c7;
  color: #b45309;
}

.app-caption {
  margin: 4px 2px 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: #6b7280;
}

/* WorkerSwitch */
.worker-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.worker-card.off {
  opacity: 0.72;
  box-shadow: none;
}

.worker-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.worker-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a2e;
}

.worker-switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #e4e4e7;
  position: relative;
  flex-shrink: 0;
}

.worker-switch.on {
  background: #10b981;
}

.worker-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  transition: left var(--sp-dur-fast) ease;
}

.worker-switch.on .worker-thumb {
  left: 24px;
}

.worker-status {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.35;
}

.worker-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #a1a1aa;
  margin-top: 4px;
  flex-shrink: 0;
}

.worker-dot.on {
  background: #10b981;
}

/* Team members */
.members-title {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a2e;
}

.member-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.member-row:last-child {
  border-bottom: 0;
}

.member-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eff6ff;
  color: #005bff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.member-avatar svg {
  display: block;
}

.member-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a2e;
}

.member-meta {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: #6b7280;
}

/* Pain */
.pain {
  background: var(--sp-ink-dark);
  color: #e8eaed;
  padding: 4.5rem 0;
}

.pain-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 2rem;
  color: #fff;
}

.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  align-items: start;
  align-content: start;
}

@media (min-width: 900px) {
  .pain-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.pain-list li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.pain-num {
  display: block;
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1;
  color: var(--sp-secondary);
  font-weight: 600;
}

.pain-list p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f3f4f6;
}

/* Подпись вне сетки колонок — не прилипает к длинному пункту 02 */
.pain-bridge {
  display: block;
  margin: 2.75rem 0 0;
  padding-top: 0.25rem;
  color: #9ca3af;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.45;
}

/* Day */
.day {
  background: var(--sp-surface);
  padding: 5rem 0;
}

.day-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .day-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
  .day-phone-wrap {
    position: sticky;
    top: calc(var(--sp-header-h) + 1.5rem);
    display: flex;
    justify-content: center;
  }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--sp-outline);
}

.timeline li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 1.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sp-outline);
  transition: background var(--sp-dur-fast) ease, transform var(--sp-dur-fast) ease;
}

.timeline li.is-active::before {
  background: var(--sp-secondary);
  transform: scale(1.25);
}

.timeline button {
  width: 100%;
  padding: 0.85rem 0.75rem;
  border-radius: var(--sp-radius-md);
  transition: background var(--sp-dur-fast) ease;
}

.timeline li.is-active button {
  background: var(--sp-primary-soft);
}

.timeline .time {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.timeline .desc {
  display: block;
  color: var(--sp-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.day-footnote {
  margin-top: 2.5rem;
  color: var(--sp-muted);
  max-width: 40rem;
  text-align: left;
}

.day-inline-link {
  display: inline-block;
  margin: 0.15rem 0 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Extension howto */
.extension {
  padding: 5rem 0;
  background: var(--sp-bg);
}

.ext-warn {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.ext-warn strong {
  display: block;
  color: var(--sp-error);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.ext-warn span {
  display: block;
  color: var(--sp-muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
}

.ext-device-split {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.ext-device-split strong {
  color: var(--sp-ink);
  font-weight: 800;
}

.ext-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ext-steps li button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: var(--sp-radius-md);
  border: 1px solid transparent;
  transition:
    background var(--sp-dur-fast) ease,
    border-color var(--sp-dur-fast) ease;
}

.ext-steps li.is-active button {
  background: var(--sp-primary-soft);
  border-color: #c7d7fe;
}

.ext-steps li:not(.is-active) .desc {
  display: none;
}

@media (min-width: 960px) {
  .ext-steps li:not(.is-active) .desc {
    display: block;
    opacity: 0.85;
  }
}

.ext-steps li.is-active .desc {
  display: block;
}

.ext-select.is-live {
  border-color: #005bff;
  box-shadow: 0 0 0 3px rgba(0, 91, 255, 0.18);
}

.ext-queue {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2a3548;
  background: #151d2e;
}

.ext-queue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #e8eef8;
}

.ext-queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
  animation: queue-pulse 1.4s ease infinite;
}

.ext-queue-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf24;
}

@keyframes queue-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
  }
}

.ext-steps-col,
.day-steps-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ext-next,
.day-next {
  margin-top: 0.85rem;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.ext-next:disabled,
.day-next:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.ext-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: #e8edf5;
  color: var(--sp-muted);
  transition:
    background var(--sp-dur-fast) ease,
    color var(--sp-dur-fast) ease;
}

.ext-steps li.is-active .ext-step-num {
  background: var(--sp-primary);
  color: #fff;
}

.ext-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  text-align: left;
}

.ext-steps .time {
  font-weight: 800;
  font-size: 0.98rem;
}

.ext-steps .desc {
  color: var(--sp-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.ext-layout {
  display: grid;
  gap: 2rem;
}

/* Scan simulation (step 3) */
.ext-scan-sim {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #2a3548;
  background: #111827;
  padding: 10px;
}

.scan-chrome-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #0b1220;
}

.scan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b4559;
}

.scan-dot:nth-child(1) {
  background: #f87171;
}
.scan-dot:nth-child(2) {
  background: #fbbf24;
}
.scan-dot:nth-child(3) {
  background: #34d399;
}

.scan-url {
  margin-left: 6px;
  font-size: 0.65rem;
  color: #8b9bb4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-progress {
  margin-bottom: 10px;
}

.scan-bar-track {
  height: 6px;
  border-radius: 999px;
  background: #1f2937;
  overflow: hidden;
}

.scan-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #005bff, #38bdf8);
  transition: width 0.35s linear;
}

.scan-label {
  margin: 6px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: #93c5fd;
}

.scan-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scan-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid #2a3548;
  background: #151d2e;
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.scan-card.is-scanning {
  opacity: 1;
  border-color: #005bff;
  background: rgba(0, 91, 255, 0.12);
}

.scan-card.is-done {
  opacity: 1;
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.1);
}

.scan-card img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.scan-card-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scan-card-name {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scan-card-state {
  font-size: 0.62rem;
  color: #8b9bb4;
}

.scan-card.is-scanning .scan-card-state {
  color: #93c5fd;
}

.scan-card.is-done .scan-card-state {
  color: #86efac;
}

.scan-card-price {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.scan-card.is-done .scan-card-price {
  color: #93c5fd;
}

.scan-beam {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  top: 42%;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 91, 255, 0.22),
    transparent
  );
  opacity: 0;
}

.ext-scan-sim.is-running .scan-beam {
  opacity: 1;
  animation: scan-beam 1.6s linear infinite;
}

@keyframes scan-beam {
  from {
    top: 18%;
  }
  to {
    top: 78%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ext-scan-sim.is-running .scan-beam {
    animation: none;
    opacity: 0.4;
  }
}

@media (min-width: 960px) {
  .ext-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: start;
  }

  .ext-popup-wrap {
    position: sticky;
    top: calc(var(--sp-header-h) + 1.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.ext-popup {
  width: 100%;
  max-width: 340px;
  padding: 14px;
  border-radius: 14px;
  background: #0b1220;
  color: #e8eef8;
  border: 1px solid #2a3548;
  box-shadow: 0 18px 40px rgba(15, 17, 23, 0.18);
}

.ext-pop-header {
  margin-bottom: 14px;
}

.ext-pop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ext-pop-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.15);
}

.ext-pop-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #005bff;
  line-height: 1.15;
}

.ext-pop-sub {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: #8b9bb4;
}

.ext-pop-body {
  position: relative;
  min-height: 220px;
}

.ext-frame {
  display: none;
}

.ext-frame.is-active {
  display: block;
  animation: ext-frame-in 0.4s var(--sp-ease);
}

@keyframes ext-frame-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ext-frame.is-active {
    animation: none;
  }
}

.ext-oauth {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  border: 1px solid #2a3548;
  background: #151d2e;
  color: #e8eef8;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}

.ext-oauth-github {
  background: #111827;
  border-color: #111827;
  color: #f9fafb;
}

.ext-oauth-ico {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.ext-oauth-google .ext-oauth-ico {
  background: #fff;
  color: #4285f4;
  border: 1px solid #e5e7eb;
}

.ext-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #2a3548;
  background: #151d2e;
  margin-bottom: 4px;
}

.ext-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #005bff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.ext-user-meta {
  flex: 1;
  min-width: 0;
}

.ext-user-name {
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-user-email {
  font-size: 0.7rem;
  color: #8b9bb4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-text-btn {
  flex: 0 0 auto;
  color: #005bff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ext-label,
.ext-field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 10px 0 4px;
  color: #8b9bb4;
}

.ext-field-label {
  margin-top: 12px;
  margin-bottom: 6px;
}

.ext-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #2a3548;
  background: #151d2e;
  color: #e8eef8;
  font-size: 0.82rem;
}

.ext-select-chevron {
  color: #8b9bb4;
  font-size: 0.75rem;
}

.ext-hint {
  margin: 6px 0 0;
  font-size: 0.7rem;
  color: #8b9bb4;
  line-height: 1.4;
}

.ext-scan-mode {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid #2a3548;
  background: #151d2e;
}

.ext-scan-mode-btn {
  padding: 8px 4px;
  border-radius: 8px;
  color: #8b9bb4;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.ext-scan-mode-btn.is-on {
  background: #005bff;
  color: #fff;
}

.ext-primary {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #005bff;
  background: #005bff;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  cursor: default;
  pointer-events: none;
}

.ext-results-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.12);
  margin-bottom: 12px;
}

.ext-results-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.ext-results-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.ext-results-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: #8b9bb4;
}

.ext-results-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b9bb4;
  margin-bottom: 8px;
}

.ext-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ext-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #2a3548;
  background: #151d2e;
}

.ext-result-row img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.ext-result-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ext-result-name {
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-result-meta {
  font-size: 0.65rem;
  color: #8b9bb4;
}

.ext-result-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #93c5fd;
  flex-shrink: 0;
}

.ext-caption {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--sp-muted);
  font-size: 0.9rem;
  max-width: 340px;
  line-height: 1.4;
}

.ext-footnote {
  margin-top: 2.5rem;
  margin-inline: auto;
  color: var(--sp-muted);
  max-width: 40rem;
  font-size: 0.95rem;
  text-align: center;
}

.ext-install-hint {
  margin-top: 0.75rem;
}

/* Change — interactive Было / Стало */
.change {
  padding: 5rem 0;
  background: var(--sp-bg);
}

.shift {
  max-width: 52rem;
}

.shift-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #e8edf5;
  margin-bottom: 1.5rem;
  width: min(100%, 280px);
}

.shift-tab {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--sp-muted);
  transition:
    background var(--sp-dur-fast) ease,
    color var(--sp-dur-fast) ease,
    box-shadow var(--sp-dur-fast) ease;
}

.shift-tab.is-active {
  background: var(--sp-surface);
  color: var(--sp-ink);
  box-shadow: 0 1px 3px rgba(15, 17, 23, 0.08);
}

.shift-tab[data-shift-tab="was"].is-active {
  color: #9a3412;
}

.shift-tab[data-shift-tab="now"].is-active {
  color: var(--sp-primary);
}

.shift-panel {
  display: none;
}

.shift-panel.is-active {
  display: block;
}

.shift-scene {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-outline);
  background: var(--sp-surface);
}

@media (min-width: 800px) {
  .shift-scene {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    align-items: center;
    padding: 1.75rem;
  }
}

.shift-chaos {
  background: linear-gradient(165deg, #fff7ed 0%, #ffffff 45%);
  border-color: #fed7aa;
}

.chaos-ozon {
  border-radius: 14px;
  border: 1px solid #fdba74;
  background: #fff;
  padding: 1rem;
}

.chaos-ozon-top {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0.85rem;
}

.chaos-ozon-top img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.chaos-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.chaos-meta {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--sp-muted);
}

.chaos-price-block {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px dashed #fb923c;
}

.chaos-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #9a3412;
}

.chaos-price {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: #c2410c;
  font-variant-numeric: tabular-nums;
  transition: transform 0.2s var(--sp-ease), color 0.2s ease;
}

.chaos-price.is-jump {
  transform: scale(1.08);
  color: #b91c1c;
}

.chaos-flash {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9a3412;
  min-height: 1.3em;
}

.chaos-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.chaos-steps li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.35rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ffedd5;
  color: var(--sp-muted);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.45;
  transition:
    opacity var(--sp-dur-fast) ease,
    border-color var(--sp-dur-fast) ease,
    color var(--sp-dur-fast) ease,
    background var(--sp-dur-fast) ease;
}

.chaos-steps li::before {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  font-size: 0.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.chaos-steps li[data-chaos-step="0"]::before {
  content: "1";
}
.chaos-steps li[data-chaos-step="1"]::before {
  content: "2";
}
.chaos-steps li[data-chaos-step="2"]::before {
  content: "3";
}
.chaos-steps li[data-chaos-step="3"]::before {
  content: "4";
}

.chaos-steps li.is-on {
  opacity: 1;
  color: var(--sp-ink);
  border-color: #fdba74;
  background: #fff7ed;
}

.shift-calm {
  background: linear-gradient(165deg, #eef4ff 0%, #ffffff 48%);
  border-color: #c7d7fe;
}

.calm-phone {
  display: flex;
  justify-content: center;
}

.calm-app {
  width: min(100%, 300px);
  background: #f5f7fa;
  border-radius: 20px;
  border: 1px solid #dbe3f0;
  padding: 10px;
  box-shadow: 0 16px 36px rgba(26, 26, 46, 0.1);
}

.calm-card {
  margin-top: 8px;
}

.calm-caption {
  margin: 0.75rem 2px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sp-primary);
  text-align: center;
  min-height: 1.3em;
}

.calm-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calm-points li {
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbeafe;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sp-ink);
}

.calm-points li::before {
  content: "✓ ";
  color: var(--sp-success);
  font-weight: 800;
}

/* Pillars */
.pillars {
  background: var(--sp-surface);
  padding: 5rem 0;
}

.pillar-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.pillar-grid article {
  padding-top: 1rem;
  border-top: 3px solid var(--sp-primary);
}

.pillar-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sp-primary);
  font-weight: 600;
}

.pillar-grid h3 {
  margin: 0.5rem 0 0.65rem;
}

.pillar-grid p {
  margin: 0;
  color: var(--sp-muted);
}

/* Team */
.team {
  padding: 5rem 0;
  background: linear-gradient(90deg, var(--sp-surface) 0%, var(--sp-primary-soft) 100%);
}

.team-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.plain-list {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.65rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.1rem;
  font-weight: 600;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sp-primary);
}

.team-visual {
  display: flex;
  justify-content: center;
}

.team-visual .member-row {
  animation: member-in 0.7s var(--sp-ease) both;
}

.team-visual .member-row:nth-child(2) {
  animation-delay: 0.35s;
}

.team-visual .member-card {
  animation: member-card-breathe 4.5s ease-in-out infinite;
}

@keyframes member-card-breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 91, 255, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-visual .member-row,
  .team-visual .member-card {
    animation: none !important;
  }
}

.phone-inline {
  width: min(280px, 100%);
}

/* Honest */
.honest {
  background: var(--sp-surface);
  padding: 5rem 0;
}

.honest-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .honest-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.honest-col {
  border-radius: var(--sp-radius-lg);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--sp-outline);
}

.honest-col.yes {
  background: var(--sp-success-soft);
  border-color: transparent;
}

.honest-col.no {
  background: #f8f8f9;
}

.honest-col h3 {
  margin-bottom: 1rem;
}

.honest-col.yes h3 {
  color: var(--sp-success);
}

.honest-col.no h3 {
  color: var(--sp-error);
}

.honest-col li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.7rem;
  color: var(--sp-ink);
}

.honest-col li::before {
  content: "·";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.honest-foot {
  margin-top: 1.75rem;
  color: var(--sp-muted);
  font-weight: 600;
}

/* FAQ */
.faq {
  padding: 5rem 0;
  background: var(--sp-bg);
}

.faq-inner {
  width: min(40rem, calc(100% - 2rem));
  margin-inline: auto;
}

.faq-head {
  text-align: left;
  max-width: none;
  margin-bottom: 2rem;
}

.faq-head p {
  max-width: 34rem;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.faq-list details {
  background: var(--sp-surface);
  border: 1px solid var(--sp-outline);
  border-radius: var(--sp-radius-md);
  padding: 0.25rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 0;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--sp-primary);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0 0 1rem;
  color: var(--sp-muted);
  padding-right: 1.5rem;
}

/* Final */
.final {
  padding: 5.5rem 0;
  background: radial-gradient(ellipse at top, var(--sp-primary-soft), var(--sp-surface) 55%);
  text-align: center;
}

.final-inner {
  max-width: 40rem;
}

.final-inner h2 {
  margin-bottom: 1rem;
}

.final-inner > p {
  color: var(--sp-muted);
  font-size: 1.08rem;
}

.final .micro {
  margin: 1.25rem auto 0;
}

.device-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-primary);
}

.download-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.75rem auto 0;
  max-width: 22rem;
}

.download-cta .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.download-cta-primary {
  min-height: 3.35rem;
  font-size: 1.05rem;
}

.download-cta-secondary {
  font-size: 0.95rem;
  opacity: 0.92;
}

.download-cta[data-mode="android"] .download-cta-secondary {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  opacity: 0.75;
}

.download-cta[data-mode="ios"] .download-cta-primary,
.download-cta[data-mode="ios"] .download-cta-secondary {
  font-size: 0.95rem;
  min-height: auto;
}

.download-cta[data-mode="desktop"] [data-cta="apk"] {
  display: none;
}

.apk-qr {
  margin-top: 0.35rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-outline);
  background: var(--sp-surface);
  text-align: center;
}

.apk-qr[hidden] {
  display: none !important;
}

.apk-qr-label {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sp-ink);
}

.apk-qr-hint {
  margin: 0 auto 0.9rem;
  max-width: 18rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--sp-muted);
}

.apk-qr-img {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sp-outline);
}

.apk-qr-fallback {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sp-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apk-qr-fallback:hover {
  color: var(--sp-primary-deep);
}

/* Footer */
.site-footer {
  background: var(--sp-ink-dark);
  color: #c9d1d9;
  padding: 3rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer .logo {
  color: #fff;
  margin: 0 0 0.65rem;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 40rem;
}

.footer-tag,
.footer-legal,
.footer-copy {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b949e;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #e8eaed;
  font-weight: 600;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* ========== Pricing page ========== */
.page-pricing {
  padding-bottom: 5.5rem;
}

.pricing-hero {
  padding: 3.5rem 0 2.5rem;
  background: linear-gradient(180deg, #eef3ff 0%, var(--sp-bg) 70%);
}

.pricing-hero-inner {
  max-width: 40rem;
}

.pricing-hero h1 {
  margin-bottom: 0.85rem;
}

.pricing-lede {
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .pricing-hero-inner {
    max-width: min(1120px, 100%);
  }

  .pricing-hero h1 {
    font-size: clamp(2.1rem, 3.4vw, 2.85rem);
    line-height: 1.18;
    max-width: none;
  }

  .pricing-lede {
    max-width: 42rem;
  }
}

.pricing-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.pricing-trust li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.pricing-open-app {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sp-muted);
}

.pricing-billing-status {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sp-error);
}

.pricing-billing-status.is-ok {
  color: var(--sp-primary-deep);
}

.pricing-open-app-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--sp-primary-deep);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-primary-deep) 35%, transparent);
}

.pricing-open-app-link:hover {
  border-bottom-color: var(--sp-primary-deep);
}

.pricing-open-app-fallback {
  font-size: 0.9rem;
  color: var(--sp-muted);
}

.pricing-open-app-fallback a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-footnote a {
  color: var(--sp-primary-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sp-primary-deep) 35%, transparent);
}

.pricing-footnote a:hover {
  border-bottom-color: var(--sp-primary-deep);
}

.pricing-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sp-primary);
}

.pricing-demo-strip {
  padding: 0.5rem 0 3.25rem;
}

.pricing-demo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-outline);
  background: var(--sp-surface);
}

.pricing-demo-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.pricing-demo-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.pricing-demo-text {
  margin: 0;
  color: var(--sp-muted);
  max-width: 34rem;
  font-size: 0.95rem;
}

.pricing-grid-section {
  padding: 0.5rem 0 3.5rem;
}

.pricing-grid-section .shell {
  width: min(1280px, calc(100% - 2rem));
}

.pricing-grid {
  display: grid;
  gap: 1.15rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 1020px) {
  .pricing-grid-section .shell {
    width: min(1180px, calc(100% - 2.5rem));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-outline);
  background: var(--sp-surface);
  height: 100%;
  min-height: 100%;
}

.plan-card-featured {
  border-color: var(--sp-primary);
  background: linear-gradient(180deg, #eef3ff 0%, #ffffff 42%);
  box-shadow: 0 0 0 1px rgba(0, 91, 255, 0.12);
}

.plan-card-custom {
  background: linear-gradient(180deg, #f7f8fb 0%, #ffffff 48%);
  border-color: #d5dae3;
}

.plan-card-custom .plan-card-head {
  padding-right: 0;
}

.plan-custom-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.plan-card-custom .plan-tagline {
  font-weight: 500;
  line-height: 1.4;
}

.plan-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--sp-primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.legal-doc .plan-badge {
  color: #fff;
}

.plan-card-head {
  padding-right: 4.5rem;
}

.plan-card:not(.plan-card-featured) .plan-card-head {
  padding-right: 0;
}

.plan-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--sp-muted);
  font-weight: 600;
}

.plan-price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
}

.plan-amount {
  font-family: var(--mono);
  font-size: clamp(1.85rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sp-ink);
  line-height: 1;
}

.plan-currency {
  font-weight: 800;
  font-size: 1.1rem;
}

.plan-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sp-muted);
}

.plan-limits {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--sp-outline);
  border-bottom: 1px solid var(--sp-outline);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.plan-limits li {
  font-size: 0.92rem;
  color: var(--sp-ink);
}

.plan-limits strong {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--sp-primary);
}

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--sp-muted);
  font-weight: 600;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--sp-success);
}

.plan-cta {
  width: 100%;
  margin-top: auto;
}

button.plan-cta {
  text-align: center;
}

button.plan-cta:disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.plan-card.is-selected {
  border-color: var(--sp-primary-deep);
}

.pricing-footnote {
  margin: 1.75rem 0 0;
  text-align: center;
  color: var(--sp-muted);
  font-size: 0.9rem;
  max-width: 40rem;
  margin-inline: auto;
  line-height: 1.45;
}
/* Блок способов оплаты: логотипы + текст в одну линию, на мобильных — колонка. */
.pricing-pay {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.pricing-pay-logos {
  flex: 0 0 auto;
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}

.pricing-pay-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  max-width: 34rem;
  color: var(--sp-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .pricing-pay {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .pricing-pay-logos {
    width: 100%;
    max-width: 320px;
  }

  .pricing-pay-text {
    max-width: none;
  }
}

.pricing-custom-inbox {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--sp-ink);
}

.plan-card-custom .pricing-custom-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  width: 100%;
  min-height: 0;
}

.plan-card-custom .pricing-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0.55rem;
}

.plan-card-custom .pricing-custom-form .auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.plan-card-custom .pricing-custom-form .auth-field span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sp-ink);
}

.plan-card-custom .pricing-custom-form .auth-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--sp-muted);
}

.plan-card-custom .pricing-custom-form input,
.plan-card-custom .pricing-custom-form textarea {
  width: 100%;
  border: 1px solid var(--sp-outline);
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
  font: inherit;
  /* Перебиваем .auth-reset-form (input 600 / label→textarea 800). */
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: var(--sp-bg);
  color: var(--sp-ink);
}

.plan-card-custom .pricing-custom-form input::placeholder,
.plan-card-custom .pricing-custom-form textarea::placeholder {
  font-weight: 300;
  color: var(--sp-muted);
  opacity: 0.72;
}

.plan-card-custom .pricing-custom-form textarea {
  resize: vertical;
  min-height: 3.25rem;
}

.plan-card-custom .pricing-custom-form .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-custom-status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.pricing-custom-status.is-ok {
  color: #15803d;
}

.pricing-custom-status.is-error {
  color: #b91c1c;
}

.pricing-compare {
  padding: 4.5rem 0;
  background: var(--sp-surface);
}

.pricing-compare-title {
  margin: 0 0 2.5rem;
  max-width: 16ch;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

.pricing-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .pricing-compare-list {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 2.75rem;
  }
}

@media (min-width: 1100px) {
  .pricing-compare-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.75rem;
  }
}

.pricing-compare-list li {
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 3px solid var(--sp-primary);
  background: none;
}

.pricing-compare-num {
  display: block;
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
  font-weight: 600;
  color: var(--sp-primary);
}

.pricing-compare-list p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.pricing-compare-note {
  margin: 2.75rem 0 0;
  padding: 1.15rem 0 0;
  border-top: 1px solid var(--sp-outline);
  color: var(--sp-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pricing-terms {
  padding: 4.75rem 0 5rem;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(0, 91, 255, 0.22), transparent 58%),
    var(--sp-ink-dark);
  color: #e8eaed;
}

.pricing-terms-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .pricing-terms-layout {
    grid-template-columns: minmax(15rem, 0.38fr) minmax(0, 1fr);
    gap: 3.5rem 4.25rem;
    align-items: start;
  }
}

.pricing-terms-head {
  max-width: 22rem;
}

@media (min-width: 960px) {
  .pricing-terms-head {
    position: sticky;
    top: calc(var(--sp-header-h) + 1.25rem);
    padding-top: 0.35rem;
  }
}

.pricing-terms-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb4ff;
}

.pricing-terms-head h2 {
  margin: 0 0 0.7rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.pricing-terms-lede {
  margin: 0;
  color: #9aa3b2;
  font-size: 1.02rem;
  line-height: 1.5;
}

.pricing-terms-sheet {
  border-radius: var(--sp-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 14, 20, 0.72);
  box-shadow: inset 3px 0 0 var(--sp-primary);
  overflow: hidden;
}

.pricing-terms-titles {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.6rem 1.1rem 1.75rem;
}

.pricing-terms-titles li {
  margin: 0;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.pricing-terms-titles li:last-child {
  border-bottom: 0;
}

.pricing-terms-docs {
  display: grid;
  background: rgba(8, 10, 16, 0.55);
}

@media (min-width: 640px) {
  .pricing-terms-docs {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-terms-doc {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.45rem 1.15rem 1.75rem;
  color: #fff;
  text-decoration: none;
}

@media (min-width: 640px) {
  .pricing-terms-doc + .pricing-terms-doc {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }
}

.pricing-terms-doc:hover {
  color: #fff;
  background: rgba(0, 91, 255, 0.14);
}

.pricing-terms-doc-kind {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8eb4ff;
}

.pricing-terms-doc strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.pricing-terms-doc strong::after {
  content: " →";
  color: #8eb4ff;
  font-weight: 700;
}

.pricing-final {
  padding: 4rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse at top, var(--sp-primary-soft), var(--sp-surface) 55%);
}

.pricing-final-inner {
  max-width: 36rem;
  margin-inline: auto;
}

.pricing-final h2 {
  margin-bottom: 0.75rem;
}

.pricing-final p {
  color: var(--sp-muted);
  margin-bottom: 0.5rem;
}

.pricing-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--sp-outline);
}

.pricing-mobile-bar-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pricing-mobile-bar-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sp-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-mobile-bar-price {
  margin: 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
}

@media (min-width: 900px) {
  .page-pricing {
    padding-bottom: 0;
  }
  .pricing-mobile-bar {
    display: none;
  }
  .pricing-open-app,
  .hide-desktop {
    display: none;
  }
}

.nav a[aria-current="page"] {
  color: var(--sp-primary);
}

/* Legal documents — readable contract, not marketing cards */
.page-legal {
  background: var(--sp-bg);
}

.legal-wrap {
  padding: 2.25rem 0 5rem;
}

.legal-doc {
  width: min(44rem, 100%);
  margin: 0 auto;
  background: var(--sp-surface);
  border: 1px solid var(--sp-outline);
  border-radius: var(--sp-radius-lg);
  padding: 1.75rem 1.25rem 2.25rem;
}

@media (min-width: 720px) {
  .legal-doc {
    padding: 2.75rem 3rem 3.25rem;
  }
}

.legal-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--sp-muted);
  font-size: 0.9rem;
}

.legal-toc {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--sp-radius-md);
  background: var(--sp-bg);
  border: 1px solid var(--sp-outline);
}

.legal-toc p {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 1;
}

@media (min-width: 720px) {
  .legal-toc ol {
    columns: 2;
  }
}

.legal-toc li {
  break-inside: avoid;
  font-size: 0.88rem;
  margin: 0.2rem 0;
}

.legal-toc a {
  color: var(--sp-ink);
  font-weight: 600;
}

.legal-toc a:hover {
  color: var(--sp-primary-deep);
}

.legal-doc h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.12rem;
  line-height: 1.3;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--sp-ink);
}

.legal-doc p {
  margin: 0 0 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 0.95rem;
  padding-left: 1.2rem;
}

.legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 1.1rem;
}

.legal-doc th,
.legal-doc td {
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--sp-outline);
  vertical-align: top;
}

.legal-doc th {
  color: var(--sp-muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal-note {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--sp-outline);
  font-size: 0.82rem !important;
  color: var(--sp-muted) !important;
}

.page-auth-action .auth-action-card {
  min-height: 16rem;
}

.auth-reset-form {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 0;
  max-width: 22rem;
}

.auth-reset-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-muted);
}

.auth-reset-form input {
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--sp-radius-md);
  border: 1px solid var(--sp-outline);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sp-ink);
  background: var(--sp-surface);
}

.auth-reset-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.auth-reset-form .btn:disabled {
  opacity: 0.55;
  pointer-events: none;
  transform: none;
}

.auth-reset-error {
  margin: 0;
  color: var(--sp-error);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  padding: 0.25rem;
  border-radius: var(--sp-radius-md);
  background: var(--sp-bg);
  border: 1px solid var(--sp-outline);
  max-width: 22rem;
}

.auth-tabs a {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: calc(var(--sp-radius-md) - 2px);
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--sp-muted);
}

.auth-tabs a[aria-current="page"] {
  background: var(--sp-primary);
  color: #fff;
  box-shadow: none;
}

.auth-switch {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sp-muted);
}

.auth-hint,
.auth-sent,
.auth-verify-hint {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sp-muted);
}

.auth-verify-hint {
  color: #b45309;
}

.auth-verify-actions {
  margin: 0.85rem 0 0;
}

.auth-verify-actions .btn {
  width: 100%;
  max-width: 22rem;
}

.auth-verify-actions .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.page-auth .auth-card {
  min-height: 22rem;
}

.auth-next {
  margin: 1.75rem 0 1.25rem;
}

.auth-next .legal-kicker {
  margin-bottom: 0.55rem;
}

.auth-next-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

@media (min-width: 720px) {
  .auth-next-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1.35rem;
  }
}

.page-legal.page-auth .shell.legal-doc.auth-card:has([data-panel="session"]:not([hidden])),
.page-legal.page-auth.auth-has-session .shell.legal-doc.auth-card,
.page-legal.page-auth-action .shell.legal-doc.auth-action-card:has([data-panel="verified"]:not([hidden])) {
  width: min(1440px, calc(100% - 2rem));
  max-width: none;
}

@media (min-width: 1020px) {
  .auth-plan-mount .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.auth-plan-mount {
  margin: 1.35rem 0 1.5rem;
}

.legal-doc .auth-plan-mount h2 {
  margin: 0;
  font-size: 1.15rem;
}

.legal-doc .auth-plan-mount .plan-card p,
.legal-doc .auth-plan-mount .plan-card li {
  margin: 0;
}

.legal-doc .auth-plan-mount .plan-limits,
.legal-doc .auth-plan-mount .plan-features {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.auth-reset-error.is-ok {
  color: var(--sp-success);
}

.auth-oauth {
  display: grid;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
  max-width: 22rem;
  min-height: 13rem;
  align-content: center;
}

.auth-oauth-lead {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--sp-muted);
}

.auth-oauth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--sp-outline);
  background: var(--sp-bg);
  color: var(--sp-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-oauth-btn:hover {
  border-color: var(--sp-ink);
}

.auth-oauth-btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.auth-google-g {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4285f4;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.auth-password {
  position: relative;
  display: block;
}

.auth-password input {
  width: 100%;
  padding-right: 3rem;
}

.auth-eye {
  position: absolute;
  right: 0.2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--sp-muted);
  cursor: pointer;
}

.auth-eye::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.auth-password.is-open .auth-eye::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.6a2 2 0 102.8 2.8'/%3E%3Cpath d='M9.9 5.2A10.5 10.5 0 0112 5c6.5 0 10 7 10 7a16.8 16.8 0 01-3.2 3.8'/%3E%3Cpath d='M6.1 6.1C3.9 7.8 2 12 2 12s3.5 7 10 7a10.4 10.4 0 005.1-1.3'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 10.6a2 2 0 102.8 2.8'/%3E%3Cpath d='M9.9 5.2A10.5 10.5 0 0112 5c6.5 0 10 7 10 7a16.8 16.8 0 01-3.2 3.8'/%3E%3Cpath d='M6.1 6.1C3.9 7.8 2 12 2 12s3.5 7 10 7a10.4 10.4 0 005.1-1.3'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.page-auth [hidden] {
  display: none !important;
}

.auth-screen-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: color-mix(in srgb, var(--sp-bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.auth-screen-loader[hidden] {
  display: none !important;
}

.auth-screen-loader-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  width: min(22rem, 100%);
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--sp-radius-lg);
  background: var(--sp-surface);
  border: 1px solid var(--sp-outline);
  box-shadow: 0 18px 48px rgba(26, 26, 46, 0.1);
  text-align: center;
}

.auth-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--sp-primary-soft);
  border-top-color: var(--sp-primary);
  animation: auth-spin 0.75s linear infinite;
}

.auth-screen-loader-card p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--sp-ink);
}

.auth-screen-loader-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sp-muted);
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner {
    animation: none;
    border-top-color: var(--sp-primary-soft);
    background: conic-gradient(from 0deg, var(--sp-primary), var(--sp-primary-soft));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  }
}

/* Verify email modal (pricing + account) */
body.sp-verify-modal-open {
  overflow: hidden;
}

.sp-verify-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.sp-verify-modal[hidden] {
  display: none !important;
}

.sp-verify-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 23, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sp-verify-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(26.5rem, 100%);
  padding: 1.85rem 1.6rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid var(--sp-outline);
  background:
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 38%),
    var(--sp-surface);
  box-shadow:
    0 24px 48px rgba(15, 17, 23, 0.16),
    0 0 0 1px rgba(0, 91, 255, 0.06);
  animation: sp-verify-in 0.28s var(--sp-ease);
}

.sp-verify-modal-x {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sp-muted);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.sp-verify-modal-x:hover {
  background: var(--sp-bg);
  color: var(--sp-ink);
}

.sp-verify-modal-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 1rem;
  border-radius: 1rem;
  color: var(--sp-primary);
  background: var(--sp-primary-soft);
}

.sp-verify-modal-title {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-ink);
}

.sp-verify-modal-email {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--sp-primary-deep);
  word-break: break-all;
}

.sp-verify-modal-text {
  margin: 0 0 1.15rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--sp-muted);
}

.sp-verify-modal-status {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.sp-verify-modal-status.is-ok {
  color: #15803d;
}

.sp-verify-modal-status.is-error {
  color: #b91c1c;
}

.sp-verify-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sp-verify-modal-actions .btn {
  width: 100%;
}

@keyframes sp-verify-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-verify-modal-dialog {
    animation: none;
  }
}


