/* Postmatch landing — статическая страница, тёмная тема.
   Токены согласованы с кабинетом (apps/web/src/index.css): акцент #2563eb,
   брендовый фиолетовый из логотипа #863bff. */

:root {
  --bg: #0d0d10;
  --bg-alt: #141419;
  --surface: #1b1b21;
  --border: #2a2a31;
  --text: #f4f4f6;
  --muted: #a0a0ab;
  --accent: #2563eb;
  --accent-2: #863bff;
  --radius: 14px;
  --wrap: 1120px;

  color-scheme: dark;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(134, 59, 255, 0.28);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--muted);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-header .btn-ghost {
  padding: 8px 18px;
}

/* --- Hero --- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 40px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 620px;
  background:
    radial-gradient(600px 340px at 18% 22%, rgba(134, 59, 255, 0.22), transparent 70%),
    radial-gradient(560px 320px at 82% 8%, rgba(37, 99, 235, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: var(--surface);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
}

.lede {
  margin: 20px 0 28px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.hero-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* --- Sections --- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: 14px auto 0;
  max-width: 40em;
  font-size: 17px;
}

/* --- Steps --- */

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

/* --- Features --- */

.features {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Pricing --- */

.pricing {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.price-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  position: relative;
}

.price-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(134, 59, 255, 0.6), rgba(37, 99, 235, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.price-name {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price-value {
  margin: 12px 0 2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.price-value .amount {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price-value .per {
  color: var(--muted);
  font-size: 17px;
}

.price-unit {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.price-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
}

.price-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 7px;
  width: 6px;
  height: 11px;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-fine {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* --- CTA band --- */

.cta-band {
  border-top: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer .brand {
  font-size: 16px;
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

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

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  width: 100%;
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-nav {
    display: none;
  }
  .hero {
    padding: 48px 0 32px;
  }
  .section {
    padding: 56px 0;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}
