/* ============================================================
   ALEKSA DESIGN SYSTEM
   Структура: tokens → reset → typography → layout → buttons →
   forms → surfaces → navigation → marketing → dashboard →
   support → instructions → responsive → motion/accessibility
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  /* Поверхности - несколько уровней глубины, не один плоский фон везде */
  --bg: #08090C;
  --surface-1: #0D0F14;
  --surface-2: #13151B;
  --surface-3: #191C24;
  --bg-section: #0D0F14;
  --bg-raised: #13151B;
  --bg-hero: #08090C;

  /* Границы - мягкие, не через каждый элемент */
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);
  --line: rgba(255,255,255,0.08);

  /* Текст */
  --ink: #F2F3F5;
  --ink-soft: #9BA1AE;
  --ink-muted: #6B7280;

  /* Один акцент, используется осознанно */
  --accent: #7C5CFF;
  --accent-hover: #8F72FF;
  --accent-soft: rgba(124,92,255,0.12);
  --accent-glow: rgba(124,92,255,0.18);

  /* Отдельные семантические цвета - не смешиваем с акцентом */
  --success: #34D399;
  --success-soft: rgba(52,211,153,0.12);
  --error: #F87171;
  --error-soft: rgba(248,113,113,0.13);
  --sage: var(--success);
  --danger: var(--error);

  /* Радиусы - иерархия, не один везде */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius: var(--radius-sm);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --page-max: 1160px;
  --text-max: 640px;
}

/* ── RESET / BASE ── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; overflow-x: hidden; max-width: 100vw; }
#how, #pricing, #faq { scroll-margin-top: 90px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1, .display { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.secondary-text { font-size: 0.875rem; color: var(--ink-soft); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.eyebrow {
  color: var(--accent); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 14px;
}

/* ── LAYOUT ── */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 28px; }
.text-col { max-width: var(--text-max); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.section { padding: 72px 0; }
section { padding: 64px 0; }
section.hero { padding: 64px 0 72px; }
.section-head { max-width: var(--text-max); margin-bottom: 40px; }
section.alt { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ── SURFACES ── */
.card, .status-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 28px; margin-bottom: 20px; transition: border-color 200ms ease;
}
.card:hover, .status-card:hover { border-color: var(--border-strong); }
.card-ghost { background: transparent; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; }
.eyebrow-label {
  color: var(--accent); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 36px; margin-bottom: 12px;
}
.eyebrow-label:first-child { margin-top: 0; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-body);
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, filter 180ms ease, opacity 180ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 24px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(124,92,255,0.08); }
.btn-block { width: 100%; }
.btn:active { transform: scale(0.98) translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn .spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FORMS ── */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); font-size: 1rem; font-family: var(--font-body);
  background: var(--surface-1); color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field input.field-error { border-color: var(--error); }
.code-input.field-error { border-color: var(--error); animation: shake 300ms ease; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .code-input.field-error { animation: none; } }
.field input.field-success { border-color: var(--success); }
.field-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 5px; }
.form-error {
  background: var(--error-soft); color: var(--error); padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 18px; display: none;
}
.form-error.show { display: block; }
.form-success {
  background: var(--success-soft); color: var(--success); padding: 11px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin-bottom: 18px; display: none;
}
.form-success.show { display: block; }
.form-note { text-align: center; margin-top: 20px; font-size: 0.92rem; color: var(--ink-soft); }

/* Code input (email verification) */
.code-input {
  width: 100%; padding: 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong);
  background: var(--surface-1); color: var(--ink); text-align: center; font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: 0.5em; font-weight: 600;
}
.code-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── TOAST (замена alert()) ── */
#toast-root { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--ink);
  padding: 12px 20px; border-radius: 100px; font-size: 0.9rem; box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 8px;
  animation: toast-in 220ms ease;
}
.toast.error { border-color: rgba(248,113,113,0.4); }
.toast.success { border-color: rgba(52,211,153,0.4); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── COPY FIELD ── */
.copy-field {
  display: flex; gap: 10px; align-items: center; background: var(--surface-1);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: monospace; font-size: 0.82rem; word-break: break-all; color: var(--ink-soft);
}
.copy-field button { flex-shrink: 0; }
.link-box { display: flex; gap: 10px; align-items: center; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-family: monospace; font-size: 0.82rem; word-break: break-all; color: var(--ink-soft); }
.link-box button { flex-shrink: 0; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 32px 20px; }
.empty-state h3 { margin-bottom: 8px; }

/* ── SKELETON (loading) ── */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skeleton 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; background: var(--surface-2); } }

/* ── HEADER / NAV ── */
header.site {  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
header.site .row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; min-height: 68px; box-sizing: border-box; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.logo span { color: var(--accent); }
nav.site-nav { display: flex; gap: 26px; align-items: center; }
nav.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; }
nav.site-nav a:hover { color: var(--ink); text-decoration: none; }
.header-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; margin-right: 8px; vertical-align: middle; opacity: 0; transition: opacity 150ms ease; }
.header-avatar.ready { opacity: 1; }

/* ── APP TABS ── */
.app-tabs { display: flex; gap: 4px; margin-bottom: 40px; border-bottom: 1px solid var(--border); overflow-x: auto; min-height: 45px; }
.account-shell { padding: 56px 0 80px; }
.app-tabs:empty { border-bottom-color: transparent; }
.app-tab { padding: 12px 18px; color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: color 180ms ease, border-color 180ms ease; }
.app-tab:hover { color: var(--ink); text-decoration: none; }
.app-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.unread-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px; padding: 0 4px; margin-left: 6px; background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; border-radius: 100px; vertical-align: middle; }

/* Плавный SPA-переход между вкладками */
#content { transition: opacity 220ms ease, transform 220ms ease; }
#content, #content.spa-leaving, #content.spa-entering { transition: opacity 80ms linear; }
#content.spa-leaving { opacity: 0; }
#content.spa-entering { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #content, #content.spa-leaving, #content.spa-entering { transition: none; }
}

/* ── HERO ── */
.hero { position: relative; background: var(--bg-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.trust-point { display: flex; align-items: center; gap: 8px; font-size: 0.87rem; color: var(--ink-soft); }
.trust-point svg { flex-shrink: 0; color: var(--success); }

/* Product visualization panel (hero) */
.product-panel {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 24px; position: relative; overflow: hidden;
}
.product-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, var(--accent-glow), transparent 60%);
  opacity: 0.5;
}
.product-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); display: inline-block; margin-right: 6px; }
.device-row { display: flex; justify-content: space-around; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); position: relative; }
.device-item { text-align: center; font-size: 0.78rem; color: var(--ink-soft); }
.device-item .check { display: block; color: var(--success); font-size: 1rem; margin-bottom: 4px; }

/* ── FEATURE ROWS ── */
.feature-rows { display: flex; flex-direction: column; }
.feature-row { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.feature-row:last-child { border-bottom: 1px solid var(--border); }
.feature-row .num { font-family: var(--font-display); color: var(--accent); font-weight: 600; }
.feature-row h3 { margin-bottom: 4px; }
.feature-row p { margin: 0; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.trust-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; display: flex; gap: 12px; align-items: flex-start; }
.trust-card svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.trust-card p { margin: 0; font-size: 0.92rem; color: var(--ink); }

/* ── PRICING ── */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) and (min-width: 861px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 26px 22px; display: flex; flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease;
}
.plan:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.plan.featured { border-color: rgba(124,92,255,.5); box-shadow: 0 0 40px rgba(124,92,255,.08); }
.plan.featured:hover { border-color: rgba(124,92,255,.8); }
.plan .badge { align-self: flex-start; background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 100px; margin-bottom: 12px; }
.plan .badge.best-value { background: var(--success); }
.plan h3 { font-size: 1.05rem; margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; margin: 6px 0 0; }
.plan .period { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 6px; }
.plan .save { color: var(--success); font-weight: 600; font-size: 0.82rem; margin-bottom: 14px; display: inline-block; }
.plan-features { list-style: none; padding: 0; margin: 6px 0 20px; flex: 1; }
.plan-features li { font-size: 0.85rem; color: var(--ink-soft); padding: 5px 0; padding-left: 20px; position: relative; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.plan .btn { margin-top: auto; }
.pricing-footnote { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--ink-muted); }

/* ── FAQ ── */
.faq-row { display: grid; grid-template-columns: 32px 1fr 24px; gap: 20px; align-items: start; padding: 22px 18px; border-top: 1px solid var(--border); cursor: pointer; border-radius: var(--radius-sm); transition: background 180ms ease; }
.faq-row:last-child { border-bottom: 1px solid var(--border); }
.faq-row:hover { background: var(--surface-1); }
.faq-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-row.active { background: var(--surface-2); }
.faq-row .num { font-family: var(--font-display); color: var(--accent); font-weight: 600; }
.faq-row h3 { margin: 0; font-size: 1.02rem; }
.faq-toggle { color: var(--accent); font-family: var(--font-display); font-size: 1.3rem; font-weight: 300; transition: transform 200ms ease; line-height: 1; }
.faq-row.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 320ms ease, opacity 220ms ease; opacity: 0; }
.faq-row.active .faq-answer { max-height: 240px; opacity: 1; margin-top: 10px; }
.faq-answer p { margin: 0; }

/* ── REFERRAL BAND ── */
.referral-band { position: relative; overflow: hidden; background: radial-gradient(circle at 85% 50%, rgba(124,92,255,0.12), transparent 45%), var(--surface-1); }
.referral-band .wrap { position: relative; z-index: 1; }

/* ── DECORATIVE CANVAS PANEL ── */
.canvas-panel { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); height: 190px; background: var(--surface-1); box-shadow: 0 0 40px rgba(124,92,255,.06); margin-bottom: 28px; }
@media (max-width: 860px) { .canvas-panel { height: 150px; } }
.nosignal-bars { display: flex; align-items: flex-end; gap: 5px; height: 32px; }
.nosignal-bars span { width: 6px; background: var(--ink-muted); border-radius: 2px; opacity: 0.35; animation: nosignal-pulse 1.6s ease-in-out infinite; }
.nosignal-bars span:nth-child(1) { height: 10px; animation-delay: 0s; }
.nosignal-bars span:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.nosignal-bars span:nth-child(3) { height: 26px; animation-delay: 0.4s; }
.nosignal-bars span:nth-child(4) { height: 32px; animation-delay: 0.6s; }
@keyframes nosignal-pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .nosignal-bars span { animation: none; opacity: 0.5; } }
.product-panel[data-state="connected"] #hero-panel-nosignal { display: none !important; }
.product-panel[data-state="connected"] #hero-panel-connected { display: block !important; }

.hero-visual-box { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-strong); }
@media (max-width: 768px) { .hero-visual-box { height: 320px !important; } }
@media (max-width: 480px) {
  .hero-visual-box { height: 300px !important; }
  .product-panel { margin: 18px !important; padding: 18px !important; max-width: none !important; }
  .product-panel-header { margin-bottom: 14px !important; }
}

/* ── AUTH PAGES ── */
body.auth-page { background: var(--bg); min-height: 100vh; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-brand-side {
  background: var(--surface-1); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; padding: 60px;
  position: relative; overflow: hidden;
}
.auth-brand-side::before {
  content: ""; position: absolute; top: -20%; left: -10%; width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%); pointer-events: none;
}
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-shell { max-width: 380px; width: 100%; position: relative; }
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-brand-side { display: none; }
  .auth-mobile-logo { display: block !important; text-align: center; margin-bottom: 24px; }
}

/* ── SUPPORT (messenger style) ── */
.chat-panel { display: flex; flex-direction: column; height: 460px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 4px 4px 0; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; position: relative; }
.chat-bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.support { align-self: flex-start; background: var(--surface-1); color: var(--ink); border-bottom-left-radius: 4px; }
.chat-timestamp { font-size: 0.68rem; opacity: 0.6; margin-top: 4px; display: block; }
.chat-input-row { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.chat-input-row textarea {
  flex: 1; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface-1); color: var(--ink); font-family: var(--font-body); resize: none; font-size: 0.95rem;
  max-height: 100px;
}
.chat-input-row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── INSTRUCTIONS TABS ── */
.platform-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.platform-tab { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface-1); color: var(--ink-soft); cursor: pointer; font-weight: 500; font-size: 0.9rem; transition: border-color 180ms ease, color 180ms ease; }
.platform-tab:hover { border-color: var(--accent); color: var(--ink); }
.platform-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.platform-panel { display: none; }
.platform-panel.active { display: block; }
.onboard-step { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.onboard-step:last-child { border-bottom: 1px solid var(--border); }
.onboard-step .step-num { font-family: var(--font-display); color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; width: 24px; }
.steps-list { counter-reset: step; margin: 20px 0; padding: 0; }
.steps-list li {
  counter-increment: step; list-style: none; position: relative;
  padding-left: 34px; margin-bottom: 12px; color: var(--ink-soft); font-size: 0.92rem;
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong);
  color: var(--ink); font-size: 0.72rem; font-weight: 600; font-family: var(--font-display);
  display: flex; align-items: center; justify-content: center;
}
.warn-box { background: #1A1420; border: 1px solid #2A2435; border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: 0.92rem; color: var(--ink-soft); }
.tip-box { background: #12141F; border: 1px solid #26233A; border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ── SETTINGS SECTIONS ── */
.settings-section { margin-bottom: 32px; }

/* ── MOBILE MENU ── */
.mobile-menu-btn { display: none; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-1); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.mobile-menu-panel { display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; background: var(--surface-2); border-left: 1px solid var(--border); z-index: 100; padding: 28px; flex-direction: column; gap: 4px; }
.mobile-menu-panel.open { display: flex; }
.mobile-menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99; }
.mobile-menu-overlay.open { display: block; }
.mobile-menu-panel a { padding: 13px 10px; color: var(--ink-soft); font-weight: 500; border-radius: 8px; }
.mobile-menu-panel a:hover { background: var(--surface-1); color: var(--ink); text-decoration: none; }
.mobile-menu-panel a.primary { background: var(--accent); color: #fff; text-align: center; margin-top: 10px; }
.mobile-menu-close { align-self: flex-end; background: none; border: none; color: var(--ink-soft); font-size: 1.4rem; cursor: pointer; margin-bottom: 10px; }

/* ── FOOTER ── */
footer.site { border-top: 1px solid var(--border); padding: 40px 0 24px; margin-top: 40px; }
footer.site p { font-size: 0.85rem; color: var(--ink-muted); margin: 0; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 0.88rem; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

/* ── COOKIE CONSENT ── */
#cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200;
  max-width: 560px; margin: 0 auto;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: 0.85rem; color: var(--ink-soft); flex: 1; min-width: 200px; }
#cookie-banner .btn { flex-shrink: 0; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── DIVIDERS ── */
.section-divider { height: 1px; background: var(--border); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  nav.site-nav { display: none; }
  .desktop-nav-actions { display: none !important; }
  .referral-net { display: none; }
  .mobile-menu-btn { display: flex; }
  header.site .wrap.row {
    display: grid !important;
    grid-template-columns: 38px 1fr 38px !important;
    grid-template-areas: "left center right" !important;
    align-items: center;
  }
  header.site .wrap.row .logo { grid-area: center; justify-self: center; }
  header.site .wrap.row nav.site-nav { grid-area: center; }
  header.site .wrap.row .mobile-menu-btn { grid-area: right; justify-self: end; }
  header.site .wrap:not(.row) {
    display: grid !important;
    grid-template-columns: 38px 1fr 38px !important;
    grid-template-areas: "left center right" !important;
    align-items: center;
  }
  header.site .wrap:not(.row) .logo { grid-area: center; justify-self: center; }
  header.site .wrap:not(.row) .mobile-menu-btn { grid-area: right; justify-self: end; }
  .mobile-menu-btn { position: static !important; }
}
