/* Bullseye Landing Page Styles */

:root {
  --bg: #111110;
  --bg-elevated: #1a1918;
  --bg-card: #222120;
  --border: #3d3a37;
  --text: #eceae6;
  --text-muted: #a8a29e;
  --text-dim: #78716c;
  --primary: #d64545;
  --primary-hover: #c03939;
  --primary-glow: rgba(214, 69, 69, 0.15);
  --accent: #d4a574;
  --success: #5a9a6e;
  --warning: #c9a227;
  --gradient: #d64545;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-hover-subtle: rgba(255, 255, 255, 0.03);
  --nav-scrolled-bg: rgba(17, 17, 16, 0.94);
  --dashboard-nav-bg: rgba(10, 15, 26, 0.95);
  --dropdown-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --modal-dialog-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --mobile-panel-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  --mobile-dropdown-bg: rgba(0, 0, 0, 0.2);
  --auth-visual-bg: linear-gradient(135deg, #1a0a0a 0%, #0f172a 50%, #1e1b4b 100%);
  --auth-visual-glow: rgba(239, 68, 68, 0.15);
  --badge-yotis-color: #d4a574;
  --badge-yotis-bg: rgba(212, 165, 116, 0.12);
  --badge-yotis-border: rgba(212, 165, 116, 0.25);
  --tag-new-color: #60a5fa;
  --tag-new-bg: rgba(59, 130, 246, 0.15);
  --plan-team-color: #818cf8;
  --plan-team-bg: rgba(99, 102, 241, 0.15);
  --mock-bg: #0f172a;
  --mock-border: rgba(255, 255, 255, 0.08);
  --mock-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --mock-header: #e2e8f0;
  --mock-stat-bg: #1e293b;
  --mock-stat-value: #22c55e;
  --mock-stat-label: #94a3b8;
  --mock-note-color: #cbd5e1;
  --mock-note-bg: #1e293b;
  --divider-subtle: rgba(255, 255, 255, 0.04);
  --scroll-padding: 80px;
  --hero-browser-bg: rgba(28, 28, 33, 0.95);
  --hero-browser-chrome: rgba(19, 23, 28, 0.9);
  --hero-browser-tab-active: rgba(15, 23, 42, 0.95);
  --hero-browser-url-bg: rgba(0, 0, 0, 0.35);
  --hero-browser-border: rgba(148, 163, 184, 0.15);
  --hero-browser-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  --hero-rec-bg: rgba(255, 255, 255, 0.03);
  --hero-rec-line: rgba(255, 255, 255, 0.08);
  --hero-rec-thumb-a: #334155;
  --hero-rec-thumb-b: #1e293b;
}

[data-theme="milk"] {
  --bg: #f7f3eb;
  --bg-elevated: #fffdf8;
  --bg-card: #ffffff;
  --border: #e5dfd4;
  --text: #1c1917;
  --text-muted: #57534e;
  --text-dim: #78716c;
  --primary-glow: rgba(214, 69, 69, 0.12);
  --accent: #9a6b3a;
  --success: #15803d;
  --warning: #b45309;
  --shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
  --surface-hover: rgba(28, 25, 23, 0.05);
  --surface-hover-subtle: rgba(28, 25, 23, 0.03);
  --nav-scrolled-bg: rgba(255, 253, 248, 0.94);
  --dashboard-nav-bg: rgba(255, 253, 248, 0.94);
  --dropdown-shadow: 0 12px 32px rgba(28, 25, 23, 0.1);
  --modal-dialog-shadow: 0 24px 48px rgba(28, 25, 23, 0.12);
  --mobile-panel-shadow: -8px 0 32px rgba(28, 25, 23, 0.1);
  --mobile-dropdown-bg: rgba(28, 25, 23, 0.04);
  --auth-visual-bg: linear-gradient(160deg, #ebe4d8 0%, #f0ebe3 50%, #f7f3eb 100%);
  --auth-visual-glow: rgba(214, 69, 69, 0.08);
  --badge-yotis-color: #9a6b3a;
  --badge-yotis-bg: rgba(154, 107, 58, 0.12);
  --badge-yotis-border: rgba(154, 107, 58, 0.25);
  --tag-new-color: #2563eb;
  --tag-new-bg: rgba(59, 130, 246, 0.12);
  --plan-team-color: #4f46e5;
  --plan-team-bg: rgba(99, 102, 241, 0.12);
  --mock-bg: var(--bg-card);
  --mock-border: var(--border);
  --mock-shadow: var(--shadow);
  --mock-header: var(--text);
  --mock-stat-bg: var(--bg);
  --mock-stat-value: var(--success);
  --mock-stat-label: var(--text-muted);
  --mock-note-color: var(--text-muted);
  --mock-note-bg: var(--bg);
  --divider-subtle: var(--border);
  --hero-browser-bg: var(--bg-card);
  --hero-browser-chrome: var(--bg);
  --hero-browser-tab-active: var(--bg-card);
  --hero-browser-url-bg: var(--bg);
  --hero-browser-border: var(--border);
  --hero-browser-shadow: 0 24px 48px rgba(28, 25, 23, 0.1), 0 8px 20px rgba(28, 25, 23, 0.05);
  --hero-rec-bg: var(--bg);
  --hero-rec-line: rgba(28, 25, 23, 0.1);
  --hero-rec-thumb-a: #e5dfd4;
  --hero-rec-thumb-b: #d6cfc4;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .section-header h2, .hero h1 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  letter-spacing: -0.04em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s ease, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 6px 16px rgba(214, 69, 69, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(214, 69, 69, 0.38);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 12px rgba(214, 69, 69, 0.28);
}

.btn-primary:disabled:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(214, 69, 69, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--text-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-outline:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.btn-ghost:active {
  transform: translateY(0) scale(0.98);
}

.btn-coming-soon,
.btn-coming-soon:hover,
.btn-coming-soon:active {
  cursor: default;
  pointer-events: none;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  color: var(--text-muted);
  box-shadow: none;
  transform: none;
}

.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-ghost {
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  }

  .btn-primary:hover,
  .btn-primary:active,
  .btn-outline:hover,
  .btn-outline:active,
  .btn-ghost:hover,
  .btn-ghost:active {
    transform: none;
  }
}

/* Site Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background 0.25s, padding 0.25s, border-color 0.25s;
  overflow: visible;
}

.site-nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0 0;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: visible;
}

.site-nav-brand {
  flex-shrink: 0;
  z-index: 2;
}

.brand-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-logo--spin {
  transform-origin: center center;
  animation: logo-spin 5s linear infinite;
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo--spin {
    animation: none;
  }
}

.site-nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.site-nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  position: static;
  left: auto;
  transform: none;
  margin-left: 8px;
  margin-right: auto;
  overflow: visible;
  z-index: 2;
  height: 44px;
}

.site-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  z-index: 1;
}

.site-nav-item--dropdown:hover,
.site-nav-item--dropdown:focus-within,
.site-nav-item--dropdown.is-open {
  z-index: 1300;
}

.site-nav-item--dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.site-nav-link,
.site-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.site-nav-link:hover,
.site-nav-trigger:hover,
.site-nav-link.is-active,
.site-nav-trigger[aria-expanded="true"] {
  color: var(--text);
  background: var(--surface-hover);
}

.site-nav-chevron {
  transition: transform 0.2s;
  opacity: 0.7;
}

.site-nav-item.is-expanded .site-nav-chevron,
.site-nav-item.is-open .site-nav-chevron,
.site-nav-item--dropdown:hover .site-nav-chevron {
  transform: rotate(180deg);
}

.site-nav-dropdown {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent),
    var(--dropdown-shadow);
  z-index: 1400;
  margin: 0;
  isolation: isolate;
}

.site-nav-dropdown a,
.site-nav-dropdown .site-nav-link,
.site-nav-mega a.site-nav-link {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s ease;
}

.site-nav-dropdown .nav-item-icon,
.site-nav-mega .nav-item-icon {
  margin-top: 1px;
}

.site-nav-dropdown a:hover,
.site-nav-dropdown a.is-active,
.site-nav-dropdown .site-nav-link:hover,
.site-nav-dropdown .site-nav-link.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 14%, var(--bg-card));
  transform: translateX(4px);
}

html[dir="rtl"] .site-nav-dropdown a:hover,
html[dir="rtl"] .site-nav-dropdown a.is-active,
html[dir="rtl"] .site-nav-dropdown .site-nav-link:hover,
html[dir="rtl"] .site-nav-dropdown .site-nav-link.is-active {
  transform: translateX(-4px);
}

.site-nav-dropdown a > span:last-child:not(.hero-platform-copy),
.site-nav-dropdown .site-nav-link > span:last-child:not(.hero-platform-copy) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.site-nav-dropdown strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.site-nav-dropdown small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: normal;
}

.nav-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--text-dim);
  border: none;
  flex-shrink: 0;
  transition: color 0.15s;
}

.nav-item-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.site-nav-dropdown a:hover .nav-item-icon,
.site-nav-dropdown a.is-active .nav-item-icon {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  color: var(--primary);
}

/* Features mega menu */
.site-nav-mega {
  min-width: min(640px, calc(100vw - 24px));
  padding: 8px;
}

.site-nav-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 4px 10px;
}

.site-nav-mega-col {
  min-width: 0;
}

.site-nav-mega-label {
  margin: 0 0 2px;
  padding: 2px 8px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav-mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-nav-mega-list li {
  margin: 0;
  padding: 0;
}

.site-nav-mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 8px 2px;
  border-top: 1px solid var(--border);
}

.site-nav-mega-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, transform 0.15s ease;
}

.site-nav-mega-cta:hover {
  color: var(--text);
  transform: translateX(4px);
}

.site-nav-mega-cta--accent {
  color: var(--primary);
}

.site-nav-mega-cta--accent:hover {
  color: var(--primary-hover, #dc2626);
  transform: translateX(4px);
}

html[dir="rtl"] .site-nav-mega-cta:hover,
html[dir="rtl"] .site-nav-mega-cta--accent:hover {
  transform: translateX(-4px);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: 0;
  flex-shrink: 0;
  min-width: 0;
  z-index: 2;
  height: 44px;
}

.lang-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}

.lang-switcher.is-open {
  z-index: 1300;
}

.lang-switcher-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.lang-switcher-trigger:hover,
.lang-switcher.is-open .lang-switcher-trigger {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: var(--surface-hover, var(--bg-elevated));
}

.lang-switcher-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.lang-switcher-globe {
  flex-shrink: 0;
  opacity: 0.85;
}

.lang-switcher-code {
  min-width: 1.5em;
  text-align: center;
}

.lang-switcher-name {
  display: none;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.lang-switcher-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  margin-left: auto;
  transition: transform 0.15s;
}

.lang-switcher.is-open .lang-switcher-chevron {
  transform: rotate(180deg);
}

.lang-switcher-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1400;
  width: min(176px, calc(100vw - 24px));
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--border) 70%, transparent),
    0 16px 40px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}

html[dir="rtl"] .lang-switcher-panel {
  right: auto;
  left: 0;
}

.lang-switcher-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(32vh, 152px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
}

.lang-switcher-list > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-switcher-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.lang-switcher-option {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 5px 6px;
  line-height: 1.25;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, transform 0.15s ease;
}

html[dir="rtl"] .lang-switcher-option {
  text-align: right;
}

.lang-switcher-option:hover,
.lang-switcher-option.is-focused {
  background: var(--surface-hover, color-mix(in srgb, var(--primary) 14%, transparent));
  color: var(--text);
  transform: translateX(4px);
}

html[dir="rtl"] .lang-switcher-option:hover,
html[dir="rtl"] .lang-switcher-option.is-focused {
  transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .lang-switcher-option {
    transition: background 0.12s, color 0.12s;
  }

  .lang-switcher-option:hover,
  .lang-switcher-option.is-focused,
  html[dir="rtl"] .lang-switcher-option:hover,
  html[dir="rtl"] .lang-switcher-option.is-focused {
    transform: none;
  }
}

.lang-switcher-option.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.lang-switcher-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.lang-switcher-opt-code {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.lang-switcher-option.is-active .lang-switcher-opt-code {
  color: var(--primary);
}

.lang-switcher-opt-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-switcher-check {
  color: var(--primary);
  flex-shrink: 0;
}

.site-nav-auth-guest,
.site-nav-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-nav-auth-user.hidden,
.site-nav-auth-guest.hidden {
  display: none;
}

.auth-toast {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  z-index: 10000;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--surface-elevated, #1e293b);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.auth-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-nav {
  box-sizing: border-box;
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--text-dim);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme-toggle svg {
  display: block;
}

html:not([data-theme="milk"]) .theme-icon--milk {
  display: none !important;
}

html[data-theme="milk"] .theme-icon--dark {
  display: none !important;
}

.theme-toggle--floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  background: var(--bg-elevated);
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-open .site-nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-link:focus-visible,
.site-nav-trigger:focus-visible,
.site-nav-toggle:focus-visible,
.site-nav-dropdown a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.site-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
}

body.nav-open {
  overflow: hidden;
}

.page-main {
  padding-top: 88px;
}

body.has-site-updates .page-main {
  padding-top: 128px;
}

.page-main > section:first-child:not(.hero) {
  padding-top: 48px;
}

.explore-pages {
  padding: 36px 0 72px;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.explore-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  row-gap: 4px;
  align-items: start;
  align-content: start;
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
  min-height: 100%;
}

.explore-icon {
  grid-row: 1 / 3;
  width: 24px;
  margin: 2px 0 0;
  justify-self: center;
}

.explore-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  font-family: var(--font);
}

.explore-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.explore-card:hover {
  border-color: var(--text-dim);
  transform: none;
  box-shadow: none;
  background: var(--bg-card);
}

@media (max-width: 960px) {
  .explore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop dropdowns — hover, focus, and click-to-open */
@media (min-width: 961px) {
  .site-nav-toggle {
    display: none !important;
  }

  .site-nav-panel {
    position: static;
    transform: none !important;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  .site-nav-item--dropdown:hover .site-nav-dropdown,
  .site-nav-item--dropdown:focus-within .site-nav-dropdown,
  .site-nav-item--dropdown.is-open .site-nav-dropdown {
    display: block;
  }

  .site-nav-item--mega .site-nav-mega {
    left: 0;
    right: auto;
    transform: none;
  }

  .site-nav-dropdown--platforms {
    left: 0;
    right: auto;
  }
}

/* Legacy nav aliases (dashboard pages) */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dashboard-nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.dashboard-nav .nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.dashboard-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 8px;
}

.dashboard-nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.dashboard-nav-links a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

@media (max-width: 640px) {
  .dashboard-nav-links { display: none; }
}

/* Section scroll offset for fixed nav */
[id="yotis"], [id="insights"], [id="v3"], [id="stream"], [id="video-engine"], [id="video-coverage"], [id="video-setup"], [id="video-compare"], [id="video-install"], [id="video-platforms"],
[id="youtube-coverage"], [id="youtube-compare"], [id="youtube-install"],
[id="features"], [id="compare"], [id="pricing"], [id="install"], [id="faq"] {
  scroll-margin-top: 88px;
}

/* Hero — same width/padding as .container so left edges match nav + sections */
.hero {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 40px 56px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  overflow: visible;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: var(--bg);
  pointer-events: none;
  z-index: -1;
  grid-column: 1 / -1;
  grid-row: 1;
}

.hero > .hero-content {
  grid-column: 1;
  grid-row: 1;
}

.hero > .hero-visual {
  grid-column: 2;
  grid-row: 1;
}

.hero-badge,
.hero-kicker {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  animation: none;
}

.hero h1 {
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
  text-wrap: balance;
}

.gradient-text {
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-actions .btn-lg {
  min-height: 48px;
  padding-inline: 22px;
}

.hero-platforms {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
  padding-top: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-platforms-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-platforms-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(7.5rem, max-content));
  gap: 6px 8px;
  align-items: center;
}

.hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 8px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-platform-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hero-platform-name {
  white-space: nowrap;
}

.hero-platform-soon,
.hero-platform-available {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero-platform-soon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}

.hero-platform-available {
  color: var(--success, #16a34a);
  background: color-mix(in srgb, var(--success, #16a34a) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success, #16a34a) 22%, transparent);
}

/* Homepage platform grid: keep soon chips subtle, hide Available label */
.hero-platforms .hero-platform-available {
  display: none;
}

.hero-platform .platform-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 5px;
  box-sizing: border-box;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.hero-platform:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  transform: translateY(-1px);
}

.hero-platform:hover .platform-icon,
.hero-platform.is-active .platform-icon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  transform: scale(1.04);
}

.hero-platform.is-active {
  color: var(--text);
}

.hero-platform.is-detected {
  color: var(--text);
}

.hero-platform.is-detected .platform-icon {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}

.site-updates {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 94%, var(--primary) 6%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Keep What's New from stacking through Product / Features / language menus */
.site-nav:has(.site-nav-item--dropdown.is-open) .site-updates,
.site-nav:has(.site-nav-item--dropdown:hover) .site-updates,
.site-nav:has(.site-nav-item--dropdown:focus-within) .site-updates,
.site-nav:has(.lang-switcher.is-open) .site-updates,
.site-nav:has(.lang-switcher:hover) .site-updates {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-updates[hidden] {
  display: none !important;
}

.site-updates-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 12px 0 14px;
}

.site-updates-badge {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
}

.site-updates-copy {
  flex: 1;
  min-width: min(100%, 220px);
  position: relative;
}

.site-updates-item {
  display: none;
  margin: 0;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.site-updates-item.is-active {
  display: flex;
}

.site-updates-link {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.site-updates-link:hover {
  text-decoration: underline;
}

.site-nav-dropdown--platforms {
  min-width: 212px;
  width: 224px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border-radius: 12px;
}

.site-nav-platforms-heading {
  margin: 0 0 8px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.site-nav-platforms {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  grid-template-columns: none;
  width: 100%;
  max-height: min(40vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
}

.site-nav-platforms::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.site-nav-dropdown--platforms .hero-platform,
.site-nav-dropdown a.hero-platform {
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  line-height: 1.25;
  transform: none;
  transition: background 0.15s, color 0.15s, transform 0.15s ease;
}

.site-nav-dropdown--platforms a.hero-platform > .hero-platform-copy,
.site-nav-dropdown a.hero-platform > span.hero-platform-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.site-nav-dropdown--platforms .hero-platform .platform-icon {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 6px;
}

.site-nav-dropdown--platforms .hero-platform-soon,
.site-nav-dropdown--platforms .hero-platform-available {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.site-nav-dropdown--platforms .hero-platform-available {
  color: var(--success, #16a34a);
  background: color-mix(in srgb, var(--success, #16a34a) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--success, #16a34a) 28%, transparent);
}

.site-nav-dropdown--platforms a.hero-platform:hover,
.site-nav-dropdown--platforms a.hero-platform.is-focused,
.site-nav-dropdown--platforms a.hero-platform.is-active,
.site-nav-dropdown--platforms a.hero-platform.is-detected,
.site-nav-dropdown a.hero-platform:hover,
.site-nav-dropdown a.hero-platform.is-focused,
.site-nav-dropdown a.hero-platform.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  transform: translateX(4px);
}

html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform:hover,
html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-focused,
html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-active,
html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-detected,
html[dir="rtl"] .site-nav-dropdown a.hero-platform:hover,
html[dir="rtl"] .site-nav-dropdown a.hero-platform.is-focused,
html[dir="rtl"] .site-nav-dropdown a.hero-platform.is-active {
  transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-dropdown a,
  .site-nav-dropdown .site-nav-link,
  .site-nav-mega a.site-nav-link,
  .site-nav-mega-cta,
  .site-nav-dropdown--platforms .hero-platform,
  .site-nav-dropdown a.hero-platform {
    transition: background 0.15s, color 0.15s;
  }

  .site-nav-dropdown a:hover,
  .site-nav-dropdown a.is-active,
  .site-nav-dropdown .site-nav-link:hover,
  .site-nav-dropdown .site-nav-link.is-active,
  .site-nav-mega-cta:hover,
  .site-nav-mega-cta--accent:hover,
  .site-nav-dropdown--platforms a.hero-platform:hover,
  .site-nav-dropdown--platforms a.hero-platform.is-active,
  .site-nav-dropdown--platforms a.hero-platform.is-detected,
  .site-nav-dropdown a.hero-platform:hover,
  .site-nav-dropdown a.hero-platform.is-active,
  html[dir="rtl"] .site-nav-dropdown a:hover,
  html[dir="rtl"] .site-nav-dropdown a.is-active,
  html[dir="rtl"] .site-nav-dropdown .site-nav-link:hover,
  html[dir="rtl"] .site-nav-dropdown .site-nav-link.is-active,
  html[dir="rtl"] .site-nav-mega-cta:hover,
  html[dir="rtl"] .site-nav-mega-cta--accent:hover,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform:hover,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-active,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-detected,
  html[dir="rtl"] .site-nav-dropdown a.hero-platform:hover,
  html[dir="rtl"] .site-nav-dropdown a.hero-platform.is-active {
    transform: none;
  }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-items: start;
  justify-content: start;
  column-gap: 40px;
  row-gap: 28px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.hero-stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1.15;
  min-height: 1.15em;
  margin: 0 0 4px;
}

.hero-stat span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-dim);
  margin: 0;
}

/* Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 8px 12px 0 48px;
  overflow: visible;
}

.hero-visual-glow {
  display: block;
  position: absolute;
  inset: 4% -8% 8% -4%;
  background:
    radial-gradient(ellipse at 42% 38%, rgba(214, 69, 69, 0.32) 0%, transparent 52%),
    radial-gradient(ellipse at 72% 62%, rgba(212, 165, 116, 0.18) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 90%, rgba(90, 154, 110, 0.1) 0%, transparent 42%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-pulse 7s ease-in-out infinite;
}

[data-theme="milk"] .hero-visual-glow {
  background:
    radial-gradient(ellipse at 42% 38%, rgba(214, 69, 69, 0.18) 0%, transparent 52%),
    radial-gradient(ellipse at 72% 62%, rgba(154, 107, 58, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 90%, rgba(21, 128, 61, 0.08) 0%, transparent 42%);
  filter: blur(28px);
}

@keyframes hero-glow-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.hero-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.45));
  animation: hero-showcase-float 8s ease-in-out infinite;
}

[data-theme="milk"] .hero-showcase {
  filter: drop-shadow(0 24px 40px rgba(28, 25, 23, 0.16));
}

@keyframes hero-showcase-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-showcase,
  .hero-visual-glow {
    animation: none;
  }
}

/* Extension popup mock — full-size replica of popup/, scaled to fit hero */
.hero-popup-frame {
  --hero-popup-scale: 0.64;
  position: absolute;
  top: -18px;
  left: -40px;
  z-index: 3;
  width: calc(380px * var(--hero-popup-scale));
  height: calc(520px * var(--hero-popup-scale));
  pointer-events: none;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
}

.hero-card--popup {
  width: 380px;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow), 0 18px 48px rgba(0, 0, 0, 0.35);
  font-family: 'Plus Jakarta Sans', var(--font), sans-serif;
  color: var(--text);
  transform: scale(var(--hero-popup-scale));
  transform-origin: top left;
  animation: none;
}

.hero-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hero-popup-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: nowrap;
}

.hero-popup-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hero-popup-plan {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  background: rgba(214, 69, 69, 0.12);
  color: var(--primary);
  border: 1px solid rgba(214, 69, 69, 0.25);
}

.hero-popup-yotis {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--badge-yotis-bg, rgba(212, 165, 116, 0.12));
  color: var(--badge-yotis-color, var(--accent));
  border: 1px solid var(--badge-yotis-border, rgba(212, 165, 116, 0.25));
}

.hero-popup-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.hero-popup-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-popup-site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 14px 0;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.hero-popup-site-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-popup-favicon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero-popup-site-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-popup-site-status {
  font-size: 12px;
  color: var(--success);
  margin-top: 2px;
}

.hero-popup-toggle {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 26px;
  background: var(--primary);
  flex-shrink: 0;
}

.hero-popup-toggle-knob {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-popup-health {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 14px 0;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.hero-popup-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.hero-popup-ring svg {
  width: 64px;
  height: 64px;
  display: block;
}

.hero-popup-ring-track {
  stroke: var(--health-track, var(--border));
}

.hero-popup-ring-fill {
  stroke: var(--success);
}

.hero-health-progress {
  animation: hero-ring-fill 2.5s ease-out forwards;
}

@keyframes hero-ring-fill {
  from { stroke-dashoffset: 213.6; }
  to { stroke-dashoffset: 13; }
}

.hero-popup-ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--success);
  line-height: 1;
}

.hero-popup-health-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-popup-health-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-popup-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px 14px;
}

.hero-popup-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}

.hero-popup-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.hero-popup-stat span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-popup-features {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 14px 4px;
}

.hero-popup-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.hero-popup-feature-icon {
  display: inline-flex;
  color: var(--primary);
  flex-shrink: 0;
}

.hero-popup-feature-name {
  flex: 1;
  color: var(--text-muted);
}

.hero-popup-feature-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(90, 154, 110, 0.12);
  color: var(--success);
}

.hero-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.hero-popup-mode {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

.hero-popup-version {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212, 165, 116, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Browser window — Chrome-like shell + YouTube watch page */
.hero-browser {
  position: relative;
  z-index: 2;
  background: var(--hero-browser-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hero-browser-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    var(--hero-browser-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.35);
  transform: scale(1.02);
  transform-origin: center center;
}

[data-theme="milk"] .hero-browser {
  backdrop-filter: none;
}

[data-theme="milk"] .hero-card--popup {
  background: var(--bg);
  box-shadow: var(--hero-browser-shadow);
}

[data-theme="milk"] .hero-popup-plan {
  background: rgba(214, 69, 69, 0.1);
}

.hero-browser-titlebar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 10px 12px 0;
  background: var(--hero-browser-chrome);
  border-bottom: 1px solid var(--border);
  min-height: 42px;
}

.hero-browser-dots {
  display: flex;
  gap: 5px;
  padding-bottom: 12px;
  flex-shrink: 0;
}

.hero-browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero-browser-dots span:nth-child(1) { background: #ef4444; }
.hero-browser-dots span:nth-child(2) { background: #f59e0b; }
.hero-browser-dots span:nth-child(3) { background: #22c55e; }

.hero-browser-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hero-browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  padding: 7px 10px;
  border-radius: 10px 10px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  white-space: nowrap;
}

.hero-browser-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-browser-tab.active {
  background: var(--hero-browser-tab-active, var(--bg));
  color: var(--text);
  border-color: var(--border);
  margin-bottom: -1px;
  padding-bottom: 8px;
}

.hero-browser-tab-close {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}

.hero-browser-tab-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 0 8px 4px;
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-browser-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-browser-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.hero-browser-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--text-dim);
}

.hero-browser-omnibox {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  background: var(--hero-browser-url-bg);
  border-radius: 999px;
  font-size: 11px;
  color: var(--text-muted);
  border: 1px solid var(--hero-browser-border);
}

.hero-browser-omnibox svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero-browser-url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-browser-ext {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(214, 69, 69, 0.12);
  border: 1px solid rgba(214, 69, 69, 0.28);
  flex-shrink: 0;
  animation: hero-ext-pulse 2.8s ease-in-out infinite;
}

.hero-browser-ext-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 16px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(214, 69, 69, 0.45);
}

@keyframes hero-ext-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0); }
  50% { box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.12); }
}

.hero-browser-body {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg);
}

.hero-player {
  flex: 1.65;
  min-width: 0;
}

.hero-player-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-player-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(214, 69, 69, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(212, 165, 116, 0.2) 0%, transparent 50%),
    linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  animation: hero-gradient-shift 8s ease-in-out infinite;
}

@keyframes hero-gradient-shift {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(12deg) brightness(1.06); }
}

.hero-player-ad-skip {
  position: absolute;
  right: 10px;
  bottom: 42px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fca5a5;
  text-decoration: line-through;
  animation: hero-ad-skip-out 4.5s ease-in-out infinite;
}

@keyframes hero-ad-skip-out {
  0%, 18% { opacity: 1; transform: translateX(0); }
  28%, 100% { opacity: 0; transform: translateX(12px); }
}

.hero-player-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  animation: hero-play-pulse 2.5s ease-in-out infinite;
}

.hero-player-play svg {
  width: 48px;
  height: 48px;
  padding: 13px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 8px 28px rgba(214, 69, 69, 0.45);
}

@keyframes hero-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.hero-player-shield {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(90, 154, 110, 0.2);
  border: 1px solid rgba(90, 154, 110, 0.5);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #86efac;
  backdrop-filter: blur(6px);
  animation: hero-shield-in 0.8s ease-out 0.9s both;
}

[data-theme="milk"] .hero-player-shield {
  color: var(--success);
  background: rgba(21, 128, 61, 0.12);
}

@keyframes hero-shield-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
}

.hero-player-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.hero-player-progress span {
  display: block;
  height: 100%;
  width: 72%;
  background: var(--primary);
  border-radius: 999px;
  animation: hero-progress 4s ease-in-out infinite;
}

@keyframes hero-progress {
  0% { width: 28%; }
  50% { width: 78%; }
  100% { width: 72%; }
}

.hero-player-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.hero-player-info {
  margin-top: 10px;
}

.hero-player-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-player-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 10px;
  color: var(--text-muted);
}

.hero-player-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  flex-shrink: 0;
}

.hero-player-views {
  margin-left: auto;
  color: var(--text-dim);
}

/* Recommendations sidebar */
.hero-recommendations {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.hero-rec {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: var(--hero-rec-bg);
}

[data-theme="milk"] .hero-rec {
  border: 1px solid var(--border);
}

.hero-rec--ad {
  opacity: 0.5;
  border: 1px dashed rgba(214, 69, 69, 0.4);
}

[data-theme="milk"] .hero-rec--ad {
  background: rgba(214, 69, 69, 0.04);
  border-color: rgba(214, 69, 69, 0.28);
}

.hero-rec--ad::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(214, 69, 69, 0.07) 4px,
    rgba(214, 69, 69, 0.07) 8px
  );
  border-radius: 8px;
  pointer-events: none;
}

.hero-rec--vanish {
  animation: hero-rec-block 5.5s ease-in-out infinite;
}

.hero-rec--delay {
  animation-delay: 1.1s;
}

@keyframes hero-rec-block {
  0%, 22% { opacity: 0.55; max-height: 48px; transform: scale(1); }
  38%, 78% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; transform: scale(0.96); overflow: hidden; }
  92%, 100% { opacity: 0.55; max-height: 48px; transform: scale(1); }
}

.hero-rec-thumb {
  width: 56px;
  height: 34px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--hero-rec-thumb-a), var(--hero-rec-thumb-b));
  flex-shrink: 0;
}

.hero-rec-thumb--2 {
  --hero-rec-thumb-a: #475569;
  --hero-rec-thumb-b: #334155;
}

.hero-rec-thumb--3 {
  --hero-rec-thumb-a: #64748b;
  --hero-rec-thumb-b: #475569;
}

.hero-rec-thumb--4 {
  --hero-rec-thumb-a: #78716c;
  --hero-rec-thumb-b: #44403c;
}

[data-theme="milk"] .hero-rec-thumb--2 {
  --hero-rec-thumb-a: #ddd6cc;
  --hero-rec-thumb-b: #cfc7bc;
}

[data-theme="milk"] .hero-rec-thumb--3 {
  --hero-rec-thumb-a: #d4cdc3;
  --hero-rec-thumb-b: #c4bcb2;
}

[data-theme="milk"] .hero-rec-thumb--4 {
  --hero-rec-thumb-a: #ebe4d8;
  --hero-rec-thumb-b: #d6cfc4;
}

.hero-rec-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-width: 0;
}

.hero-rec-lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--hero-rec-line);
}

.hero-rec-lines span:last-child { width: 65%; }

.hero-rec-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(214, 69, 69, 0.22);
  color: var(--primary);
  text-decoration: line-through;
}

/* Floating pills */
.hero-pill {
  display: none !important;
}

.hero-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fca5a5;
}

.hero-pill-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.hero-pill--1 {
  bottom: 48px;
  right: -48px;
  animation: hero-pill-1 6s ease-in-out infinite;
}

.hero-pill--2 {
  top: 38%;
  right: -56px;
  animation: hero-pill-2 7s ease-in-out infinite 0.5s;
  border-color: rgba(239, 68, 68, 0.25);
}

.hero-pill--3 {
  bottom: 120px;
  left: -52px;
  animation: hero-pill-3 8s ease-in-out infinite 1s;
  border-color: rgba(34, 197, 94, 0.25);
}

@keyframes hero-pill-1 {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(-6px, -8px); opacity: 0.92; }
}

@keyframes hero-pill-2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 6px); }
}

@keyframes hero-pill-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -6px); }
}

/* Spec bar (was social proof) */
.social-proof {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-proof .container {
  max-width: 1140px;
}

.social-proof p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  max-width: none;
}

.proof-logos {
  display: flex;
  justify-content: flex-start;
  gap: 24px 32px;
  flex-wrap: wrap;
  max-width: none;
  margin: 0;
  padding: 0;
}

.proof-logos span,
.proof-logos .proof-lang {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-mono);
}

.proof-languages .proof-lang {
  text-decoration: none;
  transition: color 0.15s ease;
}

.proof-languages .proof-lang:hover {
  color: var(--accent);
}

.proof-languages .proof-lang.is-current {
  color: var(--accent);
  font-weight: 600;
}

/* Section Headers */
.section-header {
  text-align: left;
  max-width: 640px;
  margin: 0 0 40px;
}

.section-tag {
  display: block;
  background: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--primary);
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Features */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--text-dim);
  transform: none;
  box-shadow: none;
}

.feature-card.featured {
  border-color: var(--border);
  background: var(--bg-card);
}

.feature-icon { margin-bottom: 16px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-tag.free { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.feature-tag.unique { background: rgba(249, 115, 22, 0.15); color: var(--accent); }
.feature-tag.pro { background: rgba(239, 68, 68, 0.15); color: var(--primary); }
.feature-tag.new { background: var(--tag-new-bg); color: var(--tag-new-color); }

/* v3 Highlights */
.v3-highlights {
  padding: 80px 0;
  background: var(--bg);
}

.v3-card-icon,
.feature-icon {
  margin-bottom: 12px;
}

.v3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.v3-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.v3-card::before {
  display: none;
}

.v3-card:hover {
  border-color: var(--text-dim);
  transform: none;
  box-shadow: none;
}

.v3-card:hover::before { opacity: 0; }

.v3-card-icon svg,
.feature-icon svg,
.explore-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.v3-card-icon,
.feature-icon,
.explore-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--text-dim);
  border: none;
  font-size: 0;
  line-height: 0;
  transition: color 0.15s;
  flex-shrink: 0;
}

.explore-icon {
  margin-top: 2px;
}

.v3-card:hover .v3-card-icon,
.feature-card:hover .feature-icon,
.explore-card:hover .explore-icon,
.v3-card:not(.v3-card--pro):hover .v3-card-icon,
.feature-card.featured:hover .feature-icon,
.yotis-section .v3-card:not(.v3-card--pro):hover .v3-card-icon,
.yotis-section .v3-card--pro:hover .v3-card-icon {
  transform: none;
  box-shadow: none;
  border-color: transparent;
  color: var(--primary);
}

.v3-card:not(.v3-card--pro) .v3-card-icon,
.feature-card.featured .feature-icon,
.yotis-section .v3-card:not(.v3-card--pro) .v3-card-icon,
.yotis-section .v3-card--pro .v3-card-icon {
  background: none;
  color: var(--text-dim);
  border: none;
}

.v3-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.v3-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pro-label, .free-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pro-label { background: rgba(214, 69, 69, 0.12); color: var(--primary); }
.free-label { background: rgba(90, 154, 110, 0.12); color: var(--success); }

.v3-card--pro { border-color: var(--border); }

.yotis-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.yotis-tag {
  background: none !important;
  color: var(--text-dim) !important;
  border-left-color: var(--accent) !important;
}

.feature-tag.yotis,
.feature-tag.new {
  background: rgba(212, 165, 116, 0.12);
  color: var(--accent);
}

/* Insights Spotlight */
.insights-spotlight {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.insights-mock {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 18px 48px rgba(0, 0, 0, 0.28);
  font-family: 'Plus Jakarta Sans', var(--font), sans-serif;
}

.insights-mock-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.insights-mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.insights-mock-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.insights-mock-plan {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  background: rgba(214, 69, 69, 0.12);
  color: var(--primary);
  border: 1px solid rgba(214, 69, 69, 0.25);
}

.insights-mock-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.insights-mock-panel {
  margin: 12px 14px 14px;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.insights-mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.insights-mock-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.insights-mock-spark {
  display: inline-flex;
  color: var(--accent);
}

.insights-mock-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  padding: 4px;
  border-radius: 4px;
}

.insights-mock-body {
  padding: 0 12px 12px;
}

.insights-mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.insights-mock-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
}

.insights-mock-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 2px;
}

.insights-mock-stat span {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.insights-mock-note {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  margin-top: 6px;
}

.insights-mock-note.warn { color: var(--warning); }
.insights-mock-note.ok { color: var(--success); }

/* Stream spotlight */
.stream-spotlight {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.spotlight-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 12px 0 16px;
  line-height: 1.15;
}

.spotlight-copy > p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.spotlight-list {
  list-style: none;
  margin-bottom: 28px;
}

.spotlight-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.spotlight-list li:last-child { border-bottom: none; }

.spotlight-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.spotlight-list li strong { color: var(--text); }

.spotlight-visual {
  display: flex;
  justify-content: center;
}

.spotlight-player.hero-browser {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transform: none;
}

.spotlight-player-body {
  padding: 12px;
  background: var(--bg);
}

.spotlight-player-status {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.spotlight-dot {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.spotlight-dot.ad { background: rgba(239, 68, 68, 0.15); color: var(--primary); }
.spotlight-dot.skip { background: rgba(249, 115, 22, 0.15); color: var(--accent); }
.spotlight-dot.play { background: rgba(34, 197, 94, 0.15); color: var(--success); }

.spotlight-player .spotlight-screen {
  height: auto;
  margin: 0;
}

.spotlight-screen-ad,
.spotlight-screen-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  pointer-events: none;
}

.spotlight-screen-ad {
  color: #fca5a5;
  background: rgba(10, 10, 10, 0.55);
  animation: spotlight-fade-ad 4.5s ease-in-out infinite;
}

.spotlight-screen-video {
  color: #fff;
  background: transparent;
  animation: spotlight-fade-video 4.5s ease-in-out infinite;
}

.spotlight-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 28px rgba(214, 69, 69, 0.45);
}

@keyframes spotlight-fade-ad {
  0%, 38% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

@keyframes spotlight-fade-video {
  0%, 38% { opacity: 0; }
  48%, 100% { opacity: 1; }
}

.spotlight-timeline {
  display: flex;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.spotlight-timeline-ad {
  width: 18%;
  background: var(--primary);
  animation: spotlight-timeline-pulse 4.5s ease-in-out infinite;
}

.spotlight-timeline-content {
  flex: 1;
  background: var(--success);
}

@keyframes spotlight-timeline-pulse {
  0%, 38% { opacity: 1; }
  48%, 100% { opacity: 0.35; }
}

.spotlight-meta {
  margin-top: 16px;
  font-size: 14px;
}

.spotlight-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.spotlight-meta a:hover { color: var(--primary); }

.stream-platforms {
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.stream-platforms-label {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.page-cta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.page-cta .browser-product-actions {
  justify-content: flex-start;
}

.page-cta h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.page-cta p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 48ch;
}

.install-header {
  margin-bottom: 28px;
}

.install-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.browser-product-also-links .coming-soon-badge {
  margin-left: 6px;
  vertical-align: middle;
}

.stream-platform-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 920px;
  margin: 0 auto;
}

.stream-platform-pills span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

.stream-setup {
  padding: 80px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stream-steps {
  max-width: 640px;
  margin: 0 auto;
}

/* Compare */
.compare {
  padding: 100px 0;
  background: var(--bg-elevated);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  background: var(--bg-card);
  font-weight: 600;
  color: var(--text-muted);
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--surface-hover-subtle); }

.highlight-col { background: rgba(239, 68, 68, 0.05) !important; font-weight: 600; }
.yes { color: var(--success); }
.no { color: var(--primary); }
.partial { color: var(--warning); }

/* Pricing */
.pricing {
  padding: 80px 0 100px;
}

.pricing-header-block {
  margin-bottom: 28px;
}

.pricing-header-block h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 12px 0 14px;
  color: var(--text);
}

.pricing-header-block > p {
  margin: 0;
  max-width: 52ch;
}

.pricing-availability {
  margin-top: 14px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.toggle-label {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
  cursor: pointer;
}

.toggle-label.active { color: var(--text); }

.toggle-label em {
  font-style: normal;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.switch {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.switch input { opacity: 0; width: 0; height: 0; }

.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 26px;
  transition: 0.3s;
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .switch-slider { background: var(--primary); }
.switch input:checked + .switch-slider::before { transform: translateX(22px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 880px;
  margin: 0;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pricing-card:hover { border-color: var(--text-dim); }

.pricing-card.popular {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%),
    var(--bg-card);
  transform: none;
  box-shadow: none;
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  transform: none;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
}

.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-price .price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
}

.pricing-price .period {
  font-size: 14px;
  color: var(--text-dim);
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  flex: 1;
}

.pricing-features li {
  position: relative;
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 0 9px 22px;
  border-bottom: 1px solid var(--divider-subtle);
  line-height: 1.45;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 70%, transparent);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-card .btn-block {
  margin-top: auto;
}

.pricing-note {
  text-align: left;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
}

.pricing-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pricing-more-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.pricing-more-link:hover {
  color: var(--primary);
}

.pricing-footer-actions {
  margin: 0;
}

/* Install */
.install {
  padding: 80px 0;
  background: var(--bg-elevated);
}

.install-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.install-card h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.install-card > .install-content > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.install-steps li span {
  width: 28px;
  height: 28px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.install-steps code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}

.install-cta { min-width: 240px; }
.install-note { text-align: center; font-size: 12px; color: var(--text-dim); margin-top: 12px; }

/* FAQ */
.faq { padding: 100px 0; }

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list--page {
  max-width: none;
  margin: 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { background: var(--surface-hover-subtle); }

.faq-item p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 0;
  max-width: 360px;
  line-height: 1.65;
}

.footer-company {
  margin-top: 16px;
  max-width: 360px;
}

.footer-company p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-dim);
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* Browser product pages */
.browser-product-spotlight,
.safari-spotlight {
  padding: 72px 0 40px;
}

.spotlight-copy .section-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
}

.coming-soon-banner {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px 14px;
  max-width: 54ch;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.browser-product-install.is-coming-soon .install-steps {
  opacity: 0.72;
}

.browser-product-spotlight .spotlight-copy h1,
.safari-spotlight .spotlight-copy h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
  color: var(--text);
}

.safari-why {
  padding: 24px 0 48px;
}

.safari-why .section-header {
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.browser-product-mock,
.safari-mock {
  width: 100%;
  max-width: 480px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.browser-product-mock-chrome,
.safari-mock-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface) 88%, var(--text) 12%);
  border-bottom: 1px solid var(--border);
}

.browser-product-mock-traffic,
.safari-mock-traffic {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-product-mock-traffic span,
.safari-mock-traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-product-mock-traffic span:nth-child(2),
.safari-mock-traffic span:nth-child(2) { background: #febc2e; }
.browser-product-mock-traffic span:nth-child(3),
.safari-mock-traffic span:nth-child(3) { background: #28c840; }

.browser-product-mock-omnibox,
.safari-mock-omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.browser-product-mock-omnibox span,
.safari-mock-omnibox span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-product-mock-ext,
.safari-mock-ext {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.browser-product-mock-ext-badge,
.safari-mock-ext-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.browser-product-mock-body,
.safari-mock-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  min-height: 260px;
}

.browser-product-mock-panel,
.safari-mock-panel {
  padding: 18px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, var(--primary) 8%);
}

.browser-product-mock-panel-head,
.safari-mock-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.browser-product-mock-panel-head strong,
.safari-mock-panel-head strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.browser-product-mock-panel-head small,
.safari-mock-panel-head small {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.browser-product-mock-stats,
.safari-mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.browser-product-mock-stats div,
.safari-mock-stats div {
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.browser-product-mock-stats strong,
.safari-mock-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.browser-product-mock-stats span,
.safari-mock-stats span {
  font-size: 11px;
  color: var(--text-muted);
}

.browser-product-mock-status,
.safari-mock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.browser-product-mock-dot,
.safari-mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 0 4px rgba(40, 200, 64, 0.18);
}

.browser-product-mock-note,
.safari-mock-note {
  margin: 0;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.45;
}

.browser-product-mock-page,
.safari-mock-page {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  background:
    radial-gradient(ellipse at 70% 20%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 55%),
    var(--bg);
}

.browser-product-mock-page-line,
.safari-mock-page-line {
  height: 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.browser-product-mock-page-line.short,
.safari-mock-page-line.short { width: 55%; }
.browser-product-mock-page-line.mid,
.safari-mock-page-line.mid { width: 78%; }

.browser-product-mock-ad,
.safari-mock-ad {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 10px;
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.browser-product-mock--android,
.browser-product-mock--ios {
  max-width: 320px;
  border-radius: 24px;
}

.browser-product-mock--android .browser-product-mock-traffic,
.browser-product-mock--ios .browser-product-mock-traffic {
  display: none;
}

.browser-product-mock--android .browser-product-mock-body,
.browser-product-mock--ios .browser-product-mock-body {
  min-height: 300px;
}

.browser-product-mock--safari {
  border-color: color-mix(in srgb, #0a84ff 28%, var(--border));
}

.browser-product-mock--safari .browser-product-mock-chrome {
  background: color-mix(in srgb, #0a84ff 8%, var(--surface));
}

.browser-product-mock--ios {
  border-color: color-mix(in srgb, #30d158 22%, var(--border));
}

.browser-product-mock--firefox {
  border-color: color-mix(in srgb, #ff7139 24%, var(--border));
}

.browser-product-mock--edge {
  border-color: color-mix(in srgb, #0078d4 24%, var(--border));
}

.browser-product-mock--opera {
  border-color: color-mix(in srgb, #ff1b2d 22%, var(--border));
}

.browser-product-mock--brave {
  border-color: color-mix(in srgb, #fb542b 24%, var(--border));
}

.safari-install {
  padding-top: 24px;
}

.safari-install-grid,
.safari-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  max-width: 960px;
}

.safari-install-grid .browser-product-panel,
.safari-side-grid .browser-product-panel {
  max-width: none;
}

.safari-side-subhead {
  margin-top: 28px !important;
}

.safari-cta-panel {
  max-width: 720px;
}

.safari-crosslink {
  max-width: 720px;
}

@media (max-width: 900px) {
  .browser-product-mock-body,
  .safari-mock-body,
  .safari-install-grid,
  .safari-side-grid {
    grid-template-columns: 1fr;
  }

  .browser-product-mock-panel,
  .safari-mock-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .safari-why .section-header {
    text-align: center;
    margin-inline: auto;
  }
}

.browser-product {
  padding: 72px 0 96px;
}

.browser-product-hero {
  max-width: 720px;
  margin-bottom: 48px;
}

.browser-product-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
  color: var(--text);
}

.browser-product-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

.browser-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.browser-product-actions--follow {
  margin-top: 20px;
}

.browser-product-panel {
  max-width: 720px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.browser-product-panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.browser-product-list {
  margin-bottom: 0;
}

.browser-product-copy {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 54ch;
}

.browser-product-install .install-steps {
  margin-bottom: 16px;
}

.browser-product-note {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
  max-width: 54ch;
}

.browser-product-also {
  max-width: 720px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.install-also.browser-product-also {
  max-width: none;
  margin-top: 40px;
  padding-top: 0;
  border-top: none;
}

.browser-product-also-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.browser-product-also-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.browser-product-also-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.browser-product-also-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* Auth Pages */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  background: var(--auth-visual-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.auth-visual::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--auth-visual-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.auth-visual-content {
  position: relative;
  z-index: 1;
}

.auth-visual h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-visual p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.auth-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  background: var(--bg);
}

.auth-form-container {
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-home-link:hover {
  color: var(--primary);
}

.auth-form-container .logo {
  margin-bottom: 32px;
  font-size: 24px;
}

.auth-form-container h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-form-container .subtitle {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input.error { border-color: var(--primary); }

.form-error {
  font-size: 12px;
  color: var(--primary);
  margin-top: 6px;
  display: none;
}

.form-error.visible { display: block; }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.verify-channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 6px;
}

.verify-channel-option {
  margin: 0;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.auth-verify-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
}

.form-checkbox input { width: auto; accent-color: var(--primary); }

.form-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.form-link {
  color: var(--primary);
  font-weight: 500;
}

.form-link:hover { text-decoration: underline; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn:hover { background: var(--border); }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

.plan-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.plan-badge.hidden { display: none; }

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--primary);
}

/* Auth modals */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.auth-modal.open {
  opacity: 1;
  visibility: visible;
}

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 39, 46, 0.75);
  backdrop-filter: blur(6px);
}

.auth-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--modal-dialog-shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.auth-modal.open .auth-modal-dialog {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 1;
}

.auth-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: var(--primary);
}

.auth-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-right: 36px;
}

.auth-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-modal-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.auth-panel.hidden {
  display: none;
}

.auth-panel .plan-badge {
  margin-bottom: 16px;
}

.auth-panel .auth-switch {
  margin-top: 20px;
}

/* Dashboard (post-login) */
.dashboard-page {
  min-height: 100vh;
  background: var(--bg);
}

.dashboard-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.dashboard-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.dashboard-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.user-details strong { display: block; font-size: 16px; }
.user-details span { font-size: 13px; color: var(--text-dim); }

.plan-pill {
  display: inline-block;
  background: rgba(239, 68, 68, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.plan-pill.pro { background: rgba(249, 115, 22, 0.15); color: var(--accent); }
.plan-pill.team { background: var(--plan-team-bg); color: var(--plan-team-color); }

.dashboard-wide { max-width: 1000px; }

.admin-section { margin-bottom: 24px; }

.admin-header {
  margin-bottom: 24px;
}

.admin-header h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.admin-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.admin-grid .dashboard-card {
  margin-bottom: 0;
}

.admin-grid .dashboard-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-grid .dashboard-card p {
  margin-bottom: 16px;
}

.device-list {
  list-style: none;
  margin-bottom: 16px;
}

.device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.device-list li:last-child { border-bottom: none; }

.device-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.device-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.device-status.offline {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.settings-overview {
  list-style: none;
}

.settings-overview li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.settings-overview li:last-child { border-bottom: none; }

.status-on {
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
}

.status-off {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.status-pending {
  font-size: 12px;
  font-weight: 500;
  color: #f59e0b;
}

.filter-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.filter-summary-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--bg);
  border-radius: var(--radius);
}

.filter-summary-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.filter-summary-item span {
  font-size: 11px;
  color: var(--text-dim);
}

.activity-list {
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.activity-list li:last-child { border-bottom: none; }

.activity-time {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
}

.admin-locked {
  text-align: center;
  padding: 48px 32px;
}

.admin-locked-content {
  max-width: 400px;
  margin: 0 auto;
}

.admin-locked-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.admin-locked h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.admin-locked p {
  margin-bottom: 24px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Advanced dashboard */
.dashboard-wide { max-width: 1200px; }

.dash-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dash-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-sidebar-profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.dash-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.dash-sidebar-meta {
  min-width: 0;
}

.dash-sidebar-meta strong {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-meta span:not(.plan-pill) {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-sidebar-meta .plan-pill {
  margin-top: 8px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.dash-nav-btn:hover,
.dash-nav-btn.is-active {
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary);
}

.dash-nav-btn:hover .dash-nav-icon,
.dash-nav-btn.is-active .dash-nav-icon {
  background: rgba(239, 68, 68, 0.16);
  color: var(--primary);
  border-color: rgba(239, 68, 68, 0.25);
}

.dash-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  color: var(--text-dim);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.dash-nav-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.dash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.dash-icon--quick {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 2px;
  border: 1px solid transparent;
}

.dash-icon--stat {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid transparent;
}

.dash-icon--device {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.dash-icon--red {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.dash-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.2);
}

.dash-icon--blue {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.dash-icon--green {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.2);
}

.dash-icon--violet {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.2);
}

.dash-icon--device-web {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.dash-icon--device-ext {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.dash-icon--device-mobile {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.dash-icon--device-desktop {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.dash-device-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}

.activity-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dash-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dash-feature-list .dash-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 1px;
}

.dash-feature-list .dash-icon svg {
  width: 14px;
  height: 14px;
}

.dash-card-head .dash-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.dash-card-head .dash-icon svg {
  width: 16px;
  height: 16px;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dash-card-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dash-card-head-left h3 {
  margin: 0;
}

.dash-sidebar-foot .btn-block {
  width: 100%;
  justify-content: center;
}

.dash-main {
  min-width: 0;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 6px;
}

.dash-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 6px;
}

.dash-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-status-chip.is-linked {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
}

.dash-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.dash-status-chip.is-linked .dash-status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.dash-panel[hidden] {
  display: none !important;
}

.dash-panel.is-active {
  display: block;
}

.dash-section-head {
  margin-bottom: 18px;
}

.dash-section-head h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.dash-section-head p {
  color: var(--text-muted);
  font-size: 14px;
}

.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.dash-quick-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dash-quick-card--btn {
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.dash-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.dash-quick-icon {
  /* legacy — replaced by .dash-icon--quick */
}

.dash-quick-card strong {
  font-size: 14px;
}

.dash-quick-card span:last-child {
  font-size: 12px;
  color: var(--text-dim);
}

.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dash-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.dash-stat-icon {
  /* legacy — replaced by .dash-icon--stat */
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.dash-stat-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dash-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 16px;
}

.dash-card--wide {
  grid-column: 1 / -1;
}

.dash-card h3 {
  font-size: 16px;
  font-weight: 700;
}

.dash-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 0;
}

.dash-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-dim);
}

.dash-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-pending {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.dash-upgrade-hero {
  padding: 0;
  overflow: hidden;
}

.dash-upgrade-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.dash-feature-list {
  list-style: none;
  margin: 16px 0 20px;
}

.dash-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.dash-feature-list li::before {
  content: none;
}

.dash-upgrade-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.dash-upgrade-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.18), transparent 70%);
}

.dash-device-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dash-mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.dash-mini-stat .dash-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  margin: 0 auto 10px;
}

.dash-mini-stat .dash-icon svg {
  width: 16px;
  height: 16px;
}

.dash-mini-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.dash-mini-stat span {
  font-size: 12px;
  color: var(--text-dim);
}

.dash-device-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.dash-device-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-device-card.is-current {
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.15);
}

.dash-device-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-device-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.dash-device-meta {
  font-size: 12px;
  color: var(--text-dim);
}

.dash-hint {
  font-size: 13px;
  color: var(--text-dim);
}

.dash-dl {
  display: grid;
  gap: 12px;
}

.dash-dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.dash-dl dt {
  color: var(--text-dim);
  font-size: 13px;
}

.dash-dl dd {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.dash-code {
  display: block;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 0 12px;
  word-break: break-all;
  font-size: 13px;
}

.dash-input {
  width: 100%;
  max-width: 180px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.twofa-setup-grid {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
  flex-wrap: wrap;
}

.twofa-setup-grid img {
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

#quick-upgrade.hidden-quick { display: none; }

.hidden { display: none !important; }

/* Command center hero */
.dash-hero {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(139, 92, 246, 0.08) 55%, transparent 100%);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.dash-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.dash-hero-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  margin: 6px 0 8px;
}

.dash-hero-desc {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 420px;
}

.dash-plan-chip {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.dash-plan-chip.is-pro {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #f59e0b;
}

.dash-health-widget {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.dash-health-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.dash-health-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.dash-health-ring {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.dash-health-center {
  position: absolute;
  /* Keep copy inside the ring (r=42, stroke≈8 on 120px widget) */
  inset: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.dash-health-center strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.dash-health-center span {
  margin-top: 3px;
  max-width: 100%;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.dash-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dash-status-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
}

.dash-status-card .dash-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  margin: 0 auto 10px;
}

.dash-status-card .dash-icon svg {
  width: 18px;
  height: 18px;
}

.dash-status-card strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.dash-status-card span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.dash-setup-card {
  margin-bottom: 20px;
}

.dash-setup-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.dash-setup-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.dash-setup-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.dash-setup-copy {
  flex: 1;
  min-width: 0;
}

.dash-setup-copy strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.dash-setup-copy span {
  font-size: 12px;
  color: var(--text-dim);
}

.dash-card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.dash-muted {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

.dash-trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 160px;
  padding-top: 8px;
}

.dash-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dash-bar-track {
  width: 100%;
  max-width: 36px;
  height: 120px;
  display: flex;
  align-items: flex-end;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
}

.dash-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #ef4444 0%, rgba(239, 68, 68, 0.45) 100%);
  border-radius: 6px 6px 2px 2px;
  transition: height 0.4s ease;
}

.dash-bar-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.dash-device-grid--compact {
  grid-template-columns: 1fr;
}

.dash-device-grid--compact .dash-device-card {
  padding: 14px 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 28px; }
  .hero > .hero-content,
  .hero > .hero-visual {
    grid-column: 1;
    grid-row: auto;
  }
  .hero-sub { margin: 0 0 32px; }
  .hero-actions { justify-content: flex-start; }
  .hero-platforms { align-items: flex-start; }
  .hero-platforms-list {
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
  }
  .hero-stats {
    justify-content: start;
    justify-items: start;
    margin-top: 28px;
  }
  .hero-stat { align-items: flex-start; }
  .hero-visual { order: -1; min-height: 0; padding: 12px 8px 8px; }
  .hero-showcase { max-width: 520px; }
  .hero-browser { transform: none; }
  .hero-popup-frame {
    left: -8px;
    top: -8px;
    --hero-popup-scale: 0.58;
    width: calc(380px * var(--hero-popup-scale));
    height: calc(520px * var(--hero-popup-scale));
  }
  .hero-pill--1 { right: -12px; bottom: 32px; }
  .hero-pill--2 { right: -16px; }
  .hero-pill--3 { left: -12px; }
  .spotlight-inner { grid-template-columns: 1fr; text-align: center; }
  .spotlight-list { text-align: left; }
  .spotlight-visual { margin-top: 8px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .v3-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card.popular { transform: none; }
  .pricing-toggle { justify-content: flex-start; }
  .pricing-footer { flex-direction: column; align-items: flex-start; }
  .install-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-split-grid { grid-template-columns: 1fr; }
  .dash-upgrade-hero-inner { grid-template-columns: 1fr; }
  .dash-status-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-hero-main { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 960px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100dvh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 72px 20px 24px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    box-shadow: var(--mobile-panel-shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav.is-open .site-nav-panel {
    transform: translateX(0);
  }

  .site-nav-menu {
    position: static;
    transform: none;
    left: auto;
    width: 100%;
    max-width: none;
    height: auto;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .site-nav-item {
    width: 100%;
    height: auto;
  }

  .site-nav-item--dropdown {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-radius: 14px;
    background: transparent;
    border: 1px solid transparent;
  }

  .site-nav-item--dropdown.is-open {
    background: color-mix(in srgb, var(--bg-card) 92%, var(--bg-elevated));
    border-color: var(--border);
  }

  .site-nav-item--dropdown.is-open .site-nav-trigger {
    border-radius: 14px 14px 0 0;
    background: transparent;
    color: var(--text);
  }

  .site-nav-actions {
    height: auto;
  }

  .site-nav-link,
  .site-nav-trigger {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
    min-height: 48px;
    border-radius: 12px;
  }

  .site-nav-dropdown {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    max-width: none;
    box-shadow: none;
    border: none;
    border-radius: 0 0 14px 14px;
    background: transparent;
    margin: 0;
    padding: 0 10px 12px;
    display: none;
    isolation: auto;
  }

  .site-nav-dropdown--platforms {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 10px 12px;
  }

  .site-nav-platforms-heading {
    margin: 0 0 10px;
    padding: 0 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .site-nav-platforms {
    width: 100%;
    max-height: none;
    overflow: visible;
    gap: 8px;
  }

  .site-nav-dropdown--platforms .hero-platform,
  .site-nav-dropdown a.hero-platform {
    width: 100%;
    min-height: 52px;
    padding: 14px 14px;
    gap: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    transform: none;
  }

  .site-nav-dropdown--platforms .hero-platform .platform-icon {
    width: 28px;
    height: 28px;
    padding: 5px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }

  .site-nav-dropdown--platforms .hero-platform-soon,
  .site-nav-dropdown--platforms .hero-platform-available {
    padding: 3px 8px;
    font-size: 10px;
  }

  .site-nav-dropdown--platforms a.hero-platform:hover,
  .site-nav-dropdown--platforms a.hero-platform.is-focused,
  .site-nav-dropdown--platforms a.hero-platform.is-active,
  .site-nav-dropdown--platforms a.hero-platform.is-detected,
  .site-nav-dropdown a.hero-platform:hover,
  .site-nav-dropdown a.hero-platform.is-focused,
  .site-nav-dropdown a.hero-platform.is-active,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform:hover,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-focused,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-active,
  html[dir="rtl"] .site-nav-dropdown--platforms a.hero-platform.is-detected,
  html[dir="rtl"] .site-nav-dropdown a.hero-platform:hover,
  html[dir="rtl"] .site-nav-dropdown a.hero-platform.is-focused,
  html[dir="rtl"] .site-nav-dropdown a.hero-platform.is-active {
    transform: none;
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  }

  .site-nav-dropdown a,
  .site-nav-dropdown .site-nav-link,
  .site-nav-mega a.site-nav-link {
    transform: none;
  }

  .site-nav-dropdown a:hover,
  .site-nav-dropdown a.is-active,
  .site-nav-dropdown .site-nav-link:hover,
  .site-nav-dropdown .site-nav-link.is-active,
  html[dir="rtl"] .site-nav-dropdown a:hover,
  html[dir="rtl"] .site-nav-dropdown a.is-active,
  html[dir="rtl"] .site-nav-dropdown .site-nav-link:hover,
  html[dir="rtl"] .site-nav-dropdown .site-nav-link.is-active {
    transform: none;
  }

  .site-nav-mega {
    padding: 0 10px 12px;
  }

  .site-nav-mega-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-nav-mega-col + .site-nav-mega-col {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .site-nav-mega-label {
    margin: 0 0 6px;
    padding: 0 4px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .site-nav-mega-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .site-nav-mega-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
  }

  .site-nav-mega-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    text-align: center;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 1px solid var(--border);
    transform: none;
  }

  .site-nav-mega-cta--accent {
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    border-color: color-mix(in srgb, var(--primary) 30%, var(--border));
  }

  .site-nav-mega-cta:hover,
  .site-nav-mega-cta--accent:hover,
  html[dir="rtl"] .site-nav-mega-cta:hover,
  html[dir="rtl"] .site-nav-mega-cta--accent:hover {
    transform: none;
  }

  .site-nav-item--dropdown.is-open .site-nav-dropdown {
    display: block;
  }

  .site-nav-item--dropdown::after {
    display: none;
  }

  .site-nav-dropdown a,
  .site-nav-dropdown .site-nav-link,
  .site-nav-mega a.site-nav-link {
    padding: 12px 12px;
    height: auto;
    min-height: 52px;
    white-space: normal;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 1px solid transparent;
  }

  .site-nav-dropdown a:hover,
  .site-nav-dropdown a.is-active,
  .site-nav-dropdown .site-nav-link:hover,
  .site-nav-dropdown .site-nav-link.is-active {
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  }

  .site-nav-dropdown .nav-item-icon,
  .site-nav-mega .nav-item-icon {
    width: 28px;
    height: 28px;
    margin-top: 0;
    border-radius: 8px;
    background: color-mix(in srgb, var(--text) 8%, transparent);
    color: var(--text-muted);
  }

  .site-nav-dropdown a:hover .nav-item-icon,
  .site-nav-dropdown a.is-active .nav-item-icon {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, transparent);
  }

  .site-nav-dropdown strong {
    font-size: 14px;
  }

  .site-nav-dropdown small {
    font-size: 12px;
    margin-top: 2px;
  }

  .site-nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .site-nav-menu {
    position: static;
    transform: none;
    left: auto;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .site-nav-actions {
    justify-content: stretch;
    align-self: stretch;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    gap: 10px;
  }

  .site-nav-actions .lang-switcher {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 14px;
  }

  .site-nav-actions .lang-switcher.is-open {
    border-color: var(--border);
    background: color-mix(in srgb, var(--bg-card) 92%, var(--bg-elevated));
  }

  .site-nav-actions .lang-switcher-trigger {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .site-nav-actions .lang-switcher.is-open .lang-switcher-trigger {
    border-color: transparent;
    background: transparent;
    border-radius: 14px 14px 0 0;
  }

  .site-nav-actions .lang-switcher-name {
    display: inline;
    color: var(--text);
  }

  .site-nav-actions .lang-switcher-code {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .site-nav-actions .lang-switcher-panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 0 10px 12px;
    box-shadow: none;
    border: none;
    border-radius: 0 0 14px 14px;
    background: transparent;
  }

  .site-nav-actions .lang-switcher-list {
    max-height: min(42vh, 280px);
    gap: 6px;
    display: flex;
    flex-direction: column;
  }

  .site-nav-actions .lang-switcher-list > li {
    width: 100%;
  }

  .site-nav-actions .lang-switcher-option {
    width: 100%;
    min-height: 48px;
    padding: 12px 12px;
    border-radius: 12px;
    font-size: 14px;
    background: color-mix(in srgb, var(--bg) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    transform: none;
  }

  .site-nav-actions .lang-switcher-option:hover,
  .site-nav-actions .lang-switcher-option.is-focused,
  .site-nav-actions .lang-switcher-option.is-active,
  html[dir="rtl"] .site-nav-actions .lang-switcher-option:hover,
  html[dir="rtl"] .site-nav-actions .lang-switcher-option.is-focused {
    transform: none;
    background: color-mix(in srgb, var(--primary) 12%, var(--bg-card));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  }

  .site-nav-actions .btn-nav {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .site-nav-actions .btn-primary:hover,
  .site-nav-actions .btn-outline:hover,
  .site-nav-actions .btn-ghost:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-visual {
    min-height: 0;
    overflow: visible;
    padding: 8px 0 12px;
  }
  .hero-visual-glow {
    inset: 0;
    opacity: 0.7;
  }
  .hero-showcase {
    max-width: 100%;
    animation: none;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
  }
  .hero-popup-frame {
    position: relative;
    left: auto;
    top: auto;
    --hero-popup-scale: 0.82;
    width: 100%;
    max-width: calc(380px * var(--hero-popup-scale));
    height: auto;
    min-height: calc(480px * var(--hero-popup-scale));
    margin: 0 auto 16px;
    filter: none;
  }
  .hero-card--popup { animation: none; }
  .hero-pill { display: none; }
  .hero-browser-body { flex-direction: column; }
  .hero-recommendations { flex-direction: row; }
  .hero-rec { flex: 1; flex-direction: column; }
  .hero-rec-thumb { width: 100%; height: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .v3-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-form-panel { padding: 32px 24px; }
  .auth-modal-dialog { padding: 24px 20px; }
  .auth-modal { padding: 16px; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-summary { grid-template-columns: 1fr; }
}

.dash-sync-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--surface-2, rgba(255,255,255,0.04));
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.dash-sync-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
}

.dash-sync-item strong {
  font-weight: 600;
}

.dash-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted, #64748b);
  flex-shrink: 0;
}

.dash-sync-item.is-ok .dash-sync-dot { background: #22c55e; }
.dash-sync-item.is-warn .dash-sync-dot { background: #f59e0b; }
.dash-sync-item.is-error .dash-sync-dot { background: #ef4444; }
.dash-sync-item.is-pending .dash-sync-dot { background: #3b82f6; animation: dash-pulse 1.2s ease infinite; }

@keyframes dash-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.dash-sync-label {
  color: var(--text-muted, #94a3b8);
}

.dash-sync-item--muted strong {
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
}

.dash-settings-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.dash-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.dash-toggle--pro {
  opacity: 0.95;
}

.dash-device-actions {
  margin-top: 12px;
}

.dash-billing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.dash-device-card .btn-remove-device {
  margin-top: 8px;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s ease, box-shadow 0.2s;
}

.dash-device-card .btn-remove-device:hover {
  transform: translateX(3px);
}

html[dir="rtl"] .dash-device-card .btn-remove-device:hover {
  transform: translateX(-3px);
}

.dash-device-card .btn-remove-device:active {
  transform: translateX(1px) scale(0.98);
}

html[dir="rtl"] .dash-device-card .btn-remove-device:active {
  transform: translateX(-1px) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .dash-device-card .btn-remove-device:hover,
  .dash-device-card .btn-remove-device:active,
  html[dir="rtl"] .dash-device-card .btn-remove-device:hover,
  html[dir="rtl"] .dash-device-card .btn-remove-device:active {
    transform: none;
  }
}

/* ── Cross-platform & accessibility ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dashboard-page .page-main {
  padding-left: 0;
  padding-right: 0;
}

.dash-shell {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-bottom: max(48px, env(safe-area-inset-bottom));
}

body[data-dash-panel]:not([data-dash-panel="overview"]) .dash-overview-only {
  display: none !important;
}

.dash-mobile-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.dash-mobile-hint.hidden { display: none; }

.dash-mobile-hint strong {
  display: block;
  color: var(--text);
  margin-bottom: 2px;
}

.compare-table-wrap {
  position: relative;
}

.compare-scroll-hint {
  display: none;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

@media (pointer: coarse) {
  .btn,
  .btn-sm,
  .btn-nav,
  .dash-nav-btn,
  .auth-modal-close,
  .auth-home-link {
    min-height: 44px;
  }

  .form-checkbox input {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }

  button,
  .btn,
  a.btn {
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 768px) {
  .dash-shell {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .dash-shell {
    gap: 16px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .dash-sidebar {
    padding: 14px;
    gap: 12px;
  }

  .dash-sidebar-profile {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }

  .dash-avatar {
    width: 44px;
    height: 44px;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }

  .dash-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-nav-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
    padding: 10px 14px;
    white-space: nowrap;
  }

  .dash-nav-icon {
    width: 28px;
    height: 28px;
  }

  .dash-sidebar-foot {
    display: none;
  }

  .dash-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .dash-header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .dash-header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .dash-status-chip {
    justify-content: center;
    width: 100%;
  }

  .dash-sync-bar {
    flex-direction: column;
    gap: 10px;
  }

  .dash-hero {
    padding: 18px;
  }

  .dash-status-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dash-quick-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compare-scroll-hint {
    display: block;
  }

  .auth-form-panel {
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .dash-status-grid,
  .dash-stats-grid,
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .dash-health-widget {
    align-self: center;
  }
}

/* Legal pages */
.legal-page {
  padding: 64px 0 88px;
}

.legal-doc {
  max-width: 720px;
}

.legal-doc .section-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-updated {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.legal-intro {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.7;
}

.legal-doc h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-doc p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
}

.legal-doc a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--primary-hover);
}

.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-related-title {
  width: 100%;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-related a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.legal-related a:hover {
  text-decoration: underline;
}

/* Blog */
.blog-hero {
  padding: 72px 0 28px;
}

.blog-hero-header {
  max-width: 720px;
  margin: 0;
  text-align: left;
}

.blog-hero-header h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 16px;
  color: var(--text);
}

.blog-hero-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 54ch;
}

.blog-index {
  padding: 12px 0 48px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-card--featured {
  grid-column: 1 / -1;
  padding-top: 8px;
  border-top: none;
}

.blog-card--featured h2 {
  font-size: clamp(24px, 3.5vw, 34px);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

.blog-card-category {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.blog-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

.blog-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
}

.blog-card-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.blog-card:hover h2,
.blog-card:hover .blog-card-more {
  color: var(--primary-hover, var(--primary));
}

.blog-articles {
  padding: 24px 0 96px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.blog-article {
  max-width: 720px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 96px;
}

.blog-article:last-of-type {
  border-bottom: none;
}

.blog-article-header h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 12px 0 0;
  color: var(--text);
}

.blog-article-body {
  margin-top: 20px;
}

.blog-article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.blog-back {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
}

.blog-back:hover {
  color: var(--primary);
}

.blog-cta {
  max-width: 720px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-cta h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
}

.blog-cta p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 54ch;
}

@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero-header {
    text-align: left;
    margin-inline: 0;
  }
}

/* Help / Support */
.help-hero {
  padding: 80px 0 20px;
}

.help-hero-header {
  max-width: 640px;
  margin: 0 0 0;
}

.help-hero-header h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 12px 0 14px;
  color: var(--text);
}

.help-hero-header p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 48ch;
}

.help-section-header {
  margin: 0 0 20px;
  max-width: 640px;
}

.help-section-header h2 {
  margin-bottom: 8px;
}

.help-contact {
  padding: 36px 0 20px;
}

.help-trouble {
  padding: 36px 0 24px;
}

.help-more {
  padding: 12px 0 88px;
}

.help-contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.help-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.help-contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.help-contact-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.help-contact-item strong {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.help-contact-item .help-contact-copy > span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
}

.help-contact-item:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 6%, var(--bg-elevated));
  transform: translateY(-1px);
}

.help-contact-item:hover .help-contact-copy > span {
  color: var(--primary);
}

.help-faq-list {
  max-width: none;
}

.help-more-panel {
  padding: 28px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%),
    var(--bg-elevated);
}

.help-more-panel .browser-product-actions {
  justify-content: flex-start;
}

.help-more-panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.help-more-panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 48ch;
}

@media (max-width: 720px) {
  .help-contact-list {
    grid-template-columns: 1fr;
  }

  .help-more-panel {
    padding: 22px 18px;
  }
}


