/* RemoteLatch — Production-Grade Dual-Theme Brand & Marketing Stylesheet */
:root {
  --rl-bg: #070c17;
  --rl-bg-elevated: #0b1324;
  --rl-card: #0f172a;
  --rl-card-2: #141f38;
  --rl-border: rgba(148, 163, 184, 0.16);
  --rl-border-strong: rgba(56, 189, 248, 0.35);
  --rl-text-1: #f8fafc;
  --rl-text-2: #94a3b8;
  --rl-text-3: #64748b;
  --rl-accent: #38bdf8;
  --rl-accent-2: #2563eb;
  --rl-accent-solid: #0284c7;
  --rl-accent-hover: #0ea5e9;
  --rl-success: #10b981;
  --rl-warning: #f59e0b;
  --rl-nav-bg: rgba(7, 12, 23, 0.82);
  --rl-shadow: 0 24px 60px rgba(2, 6, 23, 0.55);
  --rl-card-shadow: 0 10px 30px rgba(2, 6, 23, 0.35);
  --rl-glow: radial-gradient(ellipse 70% 50% at 50% -8%, rgba(56, 189, 248, 0.22), rgba(37, 99, 235, 0.08) 55%, transparent 80%);
  --rl-grid-line: rgba(148, 163, 184, 0.05);
  --rl-font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --rl-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --rl-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --rl-radius: 14px;
  --rl-radius-lg: 20px;
}

html.light {
  --rl-bg: #f8fafc;
  --rl-bg-elevated: #f1f5f9;
  --rl-card: #ffffff;
  --rl-card-2: #f1f5f9;
  --rl-border: rgba(15, 23, 42, 0.11);
  --rl-border-strong: rgba(2, 132, 199, 0.35);
  --rl-text-1: #0f172a;
  --rl-text-2: #475569;
  --rl-text-3: #64748b;
  --rl-accent: #0284c7;
  --rl-accent-2: #2563eb;
  --rl-accent-solid: #0284c7;
  --rl-accent-hover: #0369a1;
  --rl-nav-bg: rgba(248, 250, 252, 0.88);
  --rl-shadow: 0 24px 55px rgba(15, 23, 42, 0.11);
  --rl-card-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --rl-glow: radial-gradient(ellipse 75% 50% at 50% -10%, rgba(14, 165, 233, 0.16), rgba(37, 99, 235, 0.06) 55%, transparent 82%);
  --rl-grid-line: rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--rl-font-body);
  background-color: var(--rl-bg);
  color: var(--rl-text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Subtle tech grid backdrop */
.hero-backdrop {
  position: relative;
  background-image:
    var(--rl-glow),
    linear-gradient(to right, var(--rl-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rl-grid-line) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--rl-nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rl-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 33px;
  display: block;
}

.brand-wordmark {
  font-family: var(--rl-font-display);
  font-size: 1.38rem;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.brand-remote {
  font-weight: 500;
  color: var(--rl-text-1);
}

.brand-latch {
  font-weight: 700;
  color: var(--rl-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--rl-text-2);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--rl-text-1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  color: var(--rl-text-2);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.icon-btn:hover {
  color: var(--rl-text-1);
  border-color: var(--rl-border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: var(--rl-card);
  border-color: var(--rl-border);
  color: var(--rl-text-1);
}

.btn-ghost:hover {
  border-color: var(--rl-border-strong);
  background: var(--rl-card-2);
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, #1d4ed8 100%);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.36);
}

.btn-lg {
  padding: 13px 22px;
  font-size: 0.98rem;
  border-radius: 12px;
}

.mobile-menu-btn {
  display: none;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--rl-border);
  background: var(--rl-bg-elevated);
  padding: 16px 24px 22px;
}

.mobile-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer a {
  padding: 8px 0;
  color: var(--rl-text-2);
  font-weight: 500;
}

.mobile-drawer-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding: 64px 0 88px;
}

.hero-top {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--rl-card);
  border: 1px solid var(--rl-border-strong);
  color: var(--rl-accent);
  font-family: var(--rl-font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rl-success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-family: var(--rl-font-display);
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.gradient-text {
  background: linear-gradient(120deg, #38bdf8 0%, #60a5fa 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.light .gradient-text {
  background: linear-gradient(120deg, #0284c7 0%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--rl-text-2);
  max-width: 650px;
  margin: 0 auto 28px;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-reassure {
  font-size: 0.84rem;
  color: var(--rl-text-2);
  margin: -6px 0 18px;
}

.platform-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--rl-text-3);
  font-size: 0.84rem;
  font-weight: 500;
}

.platform-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------------- Interactive RemoteLatch Viewer Preview ---------------- */
.viewer-shell {
  background: #0b1324;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  box-shadow: var(--rl-shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  color: #f8fafc;
}

.viewer-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #080e1c;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  gap: 12px;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #10b981; }

.viewer-title {
  font-family: var(--rl-font-mono);
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-enc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--rl-font-mono);
  font-size: 0.72rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 3px 9px;
  border-radius: 999px;
}

.viewer-body {
  display: grid;
  grid-template-columns: 255px 1fr;
  min-height: 415px;
}

.viewer-sidebar {
  background: #091020;
  border-right: 1px solid rgba(148, 163, 184, 0.13);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
  padding: 2px 8px 6px;
}

.device-item {
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.device-item:hover {
  background: rgba(30, 41, 59, 0.75);
}

.device-item.active {
  background: rgba(14, 165, 233, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
}

.device-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.device-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device-sub {
  font-size: 0.73rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: #10b981; }
.status-dot.sleep { background: #f59e0b; }

.wake-btn {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  flex-shrink: 0;
}

.wake-btn:hover {
  background: #0284c7;
  color: #ffffff;
}

.sidebar-footer-tip {
  margin-top: auto;
  padding: 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.45;
}

.viewer-stage {
  position: relative;
  background: radial-gradient(circle at 20% 20%, #172554 0%, #0f172a 55%, #091020 100%);
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Command Bar inside live preview session */
.cmd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(7, 12, 23, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.cmd-telemetry {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.telem-pill {
  font-family: var(--rl-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}

.telem-pill.fps {
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.telem-pill.codec {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.32);
}

.cmd-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 7px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  transition: all 0.15s ease;
}

.cmd-btn:hover {
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
}

.cmd-btn.active {
  background: rgba(14, 165, 233, 0.22);
  border-color: #38bdf8;
  color: #ffffff;
}

.cmd-btn.privacy-on {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fde68a;
}

/* Interactive Desktop Canvas */
.remote-desktop-canvas {
  position: relative;
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, #0f172a 0%, #172554 55%, #0c1a36 100%);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  min-height: 295px;
  overflow: hidden;
}

.remote-desktop-canvas.crisp-mode {
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45) inset;
}

.sim-app {
  background: rgba(11, 19, 36, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.sim-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
}

.sim-app-tag {
  font-family: var(--rl-font-mono);
  font-size: 0.68rem;
  color: #38bdf8;
}

.sim-app-content {
  padding: 13px;
  font-size: 0.78rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sim-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sim-stat-box {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 8px;
}

.sim-stat-label {
  font-size: 0.66rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.sim-stat-val {
  font-family: var(--rl-font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #f8fafc;
}

.sim-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.sim-bar-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.sim-code-lines {
  font-family: var(--rl-font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  color: #94a3b8;
}

.sim-code-lines .kw { color: #38bdf8; }
.sim-code-lines .fn { color: #a5b4fc; }
.sim-code-lines .str { color: #34d399; }

.privacy-curtain {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: rgba(7, 12, 23, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
}

.privacy-curtain.visible {
  display: flex;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  font-weight: 600;
  font-size: 0.84rem;
}

/* ---------------- Sections ---------------- */
.section {
  padding: 84px 0;
}

.section-alt {
  background: var(--rl-bg-elevated);
  border-top: 1px solid var(--rl-border);
  border-bottom: 1px solid var(--rl-border);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 44px;
}

.section-kicker {
  font-family: var(--rl-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rl-accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--rl-font-display);
  font-size: clamp(1.8rem, 3.3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.section-header p {
  color: var(--rl-text-2);
  font-size: 1.02rem;
  margin: 0;
}

/* Segmented Mode Toggle */
.segmented-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.segmented {
  display: inline-flex;
  padding: 5px;
  border-radius: 12px;
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  gap: 4px;
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--rl-text-2);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}

.seg-btn.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.26);
}

.seg-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: var(--rl-accent);
}

.seg-btn.active .seg-tag {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

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

.feature-card {
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  padding: 24px;
  box-shadow: var(--rl-card-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--rl-border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--rl-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--rl-font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--rl-text-2);
  margin: 0;
}

/* ---------------- 3-Step Onboarding ---------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  padding: 24px;
  position: relative;
}

.step-num {
  font-family: var(--rl-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rl-accent);
  margin-bottom: 10px;
}

.step-card h3 {
  font-family: var(--rl-font-display);
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--rl-text-2);
}

/* ---------------- Comparison Matrix ---------------- */
.table-wrap {
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-lg);
  overflow-x: auto;
  box-shadow: var(--rl-card-shadow);
}

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

.compare-table th,
.compare-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rl-border);
  font-size: 0.92rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table th {
  font-family: var(--rl-font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rl-text-1);
  background: var(--rl-card-2);
}

.compare-table th.rl-col,
.compare-table td.rl-col {
  background: rgba(14, 165, 233, 0.08);
  border-left: 1px solid var(--rl-border-strong);
  border-right: 1px solid var(--rl-border-strong);
  font-weight: 600;
  color: var(--rl-text-1);
}

.check-yes {
  color: var(--rl-success);
  font-weight: 600;
}

.check-warn {
  color: var(--rl-warning);
  font-weight: 500;
}

.check-muted {
  color: var(--rl-text-3);
}

/* ---------------- Pricing ---------------- */
.billing-toggle-row {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.save-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--rl-success);
}

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

.price-card {
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--rl-card-shadow);
  position: relative;
}

.price-card.featured {
  border-color: var(--rl-accent);
  box-shadow: 0 18px 45px rgba(14, 165, 233, 0.18);
}

.popular-pill {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 999px;
}

.price-tier {
  font-family: var(--rl-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--rl-text-2);
  margin: 0 0 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-num {
  font-family: var(--rl-font-display);
  font-size: 2.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-unit {
  font-size: 0.88rem;
  color: var(--rl-text-2);
}

.price-sub {
  font-size: 0.8rem;
  color: var(--rl-text-3);
  margin-bottom: 22px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--rl-text-2);
}

.price-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--rl-accent);
}

/* ---------------- Security Grid ---------------- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---------------- Final CTA ---------------- */
.cta-banner {
  background: linear-gradient(135deg, #0b1324 0%, #102042 55%, #0c1938 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 22px;
  padding: 52px 32px;
  text-align: center;
  color: #f8fafc;
  box-shadow: var(--rl-shadow);
}

.cta-banner h2 {
  font-family: var(--rl-font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin: 0 0 12px;
}

.cta-banner p {
  color: #cbd5e1;
  max-width: 580px;
  margin: 0 auto 26px;
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--rl-border);
  padding: 54px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-family: var(--rl-font-display);
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--rl-text-2);
}

.footer-col a:hover {
  color: var(--rl-text-1);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rl-border);
  font-size: 0.84rem;
  color: var(--rl-text-3);
}

/* ---------------- Modals ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--rl-card);
  border: 1px solid var(--rl-border-strong);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--rl-shadow);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  font-family: var(--rl-font-display);
  font-size: 1.25rem;
  margin: 0;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.plat-tab {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--rl-border);
  background: var(--rl-card-2);
  color: var(--rl-text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.plat-tab.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--rl-accent);
  color: var(--rl-accent);
}

.dl-box {
  background: var(--rl-card-2);
  border: 1px solid var(--rl-border);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 18px;
}

.dl-meta {
  font-family: var(--rl-font-mono);
  font-size: 0.75rem;
  color: var(--rl-text-3);
  margin-top: 6px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rl-text-2);
}

.input-field {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--rl-border);
  background: var(--rl-bg-elevated);
  color: var(--rl-text-1);
  font-size: 0.92rem;
}

.input-field:focus {
  outline: none;
  border-color: var(--rl-accent);
}

.form-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--rl-success);
  font-size: 0.86rem;
  display: none;
}

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

.form-feedback.error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rl-font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--rl-accent);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------------- Legal & Utility Pages ---------------- */
.legal-main {
  padding: 64px 0 88px;
  min-height: calc(100vh - 220px);
}

.legal-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius-lg);
  padding: 36px 38px;
  box-shadow: var(--rl-card-shadow);
}

.legal-card h1 {
  font-family: var(--rl-font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin: 0 0 8px;
}

.legal-meta {
  font-family: var(--rl-font-mono);
  font-size: 0.8rem;
  color: var(--rl-text-3);
  margin-bottom: 28px;
}

.legal-card h2 {
  font-family: var(--rl-font-display);
  font-size: 1.15rem;
  margin: 26px 0 8px;
  color: var(--rl-text-1);
}

.legal-card p,
.legal-card li {
  color: var(--rl-text-2);
  font-size: 0.95rem;
}

.legal-card ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.legal-card a {
  color: var(--rl-accent);
  text-decoration: underline;
}

/* ---------------- Above-the-Fold Trust Bar ---------------- */
.trust-bar {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.trust-pill {
  background: var(--rl-card);
  border: 1px solid var(--rl-border);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rl-text-1);
  box-shadow: var(--rl-card-shadow);
  text-align: center;
}

.trust-pill svg {
  color: var(--rl-accent);
  flex-shrink: 0;
}

/* ---------------- Persona Use-Case Grid ---------------- */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.usecase-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--rl-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rl-accent);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------------- Annual Savings Calculator ---------------- */
.savings-card {
  background: var(--rl-card);
  border: 1px solid var(--rl-border-strong);
  border-radius: var(--rl-radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--rl-card-shadow);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  align-items: center;
}

.savings-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.savings-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--rl-text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.savings-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-pill {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--rl-border);
  background: var(--rl-card-2);
  color: var(--rl-text-2);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.16s ease;
}

.calc-pill:hover {
  border-color: var(--rl-border-strong);
  color: var(--rl-text-1);
}

.calc-pill.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--rl-accent);
  color: var(--rl-accent);
}

.savings-slider {
  width: 100%;
  accent-color: #0ea5e9;
  cursor: pointer;
}

.savings-output {
  background: var(--rl-bg-elevated);
  border: 1px solid var(--rl-border);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.savings-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rl-border);
}

.savings-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--rl-text-2);
}

.savings-row strong {
  font-family: var(--rl-font-mono);
  color: var(--rl-text-1);
}

.savings-row.legacy strong {
  text-decoration: line-through;
  color: var(--rl-text-3);
}

.savings-highlight {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.savings-big {
  font-family: var(--rl-font-display);
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 700;
  color: var(--rl-success);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.savings-pct {
  font-family: var(--rl-font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--rl-success);
}

.savings-note {
  font-size: 0.75rem;
  color: var(--rl-text-3);
  margin: 0;
  line-height: 1.45;
}

/* ---------------- FAQ Accordion ---------------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  text-align: left;
  color: var(--rl-text-1);
  font-family: var(--rl-font-display);
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-trigger:hover {
  background: var(--rl-card-2);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--rl-accent);
  transition: transform 0.2s ease;
}

.faq-trigger[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-panel {
  padding: 0 22px 18px;
  color: var(--rl-text-2);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-panel[hidden] {
  display: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .bento-grid,
  .pricing-grid,
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .savings-card {
    grid-template-columns: 1fr;
  }
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .viewer-body {
    grid-template-columns: 1fr;
  }
  .viewer-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .bento-grid,
  .steps-grid,
  .pricing-grid,
  .usecase-grid,
  .trust-bar,
  .security-grid,
  .footer-grid,
  .remote-desktop-canvas {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 44px 0 64px;
  }
  .section {
    padding: 62px 0;
  }
}
