/* GLVPN — site.css */
:root {
  --bg: #0a0e18;
  --bg-2: #0e1424;
  --bg-3: #131b30;
  --bg-card: #11182c;
  --border: rgba(180, 200, 230, 0.08);
  --border-strong: rgba(180, 200, 230, 0.14);
  --text: #ffffff;
  --text-2: #b6c0d8;
  --text-3: #7d89a8;
  --text-4: #5a6585;
  --brand: #B7DDF2;
  --brand-2: #6BAEDB;
  --brand-deep: #2A6AA8;
  --accent: #FFD93B;
  --accent-2: #FFA94D;
  --success: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.45);
  --shadow-brand: 0 0 60px rgba(183, 221, 242, 0.18);
  --shadow-accent: 0 0 50px rgba(255, 217, 59, 0.22);
  --gradient-brand: linear-gradient(135deg, #B7DDF2 0%, #6BAEDB 100%);
  --gradient-accent: linear-gradient(135deg, #FFD93B 0%, #FFA94D 100%);
  --gradient-bg: radial-gradient(ellipse at top, #14203c 0%, #0a0e18 60%);
  --container: 1180px;
  --container-narrow: 880px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--gradient-bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--brand); }

button, input, select, textarea { font: inherit; }

::selection { background: var(--brand); color: var(--bg); }

/* — utility — */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.eyebrow .dot { display: none; }
/* Hero eyebrow has no flanking dashes — the headline does the heavy lifting. */
.hero .eyebrow::before,
.hero .eyebrow::after { display: none; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 5vw, 68px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 18px; }

p { margin: 0; color: var(--text-2); line-height: 1.7; }
p + p { margin-top: 12px; }

.subtle { color: var(--text-3); }
.muted { color: var(--text-4); }

.grad-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* — background decoration — */
.bg-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-deco .grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(183, 221, 242, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 221, 242, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
}
.bg-deco .blob {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}
.bg-deco .blob-1 {
  background: radial-gradient(circle, rgba(107, 174, 219, 0.4), transparent 60%);
  top: -200px;
  left: -200px;
}
.bg-deco .blob-2 {
  background: radial-gradient(circle, rgba(255, 217, 59, 0.18), transparent 60%);
  top: 30vh;
  right: -300px;
}

/* — header — */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: rgba(10, 14, 24, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  padding-bottom: 6px;
  text-decoration: none;
}
.brand .brand-name { color: var(--text); display: inline-block; }
.brand .brand-name .gl { color: var(--brand); }
/* Yellow underline stripe (kept as decorative element from original logo) */
.brand::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 217, 59, 0.5);
  transition: width 0.35s cubic-bezier(.2,.7,.2,1);
}
.brand:hover::after { width: 100%; }
.site-footer .brand { font-size: 22px; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav a {
  color: var(--text-2);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: all 0.18s ease;
}
.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav a.active {
  color: var(--brand);
}
.nav a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.lang-toggle svg { width: 14px; height: 14px; opacity: 0.7; }
.lang-toggle .lang-current { letter-spacing: 0.04em; }
.lang-toggle .lang-current::after { content: ''; }

/* — buttons — */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-brand);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(107, 174, 219, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(107, 174, 219, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: var(--bg);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--brand);
}
.btn-accent {
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 700;
}
.btn-lg { padding: 18px 32px; font-size: 17px; border-radius: 16px; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .btn-icon { width: 18px; height: 18px; }

/* — sections — */
section { position: relative; z-index: 1; padding: 64px 0; }
section.compact { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; }
.section-head .sub { color: var(--text-3); max-width: 620px; margin: 14px auto 0; }

/* — hero — */
.hero {
  padding: 80px 0 120px;
  position: relative;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { max-width: 880px; margin: 0 auto 20px; }
.hero .lead {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text-2);
  font-size: 19px;
  line-height: 1.6;
}
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
/* Equalize the two hero CTAs so they read as a symmetric pair.
   min-width pins the narrower "Купить за 69 ₽" to match
   the natural width of "Как подключить" without stretching either
   beyond a reasonable max. */
.hero .cta-row .btn-lg {
  min-width: 240px;
  justify-content: center;
}
@media (max-width: 720px) {
  .hero .cta-row .btn-lg { min-width: 0; width: 100%; }
}
.hero .micro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
}
.hero .micro .check {
  color: var(--success);
}

.hero-visual {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-shield {
  position: relative;
  width: min(620px, 90vw);
  aspect-ratio: 1.55 / 1;
  background:
    radial-gradient(ellipse at center, rgba(107, 174, 219, 0.22), transparent 65%);
}
.hero-shield::before {
  content: '';
  position: absolute;
  inset: 8% 16%;
  background: var(--gradient-brand);
  filter: blur(60px);
  opacity: 0.25;
  border-radius: 50%;
}

/* — stat strip — */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.stat-strip .stat {
  background: var(--bg-card);
  padding: 28px;
  text-align: center;
}
.stat-strip .stat .val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-strip .stat .lbl {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
}

/* — feature grid — */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.85;
}
.feature-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.feature-card .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(183, 221, 242, 0.08);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-card .ico svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* — steps — */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 32px;
  bottom: 32px;
  width: 3px;
  background: var(--gradient-brand);
  border-radius: 2px;
  opacity: 0.85;
}
.step::after {
  /* Large ghost number in the corner for a magazine/editorial feel. */
  content: counter(step);
  counter-increment: step;
  position: absolute;
  right: 14px;
  top: -8px;
  font-family: var(--font-mono);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(183, 221, 242, 0.045);
  pointer-events: none;
  user-select: none;
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.step .num {
  position: static;
  display: inline-flex;
  align-items: baseline;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: clamp(48px, 5.6vw, 64px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 14px;
  padding: 0;
}
.step .num::before {
  content: "0";
  opacity: 0.32;
}
.step h3 { font-size: 18px; margin-top: 4px; margin-bottom: 8px; position: relative; }
.step p { font-size: 14px; color: var(--text-3); position: relative; }

/* — locations pill grid — */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.loc-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.18s ease;
}
.loc-chip:hover {
  border-color: var(--brand);
  color: var(--text);
  transform: translateY(-1px);
}
.loc-chip .flag {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.loc-chip .flag img {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: block;
}
.loc-chip .ping {
  margin-left: auto;
  font-size: 11px;
  color: var(--success);
  background: rgba(74, 222, 128, 0.1);
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
}

/* — pricing card — */
.pricing-wrap {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  padding: 44px 36px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-3));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(183, 221, 242, 0.12), transparent 60%);
  pointer-events: none;
}
.price-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 217, 59, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 217, 59, 0.25);
  position: relative;
  z-index: 1;
}
.price-card .amount {
  margin-top: 24px;
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 1;
}
.price-card .amount .currency { color: var(--text-3); font-weight: 700; }
.price-card .period {
  color: var(--text-3);
  font-size: 15px;
  margin-top: 4px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.price-card .features {
  margin: 36px 0 32px;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.price-card .features li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
}
.price-card .features li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") no-repeat center / contain;
}
.price-card ul { padding: 0; margin: 0; }
.price-card .pay {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.price-card .pay-label {
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}
.price-card .pay-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 480px;
}
.pay-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pay-card:hover {
  transform: translateY(-2px);
  border-color: rgba(183, 221, 242, 0.4);
  background: rgba(183, 221, 242, 0.06);
  color: var(--text);
}
.pay-card img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #0a0e18;
}
.pay-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pay-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pay-card-sub {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 520px) {
  .price-card .pay-logos { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .price-card { padding: 36px 20px 32px; border-radius: 22px; }
  .price-card .amount { font-size: 64px; }
  .price-card .features { margin: 28px 0 24px; }
  .price-card .features li { font-size: 14px; }
  /* CTA must not overflow on narrow screens — fill width, smaller padding/font. */
  .price-card > a.btn,
  .price-card > .btn {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 15px 14px;
    font-size: 15px;
    border-radius: 14px;
  }
  .price-card > a.btn .btn-icon,
  .price-card > .btn .btn-icon { width: 16px; height: 16px; }
}
@media (max-width: 380px) {
  .price-card { padding: 30px 16px 28px; }
  .price-card .amount { font-size: 58px; }
  .price-card > a.btn,
  .price-card > .btn { font-size: 14px; padding: 14px 10px; }
}

/* — faq — */
.faq {
  display: grid;
  gap: 8px;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 18px;
  height: 18px;
  margin-left: auto;
  flex-shrink: 0;
  background: var(--text-3);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat center / contain;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .answer {
  padding: 0 22px 22px;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
}

/* — footer — */
.site-footer {
  margin-top: 100px;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 24, 0.6);
  position: relative;
  z-index: 1;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer .col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 16px;
}
.site-footer .col a {
  display: block;
  color: var(--text-2);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.site-footer .col a:hover { color: var(--brand); }
.site-footer .about p { color: var(--text-3); font-size: 14px; max-width: 360px; }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-4);
  font-size: 13px;
}
.site-footer .legal a { color: var(--text-3); }
.site-footer .legal a:hover { color: var(--brand); }

@media (max-width: 800px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
  .site-footer .legal { flex-direction: column; gap: 12px; }
  .nav { display: none; }
}

/* — content pages (help/legal) — */
.page-hero {
  padding: 56px 0 32px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { color: var(--text-3); max-width: 640px; margin: 0 auto; }
.page-hero .breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 18px;
}
.page-hero .breadcrumb a { color: var(--text-3); }
.page-hero .breadcrumb a:hover { color: var(--brand); }

/* — help index cards — */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.platform-card .pf-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(183, 221, 242, 0.08);
  color: var(--brand);
}
.platform-card .pf-ico svg { width: 26px; height: 26px; }
.platform-card .pf-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.platform-card .pf-sub {
  font-size: 13px;
  color: var(--text-3);
}
.platform-card .arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: all 0.18s ease;
}
.platform-card:hover .arrow {
  background: var(--brand);
  color: var(--bg);
}

/* — tutorial article (help/{platform}.html) — */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.article h2 {
  margin-top: 56px;
  margin-bottom: 18px;
  font-size: 26px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 18px;
  color: var(--brand);
  font-weight: 700;
}
.article p,
.article li {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.75;
}
.article p { margin: 14px 0; }
.article a:not(.btn) {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: rgba(183, 221, 242, 0.3);
  text-underline-offset: 3px;
}
.article a:not(.btn):hover {
  text-decoration-color: var(--brand);
}
.article ul, .article ol { padding-left: 24px; margin: 16px 0; }
.article li { margin: 8px 0; }
.article .lead {
  font-size: 18px;
  color: var(--text-2);
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 18px;
  margin: 24px 0;
}

/* Tutorial step list — Apple-style magazine layout.
   - Single unified container (rounded card holding all steps)
   - Each step is a two-column grid row: big gradient numeral on the
     left (filled, not stroked — renders reliably), title + body on
     the right
   - Hairline gradient divider between consecutive steps inside the
     container — creates rhythm without visual noise
   - Soft brand-tint hover state per row */
.steps-vertical {
  display: grid;
  margin: 32px 0;
  counter-reset: stepv;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
}
.steps-vertical .stepv {
  position: relative;
  padding: 30px 36px 30px 152px;
  transition: background 0.4s ease;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.steps-vertical .stepv + .stepv {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.steps-vertical .stepv:hover {
  background:
    linear-gradient(
      90deg,
      rgba(107, 174, 219, 0.06) 0%,
      rgba(107, 174, 219, 0.02) 60%,
      transparent 100%
    );
}
/* Big gradient numeral floats in the left padding area of the card.
   Absolutely positioned so the content (h4 + p + install-btns) flows
   normally in the right side without grid row-gap artefacts. */
.steps-vertical .stepv::before {
  counter-increment: stepv;
  content: "0" counter(stepv);
  position: absolute;
  top: 28px;
  left: 36px;
  width: 92px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  font-size: 56px;
  letter-spacing: -0.05em;
  line-height: 0.92;
  background: linear-gradient(
    180deg,
    rgba(206, 232, 247, 1) 0%,
    rgba(107, 174, 219, 0.95) 55%,
    rgba(107, 174, 219, 0.45) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.steps-vertical .stepv:hover::before {
  transform: translateY(-2px);
}
.steps-vertical .stepv h4 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.steps-vertical .stepv p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}
.steps-vertical .stepv code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brand);
  /* Long subscription URLs must not blow out the card on narrow screens. */
  word-break: break-all;
  overflow-wrap: anywhere;
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  background: rgba(183, 221, 242, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  margin: 24px 0;
}
.callout .callout-ico {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--brand);
}
.callout h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text-3);
}
.callout.warn {
  background: rgba(251, 191, 36, 0.06);
  border-left-color: var(--warn);
}
.callout.warn .callout-ico { color: var(--warn); }

.code-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.6;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.client-card {
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.client-card h4 { font-size: 14px; margin: 0 0 4px; color: var(--text); }
.client-card .ver { font-size: 12px; color: var(--text-4); }
.client-card .pill {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: rgba(74, 222, 128, 0.1);
  border-radius: 999px;
}

/* — legal toc — */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-toc {
  position: sticky;
  top: 92px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.legal-toc h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin: 0 0 14px;
}
.legal-toc a {
  display: block;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-3);
  border: 1px solid transparent;
}
.legal-toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.legal-toc a.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(107, 174, 219, 0.16), rgba(107, 174, 219, 0.05));
  border-color: rgba(107, 174, 219, 0.26);
}
.legal-content {
  max-width: 720px;
}
.legal-content section {
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--border);
  position: relative;
}
.legal-content section:first-of-type {
  padding-top: 4px;
  border-top: none;
}
.legal-content section:last-of-type {
  padding-bottom: 8px;
}
.legal-content section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  border-radius: 2px;
}
.legal-content section:first-of-type::before { display: none; }
.legal-content h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 24px;
}
.legal-content h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--brand);
}
.legal-content p, .legal-content li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.75;
}
.legal-content p { margin: 12px 0; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content .meta {
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* — divider — */
.divider {
  margin: 80px 0;
  text-align: center;
  position: relative;
}
.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.divider .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin: 0 4px;
  box-shadow: 0 0 12px var(--brand);
}

/* — utility — */
/* Blur-fade-up reveal: opacity + soft blur + lift, all eased on a smooth cubic.
   Inspired by Portal / Cybersecurity Hero / Aetheris Voyage motionsites prompts.
   Falls back to instant-visible with prefers-reduced-motion. */
.fadein {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(22px);
  transition:
    opacity 0.85s cubic-bezier(.2,.7,.2,1),
    filter 0.85s cubic-bezier(.2,.7,.2,1),
    transform 0.85s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, filter, transform;
}
.fadein.in {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
/* Stagger via data attribute. Use small numeric values 1..6 to chain hero items
   and grid children without writing per-element CSS. */
.fadein[data-fadein-delay="1"] { transition-delay: 0.07s; }
.fadein[data-fadein-delay="2"] { transition-delay: 0.14s; }
.fadein[data-fadein-delay="3"] { transition-delay: 0.21s; }
.fadein[data-fadein-delay="4"] { transition-delay: 0.28s; }
.fadein[data-fadein-delay="5"] { transition-delay: 0.35s; }
.fadein[data-fadein-delay="6"] { transition-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) {
  .fadein {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (max-width: 720px) {
  section { padding: 48px 0; }
  .hero { padding: 40px 0 56px; }
  .section-head { margin-bottom: 28px; }
  .stat-strip .stat { padding: 18px 12px; }
  .stat-strip .stat .val { font-size: 26px; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  section { padding: 40px 0; }
  section.compact { padding: 32px 0; }
  .hero { padding: 28px 0 44px; }
  .hero h1 { font-size: 32px; }
  .hero .lead { margin-bottom: 26px; font-size: 15px; }
  .hero .cta-row { gap: 10px; margin-bottom: 32px; }
  .section-head { margin-bottom: 24px; }
  .container { padding: 0 16px; }
  .site-header .row { gap: 10px; height: 64px; }
  .brand { font-size: 21px; }
  .lang-toggle { padding: 7px 10px; gap: 4px; font-size: 12px; }
  .lang-toggle svg { width: 14px; height: 14px; }
  .auth-btn { padding: 7px 13px; font-size: 12.5px; }
}

/* ============================================================ */
/* — subscription landing page (/sub/<token>) — */
/* ============================================================ */
.sub-page {
  padding: 56px 0 80px;
  position: relative;
  z-index: 1;
}
.sub-page .section-head {
  margin-bottom: 36px;
  text-align: center;
}
.sub-page .section-head h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-top: 14px;
}
.sub-page .section-head .eyebrow {
  justify-content: center;
}
.sub-page .section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.sub-card {
  position: relative;
  padding: 32px 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.sub-card > * { position: relative; }

.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.sub-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.sub-status-active {
  background: rgba(74, 222, 128, 0.12);
  color: #6ee7a8;
  border-color: rgba(74, 222, 128, 0.32);
}
.sub-status-active .sub-status-dot {
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74, 222, 128, 0.7);
  animation: sub-pulse 2.2s ease-in-out infinite;
}
.sub-status-expired {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.32);
}
.sub-status-expired .sub-status-dot { background: #fbbf24; box-shadow: 0 0 12px rgba(251, 191, 36, 0.5); }
.sub-status-revoked,
.sub-status-notfound {
  background: rgba(248, 113, 113, 0.10);
  color: #f8a4a4;
  border-color: rgba(248, 113, 113, 0.32);
}
.sub-status-revoked .sub-status-dot,
.sub-status-notfound .sub-status-dot {
  background: #f87171;
  box-shadow: 0 0 12px rgba(248, 113, 113, 0.55);
}
@keyframes sub-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(74, 222, 128, 0.7); }
  50%      { box-shadow: 0 0 22px rgba(74, 222, 128, 1); }
}

.sub-user {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin: 6px 0 22px;
}

.sub-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 4px 0 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sub-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sub-stat:nth-child(2n)   { border-right: none; }
.sub-stat:nth-last-child(-n+2) { border-bottom: none; }
.sub-stats > .sub-stat:nth-last-child(1):nth-child(odd) {
  border-right: none;
  grid-column: span 2;
}
.sub-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.sub-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  font-synthesis: none;
}
.sub-stat-value.mono {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.sub-url-block { margin: 4px 0 18px; }
.sub-url-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.sub-url-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color 0.18s ease;
}
.sub-url-box:hover { border-color: var(--brand); }
.sub-url-box code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.45;
}
.sub-copy-btn {
  flex-shrink: 0;
  background: var(--gradient-brand);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 4px 14px rgba(107, 174, 219, 0.28);
}
.sub-copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(107, 174, 219, 0.4);
}
.sub-copy-btn.ok {
  background: linear-gradient(135deg, #4ade80, #6ee7a8);
  box-shadow: 0 4px 14px rgba(74, 222, 128, 0.35);
}

.sub-notice {
  padding: 12px 14px;
  background: rgba(183, 221, 242, 0.05);
  border: 1px solid rgba(183, 221, 242, 0.12);
  border-left: 3px solid var(--brand-2);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}

.sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 8px;
}
.sub-actions .btn { justify-content: center; }

.sub-foot {
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
  margin-top: 18px;
}
.sub-foot a {
  color: var(--text-3);
  transition: color 0.15s ease;
}
.sub-foot a:hover { color: var(--brand); }
.sub-foot .dot-sep {
  margin: 0 8px;
  opacity: 0.5;
}

@media (max-width: 560px) {
  .sub-page { padding: 40px 0 56px; }
  .sub-card { padding: 24px 20px 22px; border-radius: 18px; }
  .sub-stats { grid-template-columns: 1fr; }
  .sub-stat { border-right: none; }
  .sub-stat:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .sub-stat:last-child { border-bottom: none; }
  .sub-stats > .sub-stat:nth-last-child(1):nth-child(odd) { grid-column: auto; }
  .sub-actions { grid-template-columns: 1fr; }
  .sub-url-box {
    flex-wrap: wrap;
  }
  .sub-url-box code { width: 100%; }
  .sub-copy-btn { margin-left: auto; }
}

/* ───────────────────────── Header auth pill ─────────────────────────── */
.auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
}
.auth-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 221, 242, 0.4);
  color: var(--brand);
  background: rgba(183, 221, 242, 0.05);
}
.auth-btn-cta {
  background: var(--gradient-brand);
  color: var(--bg);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(107, 174, 219, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.auth-btn-cta:hover {
  color: var(--bg);
  background: var(--gradient-brand);
  box-shadow: 0 10px 26px rgba(107, 174, 219, 0.42),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ───────────────────────── /login page ──────────────────────────────── */
.login-body { background: var(--bg); min-height: 100vh; }
.auth-page {
  position: relative;
  padding: 64px 0 80px;
  min-height: calc(100vh - 80px);
}
.auth-page .section-head { margin-bottom: 32px; }
.auth-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 22px;
}
.auth-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.auth-step:first-child { border-top: 0; padding-top: 4px; }
.auth-step-num {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(183, 221, 242, 0.16), rgba(107, 174, 219, 0.08));
  border: 1px solid rgba(183, 221, 242, 0.22);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--brand);
}
.auth-step-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.auth-step-body p {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 14px;
}
.auth-bot-btn { width: 100%; justify-content: center; }
.auth-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-4);
}

.auth-code-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.auth-code-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 22px;
  font-synthesis: none;
  letter-spacing: 0.18em;
  text-align: center;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.auth-code-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(183, 221, 242, 0.12);
}
.auth-submit-btn { white-space: nowrap; padding: 14px 22px; }

.auth-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(239, 86, 86, 0.08);
  border: 1px solid rgba(239, 86, 86, 0.22);
  border-radius: 10px;
  color: #ff8d8d;
  font-size: 13.5px;
}

.auth-foot {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-4);
}
.auth-foot a {
  color: var(--brand);
  margin-left: 6px;
}

@media (max-width: 560px) {
  .auth-page { padding: 32px 0 56px; }
  .auth-page .section-head { margin-bottom: 22px; }
  .auth-page .section-head h1 { font-size: clamp(26px, 7vw, 34px); }
  .auth-card { padding: 22px 18px; border-radius: 18px; gap: 14px; }
  .auth-step { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; }
  .auth-step-num { width: 40px; height: 40px; }
  .auth-code-form { flex-wrap: wrap; gap: 12px; }
  .auth-code-input {
    font-size: 18px;
    letter-spacing: 0.14em;
    padding: 13px 14px;
    width: 100%;
    flex-basis: 100%;
  }
  .auth-submit-btn { width: 100%; }
  .auth-bot-btn { font-size: 14px; padding: 13px 12px; }
}
@media (max-width: 380px) {
  .auth-code-input { font-size: 16px; letter-spacing: 0.10em; padding: 12px 10px; }
  .auth-bot-btn { font-size: 13px; }
}

/* ───────────────────────── /me Personal Cabinet ─────────────────────── */
.cabinet-body { background: var(--bg); min-height: 100vh; }
.cabinet-page {
  padding: 56px 0 72px;
  min-height: calc(100vh - 80px);
}
.cab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cab-id {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.cab-avatar {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--bg);
  background: var(--gradient-brand);
  box-shadow: 0 6px 18px rgba(107, 174, 219, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.cab-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.cab-handle {
  font-size: 13px;
  color: var(--text-4);
  margin-top: 2px;
}
.cab-handle .mono { font-family: var(--font-mono); font-weight: 500; font-synthesis: none; }
.cab-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cab-head-actions .btn { padding: 10px 16px; font-size: 13.5px; }
.cab-logout-btn .btn-icon { width: 16px; height: 16px; }

.cab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.cab-col { display: grid; gap: 22px; }
.cab-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.cab-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.cab-card-head .eyebrow { padding: 0; }
/* Remove the small leading dash on cabinet card eyebrows (\u00abПодписка\u00bb,
   \u00abТариф\u00bb, \u00abИстория платежей\u00bb) \u2014 the label stands on its own. */
.cab-card-head .eyebrow::before,
.cab-card-head .eyebrow::after { display: none; }

.cab-balance-card { display: flex; flex-direction: column; }
.cab-balance-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  font-size: 36px;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.1;
}
.cab-balance-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-4);
}
.cab-plan-card { display: flex; flex-direction: column; }
.cab-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.cab-plan-price-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  font-size: 36px;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.1;
}
.cab-plan-price-period {
  font-size: 14px;
  color: var(--text-4);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.cab-plan-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-4);
  line-height: 1.45;
}
.cab-topup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
/* Branded top-up tiles: real CryptoBot / lolz.guru visual identity. Stays in the
   same family as the tutorial .btn-install row (icon + two-line meta). */
.cab-pay-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.16s ease, border-color 0.16s ease,
              background 0.16s ease, box-shadow 0.16s ease;
}
.cab-pay-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 221, 242, 0.35);
  background: rgba(183, 221, 242, 0.05);
}
.cab-pay-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.cab-pay-btn .ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
}
.cab-pay-btn .ico svg,
.cab-pay-btn .ico img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.cab-pay-btn .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-width: 0;
}
.cab-pay-btn .meta-top {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  font-weight: 600;
}
.cab-pay-btn .meta-bot {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
/* Brand-specific glow on hover so each tile feels native. */
.cab-pay-btn.cab-pay-btn-cryptobot:hover {
  border-color: rgba(55, 174, 226, 0.55);
  box-shadow: 0 6px 20px rgba(55, 174, 226, 0.15);
  background: rgba(55, 174, 226, 0.06);
}
.cab-pay-btn.cab-pay-btn-lolz:hover {
  border-color: rgba(45, 190, 101, 0.55);
  box-shadow: 0 6px 20px rgba(45, 190, 101, 0.15);
  background: rgba(45, 190, 101, 0.06);
}
.cab-stub-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 217, 59, 0.06);
  border: 1px solid rgba(255, 217, 59, 0.22);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-2);
  transition: opacity 0.18s ease;
}
.cab-stub-note.flash {
  animation: cabflash 0.5s ease;
}
@keyframes cabflash {
  0%   { transform: translateY(-4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.cab-pay-list {
  display: grid;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cab-pay-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  font-size: 13.5px;
  align-items: center;
}
.cab-pay-date {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  color: var(--text-2);
}
.cab-pay-method { color: var(--text); }
.cab-pay-amount {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  color: var(--text);
  text-align: right;
}
.cab-pay-status {
  text-align: right;
  font-size: 12.5px;
  font-weight: 600;
}
.cab-pay-status-paid    .cab-pay-status { color: #5fd97a; }
.cab-pay-status-pending .cab-pay-status { color: var(--accent); }
.cab-pay-status-failed,
.cab-pay-status-expired .cab-pay-status { color: #ff8d8d; }
.cab-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-4);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.cab-empty-sub {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(183, 221, 242, 0.04);
  border: 1px dashed rgba(183, 221, 242, 0.22);
  border-radius: 12px;
  color: var(--text-3);
  font-size: 13.5px;
}

/* QR block inside the subscription card. */
.sub-qr-block {
  margin-top: 18px;
  padding: 18px;
  background: rgba(183, 221, 242, 0.04);
  border: 1px solid rgba(183, 221, 242, 0.12);
  border-radius: 14px;
  text-align: center;
}
.sub-qr-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-4);
  margin-bottom: 12px;
}
.sub-qr-canvas {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  line-height: 0;
}
.sub-qr-canvas img,
.sub-qr-canvas canvas { display: block; max-width: 100%; }
.sub-qr-hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-4);
}

@media (max-width: 900px) {
  .cab-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cabinet-page { padding: 28px 0 48px; }
  .cab-head { gap: 12px; margin-bottom: 22px; }
  .cab-card { padding: 22px 18px; border-radius: 18px; }
  .cab-card-head { margin-bottom: 14px; }
  .cab-balance-value,
  .cab-plan-price-value { font-size: 30px; }
  .cab-topup-row { grid-template-columns: 1fr; }
  .cab-pay-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .cab-pay-date { grid-column: 1 / -1; font-size: 12px; }
  .cab-pay-status { text-align: right; }
  .cab-head-actions { width: 100%; justify-content: stretch; }
  .cab-head-actions .btn { flex: 1; justify-content: center; padding: 11px 14px; }
  .cab-id { gap: 10px; }
  .cab-avatar { width: 46px; height: 46px; font-size: 19px; }
  .cab-name { font-size: 18px; }
  .sub-qr-canvas { padding: 10px; }
  .sub-qr-canvas img,
  .sub-qr-canvas canvas { width: 200px; height: 200px; }
}

/* ───────────────────────── Tutorial install buttons ──────────────────── */
/* Sits inside a .stepv card under <p>. A row of pill buttons that link
   to the official store / GitHub release page for the chosen client. */
.install-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.16s ease, border-color 0.16s ease,
              background 0.16s ease, box-shadow 0.16s ease;
}
.btn-install:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 221, 242, 0.4);
  background: rgba(183, 221, 242, 0.05);
  color: var(--text);
  text-decoration: none;
}
.btn-install .ico {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.btn-install .ico svg { width: 16px; height: 16px; display: block; }
.btn-install .meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.btn-install .meta-top {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  font-weight: 600;
}
.btn-install .meta-bot {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.005em;
}
.btn-install.btn-install-apple .ico    { background: #ffffff; border-color: #ffffff; color: #0a0e18; }
.btn-install.btn-install-google .ico   { background: #ffffff; border-color: #ffffff; }
.btn-install.btn-install-github .ico   {
  background: linear-gradient(135deg, #2b3344, #1f2533);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.btn-install.btn-install-web .ico {
  background: linear-gradient(135deg, rgba(183, 221, 242, 0.22), rgba(107, 174, 219, 0.08));
  border-color: rgba(183, 221, 242, 0.32);
  color: var(--brand);
}

@media (max-width: 560px) {
  .install-btns { gap: 8px; }
  .btn-install { padding: 8px 14px 8px 10px; }
  .btn-install .meta-bot { font-size: 13px; }
}

/* Subtle override: when .steps-vertical .stepv contains install buttons,
   give the card a touch more breathing room at the bottom. */
.steps-vertical .stepv:has(.install-btns) { padding-bottom: 24px; }

/* ──────────────────────── Mobile fixes for /help/* and /legal/* ───────── */
@media (max-width: 720px) {
  .article { padding: 0 16px; }
  .steps-vertical { border-radius: 18px; }
  .steps-vertical .stepv {
    padding: 22px 22px 20px 100px;
  }
  .steps-vertical .stepv::before {
    top: 22px;
    left: 22px;
    width: 70px;
    font-size: 40px;
  }
  .steps-vertical .stepv h4 { font-size: 17px; }

  .legal-layout { padding: 0 16px; gap: 24px; }
  .legal-content { padding-top: 12px; }
  .legal-content section { padding-top: 18px; padding-bottom: 18px; }
  .legal-content h2 { font-size: 20px; }
  .legal-content h3 { font-size: 15px; margin-top: 24px; }
  .legal-content p, .legal-content li { font-size: 14px; line-height: 1.7; }
  .legal-toc { padding: 16px 16px 12px; }

  .page-hero { padding: 40px 0 24px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .lead { font-size: 14px; }
  .page-hero .breadcrumb { font-size: 12px; }
}

@media (max-width: 480px) {
  .article { padding: 0 14px; }
  .steps-vertical { border-radius: 16px; }
  .steps-vertical .stepv {
    padding: 18px 16px 16px 76px;
  }
  .steps-vertical .stepv::before {
    top: 18px;
    left: 16px;
    width: 52px;
    font-size: 30px;
  }
  .steps-vertical .stepv h4 { font-size: 16px; }
  .steps-vertical .stepv p { font-size: 13.5px; }

  .legal-toc h4 { font-size: 11px; }
  .legal-toc a { font-size: 12.5px; padding: 7px 10px; }
  .page-hero h1 { font-size: 24px; }
  .page-hero { padding: 32px 0 20px; }

  /* Tutorial "Купить через @GLVPNROBOT" CTA — keep inside the article width. */
  .article .btn-lg {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 14px 14px;
    font-size: 15px;
    border-radius: 14px;
    box-sizing: border-box;
  }
  .article .btn-lg .btn-icon { width: 16px; height: 16px; }
}

/* Help index "platform-grid" cards are already responsive (.platform-grid),
   but on tiny screens the protocol-explain block at the bottom can run wide. */
@media (max-width: 480px) {
  .article > div[style*="padding"] { padding: 32px 0 16px !important; }
}

/* ============================================================ */
/* MOTIONSITES-INSPIRED POLISH                                  */
/* Animated shimmer text, ambient corner glow, glass header     */
/* refinement, hover micro-interactions, primary CTA gradient   */
/* border. Patterns adapted from free motionsites.ai prompts —  */
/* Email Landing Page, Digital Epoch, Portal, Innovation, Asme. */
/* ============================================================ */

/* Shimmer-shine on accent word in hero headline. The gradient
   sweeps from brand-blue → near-white → brand-yellow → near-white →
   brand-blue every 7s, giving the headline a subtle "alive" feel
   without distracting from the copy. background-clip + transparent
   text is the standard trick. */
@keyframes glvpn-shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.shine-word {
  display: inline-block;
  background-image: linear-gradient(
    90deg,
    var(--brand) 0%,
    #d3ecf9 18%,
    #ffffff 30%,
    #fff1a8 42%,
    var(--accent) 52%,
    #fff1a8 62%,
    #ffffff 74%,
    #d3ecf9 86%,
    var(--brand) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: glvpn-shine 7s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .shine-word { animation: none; }
}

/* Extra ambient blob behind hero, top-right corner. Adds depth
   without competing with content. Inert (pointer-events: none
   already on .bg-deco). */
.bg-deco .blob-3 {
  position: absolute;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.42;
  background: radial-gradient(circle, rgba(107, 174, 219, 0.5), transparent 65%);
  top: -120px;
  right: 22vw;
}

/* Glass header refinement: keep base opacity high enough for hard
   readability (content behind shouldn't show through), but replace
   the flat solid bottom border with a soft gradient strip that
   echoes brand-blue → brand-yellow → brand-blue. Inspired by the
   liquid-glass navbars in Taskly, Asme, Modern Agency, Innovation. */
.site-header {
  background: rgba(10, 14, 24, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 174, 219, 0.30) 18%,
    rgba(255, 217, 59, 0.28) 50%,
    rgba(107, 174, 219, 0.30) 82%,
    transparent 100%
  );
  pointer-events: none;
}

/* Primary CTA gradient border — a 1px highlighted stroke around the
   gradient fill, via the standard mask-composite trick. Looks closer
   to a real "glass" pill button. */
.btn-primary { position: relative; isolation: isolate; }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0) 55%,
    rgba(255, 255, 255, 0.10) 75%,
    rgba(255, 255, 255, 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Pricing card hover lift + soft brand glow. */
.price-card {
  transition:
    transform 0.4s cubic-bezier(.2,.7,.2,1),
    box-shadow 0.4s cubic-bezier(.2,.7,.2,1),
    border-color 0.3s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: rgba(107, 174, 219, 0.5);
  box-shadow:
    0 24px 60px rgba(107, 174, 219, 0.18),
    inset 0 0 0 1px rgba(107, 174, 219, 0.12);
}

/* Install / pay tile icon micro-shift on hover. The .ico shifts left
   and scales subtly — small but reads as the button feeling "active".
   Inspired by AppleButton / shop tile hovers from Modern Agency. */
.btn-install .ico,
.cab-pay-btn .ico {
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
}
.btn-install:hover .ico,
.cab-pay-btn:hover .ico {
  transform: translateX(-2px) scale(1.06);
}

/* Feature/platform card hover: add a subtle border-glow on hover so
   the existing transform feels weightier. */
.platform-card {
  transition:
    transform 0.35s cubic-bezier(.2,.7,.2,1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 174, 219, 0.4);
  box-shadow: 0 12px 32px rgba(107, 174, 219, 0.12);
}

/* SVG-based film-grain noise overlay on top of hero. Very subtle —
   adds cinematic depth, doesn't interfere with readability. */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

/* ============================================================ */
/* PHASE 2 POLISH                                                */
/* Marquee strip, card inner highlight, animated icons,          */
/* tilt support, hover text-roll                                 */
/* ============================================================ */

/* Marquee — a colorful pill-row of real stats between the hero and the
   first section. Each .m-item is a tinted pill (data-tone). The second
   .marquee-row is auto-cloned at runtime by setupMarquee() in i18n.js
   so the translateX(-50%) loop is seamless.
   Inspired by Datacore SaaS / Apex SaaS / Innovation prompts on motionsites. */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(107, 174, 219, 0.04),
    rgba(255, 217, 59, 0.025)
  );
  /* fade edges so the marquee dissolves into the page bg */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: glvpn-marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  white-space: nowrap;
}
.m-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.m-item:hover { transform: translateY(-1px); }
.m-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand);
}
.m-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  font-size: 15px;
  letter-spacing: 0;
  margin-right: 2px;
}

/* Tone-coloured pills. Border + icon + number all pick up the same brand
   color so the strip reads as multiple coordinated accents instead of one
   monotone strip. */
.m-item[data-tone="blue"] {
  border-color: rgba(107, 174, 219, 0.32);
  background: linear-gradient(180deg, rgba(107, 174, 219, 0.13), rgba(107, 174, 219, 0.035));
  box-shadow: 0 0 0 1px rgba(107, 174, 219, 0.05) inset, 0 6px 18px rgba(107, 174, 219, 0.08);
}
.m-item[data-tone="blue"] .m-ico,
.m-item[data-tone="blue"] .m-num {
  color: var(--brand);
}
.m-item[data-tone="yellow"] {
  border-color: rgba(255, 217, 59, 0.34);
  background: linear-gradient(180deg, rgba(255, 217, 59, 0.13), rgba(255, 217, 59, 0.035));
  box-shadow: 0 0 0 1px rgba(255, 217, 59, 0.05) inset, 0 6px 18px rgba(255, 217, 59, 0.08);
}
.m-item[data-tone="yellow"] .m-ico,
.m-item[data-tone="yellow"] .m-num {
  color: var(--accent);
}
.m-item[data-tone="green"] {
  border-color: rgba(56, 217, 169, 0.32);
  background: linear-gradient(180deg, rgba(56, 217, 169, 0.13), rgba(56, 217, 169, 0.035));
  box-shadow: 0 0 0 1px rgba(56, 217, 169, 0.05) inset, 0 6px 18px rgba(56, 217, 169, 0.08);
}
.m-item[data-tone="green"] .m-ico,
.m-item[data-tone="green"] .m-num {
  color: var(--success);
}
@keyframes glvpn-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
@media (max-width: 720px) {
  .marquee { padding: 16px 0; }
  .m-item { padding: 7px 14px; font-size: 13px; gap: 8px; }
  .m-num { font-size: 14px; }
  .m-ico { width: 14px; height: 14px; }
  .marquee-row { gap: 10px; padding-right: 10px; }
}

/* Card inner-top highlight — a single hairline at the top of each
   card that picks up the brand-blue at low opacity. Adds a sense
   of light hitting from above, very subtle but reads as "premium".
   Stack onto existing box-shadow without overriding it. */
.feature-card,
.platform-card,
.price-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(255, 255, 255, 0.0);
}

/* Feature-card icon: on hover, the icon container picks up a soft
   brand-blue glow and lifts. Combined with the existing card hover
   it feels coordinated. */
.feature-card .ico {
  transition:
    transform 0.35s cubic-bezier(.2,.7,.2,1),
    box-shadow 0.35s cubic-bezier(.2,.7,.2,1),
    background 0.35s ease,
    color 0.35s ease;
}
.feature-card:hover .ico {
  transform: translateY(-2px) scale(1.04);
  background: rgba(107, 174, 219, 0.16);
  color: #d3ecf9;
  box-shadow: 0 8px 24px rgba(107, 174, 219, 0.20);
}

/* Platform-card arrow shifts right on hover — subtle "go" signal. */
.platform-card .arrow {
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1);
}
.platform-card:hover .arrow {
  transform: translate(3px, 0);
}

/* Hover text-roll on the primary CTA. The button gets a second copy
   of its label that lives below the first; on hover the whole row
   translates up so the duplicate slides into view. Lightweight, no
   JS, and degrades gracefully (text just stays visible). */
.btn-primary .btn-label-roll {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.2em;
  line-height: 1.2em;
}
.btn-primary .btn-label-roll > span {
  display: block;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1);
}
.btn-primary:hover .btn-label-roll > span {
  transform: translateY(-100%);
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary:hover .btn-label-roll > span { transform: none; }
}

/* loc-chip enhancement — soft blue glow on hover (already had
   border-color change, now add a subtle box-shadow too). */
.loc-chip:hover {
  box-shadow: 0 6px 20px rgba(107, 174, 219, 0.12);
}

/* ============================================================ */
/* PHASE 3 POLISH — tutorial, legal, cabinet                    */
/* ============================================================ */

/* Tutorial step rows — hover is only a soft brand-tint sweep on the
   row background (already declared above). The big gradient numeral
   stays text-clipped at all times; we must NOT touch its `background`
   or `background-clip` on hover or the text becomes invisible. */
.steps-vertical .stepv {
  transition: background 0.35s ease;
}
.steps-vertical .stepv::before {
  transition:
    transform 0.45s cubic-bezier(.2, .7, .2, 1),
    filter 0.35s ease;
}
.steps-vertical .stepv:hover::before {
  /* Subtle lift + slightly brighter rendering. Background and
     background-clip are intentionally left alone here. */
  transform: translateY(-2px);
  filter: brightness(1.12) drop-shadow(0 6px 18px rgba(107, 174, 219, 0.22));
}
@media (prefers-reduced-motion: reduce) {
  .steps-vertical .stepv::before { transition: none; }
  .steps-vertical .stepv:hover::before { transform: none; filter: none; }
}

/* Callout box: soft animated glow on the icon. The brand-blue tint
   slowly breathes so the tip block reads as "live" without being
   distracting. */
.callout {
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.callout:hover {
  box-shadow: 0 10px 28px rgba(107, 174, 219, 0.10);
}
.callout .callout-ico {
  animation: glvpn-callout-pulse 4.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes glvpn-callout-pulse {
  0%,100% { opacity: 0.95; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .callout .callout-ico { animation: none; }
}

/* Cabinet card hover lift, mirrors price/feature cards. */
.cab-card {
  transition:
    transform 0.35s cubic-bezier(.2,.7,.2,1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.cab-card:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 174, 219, 0.30);
  box-shadow: 0 18px 42px rgba(107, 174, 219, 0.10);
}

/* Eyebrow dot — make it a proper pulsing dot+ring on /me / /sub pages so
   "Активна" / "Подписка" reads as live status. Falls back gracefully where
   the user hasn't styled `.dot` deliberately differently. */
.eyebrow .dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(107, 174, 219, 0.55);
  animation: glvpn-dot-pulse 2.4s ease-out infinite;
}
@keyframes glvpn-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(107, 174, 219, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(107, 174, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 174, 219, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow .dot { animation: none; }
}

/* Legal pages: sticky TOC active-state via tinted-pill background, no
   decorative dashes/strips. Soft section dividers handled separately. */
.legal-toc a {
  position: relative;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  border: 1px solid transparent;
}
/* Reset any leftover ::before from earlier iterations. */
.legal-toc a::before { content: none; display: none; }
.legal-toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}
.legal-toc a.active {
  color: var(--text);
  background: linear-gradient(180deg, rgba(107, 174, 219, 0.14), rgba(107, 174, 219, 0.05));
  border-color: rgba(107, 174, 219, 0.22);
}
.legal-content section + section {
  margin-top: 36px;
}

/* Help / legal page bg blob — same ambient corner glow used on the
   homepage. The blob is decorative-only and inert. */
.bg-deco .blob-3-corner {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.32;
  background: radial-gradient(circle, rgba(107, 174, 219, 0.45), transparent 65%);
  top: -120px;
  right: 12vw;
}

/* ============================================================ */
/* PHASE 4 POLISH — empty-state illustrations, animated CTA shine, */
/* refined section dividers                                       */
/* ============================================================ */

/* Cabinet empty state with SVG illustration. The wallet/card icon sits
   above the message at low opacity — gives the empty card visual weight
   without competing with active data. */
.cab-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 16px;
}
.cab-empty-ico {
  width: 56px;
  height: 56px;
  color: var(--text-4);
  opacity: 0.55;
  flex-shrink: 0;
}
.cab-empty-text {
  font-size: 14px;
  color: var(--text-4);
  text-align: center;
  max-width: 240px;
}

/* Primary CTA: subtle animated shine band that sweeps across every few
   seconds. Stacked on top of the existing gradient inner-border via
   ::after so we don't touch the original ::before. Light, optional, and
   suppressed for reduced-motion. */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 75%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  animation: glvpn-cta-shine 6s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes glvpn-cta-shine {
  0%   { left: -150%; }
  35%  { left: 150%; }
  100% { left: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { animation: none; left: -150%; }
}

/* Refine the section dividers on legal pages. The original 56px hairline
   gradient stays but we tone it down so long pages read calmer. */
.legal-content section::before {
  width: 40px;
  opacity: 0.55;
}

/* Loc-chip grid override: cap chip max-width so a single chip doesn't
   stretch to the full container width (which makes "1 локация" look
   lonely with the ping dot floating far to the right). Combined with
   justify-content:center the chips center as a soft block. */
.loc-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px)) !important;
  justify-content: center;
}

/* ============================================================ */
/* PHASE 5 — tutorial cross-nav tabs + per-platform brand tones */
/* on platform cards                                            */
/* ============================================================ */

/* Tutorial tabs: horizontal pill bar under the page H1 that lets the user
   jump between platform tutorials without going back to /help/. Active
   tab is a non-link <span>; rest are <a>. Scrolls horizontally on
   narrow viewports so 5 pills always fit. */
.tutorial-tabs {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.tutorial-tabs-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(15, 22, 36, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tutorial-tabs-inner::-webkit-scrollbar { display: none; }
.tutorial-tabs .ttab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
  cursor: pointer;
}
.tutorial-tabs .ttab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.tutorial-tabs .ttab-active {
  color: var(--bg);
  background: var(--gradient-brand);
  cursor: default;
  box-shadow: 0 6px 18px rgba(107, 174, 219, 0.32),
              inset 0 1px 0 rgba(255, 255, 255, 0.32);
}
.tutorial-tabs .ttab-active:hover { background: var(--gradient-brand); }
.tutorial-tabs .ttab-ico {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
.tutorial-tabs .ttab-ico svg { width: 16px; height: 16px; }
.tutorial-tabs .ttab-active .ttab-ico { color: var(--bg); }
@media (max-width: 540px) {
  .tutorial-tabs .ttab { padding: 8px 12px; font-size: 12.5px; }
  .tutorial-tabs .ttab-label { display: none; }
  .tutorial-tabs .ttab-active .ttab-label { display: inline; }
  .tutorial-tabs .ttab-ico { width: 18px; height: 18px; }
  .tutorial-tabs .ttab-ico svg { width: 18px; height: 18px; }
}

/* Platform cards: bigger icon container, per-platform tone, mesh-gradient
   reveal on hover. Each card carries a data-platform attribute -> CSS
   tints the icon, the arrow, and the corner-glow. */
.platform-card {
  overflow: hidden;
  isolation: isolate;
}
.platform-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 0% 0%, var(--pf-glow, rgba(107,174,219,0.18)) 0%, transparent 60%),
    radial-gradient(80% 60% at 100% 100%, var(--pf-glow-2, rgba(255,217,59,0.10)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
  z-index: 0;
}
.platform-card > * { position: relative; z-index: 1; }
.platform-card:hover::before { opacity: 1; }
.platform-card .pf-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--pf-bg, rgba(107, 174, 219, 0.10));
  color: var(--pf-color, var(--brand));
  border: 1px solid var(--pf-border, rgba(107, 174, 219, 0.18));
  transition: transform 0.32s cubic-bezier(.2,.7,.2,1), background 0.32s ease, box-shadow 0.32s ease;
}
.platform-card:hover .pf-ico {
  transform: scale(1.06);
  box-shadow: 0 8px 22px var(--pf-shadow, rgba(107, 174, 219, 0.24));
}
.platform-card .pf-ico svg { width: 28px; height: 28px; }
.platform-card:hover {
  border-color: var(--pf-border-hover, var(--brand));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32),
              0 0 0 1px var(--pf-border-hover, rgba(107, 174, 219, 0.3)) inset;
}
.platform-card:hover .arrow {
  background: var(--pf-color, var(--brand));
  color: var(--bg);
  transform: translateX(2px);
}

/* Per-platform tones — applied via data-platform attribute. iOS / macOS
   share the cool blue; Android = green; Windows = cyan; Linux = yellow. */
.platform-card[data-platform="ios"],
.platform-card[data-platform="macos"] {
  --pf-color: #6BAEDB;
  --pf-bg: linear-gradient(180deg, rgba(107, 174, 219, 0.16), rgba(107, 174, 219, 0.04));
  --pf-border: rgba(107, 174, 219, 0.26);
  --pf-border-hover: rgba(107, 174, 219, 0.45);
  --pf-shadow: rgba(107, 174, 219, 0.32);
  --pf-glow: rgba(107, 174, 219, 0.20);
  --pf-glow-2: rgba(107, 174, 219, 0.06);
}
.platform-card[data-platform="android"] {
  --pf-color: #6BD9A1;
  --pf-bg: linear-gradient(180deg, rgba(107, 217, 161, 0.16), rgba(107, 217, 161, 0.04));
  --pf-border: rgba(107, 217, 161, 0.26);
  --pf-border-hover: rgba(107, 217, 161, 0.45);
  --pf-shadow: rgba(107, 217, 161, 0.32);
  --pf-glow: rgba(107, 217, 161, 0.20);
  --pf-glow-2: rgba(107, 217, 161, 0.06);
}
.platform-card[data-platform="windows"] {
  --pf-color: #6BCDDB;
  --pf-bg: linear-gradient(180deg, rgba(107, 205, 219, 0.16), rgba(107, 205, 219, 0.04));
  --pf-border: rgba(107, 205, 219, 0.26);
  --pf-border-hover: rgba(107, 205, 219, 0.45);
  --pf-shadow: rgba(107, 205, 219, 0.32);
  --pf-glow: rgba(107, 205, 219, 0.20);
  --pf-glow-2: rgba(107, 205, 219, 0.06);
}
.platform-card[data-platform="linux"] {
  --pf-color: #FFD93B;
  --pf-bg: linear-gradient(180deg, rgba(255, 217, 59, 0.16), rgba(255, 217, 59, 0.04));
  --pf-border: rgba(255, 217, 59, 0.26);
  --pf-border-hover: rgba(255, 217, 59, 0.45);
  --pf-shadow: rgba(255, 217, 59, 0.30);
  --pf-glow: rgba(255, 217, 59, 0.18);
  --pf-glow-2: rgba(255, 217, 59, 0.05);
}

/* ============================================================ */
/* PHASE 6 — platform cards: 3+2 centered layout + richer card  */
/* internals (clients tagline + brand-tinted CTA pill)          */
/* ============================================================ */

/* Switch the platform-grid from auto-fill grid to a centered flex row
   so that with 5 items we get a clean 3+2 layout (top: ios/android/
   windows, bottom: macos/linux centered). Falls back to fewer per row
   on narrower viewports. */
.platform-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.platform-grid .platform-card {
  flex: 0 1 calc(33.333% - 18px);
  min-width: 260px;
  max-width: 360px;
  padding: 22px 22px 18px;
}
@media (max-width: 880px) {
  .platform-grid .platform-card { flex: 0 1 calc(50% - 18px); }
}
@media (max-width: 540px) {
  .platform-grid .platform-card { flex: 0 1 100%; max-width: 100%; }
}

/* New clients tagline ("Happ · v2Box") under the platform name. */
.platform-card .pf-clients {
  font-family: var(--font-mono);
  font-weight: 500;
  font-synthesis: none;
  font-size: 12.5px;
  color: var(--pf-color, var(--brand));
  margin-top: 10px;
  letter-spacing: 0;
  opacity: 0.86;
}

/* Brand-tinted CTA pill replacing the small square ::arrow. Sits on its
   own row at the bottom of the card so each card has a clear "action"
   surface. The tint matches the platform's --pf-color so iOS reads blue,
   Android reads green, etc. — same idiom as the install buttons in the
   tutorials. */
.platform-card {
  /* allow the CTA to sit at the bottom of variable-height cards */
  display: flex;
  flex-direction: column;
}
.platform-card .pf-name { margin-top: 6px; }
.platform-card .pf-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--pf-color, var(--brand));
  background: var(--pf-bg, rgba(107, 174, 219, 0.08));
  border: 1px solid var(--pf-border, rgba(107, 174, 219, 0.22));
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease;
  align-self: stretch;
}
.platform-card .pf-cta svg { width: 14px; height: 14px; transition: transform 0.22s ease; }
.platform-card:hover .pf-cta {
  background: var(--pf-color, var(--brand));
  color: var(--bg);
  border-color: var(--pf-color, var(--brand));
  box-shadow: 0 8px 22px var(--pf-shadow, rgba(107, 174, 219, 0.32));
}
.platform-card:hover .pf-cta svg { transform: translateX(3px); }

/* Hide the legacy top-right .arrow now that the CTA pill replaces it. */
.platform-card .arrow { display: none !important; }

/* ============================================================ */
/* PHASE 7 — pricing card v2: split-layout, monolithic price,   */
/* features in a tighter list, full-width CTA. The old centred   */
/* "lonely 69 ₽ floating in the middle" layout is replaced.      */
/* ============================================================ */

.pricing-wrap {
  max-width: 880px !important;
}

.price-card-v2 {
  /* Override defaults: kill the center alignment, soften padding,
     use a deeper but lighter card background so the price block reads
     as the focal point. */
  text-align: left !important;
  padding: 36px 40px 32px !important;
  background:
    linear-gradient(180deg, rgba(107, 174, 219, 0.04), transparent 30%),
    linear-gradient(160deg, var(--bg-card), var(--bg-3)) !important;
}
.price-card-v2::before {
  /* Layer a subtle dot-grid mesh behind the whole card for texture. */
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(107, 174, 219, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(255, 217, 59, 0.06), transparent 60%) !important;
}
/* Left edge brand-glow strip — anchors the price column visually. */
.price-card-v2::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(107, 174, 219, 0.55) 30%,
    rgba(107, 174, 219, 0.55) 70%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.price-card-v2 .pc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 720px) {
  .price-card-v2 { padding: 28px 22px 26px !important; }
  /* minmax(0, 1fr) — without the explicit 0 minimum, a wide CTA button
     forces the grid track wider than the card's content area, which
     pushes the button visually outside the right padding. */
  .price-card-v2 .pc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .price-card-v2 .pc-right { min-width: 0; }
  /* CTA tightens on narrow viewports so its text + icon fit comfortably
     inside the card without overflowing. */
  .price-card-v2 .pc-cta {
    padding: 14px 14px;
    font-size: 14.5px;
    border-radius: 12px;
  }
  .price-card-v2 .pc-cta .btn-icon { width: 16px; height: 16px; }
}

/* Left column: badge → price → period → note. Everything left-aligned
   so the eye moves cleanly down the column. */
.price-card-v2 .pc-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.price-card-v2 .badge {
  margin: 0;
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
}
/* Monolithic price: 69 + ₽ baseline-aligned, ₽ a hair smaller and the
   same color as 69 (instead of grey-muted) so they read as one number. */
.price-card-v2 .price-line {
  margin-top: 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.price-card-v2 .price-num {
  font-size: 86px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card-v2 .price-cur {
  font-size: 56px;
  color: var(--text-2);
  font-weight: 700;
}
.price-card-v2 .period {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}
.price-card-v2 .pc-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-4);
  max-width: 260px;
}

/* Right column: feature list stacked tight + full-width CTA. */
.price-card-v2 .pc-right {
  display: flex;
  flex-direction: column;
}
.price-card-v2 .features {
  margin: 0 0 22px !important;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (max-width: 720px) {
  .price-card-v2 .features { grid-template-columns: 1fr; gap: 11px; }
}
.price-card-v2 .features li {
  padding: 0 !important;
  font-size: 14.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.price-card-v2 .features li::before {
  width: 16px;
  height: 16px;
}
.price-card-v2 .pc-cta {
  width: 100%;
  font-size: 15px;
  padding: 16px 22px;
  border-radius: 14px;
}

/* ============================================================ */
/* PHASE 8 — secondary "or pay via cabinet" CTA link            */
/* ============================================================ */

/* A subtle text-link CTA with user icon + arrow that sits under the
   primary button. Used in hero + pricing card as an alternative
   purchase path to /me. */
/* Force the link onto its own line in hero by making it a flex
   container that's block-displayed inside the centered hero column. */
.hero .cta-alt { display: flex; justify-content: center; }
.cta-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 2px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.22s ease;
  text-decoration: none;
}
.hero .cta-alt + .micro { margin-top: 18px; }
.cta-alt:hover { color: var(--brand); }
.cta-alt svg { width: 16px; height: 16px; flex-shrink: 0; }
.cta-alt .cta-alt-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}
.cta-alt:hover .cta-alt-arrow { transform: translateX(3px); }

/* Inline variant in pricing card — centred, slightly smaller, subtle
   underline indicator. */
.cta-alt-inline {
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  font-size: 13px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

/* Also update help/index pf-clients to match main page */

/* ─── Trial banner (Lolzteam-gated 14-day) — premium hero card ─────── */
/* Layout: 2 columns desktop — content on the left, oversized "14" on the
   right. No orbits, no aurora — just clean typography on a soft
   gradient background, in the same family as the landing hero. */
.cab-trial-banner {
  position: relative;
  margin: 0 0 24px;
  padding: 36px 40px 32px;
  border-radius: 24px;
  border: 1px solid rgba(110, 165, 255, 0.22);
  background:
    radial-gradient(120% 220% at 8% 0%, rgba(110, 165, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(15, 22, 38, 0.94), rgba(10, 14, 24, 0.97));
  box-shadow:
    0 28px 64px rgba(8, 12, 22, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(320px, 34%);
  gap: 40px;
  align-items: center;
}
/* Hairline gradient stripe along the top edge */
.cab-trial-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(124, 179, 255, 0.7) 30%,
    rgba(184, 130, 255, 0.4) 70%, transparent 100%);
  z-index: 1;
}
/* Cursor-tracking spotlight — a soft radial light driven by --mx / --my
   (set from JS on mousemove). Hidden by default, fades in when the user
   hovers the banner. Sits below the content (z-index: 0). */
.cab-trial-banner {
  --mx: 50%;
  --my: 50%;
}
.cab-trial-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my),
                              rgba(124, 179, 255, 0.16),
                              rgba(124, 179, 255, 0.06) 35%,
                              transparent 70%);
  opacity: 0;
  transition: opacity 0.30s ease;
  pointer-events: none;
  z-index: 0;
}
.cab-trial-banner.cab-trial-spot-on::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .cab-trial-banner::after { display: none; }
}
.cab-trial-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}
/* Small pill with a glowing dot — same family as the landing hero. */
.cab-trial-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(200, 220, 255, 0.85);
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(124, 179, 255, 0.26);
  border-radius: 999px;
  background: rgba(124, 179, 255, 0.06);
}
.cab-trial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #9cc4ff, #5a89e2);
  box-shadow: 0 0 8px rgba(156, 196, 255, 0.85);
  flex: 0 0 auto;
}
.cab-trial-title {
  margin: 18px 0 12px;
  font: 700 34px/1.12 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  color: #f6f9ff;
  max-width: 18ch;
}
.cab-trial-accent {
  /* Same brand-yellow accent as the landing-page hero highlight. */
  color: #ffd93b;
  text-shadow: 0 0 24px rgba(255, 217, 59, 0.20);
}
.cab-trial-body {
  font: 400 14.5px/1.6 'Inter', system-ui, -apple-system, sans-serif;
  color: rgba(206, 218, 240, 0.78);
  max-width: 50ch;
  margin: 0;
}
.cab-trial-body strong { color: #f0f4fb; font-weight: 600; }
/* Vertical checklist — ✓ icon + label, same as the landing tariff card. */
.cab-trial-checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cab-trial-check {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 14px/1.4 'Inter', system-ui, sans-serif;
  color: rgba(220, 230, 246, 0.92);
}
.cab-trial-check svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #9cc4ff;
  filter: drop-shadow(0 0 6px rgba(124, 179, 255, 0.35));
}
.cab-trial-actions {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cab-trial-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.005em;
  color: #0a0e18;
  text-decoration: none;
  background: linear-gradient(180deg, #cfe1ff 0%, #9bb9eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 16px 36px rgba(110, 160, 240, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
  z-index: 2;
}
.cab-trial-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 44px rgba(110, 160, 240, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.cab-trial-cta::after {
  content: "→";
  font-weight: 500;
  font-size: 15px;
  transform: translateY(-1px);
  transition: transform 0.18s ease;
}
.cab-trial-cta:hover::after { transform: translate(3px, -1px); }
.cab-trial-fineprint {
  font: 500 12px/1.4 'Inter', system-ui, sans-serif;
  color: rgba(180, 196, 220, 0.60);
  letter-spacing: 0.005em;
}
.cab-trial-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font: 500 13.5px/1 'Inter', system-ui, sans-serif;
  color: rgba(200, 214, 240, 0.86);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: border-color 0.18s ease, color 0.18s ease,
              background 0.18s ease;
}
.cab-trial-secondary:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

/* Right-side visual: huge typographic "14" — purely typography, no orbits. */
.cab-trial-visual {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.cab-trial-bignum {
  display: flex;
  gap: 2px;
  font: 800 180px/0.9 'Inter', system-ui, sans-serif;
  letter-spacing: -0.07em;
  position: relative;
  z-index: 2;
}
.cab-trial-bignum-d {
  background: linear-gradient(180deg,
    #ffffff 0%, #c4d4ef 60%, #7088b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 36px rgba(110, 160, 240, 0.35));
}
.cab-trial-bignum-label {
  margin-top: 6px;
  font: 700 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.45em;
  text-indent: 0.45em;
  color: rgba(200, 220, 255, 0.55);
  position: relative;
  z-index: 2;
}

/* Pending review state: orange accents */
.cab-trial-banner.cab-trial-pending {
  border-color: rgba(255, 184, 86, 0.30);
  background:
    radial-gradient(120% 220% at 8% 0%, rgba(255, 184, 86, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(28, 22, 14, 0.94), rgba(18, 14, 8, 0.97));
}
.cab-trial-banner.cab-trial-pending::before {
  background: linear-gradient(90deg,
    transparent 0%, rgba(255, 188, 96, 0.65) 30%,
    rgba(255, 152, 56, 0.5) 70%, transparent 100%);
}
.cab-trial-banner.cab-trial-pending .cab-trial-eyebrow {
  border-color: rgba(255, 188, 96, 0.30);
  background: rgba(255, 188, 96, 0.06);
  color: rgba(255, 213, 158, 0.96);
}
.cab-trial-banner.cab-trial-pending .cab-trial-dot {
  background: linear-gradient(180deg, #ffcb7d, #ea9d3e);
  box-shadow: 0 0 8px rgba(255, 188, 96, 0.85);
}
.cab-trial-banner.cab-trial-pending .cab-trial-accent {
  color: #ffcb7d;
  text-shadow: 0 0 24px rgba(255, 200, 120, 0.30);
}
.cab-trial-banner.cab-trial-pending .cab-trial-check svg {
  color: #ffcb7d;
  filter: drop-shadow(0 0 6px rgba(255, 188, 96, 0.30));
}
.cab-trial-banner.cab-trial-pending .cab-trial-cta {
  background: linear-gradient(180deg, #ffe3b8 0%, #e9b773 100%);
  color: #1e1407;
  box-shadow:
    0 16px 36px rgba(192, 130, 64, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cab-trial-banner.cab-trial-pending .cab-trial-bignum-d {
  background: linear-gradient(180deg,
    #ffffff 0%, #ffd9a6 55%, #d59340 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 960px) {
  .cab-trial-banner {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 30px 28px 26px;
  }
  .cab-trial-visual {
    min-height: 140px;
    margin-top: 8px;
  }
  .cab-trial-bignum { font-size: 132px; }
}
@media (max-width: 720px) {
  .cab-trial-banner {
    padding: 26px 22px 24px;
    border-radius: 20px;
    margin-bottom: 18px;
  }
  .cab-trial-title { font-size: 26px; max-width: none; }
  .cab-trial-body { font-size: 13.5px; }
  .cab-trial-actions { flex-direction: column; align-items: stretch; }
  .cab-trial-cta,
  .cab-trial-secondary { width: 100%; justify-content: center; }
  .cab-trial-fineprint { text-align: center; }
  .cab-trial-bignum { font-size: 104px; }
}

/* ─── Cabinet redesign: features grid, richer payment cards ─────────── */

/* "What's included" feature list shown in the subscription card empty
   state. Subtle 2-column grid; each row is an icon + 2-line label. */
.cab-features {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.cab-features-title {
  font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(180, 200, 230, 0.62);
  margin-bottom: 16px;
}
.cab-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.cab-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
  border-radius: 14px;
  transition: border-color 0.18s ease, background 0.18s ease,
              transform 0.18s ease;
}
.cab-feature:hover {
  border-color: rgba(124, 179, 255, 0.22);
  background: rgba(124, 179, 255, 0.04);
  transform: translateY(-1px);
}
.cab-feature-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg,
    rgba(124, 179, 255, 0.14), rgba(124, 179, 255, 0.04));
  border: 1px solid rgba(124, 179, 255, 0.22);
  color: #b8d1ff;
}
.cab-feature-ico svg { width: 18px; height: 18px; }
.cab-feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.cab-feature-head {
  font: 600 13.5px/1.2 'Inter', system-ui, sans-serif;
  color: #eef3fb;
  letter-spacing: -0.005em;
}
.cab-feature-sub {
  font: 400 12px/1.4 'Inter', system-ui, sans-serif;
  color: rgba(190, 204, 230, 0.62);
}

/* Refined payment-method tiles — taller, with brand tagline and chevron */
.cab-topup-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.cab-pay-btn {
  padding: 14px 16px 14px 14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cab-pay-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 180% at 0% 0%,
    var(--pay-brand-tint, rgba(124, 179, 255, 0.10)),
    transparent 55%);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: -1;
}
.cab-pay-btn:hover::before { opacity: 1; }
.cab-pay-btn .ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cab-pay-btn .meta { flex: 1 1 auto; gap: 3px; }
.cab-pay-btn .meta-top {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(180, 200, 230, 0.60);
}
.cab-pay-btn .meta-bot {
  font-size: 15px;
  letter-spacing: -0.005em;
}
.cab-pay-btn .meta-tag {
  font: 500 12px/1.35 'Inter', system-ui, sans-serif;
  color: rgba(190, 204, 230, 0.66);
  margin-top: 2px;
}
.cab-pay-btn-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(214, 228, 252, 0.80);
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  transition: transform 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.cab-pay-btn:hover .cab-pay-btn-arrow {
  transform: translateX(2px);
  background: rgba(124, 179, 255, 0.12);
  border-color: rgba(124, 179, 255, 0.28);
  color: #fff;
}
.cab-pay-btn.cab-pay-btn-cryptobot {
  --pay-brand-tint: rgba(55, 174, 226, 0.16);
}
.cab-pay-btn.cab-pay-btn-cryptobot:hover {
  border-color: rgba(55, 174, 226, 0.55);
  box-shadow: 0 14px 32px rgba(55, 174, 226, 0.18);
  background: rgba(55, 174, 226, 0.05);
}
.cab-pay-btn.cab-pay-btn-cryptobot:hover .cab-pay-btn-arrow {
  background: rgba(55, 174, 226, 0.18);
  border-color: rgba(55, 174, 226, 0.40);
}
.cab-pay-btn.cab-pay-btn-lolz {
  --pay-brand-tint: rgba(45, 190, 101, 0.16);
}
.cab-pay-btn.cab-pay-btn-lolz:hover {
  border-color: rgba(45, 190, 101, 0.55);
  box-shadow: 0 14px 32px rgba(45, 190, 101, 0.18);
  background: rgba(45, 190, 101, 0.05);
}
.cab-pay-btn.cab-pay-btn-lolz:hover .cab-pay-btn-arrow {
  background: rgba(45, 190, 101, 0.18);
  border-color: rgba(45, 190, 101, 0.40);
}

/* Improved empty-state for the payment history card — refine the existing
   .cab-empty (inline-SVG icon + caption) with a softer container. */
.cab-history-card .cab-empty {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 36px 18px;
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
  color: rgba(190, 204, 230, 0.62);
}
.cab-history-card .cab-empty .cab-empty-ico {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background:
    radial-gradient(closest-side, rgba(124, 179, 255, 0.18),
                    transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04),
                            rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(124, 179, 255, 0.18);
  color: rgba(184, 209, 255, 0.85);
  opacity: 1;
  box-sizing: border-box;
}

/* Adjust subscription card to feel less empty without a sub */
.cab-col-sub .cab-card { display: flex; flex-direction: column; }
.cab-empty-sub { display: none; } /* superseded by .cab-features */

/* Wider main grid so trial banner has room for the bignum */
@media (min-width: 1100px) {
  .cab-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .cab-features-grid { grid-template-columns: 1fr; }
  .cab-feature { padding: 10px 12px; }
}


/* ───────────────────────────────────────────────────────────────
   Tutorial pages — v4 (rounded cards with numbered steps)
   Per user direction: each step lives in a narrower rounded-rect
   card with a soft border, a plain "Шаг N" eyebrow (no decorative
   line), a silver-gradient headline, and body content inside.
   ─────────────────────────────────────────────────────────────── */

/* Sticky platform-tabs row */
.tut-tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  background: rgba(8, 11, 20, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease,
              backdrop-filter 0.25s ease;
}
.tut-tabs-sticky.is-stuck {
  background: rgba(8, 11, 20, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}
.tut-tabs-sticky .tutorial-tabs { margin: 0; }

/* Body wrapper for the cards stack */
.tut-body {
  padding: 64px 0 32px;
}
.tut-cards {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  counter-reset: tut-step;
}

/* Step card — rounded rectangle with a soft border, gentle bg
   gradient, and a hover cursor-spotlight. */
.tut-card {
  --mx: 50%;
  --my: 50%;
  --accent-rgb: 180, 200, 230;
  position: relative;
  padding: 32px 36px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg,
      rgba(22, 28, 44, 0.55) 0%,
      rgba(14, 18, 30, 0.55) 100%);
  overflow: hidden;
  isolation: isolate;
  counter-increment: tut-step;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tut-card::before {
  /* Soft brand-tinted radial in the top-right corner. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    60% 70% at 85% -10%,
    rgba(var(--accent-rgb), 0.10),
    transparent 70%);
}
.tut-card::after {
  /* Cursor spotlight (Linear/Vercel signature). Visible only when
     the cursor sits over the card and `tut-card-hot` is on. */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    rgba(var(--accent-rgb), 0.10),
    transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.tut-card.tut-card-hot::after { opacity: 1; }
.tut-card:hover {
  border-color: rgba(var(--accent-rgb), 0.22);
}

.tut-card-inner {
  position: relative;
  z-index: 1;
}

/* Plain "Шаг 1" eyebrow — no horizontal line, no chip. */
.tut-card-step {
  font: 600 12px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(190, 205, 232, 0.70);
  margin-bottom: 14px;
}
.tut-card-step::after {
  content: " " counter(tut-step);
  color: rgba(220, 230, 250, 0.95);
  font-weight: 700;
}

/* Headline with silver gradient */
.tut-card h3 {
  font: 800 30px/1.15 'Inter', system-ui, sans-serif;
  letter-spacing: -0.022em;
  margin: 0 0 12px;
  background: linear-gradient(180deg,
    #f6f9ff 0%,
    #cfd9ec 65%,
    #aab7d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tut-card p {
  font: 400 15.5px/1.6 'Inter', system-ui, sans-serif;
  color: rgba(186, 200, 224, 0.85);
  margin: 0 0 0;
}
.tut-card p + p { margin-top: 10px; }
.tut-card p code {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(184, 215, 255, 0.95);
  word-break: break-all;
  overflow-wrap: anywhere;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.tut-card .install-btns {
  margin-top: 22px;
}

/* Per-platform accent — drives the corner radial + hover ring. */
body[data-platform="ios"]    .tut-card { --accent-rgb: 214, 224, 244; }
body[data-platform="macos"]  .tut-card { --accent-rgb: 214, 224, 244; }
body[data-platform="android"] .tut-card { --accent-rgb: 132, 219, 159; }
body[data-platform="windows"] .tut-card { --accent-rgb: 116, 179, 255; }
body[data-platform="linux"]   .tut-card { --accent-rgb: 255, 178, 105; }

/* Tip callout — sits as its own card-shaped block in the stack */
.tut-cards .callout {
  margin: 4px 0 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--brand);
  border-radius: 16px;
  padding: 20px 22px;
}

/* Final CTA — 2 columns, also constrained to the same narrow width */
.tut-final-cta {
  padding: 28px 0 96px;
}
.tut-final-cta .container { max-width: 760px; }
.tut-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tut-cta-card {
  position: relative;
  padding: 24px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg,
    rgba(22, 30, 48, 0.65),
    rgba(14, 18, 30, 0.65));
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease,
              background 0.25s ease;
  overflow: hidden;
}
.tut-cta-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 179, 255, 0.30);
  background: linear-gradient(180deg,
    rgba(30, 40, 64, 0.78),
    rgba(18, 24, 38, 0.78));
}
.tut-cta-card-primary {
  border-color: rgba(124, 179, 255, 0.28);
  background: linear-gradient(180deg,
    rgba(60, 90, 150, 0.28),
    rgba(28, 42, 72, 0.40));
}
.tut-cta-card-primary:hover {
  border-color: rgba(124, 179, 255, 0.50);
  background: linear-gradient(180deg,
    rgba(80, 118, 194, 0.40),
    rgba(36, 56, 98, 0.52));
}
.tut-cta-eyebrow {
  font: 600 11px/1 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(200, 215, 240, 0.65);
}
.tut-cta-title {
  font: 700 18px/1.2 'Inter', system-ui, sans-serif;
  color: var(--text);
  margin-top: 4px;
}
.tut-cta-sub {
  font: 400 12.5px/1.45 'Inter', system-ui, sans-serif;
  color: rgba(190, 205, 232, 0.72);
}
.tut-cta-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 18px;
  height: 18px;
  color: rgba(200, 220, 255, 0.65);
  transition: transform 0.25s ease, color 0.25s ease;
}
.tut-cta-card:hover .tut-cta-arrow {
  transform: translateX(4px);
  color: rgba(200, 220, 255, 0.95);
}

/* Mobile */
@media (max-width: 760px) {
  .tut-body { padding: 36px 0 16px; }
  .tut-card { padding: 26px 24px 28px; border-radius: 18px; }
  .tut-card h3 { font-size: 24px; }
  .tut-card p { font-size: 15px; }
  .tut-final-cta { padding: 16px 0 48px; }
  .tut-cta-grid { grid-template-columns: 1fr; }
  .tut-cta-card { padding: 22px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .tut-card::after { transition: none; opacity: 0 !important; }
}
