/* =========================================================
   POSTIFYER LANDING — page-specific styles.
   Imports tokens from ../colors_and_type.css.
   ========================================================= */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--pf-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--pf-ink);
  background: var(--pf-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--pf-primary); text-decoration: none; }
a:hover { color: var(--pf-primary-hover); }

/* Prevent horizontal scroll without clipping shadows of inner elements. */
html, body { overflow-x: clip; }

/* -------- Theme ------ */
:root {
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;          /* off-white section bg */
  --bg-3: #F4F5F8;          /* even more recessed */
  --surface: #FFFFFF;
  --surface-2: #FFFFFF;
  --fg: #0E1116;
  --fg-2: #3A4150;
  --fg-3: #6B7280;
  --fg-4: #A0A6B2;
  --line: #E6E8EE;
  --line-2: #D5D9E1;
  --shadow-card: 0 8px 24px rgba(14,17,22,.06), 0 2px 6px rgba(14,17,22,.04);
  --shadow-card-hover: 0 20px 40px rgba(14,17,22,.10), 0 4px 10px rgba(14,17,22,.06);
}
html[data-theme="dark"] {
  --bg: #0B0F17;
  --bg-2: #0F141F;
  --bg-3: #141A26;
  --surface: #161D2A;
  --surface-2: #1B2233;
  --fg: #F5F7FB;
  --fg-2: #C7CEDC;
  --fg-3: #8E97A8;
  --fg-4: #5C6478;
  --line: #232B3D;
  --line-2: #2E384D;
  --shadow-card: 0 8px 24px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.3);
  --shadow-card-hover: 0 20px 40px rgba(0,0,0,.6), 0 4px 10px rgba(0,0,0,.4);
}
body { background: var(--bg); color: var(--fg); }

/* -------- Layout ------ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* -------- Typography helpers ------ */
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pf-primary-soft);
  color: var(--pf-primary);
  font-family: var(--pf-font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 20px;
}
html[data-theme="dark"] .eyebrow { background: rgba(92,127,250,.16); color: #93AEFB; }

h1, h2, h3, h4 { font-family: var(--pf-font-display); margin: 0; color: var(--fg); letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--fg-2); max-width: 56ch; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 16px auto 0; }

/* -------- Nav ------ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.84);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .nav { background: rgba(11,15,23,.84); }
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 0;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--pf-font-display);
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--fg);
}
.nav-brand .mark {
  width: 30px; height: 30px;
  overflow: hidden; display: grid; place-items: center;
}
.nav-brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; flex: 1; }
.nav-links a {
  font-family: var(--pf-font-ui); font-size: 14px; font-weight: 600; color: var(--fg-2);
}
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.theme-toggle {
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; width: 34px; height: 34px;
  display: grid; place-items: center; cursor: pointer; color: var(--fg-2);
}
.theme-toggle:hover { background: var(--bg-3); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* -------- Buttons ------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--pf-font-ui); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: all 160ms cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
}
.btn-primary {
  background: var(--pf-primary); color: #fff;
  box-shadow: 0 4px 12px rgba(92,127,250,.32);
}
.btn-primary:hover { background: var(--pf-primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(92,127,250,.4); }
.btn-primary:active { transform: translateY(0); background: var(--pf-primary-press); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-3); }
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 14px; }

/* -------- Hero ------ */
.hero { padding: 64px 0 80px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
}
@media (max-width: 1080px) { .hero-grid { gap: 32px; } }
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 18px; font-size: 13px; color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pf-font-ui);
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: #3FB68B; }

/* Hero visual: two phones with arrow */
.hero-stage {
  position: relative; display: flex; align-items: center; gap: 12px;
  justify-content: center; padding: 16px 0;
  min-width: 0;
}
.hero-stage::before {
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 140%; height: 130%; z-index: -1;
  background:
    radial-gradient(closest-side at 38% 45%, rgba(62,119,249,.32), transparent 75%),
    radial-gradient(closest-side at 65% 60%, rgba(115,93,243,.30), transparent 75%);
  pointer-events: none;
}
.hero-stage::after {
  /* a tight halo right behind the phone so its bezel reads against white */
  content: ''; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 100%; height: 86%; z-index: -1;
  background: radial-gradient(closest-side, rgba(14,17,22,.06), transparent 70%);
  pointer-events: none;
}
html[data-theme="dark"] .hero-stage::before {
  background:
    radial-gradient(closest-side at 38% 45%, rgba(92,127,250,.28), transparent 75%),
    radial-gradient(closest-side at 65% 60%, rgba(115,93,243,.26), transparent 75%);
}
html[data-theme="dark"] .hero-stage::after {
  background: radial-gradient(closest-side, rgba(0,0,0,.4), transparent 70%);
}

.phone {
  width: 260px; height: 520px; flex-shrink: 1; min-width: 0;
  border-radius: 36px;
  background: var(--bg-3);
  box-shadow: 0 30px 60px rgba(14,17,22,.18), 0 0 0 8px var(--surface), 0 0 0 9px var(--line);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
}

/* Demo video overlays the static fallback once it's ready. */
.phone-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 3;
  border-radius: inherit;
  background: transparent;
  opacity: 0; transition: opacity 320ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.phone-video.ready { opacity: 1; }
@media (max-width: 1080px) { .phone { width: 240px; height: 480px; } }
html[data-theme="dark"] .phone { box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 8px #0E1623, 0 0 0 9px #1B2233; }
.phone .tg-header {
  background: var(--surface); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  flex-shrink: 0;
}
.phone .tg-header .av {
  width: 28px; height: 28px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
}
.phone .tg-header .av img { width: 100%; height: 100%; object-fit: contain; display: block; }
.phone .tg-header .name { font-size: 13px; font-weight: 600; color: var(--fg); font-family: var(--pf-font-ui); }
.phone .tg-header .stat { font-size: 11px; color: #3FB68B; }
.phone .tg-body {
  flex: 1; padding: 10px 8px; background: var(--bg-3);
  display: flex; flex-direction: column; gap: 4px; overflow: hidden;
}
.phone .bub {
  max-width: 86%; padding: 8px 11px;
  font-size: 12.5px; line-height: 1.42; font-family: var(--pf-font-body);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(14,17,22,.06);
}
.phone .bub.in  { background: var(--surface); border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.phone .bub.out { background: #E8EEFE; color: #0E1116; border-radius: 14px 14px 4px 14px; align-self: flex-end; }
html[data-theme="dark"] .phone .bub.out { background: #1F2D52; color: #E5EBFD; }
.phone .bub.post {
  border-left: 3px solid; border-image: linear-gradient(180deg, #3E77F9, #735DF3) 1;
  padding-left: 12px;
}
.phone .bub.post h4 { font-family: var(--pf-font-ui); font-size: 12.5px; font-weight: 700; margin: 0 0 4px; color: var(--fg); letter-spacing: -.01em; }
.phone .bub.post .meta { font-family: var(--pf-font-ui); font-size: 9.5px; font-weight: 700; color: var(--pf-primary); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.phone .bub.post p { margin: 0 0 6px; font-size: 11.5px; line-height: 1.45; color: var(--fg); }
.phone .bub .fwd { font-size: 10px; font-weight: 700; color: var(--pf-primary); margin-bottom: 3px; border-left: 2px solid var(--pf-primary); padding-left: 5px; }
.phone .bub .ch { font-size: 9.5px; color: var(--fg-3); margin-left: 7px; margin-bottom: 5px; }
.phone .ikb { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 4px; }
.phone .ikb .k { font-size: 10.5px; padding: 6px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--pf-primary); font-family: var(--pf-font-ui); font-weight: 600; text-align: center; }
.phone .ikb .k.pri { background: var(--pf-primary); color: #fff; border-color: transparent; }
.phone .voice {
  background: #E8EEFE; border-radius: 14px 14px 4px 14px; padding: 7px 10px; align-self: flex-end;
  display: flex; align-items: center; gap: 6px; min-width: 140px; max-width: 86%;
}
html[data-theme="dark"] .phone .voice { background: #1F2D52; }
.phone .voice .play { width: 22px; height: 22px; border-radius: 50%; background: var(--pf-primary); color: #fff; display: grid; place-items: center; font-size: 9px; flex-shrink: 0; }
.phone .voice .wave { flex: 1; display: flex; align-items: center; gap: 1.5px; height: 16px; }
.phone .voice .wave span { flex: 1; background: var(--pf-primary); border-radius: 1px; }

.hero-arrow {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--pf-brand-gradient);
  color: #fff;
  display: grid; place-items: center;
  font-size: 22px; box-shadow: 0 8px 24px rgba(92,127,250,.42);
}
@media (max-width: 940px) {
  .hero-stage { flex-direction: column; gap: 8px; }
  .phone { width: 260px; height: 520px; }
}
@media (max-width: 540px) {
  .phone { width: 84%; max-width: 280px; height: auto; aspect-ratio: 240 / 480; }
}

/* -------- Trust strip ------ */
.trust {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.trust-inner {
  display: flex; align-items: center; justify-content: center; gap: 32px 56px;
  flex-wrap: wrap;
}
.trust .label {
  font-family: var(--pf-font-ui); font-size: 13px; font-weight: 600;
  color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em;
}
.trust .logo {
  font-family: var(--pf-font-display); font-weight: 700; font-size: 18px;
  color: var(--fg-3); letter-spacing: -.01em; opacity: .8;
}

/* -------- How it works ------ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  position: relative;
}
.step .n {
  font-family: var(--pf-font-display); font-weight: 800; font-size: 14px;
  color: var(--pf-primary);
  background: var(--pf-primary-soft);
  width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 16px;
}
html[data-theme="dark"] .step .n { background: rgba(92,127,250,.15); }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--fg-2); }

/* -------- Features ------ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: var(--line-2); }
.feature.accent {
  background: linear-gradient(135deg, #3E77F9 0%, #735DF3 100%);
  border-color: transparent;
  color: #fff;
}
.feature.accent .ico { background: rgba(255,255,255,.18); }
.feature.accent:hover { box-shadow: 0 20px 40px rgba(92,127,250,.36); }
.feature-cta { text-decoration: none; background: transparent; border-style: dashed; }
.feature-cta:hover { background: var(--bg-3); border-color: var(--pf-primary); border-style: solid; color: inherit; }
.feature-cta:hover .ico { border-color: var(--pf-primary) !important; color: var(--pf-primary) !important; }
.feature-cta:hover h3 { color: var(--fg) !important; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--pf-primary-soft);
  display: grid; place-items: center; font-size: 22px;
  margin-bottom: 8px;
}
html[data-theme="dark"] .feature .ico { background: rgba(92,127,250,.15); }
.feature.accent .ico { background: var(--pf-brand-gradient); }
.feature h3 { margin: 0; font-size: 18px; }
.feature p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.5; }

/* -------- Compare table ------ */
.compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.compare-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row .cell { padding: 18px 22px; }
.compare-row.head .cell { padding: 22px; background: var(--bg-2); font-family: var(--pf-font-ui); font-weight: 700; font-size: 15px; color: var(--fg); }
.compare-row.head .cell:last-child {
  background: linear-gradient(135deg, #3E77F9, #735DF3); color: #fff;
}
.compare-row.head .cell:nth-child(2) { color: var(--fg-3); }
.compare-row .label { font-family: var(--pf-font-ui); font-weight: 600; color: var(--fg); font-size: 15px; }
.compare-row .vs { color: var(--fg-3); font-size: 14px; }
.compare-row .pf { font-family: var(--pf-font-ui); font-weight: 600; color: var(--fg); font-size: 14px; }
.compare-row .pf::before { content: '✓ '; color: #3FB68B; font-weight: 700; }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; }
  .compare-row .cell { padding: 14px 18px; }
  .compare-row.head { display: none; }
  .compare-row .vs::before { content: 'Руками: '; color: var(--fg-3); font-weight: 600; }
  .compare-row .pf::before { content: '✓ С Postifyer: '; color: #3FB68B; font-weight: 700; }
}

/* -------- Pricing ------ */
.trial {
  background: linear-gradient(135deg, #3E77F9, #735DF3);
  border-radius: 24px; padding: 32px;
  color: #fff;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: center;
  margin-bottom: 32px;
  position: relative; overflow: hidden;
  isolation: isolate;
}

/* -------- Hero post-card image (real generated photo) ------ */
.phone .bub.post .img {
  margin: -8px -11px 8px;
  display: block; width: calc(100% + 22px);
  aspect-ratio: 16/11; object-fit: cover;
}
.phone .bub.post .quote {
  margin-top: 8px;
  background: #FBE3E4;
  border-left: 3px solid #E5484D;
  padding: 5px 8px; border-radius: 4px;
  font-size: 11px; line-height: 1.4; color: #6B1A1E; font-style: italic;
  font-family: var(--pf-font-body);
}
html[data-theme="dark"] .phone .bub.post .quote {
  background: rgba(229,72,77,.14); color: #FFB2B5;
}
.phone .bub.post .sig {
  margin-top: 8px; font-size: 11px; color: var(--fg-3); font-family: var(--pf-font-ui);
}
.phone .bub.post .sig a { color: var(--pf-primary); font-weight: 600; }
.trial::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.08); pointer-events: none;
}
.trial .badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-size: 12px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase;
  font-family: var(--pf-font-ui);
}
.trial h3 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 800; line-height: 1.1; margin: 0 0 8px;
  color: #fff; letter-spacing: -.02em;
}
.trial p { margin: 0; opacity: .92; font-size: 15px; }
.trial .cta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.trial .btn-primary { background: #fff; color: var(--pf-primary); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.trial .btn-primary:hover { background: #fff; color: var(--pf-primary-press); transform: translateY(-1px); }
.trial .note { font-size: 13px; opacity: .85; }
@media (max-width: 720px) { .trial { grid-template-columns: 1fr; padding: 24px; } }

.tiers {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
@media (max-width: 1080px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .tiers { grid-template-columns: 1fr; } }

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.tier.popular {
  border-color: var(--pf-primary);
  box-shadow: 0 0 0 3px rgba(92,127,250,.14), var(--shadow-card);
}
.tier.popular::before {
  content: 'Популярный'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--pf-primary); color: #fff;
  font-family: var(--pf-font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.tier .name { font-family: var(--pf-font-display); font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.tier .price { font-family: var(--pf-font-display); display: flex; align-items: baseline; gap: 4px; }
.tier .price .num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--fg); }
.tier .price .per { font-size: 13px; color: var(--fg-3); font-weight: 500; font-family: var(--pf-font-ui); }
.tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tier ul li {
  font-size: 13.5px; color: var(--fg-2); display: flex; gap: 8px; align-items: flex-start;
  font-family: var(--pf-font-ui);
}
.tier ul li::before {
  content: ''; flex-shrink: 0;
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--pf-primary-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C7FFA' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/10px no-repeat;
  margin-top: 2px;
}
html[data-theme="dark"] .tier ul li::before { background-color: rgba(92,127,250,.18); }
.tier ul li.off { color: var(--fg-4); text-decoration: line-through; }
.tier ul li.off::before { background-color: var(--bg-3); background-image: none; }
.tier .btn { width: 100%; padding: 10px 14px; font-size: 14px; }

/* -------- FAQ ------ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0; overflow: hidden;
}
.faq details[open] { background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--pf-font-ui); font-weight: 600; font-size: 16px; color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 14px; height: 14px; flex-shrink: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") center/contain no-repeat;
  transition: transform 200ms;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer { padding: 0 22px 22px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }

/* -------- CTA banner ------ */
.endcta {
  background: linear-gradient(135deg, #3E77F9, #735DF3);
  border-radius: 28px; padding: 56px 48px; color: #fff;
  text-align: center; position: relative; overflow: hidden;
  isolation: isolate;
}
.endcta::before, .endcta::after {
  content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.07); pointer-events: none;
}
.endcta::before { left: -120px; top: -120px; }
.endcta::after { right: -120px; bottom: -160px; }
.endcta h2 { color: #fff; max-width: 16ch; margin: 0 auto 18px; position: relative; }
.endcta p { margin: 0 auto 28px; max-width: 50ch; opacity: .95; font-size: 18px; position: relative; }
.endcta .row { position: relative; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.endcta .btn-primary { background: #fff; color: var(--pf-primary); }
.endcta .btn-primary:hover { background: #fff; color: var(--pf-primary-press); }
.endcta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.endcta .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* -------- Footer ------ */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer .brand-block { max-width: 280px; }
.footer .brand-block p { font-size: 14px; color: var(--fg-3); margin: 12px 0 0; }
.footer h5 { font-family: var(--pf-font-ui); font-size: 13px; font-weight: 700; color: var(--fg-3); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--fg-2); font-size: 14px; font-family: var(--pf-font-ui); }
.footer ul a:hover { color: var(--fg); }
.footer-bot {
  border-top: 1px solid var(--line); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--fg-3); font-family: var(--pf-font-ui); flex-wrap: wrap;
}

/* -------- Video modal ------ */
.video-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.video-modal[data-open] { display: flex; animation: vmFade 200ms cubic-bezier(.2,.7,.2,1); }
.video-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(14,17,22,.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.video-modal-panel {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 26px 24px;
  width: 100%; max-width: 420px;
  box-shadow: 0 32px 64px rgba(14,17,22,.32), 0 8px 24px rgba(14,17,22,.18);
  animation: vmPop 220ms cubic-bezier(.2,.7,.2,1);
}
@keyframes vmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vmPop  { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }

.video-modal h3 {
  margin: 0 0 6px;
  font-family: var(--pf-font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  color: var(--fg);
}
.video-modal p {
  margin: 0 0 20px;
  font-size: 14px; color: var(--fg-3);
  font-family: var(--pf-font-ui);
}
.video-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 999px;
  border: 0; background: var(--bg-3); color: var(--fg-2);
  cursor: pointer; display: grid; place-items: center;
  transition: background 160ms;
}
.video-modal-close:hover { background: var(--line); color: var(--fg); }

.vm-platforms { display: flex; flex-direction: column; gap: 10px; }
.vm-platform {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  text-decoration: none; color: var(--fg);
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.vm-platform:hover { background: var(--bg-3); border-color: var(--line-2); transform: translateY(-1px); color: var(--fg); }
.vm-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; flex-shrink: 0;
}
.vm-platform.youtube .vm-icon { background: #FF0000; }
.vm-platform.vk      .vm-icon { background: #0077FF; }
.vm-platform.rutube  .vm-icon {
  background: linear-gradient(135deg, #00FFFF 0%, #FF00FF 100%);
}
.vm-label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vm-name {
  font-family: var(--pf-font-ui); font-size: 15px; font-weight: 700;
  color: var(--fg);
}
.vm-host {
  font-family: var(--pf-font-mono); font-size: 11px;
  color: var(--fg-3);
}
.vm-chev { color: var(--fg-4); font-size: 18px; font-weight: 400; }
.vm-platform:hover .vm-chev { color: var(--pf-primary); }

body.vm-lock { overflow: hidden; }

/* -------- Mobile polish ------ */
@media (max-width: 540px) {
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 12px 0; gap: 10px; }
  .nav-brand { font-size: 16px; }
  .nav-brand .mark { width: 26px; height: 26px; border-radius: 8px; }
  .nav-actions .btn { padding: 9px 14px; font-size: 13px; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 56px; }
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .lead { font-size: 16px; }
  .hero-cta .btn-lg { padding: 14px 22px; font-size: 15px; }
  .endcta { padding: 36px 24px; border-radius: 20px; }
  .endcta h2 { font-size: 26px; }
  .endcta p { font-size: 16px; }
  .trial { padding: 24px 22px; border-radius: 20px; }
  .trial h3 { font-size: 22px; }
  .step, .feature, .tier { padding: 22px 20px; }
  .compare-row .cell { padding: 14px 16px; }
  .section-head { margin-bottom: 36px; }
  .footer { padding: 40px 0 24px; }
  .footer-grid { gap: 24px; margin-bottom: 24px; }
}
