/* ===========================================================
   Prisma VPN — Landing styles
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #7c3aed;
  --accent-light: #8b5cf6;
  --dark: #0b0d19;
  --text: #151e30;
  --text-muted: rgba(21, 30, 48, 0.58);
  --radius: 30px;
}

html { scroll-behavior: smooth; }
:target, #features, #faq { scroll-margin-top: 68px; }
body {
  font-family: 'Onest', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ===== Nav ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, border 0.3s;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e9e9e9;
}
.nav-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: #fff;
  transition: color 0.3s; flex-shrink: 0; white-space: nowrap;
}
nav.scrolled .nav-logo { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 8px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
nav.scrolled .nav-links a { color: var(--text-muted); }
nav.scrolled .nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* Buttons */
.btn-ghost {
  display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 500;
  padding: 9px 18px; border-radius: 100px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.btn-ghost:hover { color: #fff; }
nav.scrolled .btn-ghost { color: var(--text-muted); }
nav.scrolled .btn-ghost:hover { color: var(--text); }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 600;
  text-align: center; /* keep wrapped text centered when it breaks across lines */
  padding: 10px 22px; border-radius: 100px;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3); }
.btn-primary-lg { font-size: 16px; padding: 16px 36px; }

/* Language picker */
.lang-picker { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  padding: 8px 10px; border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover { color: #fff; }
nav.scrolled .lang-btn { color: rgba(21, 30, 48, 0.5); }
nav.scrolled .lang-btn:hover { color: var(--text); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  list-style: none; padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  min-width: 160px;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 110;
}
.lang-picker.open .lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-menu li {
  font-size: 13px; font-weight: 500;
  padding: 8px 12px; border-radius: 6px;
  cursor: pointer; color: var(--text);
  transition: background 0.15s;
}
.lang-menu li:hover { background: rgba(124, 58, 237, 0.06); color: var(--accent); }
.lang-menu li.active { background: rgba(124, 58, 237, 0.08); color: var(--accent); font-weight: 600; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; margin-left: auto; z-index: 110;
  padding: 6px; background: none;
}
.hamburger span {
  width: 22px; height: 2px; background: #fff;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}
nav.scrolled .hamburger span,
nav.menu-open .hamburger span { background: var(--text); }
nav.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-right { display: none !important; }
}

/* Mobile full-screen menu */
.menu-overlay {
  position: fixed; inset: 0;
  background: #fff; z-index: 99;
  display: flex; flex-direction: column;
  padding: 88px 28px 40px;
  opacity: 0; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.menu-overlay-links { display: flex; flex-direction: column; }
.menu-overlay-links a {
  font-size: 22px; font-weight: 500; color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid rgba(21, 30, 48, 0.06);
  display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
.menu-overlay-links a:hover { color: var(--accent); }
.menu-overlay-links a::after { content: '›'; color: rgba(21, 30, 48, 0.3); font-weight: 300; font-size: 22px; }
.menu-overlay-bottom {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 24px;
}
.menu-overlay-bottom-row {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
}
.menu-bottom-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  background: none; border: none;
  padding: 8px 4px;
  cursor: pointer;
  text-decoration: none;
}
.menu-bottom-link:hover { color: var(--accent); }
.menu-bottom-link svg { color: var(--text-muted); }
.menu-bottom-lang-code {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  margin-left: 2px;
}
.menu-overlay-sep {
  width: 1px; height: 20px;
  background: rgba(21, 30, 48, 0.14);
}
.lang-picker-mobile { position: relative; }
.lang-menu-mobile {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  list-style: none; padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.06);
  min-width: 180px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  z-index: 110;
  margin: 0;
}
.lang-picker-mobile.open .lang-menu-mobile {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, 0);
}
.lang-menu-mobile li {
  font-size: 14px; font-weight: 500;
  padding: 10px 14px; border-radius: 8px;
  cursor: pointer; color: var(--text);
  transition: background 0.15s;
  white-space: nowrap;
}
.lang-menu-mobile li:hover { background: rgba(124, 58, 237, 0.06); color: var(--accent); }
.lang-menu-mobile li.active { background: rgba(124, 58, 237, 0.10); color: var(--accent); font-weight: 600; }
.menu-overlay-cta-btn {
  padding: 16px 32px; font-size: 16px; width: 100%;
  text-align: center;
}

/* Floating CTA */
.floating-cta {
  position: fixed; bottom: 50px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 50;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
}
.floating-cta.visible {
  opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto;
}
.floating-cta a {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 600;
  text-align: center;
  padding: 16px 40px; border-radius: 100px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  position: relative; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.floating-cta a:hover {
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}
.floating-cta a::after {
  content: ''; position: absolute; top: 0; left: -60px;
  width: 30px; height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  animation: shimmer-cta 6s ease-in-out infinite;
}
@keyframes shimmer-cta {
  0% { left: -60px; }
  30%, 100% { left: calc(100% + 60px); }
}

/* ===== Hero ===== */
.hero {
  background: var(--dark);
  background-image:
    radial-gradient(30% 80% at 0 0, #2a1a5e, transparent),
    radial-gradient(25% 55% at 100% 100%, #1a1050, transparent);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 140px;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}
.hero-text { max-width: 540px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px; color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}
.hero-badge-date { font-size: 12px; color: rgba(255, 255, 255, 0.4); margin-left: 4px; }
.dot-green {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 6px #22c55e; flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 .accent { color: var(--accent-light); }
.hero p {
  font-size: 18px; line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 32px;
}
.hero-actions { display: flex; align-items: center; gap: 12px; }
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.hero-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.30) 0%, transparent 70%);
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hero-phone-img {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

/* ===== Rounded group (light bg) =====
   Used by doc pages (privacy/terms/support). Top-rounded only — the dark
   footer below gets its OWN top-rounded shoulder which tucks under this. */
.rounded-group {
  background: #f3f5ff;
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative; z-index: 2;
  padding: 100px 0 0;
  overflow: hidden;
}

/* ===== Band system (landing only) =====
   Light bands are rounded "blobs" with all 4 corners curved that float OVER
   the flat dark/white bands behind them. Light bands have higher z-index;
   their negative margins overlap neighbours, and their curved corners reveal
   the flat band's bg through both top and bottom corners. */
.band {
  position: relative;
  overflow: hidden;
}
.band-light {
  z-index: 4;
  background: #f3f5ff;
  border-radius: 40px;
  margin-top: -40px;
  margin-bottom: -40px;
  padding: 100px 0 80px;
}
.band-dark, .band-white {
  z-index: 2;
  padding: 100px 0;
}
.band-dark {
  background: var(--dark);
  background-image:
    radial-gradient(40% 60% at 0 0, #2a1a5e, transparent),
    radial-gradient(35% 55% at 100% 100%, #1a1050, transparent);
}
.band-white { background: #fff; }

/* Invert text + card surfaces inside dark bands */
.band-dark .pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
}
.band-dark .s-title { color: #fff; }
.band-dark .s-sub { color: rgba(255, 255, 255, 0.65); }
.band-dark .feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.band-dark .feature h3 { color: #fff; }
.band-dark .feature p { color: rgba(255, 255, 255, 0.6); }
/* Solid light hand-drawn blob behind illustrations on the dark band.
   .feature already has overflow:hidden + border-radius — blob clips to the rounded card. */
.band-dark .feature-corner { position: relative; z-index: 0; }
.band-dark .feature-corner::before {
  content: "";
  position: absolute;
  width: 190%; height: 190%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background-image: url("assets/illust-bg-decor.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}
.band-dark .feature-corner img { position: relative; z-index: 1; }

.section { padding-bottom: 100px; }
.section-header-center { text-align: center; }

/* Cards & typography */
.card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.card-pad { padding: 52px 48px; }

.pill {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(21, 30, 48, 0.14);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.s-title {
  font-size: 40px; font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 48px;
  margin-bottom: 16px;
}
.s-sub {
  font-size: 18px; color: var(--text-muted);
  line-height: 24px;
}
.s-sub--platforms { margin-bottom: 48px; }
.s-sub--center { max-width: 520px; margin: 0 auto; }

/* ===== Platforms card ===== */
.platforms-card {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: rgba(124, 58, 237, 0.06);
  box-shadow: none;
}
.platforms-text { display: flex; flex-direction: column; justify-content: space-between; }
.platforms-h3 {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}
.platforms-p {
  font-size: 15px; color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.platforms-list {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(21, 30, 48, 0.08);
}
.platforms-list-title {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.platforms-icons { display: flex; gap: 36px; flex-wrap: wrap; }
.platform { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.platform-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: #f0f1f8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.platform-ico svg { width: 22px; height: 22px; }
.platform:hover .platform-ico {
  background: rgba(124, 58, 237, 0.09);
  border-color: rgba(124, 58, 237, 0.33);
  color: var(--accent);
}
.platform span { font-size: 11px; color: var(--text-muted); }
.platforms-illus {
  position: relative;
  z-index: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
}
.platforms-illus::before {
  content: "";
  position: absolute;
  width: 95%; height: 95%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background-image: url("assets/illust-bg-decor-white.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
  pointer-events: none;
}
.platforms-illus img {
  width: 100%; height: 100%;
  max-width: 460px; max-height: 380px;
  object-fit: contain;
  position: relative; z-index: 1;
}

/* ===== Features grid ===== */
.features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 60px;
}
.feature {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 30px;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 56px 48px 0;
  display: flex; flex-direction: column;
}
.feature h3 {
  font-size: 26px; font-weight: 600;
  line-height: 34px;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.feature p {
  color: var(--text-muted);
  font-size: 18px; line-height: 26px;
  margin-bottom: 20px;
}
.feature-corner {
  margin-top: auto;
  margin-left: auto;
  margin-right: -8px;
  margin-bottom: -8px;
  width: 200px; height: 170px;
  display: flex; align-items: center; justify-content: center;
}
.feature-corner img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
}
.security-grid { margin-top: 60px; }

/* ===== Testimonials ===== */
.reviews-header { margin-bottom: 48px; }
.reviews-rating { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reviews-rating .stars { display: inline-flex; align-items: center; gap: 2px; }
.reviews-rating .rating-num { color: var(--accent); font-weight: 600; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.review-card {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.06);
}
.review-card .review-text { font-size: 15px; line-height: 1.65; flex: 1; }
.review-card .review-author { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== Comparison table ===== */
.vs-wrap { position: relative; }
.vs-head-grid {
  display: grid; grid-template-columns: 1.1fr 360px;
  gap: 32px; align-items: center;
  margin-bottom: 40px;
}
.vs-illus {
  width: 240px; height: 200px;
  justify-self: end;
}
.vs-illus img { width: 100%; height: 100%; object-fit: contain; }
.vs-shell {
  position: relative;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 28px;
  padding: 24px 8px;
}
.vs-table { width: 100%; position: relative; }
.vs-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  padding: 22px 36px;
  align-items: center;
  border-bottom: 1px solid rgba(21, 30, 48, 0.06);
  position: relative;
}
.vs-row:last-child { border-bottom: none; }
.vs-row > div:nth-child(2),
.vs-row > div:nth-child(3) { text-align: center; }
.vs-row.vs-head { padding-top: 28px; padding-bottom: 22px; border-bottom: 1px solid rgba(21, 30, 48, 0.08); }
.vs-feat { font-size: 15px; color: var(--text); font-weight: 500; padding-right: 14px; }
.vs-them { font-size: 15px; color: var(--text-muted); font-weight: 500; padding: 0 14px; }
.vs-us { font-size: 15px; color: var(--accent); font-weight: 600; padding: 0 16px; }
.vs-head-feat { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.vs-head-label {
  font-size: 16px; font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: center;
}
.vs-head-them { font-size: 15px; font-weight: 600; color: var(--text-muted); text-align: center; }

/* Floating highlighted column — extends well above the table so the
   "Prisma VPN" header label sits inside an obvious white card "tab",
   matching the reference comparison-block design. */
.vs-highlight {
  position: absolute;
  top: -32px; bottom: -32px;
  left: calc(36px + (100% - 72px) * (1.6 / 3.6));
  width: calc((100% - 72px) * (1 / 3.6));
  background: #fff;
  border-radius: 28px;
  box-shadow:
    0 1px 2px rgba(21, 30, 48, 0.03),
    0 6px 18px rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.10);
  pointer-events: none;
  z-index: 0;
}
/* Lift only the data rows above the .vs-highlight overlay — NOT vs-highlight
   itself (matching `*` overrode its `position: absolute` to `relative`). */
.vs-row { position: relative; z-index: 1; }
.vs-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vs-mobile { display: none; }

/* ===== FAQ ===== */
.faq-container { max-width: 760px; }
.faq-h2 { text-align: center; margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(21, 30, 48, 0.05);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(124, 58, 237, 0.2); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%;
  padding: 20px 24px;
  font-size: 16px; font-weight: 600;
  text-align: left;
  gap: 16px;
}
.faq-chevron {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s, background 0.2s, color 0.2s;
  color: var(--text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--accent); color: #fff; }
.faq-a {
  font-size: 15px; color: var(--text-muted); line-height: 1.7;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 800px; }

/* ===== CTA banner ===== */
.cta-section { padding-bottom: 100px; }
.cta-banner {
  border-radius: 24px;
  padding: 72px 60px;
  text-align: center;
  color: #fff;
  background: linear-gradient(101deg, #4c1d95, var(--accent));
}
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-banner p {
  font-size: 17px;
  opacity: 0.75;
  margin-bottom: 40px;
}
.cta-banner-btn {
  background: #fff !important;
  color: var(--accent) !important;
  font-size: 16px;
  padding: 15px 36px;
  margin: 0 auto;
}
.cta-banner-btn:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); }
.cta-note { font-size: 13px; opacity: 0.45; margin-top: 16px; margin-bottom: 0 !important; }

/* ===== Footer =====
   Footer is itself a "band" — rounded top corners + negative margin-top
   make it tuck under the last content band above it. */
footer {
  background: var(--dark);
  position: relative;
  z-index: 4;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding: 100px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  color: #fff; font-weight: 700; font-size: 18px;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 220px;
}
.footer-col-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 48px;
  padding-top: 24px;
  display: flex; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.3); }

/* ===== Tablet ≤ 1023 ===== */
@media (max-width: 1023px) {
  .s-title { font-size: 32px; line-height: 38px; }
  .s-sub { font-size: 16px; line-height: 22px; }
  .container { padding: 0 24px; }
  .card-pad { padding: 40px 32px; }
  .cta-banner { padding: 60px 48px; }
  .cta-banner h2 { font-size: 26px; line-height: 34px; }
  .features-grid { margin-top: 40px; gap: 20px; }
  .security-grid { margin-top: 40px; gap: 16px; }
  .feature { padding: 40px 32px 0; border-radius: 20px; }
  .feature h3 { font-size: 20px; line-height: 26px; margin-bottom: 16px; }
  .feature p { font-size: 16px; line-height: 22px; }
  .feature-corner { width: 160px; height: 130px; margin-right: -8px; }
  .platforms-card { min-height: auto; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-head-grid { grid-template-columns: 1fr; gap: 16px; }
  .vs-illus { width: 180px; height: 150px; justify-self: start; }
  .vs-row { padding: 18px 24px; grid-template-columns: 1.4fr 1fr 1fr; }
  .vs-highlight {
    left: calc(24px + (100% - 48px) * (1.4 / 3.4));
    width: calc((100% - 48px) * (1 / 3.4));
  }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .rounded-group { border-radius: 24px 24px 0 0; }
  .band-light { border-radius: 24px; margin-top: -24px; margin-bottom: -24px; padding: 80px 0 56px; }
  .band-dark, .band-white { padding: 80px 0; }
  footer { border-radius: 24px 24px 0 0; margin-top: -24px; padding-top: 84px; }
}

/* ===== Mobile ≤ 767 ===== */
@media (max-width: 767px) {
  body { min-width: 320px; }
  .s-title { font-size: 26px; line-height: 34px; margin-bottom: 12px; }
  .s-sub { font-size: 16px; line-height: 22px; }
  .hero { padding: 88px 0 60px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  /* On mobile the hero image stays — flows below the CTA button (hero-text first, hero-visual after in DOM) */
  .hero-visual { display: flex; }
  .hero-phone-img { max-width: 280px; }
  .hero-glow { width: 320px; height: 320px; }
  .hero-actions { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }
  .card-pad { padding: 32px 20px; }
  .cta-banner { padding: 40px 28px; }
  .cta-banner h2 { font-size: 20px; line-height: 26px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .feature { padding: 32px 20px 0; border-radius: 20px; text-align: center; }
  .feature h3 { font-size: 18px; line-height: 22px; margin-bottom: 12px; }
  .feature p { font-size: 15px; line-height: 21px; }
  .feature-corner { margin: 24px auto 0; width: 100%; max-width: 240px; height: 160px; }
  .platforms-card { grid-template-columns: 1fr; min-height: auto; }
  .platforms-illus { order: 1; min-height: 240px; padding: 32px 24px 0; }
  .platforms-text { order: 2; text-align: center; }
  .platforms-icons { justify-content: center; gap: 28px; }
  /* Reviews — horizontal scroll-snap list (see IMG_5795) */
  .reviews-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 20px 16px;
    margin: 0 -20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .review-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-height: 180px;
  }
  .reviews-header { margin-bottom: 36px; }
  .vs-table { display: none; }
  .vs-shell { background: transparent; padding: 0; overflow: visible; }
  .vs-wrap { overflow: visible; }
  .vs-head-grid { margin-bottom: 28px; }
  .vs-illus { display: none; }
  /* Mobile comparison: 2-column grid (Prisma | Free).
     A floating white card sits behind the left half via .vs-mobile-bg. */
  .vs-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    gap: 0;
  }
  .vs-mobile-bg {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 50%;
    background: #fff;
    border-radius: 24px;
    box-shadow:
      0 1px 2px rgba(21, 30, 48, 0.04),
      0 16px 36px rgba(124, 58, 237, 0.14),
      0 4px 12px rgba(21, 30, 48, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.10);
    pointer-events: none;
  }
  .vs-mobile-cell {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.4;
    min-height: 76px;
  }
  .vs-mobile-head {
    font-size: 16px;
    font-weight: 700;
    padding-top: 24px;
    padding-bottom: 18px;
    align-items: center;
  }
  .vs-mobile-head-us { color: var(--accent); gap: 8px; }
  .vs-mobile-head-them { color: var(--text); }
  .vs-mobile-cell-us { color: var(--text); font-weight: 600; }
  .vs-mobile-cell-them { color: var(--text-muted); font-weight: 500; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: flex-start; }
  .rounded-group { border-radius: 20px 20px 0 0; padding-top: 72px; }
  .band-light { border-radius: 20px; margin-top: -20px; margin-bottom: -20px; padding: 72px 0 48px; }
  .band-dark, .band-white { padding: 72px 0; }
  footer { border-radius: 20px 20px 0 0; margin-top: -20px; padding-top: 72px; }
  .section { padding-bottom: 72px; }
  .cta-section { padding-bottom: 72px; }
  .floating-cta { bottom: 24px; }
  .floating-cta a { padding: 14px 32px; font-size: 15px; }
  .lang-menu { right: -20px; }
}

/* ===== Very narrow ≤ 479 ===== */
@media (max-width: 479px) {
  .container { padding: 0 16px; }
}

/* ============================================================
   Doc pages (privacy / terms / support)
   ============================================================ */

.container-narrow { max-width: 760px; }

/* Lang-driven article switch (privacy/terms have <article data-lang="ru|en">) */
article[data-lang] { display: none; }
html[lang="ru"] article[data-lang="ru"],
html[lang="en"] article[data-lang="en"] { display: block; }

.page-hero {
  background: var(--dark);
  background-image:
    radial-gradient(30% 80% at 0 0, #2a1a5e, transparent),
    radial-gradient(25% 55% at 100% 100%, #1a1050, transparent);
  padding: 130px 0 80px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.page-hero-inner { max-width: 720px; margin: 0 auto; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}
.page-hero-lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 580px;
  margin: 0 auto;
}
.page-hero-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

/* Doc-page rounded-group: tighter top padding (no big section titles) */
body.page-doc .rounded-group { padding-top: 80px; }
body.page-doc .section { padding-bottom: 80px; }

/* Policy text typography */
.policy-content {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(21, 30, 48, 0.85);
}
.policy-content h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.policy-content > h2:first-of-type { margin-top: 0; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul { padding-left: 22px; margin-bottom: 14px; }
.policy-content li { margin-bottom: 8px; }
.policy-content strong { font-weight: 600; color: var(--text); }
.policy-content em { font-style: italic; }
.policy-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(124, 58, 237, 0.3);
  transition: border-color 0.15s;
}
.policy-content a:hover { border-bottom-color: var(--accent); }
.policy-content .muted {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ============================================================
   Support form
   ============================================================ */

.support-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.06);
  padding: 36px;
}
.form-row { margin-bottom: 20px; position: relative; }
.form-row.form-actions { margin-top: 28px; margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.form-required { color: var(--accent); margin-left: 4px; }
.form-input {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(21, 30, 48, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
  font-family: inherit;
}
.form-input.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.form-field-error {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #dc2626;
}
.form-field-error.show { display: block; }

/* Honeypot — visually hidden but rendered (bots fill it; humans skip) */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  cursor: pointer;
  border: none;
}
.form-submit:disabled { cursor: wait; opacity: 0.85; }
.form-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: form-spin 0.8s linear infinite;
}
.form-submit.loading .form-submit-spinner { display: inline-block; }
@keyframes form-spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status strong { display: block; margin-bottom: 4px; font-weight: 600; }
.form-status-success {
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #15803d;
}
.form-status-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.22);
  color: #b91c1c;
}

.support-alt {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
}
.support-alt a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
}

/* Mobile tweaks for doc pages */
@media (max-width: 767px) {
  .page-hero { padding: 100px 0 56px; }
  body.page-doc .rounded-group { padding-top: 56px; }
  body.page-doc .section { padding-bottom: 56px; }
  .support-form { padding: 24px 20px; border-radius: 20px; }
  .policy-content h2 { font-size: 20px; margin-top: 28px; }
}

/* ==========================================================================
   Pricing page (pricing.html)
   ========================================================================== */
body.page-pricing { background: #f3f5ff; }

/* Force the "scrolled" dark-nav state on the pricing page (light bg from the
   start, so white text would blend into it). Mirrors nav.scrolled rules. */
body.page-pricing nav {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e9e9e9;
}
body.page-pricing .nav-logo { color: var(--text); }
body.page-pricing .nav-links a { color: var(--text-muted); }
body.page-pricing .nav-links a.active { color: var(--text); font-weight: 600; }
body.page-pricing .nav-links a:hover { color: var(--text); }
body.page-pricing .btn-ghost { color: var(--text-muted); }
body.page-pricing .btn-ghost:hover { color: var(--text); }
body.page-pricing .lang-btn { color: rgba(21, 30, 48, 0.5); }
body.page-pricing .lang-btn:hover { color: var(--text); }
body.page-pricing .hamburger span { background: var(--text); }

.pricing-bg {
  position: relative;
  overflow: hidden;
  padding: 140px 0 80px;
}
.pricing-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(124, 58, 237, 0.10), transparent 70%),
    radial-gradient(40% 60% at 0% 30%, rgba(167, 139, 250, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.pricing-bg > * { position: relative; z-index: 1; }

.pricing-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}
.pricing-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid rgba(21, 30, 48, 0.08);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
html[lang="en"] .pricing-status { display: none; }
.pricing-header h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.pricing-header h1 .accent-grad {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-lead {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Trial banner */
.trial-banner {
  max-width: 920px;
  margin: 56px auto 0;
  background: #fff;
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.10),
    1px 1px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(124, 58, 237, 0.10);
}
.trial-banner::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.trial-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.32);
  position: relative; z-index: 1;
}
.trial-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.trial-eyebrow {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.trial-eyebrow-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  animation: trial-pulse 1.8s infinite;
}
@keyframes trial-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
.trial-banner h2 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  line-height: 1.25;
}
.trial-banner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.trial-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.28);
}
.trial-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.40);
}

/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.06);
  border: 1.5px solid transparent;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
/* Default highlighted state for the "best" card */
.plan-best {
  border-color: var(--accent);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.18);
}
/* Hover treatment: slight scale + bigger shadow + accent border, no lift */
.plans-grid .plan:hover {
  transform: scale(1.04);
  box-shadow: 0 22px 48px rgba(124, 58, 237, 0.22);
  border-color: var(--accent);
  z-index: 1;
}
/* When any non-best card is being hovered, drop the highlight from the best
   card so only one card is visually selected at a time */
.plans-grid:has(.plan:not(.plan-best):hover) .plan-best:not(:hover) {
  border-color: transparent;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.06);
}
/* Same idea for the CTA: only the hovered card's "Выбрать" should look filled. */
.plans-grid:has(.plan:not(.plan-best):hover) .plan-best:not(:hover) .plan-cta {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}
.plan-best-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.30);
  white-space: nowrap;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}
.plan-name { font-size: 18px; font-weight: 600; color: var(--text); }
.plan-discount { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.plan-helper { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.plan-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--text);
}
.plan-best .plan-price { color: var(--accent); }
.plan-price-cur { font-size: 24px; font-weight: 600; color: var(--text-muted); }
.plan-price-period { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.plan-totals {
  padding: 14px 0;
  border-top: 1px dashed rgba(21, 30, 48, 0.10);
  border-bottom: 1px dashed rgba(21, 30, 48, 0.10);
  margin: 8px 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan-totals-strike { text-decoration: line-through; opacity: 0.55; margin-right: 6px; }
.plan-totals-final { color: var(--text); font-weight: 600; }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.plan-check { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.plan-cta {
  width: 100%;
  margin-top: auto;
  padding: 14px;
  border-radius: 100px;
  font-size: 15px; font-weight: 600;
  text-align: center;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--accent);
  background: #fff;
  color: var(--accent);
  display: block;
}
/* Hovering anywhere on the card fills the CTA — not just the button itself. */
.plan:hover .plan-cta,
.plan-cta:hover,
.plan-best .plan-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.28);
}
/* Direct hover on the button itself brightens — same on all cards. */
.plan-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.40);
}

/* Payments */
.payments {
  max-width: 1080px;
  margin: 56px auto 0;
  text-align: center;
}
.payments-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pay-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}
.pay-logo svg { display: block; height: 100%; width: auto; }
html[lang="en"] .pay-logo-ru { display: none; }
.payments-foot {
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* FAQ band on pricing page tucks under the pricing-bg */
.pricing-faq-band {
  border-radius: 40px 40px 0 0;
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding: 90px 0 80px;
}

/* ===== Pricing tablet ≤ 1023 ===== */
@media (max-width: 1023px) {
  .pricing-bg { padding: 120px 0 60px; }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 16px;
  }
  /* Push the "best" card to the top of the stack on mobile/tablet */
  .plans-grid .plan-best { order: -1; }
  .trial-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 18px;
    padding: 24px;
  }
  .trial-cta { width: 100%; text-align: center; padding: 14px 20px; }
}

/* ===== Pricing mobile ≤ 767 ===== */
@media (max-width: 767px) {
  .pricing-bg { padding: 100px 0 56px; }
  .pricing-header h1 { font-size: 30px; }
  .pricing-lead { font-size: 16px; }
  .trial-banner {
    align-items: center;
    text-align: center;
  }
  .trial-banner h2 { font-size: 18px; }
  .trial-eyebrow { justify-content: center; }
  .plan { padding: 28px 22px; }
  .plan-price { font-size: 38px; }
  .pricing-faq-band {
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 64px 0 56px;
  }
  .payments { margin-top: 40px; }
  .payments-row { gap: 22px; }
  .pay-logo { height: 20px; }
}

/* ==========================================================================
   Checkout page (checkout.html) — wears the same .page-pricing body class so
   it inherits the dark-nav-on-light-bg treatment.
   ========================================================================== */

/* Minimal nav: only the logo, no scroll-state toggling. Replaces the regular
   .scrolled treatment for the focused checkout flow. */
nav.nav-minimal {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e9e9e9;
}
nav.nav-minimal .nav-logo { color: var(--text); }
nav.nav-minimal .nav-inner { justify-content: flex-start; }

.checkout-bg {
  position: relative;
  overflow: hidden;
  padding: 130px 0 100px;
}
.checkout-bg::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 100% 0%, rgba(124, 58, 237, 0.08), transparent 70%),
    radial-gradient(40% 60% at 0% 30%, rgba(167, 139, 250, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.checkout-bg > * { position: relative; z-index: 1; }

.checkout-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.checkout-header h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}
.checkout-lead {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

/* Step cards */
.checkout-steps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.checkout-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 28px 24px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(21, 30, 48, 0.05);
}
.checkout-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}
.checkout-step-num {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.10);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Email field */
.checkout-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f5ff;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.checkout-field:focus-within {
  background: #fff;
  border-color: var(--accent);
}
.checkout-field-prefix { color: var(--text-muted); display: flex; }
.checkout-field input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}
.checkout-field input::placeholder { color: rgba(21, 30, 48, 0.40); }
.checkout-field.is-error { border-color: #dc2626; background: #fff; }
.checkout-field-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.45;
}
.checkout-field-error {
  font-size: 13px;
  color: #dc2626;
  margin-top: 6px;
  min-height: 0;
  line-height: 1.4;
}
.checkout-field-error:empty { display: none; }

/* Provider accordion */
.checkout-providers { display: flex; flex-direction: column; gap: 10px; }
.checkout-provider {
  border: 1px solid rgba(21, 30, 48, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checkout-provider.is-open {
  border-color: rgba(124, 58, 237, 0.30);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.06);
}
.checkout-provider-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: #fff;
  border: none;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text);
}
.checkout-provider-toggle:hover { background: rgba(124, 58, 237, 0.03); }
.checkout-provider-name { font-size: 15px; font-weight: 600; flex: 1; }
.checkout-provider-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.checkout-provider-icons .pay-logo { height: 18px; }
.checkout-provider-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s;
}
.checkout-provider.is-open .checkout-provider-chevron { transform: rotate(180deg); }
.checkout-provider-info {
  display: none;
  padding: 4px 20px 20px;
  background: #fff;
  border-top: 1px solid rgba(21, 30, 48, 0.05);
}
.checkout-provider.is-open .checkout-provider-info { display: block; }
.checkout-provider-terms {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 14px 0 18px;
}
.checkout-provider-terms a { color: var(--accent); }
.checkout-provider-terms a:hover { text-decoration: underline; }
.checkout-provider-cta {
  width: 100%;
  position: relative;
  padding: 14px 24px;
}
.checkout-provider-cta.loading .checkout-cta-text { opacity: 0; }
.checkout-cta-spinner {
  position: absolute;
  top: 50%; left: 50%;
  margin: -10px 0 0 -10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: checkout-spin 0.8s linear infinite;
}
.checkout-provider-cta.loading .checkout-cta-spinner { opacity: 1; }
@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

/* Honeypot reuses .form-honeypot from the support form */

.checkout-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: #b91c1c;
}

/* Summary */
.checkout-summary { display: flex; flex-direction: column; gap: 14px; }
.checkout-summary-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px 26px 22px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(21, 30, 48, 0.05);
}
.checkout-summary-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.checkout-summary-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.checkout-summary-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.checkout-summary-cur { font-size: 20px; font-weight: 600; color: var(--text-muted); }
.checkout-summary-period { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.checkout-summary-totals {
  padding: 12px 0;
  border-top: 1px dashed rgba(21, 30, 48, 0.12);
  border-bottom: 1px dashed rgba(21, 30, 48, 0.12);
  margin: 14px 0 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checkout-summary-strike { text-decoration: line-through; opacity: 0.55; margin-right: 6px; }
.checkout-summary-final { color: var(--text); font-weight: 600; }
.checkout-summary-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-summary-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.checkout-summary-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.checkout-summary-back:hover { color: var(--accent); }
.checkout-summary-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 0 4px;
}

/* ===== Pending / success states (after a CTA click) ===== */
.checkout-status-card {
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(21, 30, 48, 0.05);
  text-align: center;
}
.checkout-status-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.checkout-status-icon-pending {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent);
}
.checkout-status-icon-success {
  background: rgba(34, 197, 94, 0.10);
  color: #16a34a;
}
.checkout-status-spinner {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(124, 58, 237, 0.18);
  border-top-color: var(--accent);
  animation: checkout-spin 0.8s linear infinite;
}
.checkout-status-card h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}
.checkout-status-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.checkout-status-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.checkout-status-actions .btn-primary { padding: 12px 26px; }
.checkout-status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 100px;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}
.checkout-status-link:hover { color: var(--accent); background: rgba(124, 58, 237, 0.06); }

/* ===== Checkout tablet / mobile ===== */
@media (max-width: 1023px) {
  .checkout-bg { padding: 110px 0 60px; }
  .checkout-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .checkout-summary { order: -1; }
}
@media (max-width: 600px) {
  .checkout-bg { padding: 100px 0 56px; }
  .checkout-card { padding: 22px 20px 20px; border-radius: 20px; }
  .checkout-summary-card { padding: 22px 20px 18px; border-radius: 20px; }
  .checkout-provider-toggle { padding: 14px 16px; gap: 10px; }
  .checkout-provider-name { font-size: 14px; }
  .checkout-provider-icons { gap: 8px; }
  .checkout-provider-icons .pay-logo { height: 16px; }
  .checkout-provider-info { padding: 0 16px 16px; }
}
