/* SaaS Navigator — общая тема страниц воронки.
   Палитра снята один-в-один с index.html (клон Discord). */

:root {
  --bg-deep:      #1E1F22;
  --bg-primary:   #313338;
  --bg-card:      #2B2D31;
  --bg-inset:     #232428;
  --bg-raised:    #383A40;

  --blurple:      #5865F2;
  --blurple-dark: #4752C4;
  --green:        #23A55A;
  --green-dark:   #1E9350;
  --red:          #DA373C;
  --amber:        #F0B232;

  --text:         #F2F3F5;
  --text-2:       #DBDEE1;
  --text-muted:   #B5BAC1;
  --text-faint:   #949BA4;
  --text-channel: #80848E;
  --text-dim:     #5C5F66;

  --line:         rgba(255,255,255,0.07);
  --line-strong:  rgba(255,255,255,0.12);
  --shadow:       0 12px 40px rgba(0,0,0,0.3);

  --ui:   'gg sans', 'Noto Sans', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(24px, 6vw, 64px) 20px;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(88,101,242,0.25); }

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

.sn-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.sn-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--blurple);
  display: grid; place-items: center;
  flex: none;
}
.sn-mark svg { display: block; }

.sn-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.sn-title span { color: var(--text-channel); font-weight: 500; }

/* ---------- карточка ---------- */

.sn-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 38px);
  box-shadow: var(--shadow);
  animation: msgRise .45s cubic-bezier(.2,.8,.3,1) both;
}
.sn-card--wide { max-width: 660px; }

@keyframes msgRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sn-card { animation: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- типографика ---------- */

h1 {
  font-family: var(--ui);
  font-size: clamp(26px, 5.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}

.sn-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 26px;
}

.sn-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- бейдж состояния ---------- */

.sn-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.sn-badge--green   { background: rgba(35,165,90,0.12);  color: var(--green);   border: 1px solid rgba(35,165,90,0.28); }
.sn-badge--blurple { background: rgba(88,101,242,0.12); color: #C9CDFB;        border: 1px solid rgba(88,101,242,0.28); }
.sn-badge--red     { background: rgba(218,55,60,0.12);  color: #F0A0A2;        border: 1px solid rgba(218,55,60,0.28); }
.sn-badge--amber   { background: rgba(240,178,50,0.12); color: var(--amber);   border: 1px solid rgba(240,178,50,0.28); }

.sn-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.sn-dot--pulse { animation: livePulse 2s ease-out infinite; }

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(35,165,90,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(35,165,90,0); }
}

/* ---------- таймлайн шагов ---------- */

.sn-steps { display: grid; gap: 2px; margin: 0 0 22px; }

.sn-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.sn-step:last-child { border-bottom: 0; }

.sn-step-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--line-strong);
  flex: none;
}
.sn-step--done    .sn-step-icon { background: rgba(35,165,90,0.14);  border-color: rgba(35,165,90,0.4);  color: var(--green); }
.sn-step--active  .sn-step-icon { background: rgba(88,101,242,0.14); border-color: rgba(88,101,242,0.4); color: #C9CDFB; }
.sn-step--pending .sn-step-icon { color: var(--text-dim); }

.sn-step-title {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.sn-step--pending .sn-step-title { color: var(--text-channel); }

.sn-step-body { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.sn-step--pending .sn-step-body { color: var(--text-dim); }

.sn-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(88,101,242,0.16);
  color: #C9CDFB;
}

/* ---------- врезки ---------- */

.sn-box {
  border-radius: 11px;
  padding: 15px 17px;
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
}
.sn-box--amber   { background: rgba(240,178,50,0.08);  border: 1px solid rgba(240,178,50,0.2);  color: #E8CE9A; }
.sn-box--inset   { background: var(--bg-inset);        border: 1px solid var(--line);           color: var(--text-muted); }
.sn-box--red     { background: rgba(218,55,60,0.08);   border: 1px solid rgba(218,55,60,0.22);  color: #E5A9AB; }
.sn-box b, .sn-box strong { color: var(--text); }

.sn-box-label {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-channel);
  margin-bottom: 9px;
}

/* ---------- обратный отсчёт ---------- */

.sn-timer {
  background: var(--bg-inset);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 18px;
  margin: 0 0 22px;
  text-align: center;
}

.sn-timer-label {
  font-family: var(--ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-channel);
  margin-bottom: 12px;
}

.sn-clock { display: flex; justify-content: center; gap: 8px; }

.sn-tile {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 0 8px;
  width: 82px;
}
.sn-tile-num {
  font-family: var(--ui);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.sn-tile-lab {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}
.sn-colon { font-size: 26px; font-weight: 700; color: var(--text-dim); align-self: center; }

.sn-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  margin-top: 15px;
  overflow: hidden;
}
.sn-bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 1s linear, background .4s;
}

/* ---------- цена ---------- */

.sn-price {
  background: var(--bg-inset);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 20px;
  margin: 0 0 18px;
}
.sn-price-head {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-channel);
  margin-bottom: 8px;
}
.sn-price-amount {
  font-family: var(--ui);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sn-price-amount span { font-size: 16px; font-weight: 600; color: var(--text-channel); letter-spacing: 0; }

.sn-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.sn-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.sn-list li::before { content: '✓'; color: var(--green); font-weight: 700; }

/* ---------- кнопки ---------- */

.sn-btn {
  display: block;
  width: 100%;
  padding: 16px 22px;
  border: 0;
  border-radius: 11px;
  font-family: var(--ui);
  font-size: 15.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, transform .12s;
}
.sn-btn:active { transform: translateY(1px); }
.sn-btn--pay     { background: var(--green);   color: #fff; }
.sn-btn--pay:hover     { background: var(--green-dark); }
.sn-btn--primary { background: var(--blurple); color: #fff; }
.sn-btn--primary:hover { background: var(--blurple-dark); }
.sn-btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
}
.sn-btn--ghost:hover { background: rgba(255,255,255,0.04); }

.sn-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 13px;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

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

.sn-foot {
  width: 100%;
  max-width: 600px;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-dim);
}
.sn-foot a { color: var(--text-channel); text-decoration: none; }
.sn-foot a:hover { color: var(--text-2); text-decoration: underline; }

a { color: #C9CDFB; }

@media (max-width: 420px) {
  .sn-tile { width: 72px; }
  .sn-tile-num { font-size: 26px; }
}
