/* Vual — vual.me. Brand rules: brand/README.md */

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #121316;          /* Графит */
  --surface: #1C1E22;     /* Уголь */
  --surface-2: #23262B;
  --line: rgba(242, 243, 245, 0.08);
  --line-strong: rgba(242, 243, 245, 0.14);
  --text: #F2F3F5;        /* Платина */
  --muted: #9A9CA6;
  --accent: #B8A6F8;      /* Лаванда */
  --accent-deep: #8E72F0; /* Фиалка */
  --haze: #E3DCFF;        /* Дымка */
  --accent-soft: rgba(184, 166, 248, 0.12);
  --radius: 20px;
  --max: 1120px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 10px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 14px;
  font: 600 16px/1 var(--head); letter-spacing: 0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--haze); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { height: 40px; padding: 0 18px; border-radius: 11px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 19, 22, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; text-decoration: none; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }

/* ---------- hero */
.hero { position: relative; overflow: hidden; padding: 104px 0 112px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--accent); font: 600 13px/1 var(--head); letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero h1 { font-size: clamp(42px, 6.2vw, 76px); font-weight: 800; letter-spacing: -0.035em; margin: 22px 0 24px; }
.hero h1 span { color: var(--accent); }
.lead { color: var(--muted); font-size: 19px; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.fine { margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero-mark { position: relative; isolation: isolate; justify-self: center; width: min(100%, 400px); }
.hero-mark::before {
  /* the veil: a soft lavender haze centred behind the mark */
  content: ""; position: absolute; inset: -45%; z-index: -1;
  background: radial-gradient(closest-side, rgba(142, 114, 240, 0.20), rgba(142, 114, 240, 0) 72%);
  pointer-events: none;
}
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(142, 114, 240, 0.25)); }

/* ---------- sections */
.section { padding: 104px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); margin-top: 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.card h3 { font-size: 20px; margin: 22px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 24px; height: 24px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 72px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent);
  font: 700 18px/1 var(--head);
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step a { color: var(--accent); text-decoration: none; }
.step a:hover { text-decoration: underline; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 14px; font-weight: 500;
}

/* pricing */
.prices { align-items: stretch; }
.price { display: flex; flex-direction: column; position: relative; padding: 34px 30px 30px; }
.price.featured { border-color: rgba(184, 166, 248, 0.55); background: linear-gradient(180deg, rgba(184, 166, 248, 0.08), rgba(184, 166, 248, 0) 60%), var(--surface); }
.badge {
  position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--bg); font: 700 12px/1.2 var(--head); letter-spacing: 0.04em;
}
.price .price-term { font: 600 18px/1.2 var(--head); margin: 0; }
.price .price-sum { color: var(--text); font: 800 46px/1 var(--head); letter-spacing: -0.03em; margin: 22px 0 8px; }
.price .price-sum small { font-size: 22px; font-weight: 700; margin-left: 4px; }
.price .price-note { color: var(--muted); font-size: 15px; min-height: 24px; }
.price-note b { color: var(--accent); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; flex: 1; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.price .btn { width: 100%; }

.trial {
  margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 30px;
}
.trial h3 { font-size: 20px; margin: 0 0 6px; }
.trial p { color: var(--muted); font-size: 16px; }
.pay-note { margin-top: 22px; color: var(--muted); font-size: 14px; text-align: center; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; gap: 20px;
  font: 600 18px/1.35 var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq details p { padding: 0 26px 24px; color: var(--muted); }
.faq a { color: var(--accent); }

/* final call */
.cta {
  text-align: center; padding: 72px 32px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, rgba(142, 114, 240, 0.22), rgba(142, 114, 240, 0) 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 520px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 14px; color: var(--text); font: 600 15px/1.3 var(--head); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .logo img { height: 26px; }
.foot .motto { margin-top: 16px; max-width: 280px; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.copy.solo { margin: 0; padding: 0; border: 0; }
.copy a { text-decoration: none; }
.copy a:hover { color: var(--text); }

/* ---------- legal pages */
.doc { max-width: 780px; padding: 72px 24px 104px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 4.5vw, 44px); }
.doc .meta { color: var(--muted); margin: 14px 0 44px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 44px 0 14px; }
.doc p, .doc li { color: #C9CBD2; font-size: 16px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.doc a { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #C9CBD2; }
.doc th { color: var(--text); font-weight: 600; }

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound img { width: 120px; margin: 0 auto 32px; opacity: .9; }
.notfound p { color: var(--muted); margin: 14px 0 32px; }

/* ---------- responsive */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 80px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-mark { order: -1; justify-self: start; width: 120px; margin-bottom: 8px; }
  .hero-mark::before { inset: -110%; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .prices { grid-template-columns: 1fr; max-width: 520px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 64px; }
  .logo img { height: 26px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .trial { flex-direction: column; align-items: flex-start; padding: 24px; }
  .trial .btn { width: 100%; }
  .faq summary { padding: 18px 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 20px; }
  .cta { padding: 52px 20px; border-radius: 22px; }
  .foot { grid-template-columns: 1fr; }
  .doc { padding: 48px 16px 80px; }
}
