/* Backuply — Snapshot Vault design system with light/dark themes */

/* Structural tokens (theme-independent) */
:root {
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", var(--font);
  --container: 1160px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/*
 * Brand blue from logo cloud mark (~#3878fc).
 * Accents, buttons, borders, and glows stay in this blue family.
 */
:root {
  --brand: #3878fc;
  --brand-bright: #5b92ff;
  --brand-deep: #2563eb;
  --brand-deeper: #1d4ed8;
}

/* Dark palette — default when preference is dark or data-theme=dark */
:root,
html[data-theme="dark"],
html.theme-dark {
  color-scheme: dark;
  --bg-deep: #060b18;
  --bg: #0a1228;
  --bg-elevated: #101b36;
  --bg-card: rgba(16, 27, 54, 0.92);
  --bg-header: rgba(6, 11, 24, 0.92);
  --bg-soft: rgba(56, 120, 252, 0.08);
  --border: rgba(91, 146, 255, 0.16);
  --border-strong: rgba(56, 120, 252, 0.4);
  --text: #e8eef9;
  --text-heading: #f8fafc;
  --text-muted: #9aa8c7;
  --text-dim: #6b7a9a;
  --cyan: #5b92ff;
  --cyan-hover: #8eb4ff;
  --cyan-solid: #3878fc;
  --cyan-ink: #0b1a3d;
  --emerald: #3b82f6;
  --btn-primary-bg: #3878fc;
  --btn-primary-hover: #2563eb;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: transparent;
  --btn-secondary-border: rgba(56, 120, 252, 0.45);
  --btn-secondary-hover-bg: rgba(56, 120, 252, 0.14);
  --shadow-glow: 0 0 40px rgba(56, 120, 252, 0.18);
  --shadow-card: 0 8px 28px rgba(0, 0, 0, 0.38);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 120, 252, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(37, 99, 235, 0.12), transparent 50%);
  --snap-card-bg: linear-gradient(160deg, rgba(16, 32, 72, 0.98), rgba(10, 18, 40, 0.99));
  --check-bg: rgba(56, 120, 252, 0.16);
  --check-border: rgba(56, 120, 252, 0.4);
  --cta-bg: #12254f;
  --mega-divider: rgba(91, 146, 255, 0.12);
  --screenshot-frame: rgba(16, 27, 54, 0.98);
}

/* Light palette — higher specificity so it wins over :root dark defaults */
html[data-theme="light"],
html.theme-light {
  color-scheme: light;
  --bg-deep: #eef3fb;
  --bg: #f4f7fd;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.94);
  --bg-soft: rgba(56, 120, 252, 0.06);
  --border: rgba(37, 99, 235, 0.12);
  --border-strong: rgba(56, 120, 252, 0.38);
  --text: #1e293b;
  --text-heading: #0f1b33;
  --text-muted: #475569;
  --text-dim: #64748b;
  --cyan: #2f6aef;
  --cyan-hover: #1d4ed8;
  --cyan-solid: #3878fc;
  --cyan-ink: #ffffff;
  --emerald: #2563eb;
  --btn-primary-bg: #3878fc;
  --btn-primary-hover: #2563eb;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-border: rgba(56, 120, 252, 0.4);
  --btn-secondary-hover-bg: rgba(56, 120, 252, 0.08);
  --shadow-glow: 0 0 28px rgba(56, 120, 252, 0.14);
  --shadow-card: 0 8px 28px rgba(15, 40, 90, 0.08);
  --hero-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 120, 252, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%);
  --snap-card-bg: linear-gradient(160deg, #ffffff, #eef4ff);
  --check-bg: rgba(56, 120, 252, 0.12);
  --check-border: rgba(56, 120, 252, 0.35);
  --cta-bg: #e8f0ff;
  --mega-divider: rgba(37, 99, 235, 0.1);
  --screenshot-frame: #ffffff;
}

/* OS light preference only when no explicit theme has been set yet */
@media (prefers-color-scheme: light) {
  html:not([data-theme]):not(.theme-dark):not(.theme-light) {
    color-scheme: light;
    --bg-deep: #eef3fb;
    --bg: #f4f7fd;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.94);
    --bg-soft: rgba(56, 120, 252, 0.06);
    --border: rgba(37, 99, 235, 0.12);
    --border-strong: rgba(56, 120, 252, 0.38);
    --text: #1e293b;
    --text-heading: #0f1b33;
    --text-muted: #475569;
    --text-dim: #64748b;
    --cyan: #2f6aef;
    --cyan-hover: #1d4ed8;
    --cyan-solid: #3878fc;
    --cyan-ink: #ffffff;
    --emerald: #2563eb;
    --btn-primary-bg: #3878fc;
    --btn-primary-hover: #2563eb;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: #ffffff;
    --btn-secondary-border: rgba(56, 120, 252, 0.4);
    --btn-secondary-hover-bg: rgba(56, 120, 252, 0.08);
    --shadow-glow: 0 0 28px rgba(56, 120, 252, 0.14);
    --shadow-card: 0 8px 28px rgba(15, 40, 90, 0.08);
    --hero-glow: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56, 120, 252, 0.14), transparent 55%),
      radial-gradient(ellipse 45% 35% at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%);
    --snap-card-bg: linear-gradient(160deg, #ffffff, #eef4ff);
    --check-bg: rgba(56, 120, 252, 0.12);
    --check-border: rgba(56, 120, 252, 0.35);
    --cta-bg: #e8f0ff;
    --mega-divider: rgba(37, 99, 235, 0.1);
    --screenshot-frame: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: var(--hero-glow);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--cyan-hover); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-muted); }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; left: 1rem; top: 1rem; z-index: 9999;
  width: auto; height: auto; margin: 0; padding: 0.75rem 1rem;
  clip: auto; white-space: normal;
  background: var(--btn-primary-bg); color: var(--btn-primary-text); font-weight: 600; border-radius: 6px;
}

/* Buttons — solid colors only, no gradients */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; font-family: var(--font); font-size: 0.95rem; font-weight: 600;
  line-height: 1.2; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: 0 4px 14px rgba(56, 120, 252, 0.35);
}
.btn-primary:hover {
  background: var(--btn-primary-hover);
  color: var(--btn-primary-text);
  box-shadow: 0 6px 18px rgba(56, 120, 252, 0.4);
}
.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-heading);
  border-color: var(--btn-secondary-border);
}
.btn-secondary:hover {
  color: var(--text-heading);
  background: var(--btn-secondary-hover-bg);
  border-color: var(--cyan);
}
.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; padding-inline: 0.9rem; }
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.75rem; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px;
  background: rgba(8, 145, 178, 0.12); color: var(--cyan);
  border: 1px solid rgba(8, 145, 178, 0.25);
}
.badge-emerald {
  background: rgba(5, 150, 105, 0.12); color: var(--emerald);
  border-color: rgba(5, 150, 105, 0.25);
}

.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-card);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover { border-color: var(--border-strong); }
.card-interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow), var(--shadow-card); }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border); margin-bottom: 1rem; color: var(--cyan); font-size: 1.1rem;
}
.card-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; font-size: 0.92rem; }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 1.25rem; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section { padding: 5rem 0; position: relative; }
.section-sm { padding: 3rem 0; }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-header p { font-size: 1.1rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; flex-direction: column; justify-content: center;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg-header); backdrop-filter: blur(16px);
  border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(100% - 2rem, var(--container)); margin-inline: auto;
}
.logo {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
}
.logo:hover { color: var(--text-heading); }
/* Cloud mark only (headerlogo.png) — wordmark is separate .logo-text */
.logo-mark {
  display: block;
  width: auto;
  height: 32px;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
}
.logo-text {
  display: inline-block;
  line-height: 1;
}
.nav-desktop { display: flex; align-items: center; gap: 0.15rem; }
.nav-desktop > a,
.nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.85rem; color: var(--text-muted); font-weight: 500; font-size: 0.92rem;
  border-radius: 8px; border: none; background: none; cursor: pointer; font-family: inherit;
}
.nav-desktop > a:hover,
.nav-desktop > a.active,
.nav-link:hover,
.nav-item.open > .nav-link { color: var(--text-heading); background: var(--bg-soft); }
.nav-item { position: relative; }
.nav-link .chev { font-size: 0.65rem; opacity: 0.7; }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 280px; padding: 0.5rem;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 20;
}
.nav-item:hover .dropdown,
.nav-item.open .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block; padding: 0.7rem 0.85rem; border-radius: 8px; color: var(--text);
}
.dropdown a:hover { background: var(--btn-secondary-hover-bg); color: var(--text-heading); }
.dropdown a strong { display: block; font-size: 0.92rem; font-weight: 600; color: var(--text-heading); }
.dropdown a span { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 0.15rem; }

/* Features mega menu — two columns */
.dropdown-mega {
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: min(640px, calc(100vw - 2rem));
  width: max-content;
  padding: 0;
  overflow: hidden;
}
.nav-item:hover .dropdown-mega,
.nav-item.open .dropdown-mega,
.nav-item:focus-within .dropdown-mega {
  transform: translate(-50%, 0);
}
.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.mega-col {
  padding: 0.85rem 0.65rem 0.85rem 0.85rem;
}
.mega-col + .mega-col {
  border-left: 1px solid var(--mega-divider);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.mega-heading {
  margin: 0 0.85rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.mega-col a {
  padding: 0.55rem 0.75rem;
}
.mega-footer {
  border-top: 1px solid var(--mega-divider);
  padding: 0.65rem 1rem;
  background: var(--bg-soft);
}
.mega-footer a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: var(--cyan);
  font-size: 0.92rem;
}

.nav-actions { display: flex; align-items: center; gap: 0.45rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-soft);
  color: var(--text-heading); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; line-height: 1;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--cyan); }
/* Toggle icons: show the target mode (moon = go dark, sun = go light) */
.theme-icon-sun,
.theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun,
html.theme-dark .theme-icon-sun { display: inline; }
html[data-theme="light"] .theme-icon-moon,
html.theme-light .theme-icon-moon { display: inline; }
/* Fallback before boot script: assume dark unless OS prefers light */
html:not([data-theme]):not(.theme-light):not(.theme-dark) .theme-icon-sun { display: inline; }
@media (prefers-color-scheme: light) {
  html:not([data-theme]):not(.theme-light):not(.theme-dark) .theme-icon-sun { display: none; }
  html:not([data-theme]):not(.theme-light):not(.theme-dark) .theme-icon-moon { display: inline; }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-heading);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 18px;
  height: 14px;
  pointer-events: none;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}
/* Open → X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none; position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--bg-elevated); backdrop-filter: blur(12px);
  padding: 1.25rem; overflow-y: auto; z-index: 99;
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 0.85rem 0.5rem; color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile .mob-label {
  display: block; color: var(--text-dim); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 1.25rem 0.5rem 0.35rem; border: none;
}
.nav-mobile .btn { margin-top: 1.25rem; width: 100%; border-bottom: none; text-align: center; }

/* Hero */
.hero { padding: calc(var(--header-h) + 3.5rem) 0 4rem; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center;
}
.hero-copy h1 { margin-bottom: 1rem; }
.hero-copy .lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.75rem; }
.hero-stat strong {
  display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text-heading); font-weight: 700;
}
.hero-stat span { font-size: 0.85rem; color: var(--text-dim); }

.vault-visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.vault-ring {
  position: absolute; border-radius: 50%; border: 1px solid var(--border);
  animation: pulse-ring 6s ease-in-out infinite;
}
.vault-ring:nth-child(1) { width: 280px; height: 280px; }
.vault-ring:nth-child(2) { width: 360px; height: 360px; animation-delay: 0.8s; }
.vault-ring:nth-child(3) { width: 440px; height: 440px; animation-delay: 1.6s; opacity: 0.6; }
@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.65; }
  50% { transform: scale(1.03); opacity: 1; }
}
.snapshot-stack { position: relative; width: min(100%, 340px); height: 280px; }
.snapshot-card {
  position: absolute; inset: auto 0 0 0; height: 200px; border-radius: var(--radius);
  background: var(--snap-card-bg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-card); padding: 1.25rem;
  transition: transform 0.4s var(--ease);
}
.snapshot-card:nth-child(1) { transform: translateY(-48px) scale(0.9); opacity: 0.45; z-index: 1; }
.snapshot-card:nth-child(2) { transform: translateY(-24px) scale(0.95); opacity: 0.7; z-index: 2; }
.snapshot-card:nth-child(3) { z-index: 3; box-shadow: var(--shadow-glow), var(--shadow-card); }
.snap-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-dim); }
.snap-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.snap-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.snap-bar { height: 10px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; border: 1px solid var(--border); }
.snap-bar > i { display: block; height: 100%; border-radius: 4px; background: var(--cyan-solid); }
.snap-meta { display: flex; justify-content: space-between; margin-top: 1.1rem; font-size: 0.75rem; color: var(--text-dim); }

/* Screenshots */
.shot-frame {
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid var(--border);
  background: var(--screenshot-frame);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.shot-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 720px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.product-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.product-card { position: relative; overflow: hidden; padding: 2rem; }
.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--btn-primary-bg);
}
.product-card .btn { margin-top: 1.25rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.45rem 0;
  color: var(--text-muted); font-size: 0.95rem;
}
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--check-bg)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233878fc'%3E%3Cpath d='M6.5 11.5L3 8l1-1 2.5 2.5L12 4l1 1-6.5 6.5z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  border: 1px solid var(--check-border);
}

.price { font-family: var(--font-display); font-size: 2.75rem; font-weight: 700; color: var(--text-heading); line-height: 1; }
.price small { font-size: 1rem; font-weight: 500; color: var(--text-dim); }
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card.popular { border-color: var(--cyan); box-shadow: var(--shadow-glow); }
.price-card .btn { margin-top: auto; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.compare th { background: var(--bg-elevated); color: var(--text-heading); font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
table.compare td { color: var(--text-muted); background: var(--bg-card); }
.yes { color: var(--emerald); font-weight: 600; }
.no { color: var(--text-dim); }

.faq-wrap { max-width: 800px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-card); margin-bottom: 0.75rem; overflow: hidden;
}
.faq-item summary {
  padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; color: var(--text-heading); list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--cyan); font-size: 1.25rem; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 1.25rem 1.15rem; color: var(--text-muted); }

.cta-band {
  margin: 2rem 0 0; padding: 3rem; border-radius: calc(var(--radius) + 4px);
  background: var(--cta-bg);
  border: 1px solid var(--border-strong); text-align: center; position: relative; overflow: hidden;
}
.cta-band h2, .cta-band p, .cta-band .hero-actions { position: relative; }
.cta-band p { max-width: 36em; margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

.logo-strip { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; align-items: center; }
.logo-pill {
  padding: 0.65rem 1.1rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
}

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); }
.page-hero { padding: calc(var(--header-h) + 2.5rem) 0 2.5rem; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { font-size: 1.1rem; max-width: 42em; }

.quote-card blockquote {
  margin: 0 0 1rem; font-size: 1rem; color: var(--text-muted); font-style: italic; line-height: 1.7;
}
.quote-card cite { font-style: normal; font-weight: 600; color: var(--text-heading); font-size: 0.9rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
  padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); color: var(--text-muted); font-size: 0.85rem;
}
.tag-cloud a:hover { border-color: var(--cyan); color: var(--cyan); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-deep);
  padding: 4rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 2rem 1.75rem;
  margin-bottom: 3rem;
}
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-brand p { font-size: 0.95rem; max-width: 28em; margin-top: 0.75rem; }
.footer-col h4 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 1rem; font-weight: 600;
}
.footer-col a { display: block; color: var(--text-muted); padding: 0.3rem 0; font-size: 0.92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-dim);
}
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-bottom a:hover { color: var(--text-heading); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  /* Keep header lean: logo + theme + hamburger only (CTAs live in mobile menu) */
  .nav-actions .nav-cta-desktop { display: none; }
  .nav-actions { gap: 0.35rem; }
  .nav-toggle { display: inline-flex; }
  .header-inner { gap: 0.75rem; width: min(100% - 1.25rem, var(--container)); }
  .logo-text { font-size: 1.1rem; }
  .hero-grid, .product-split, .split, .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .vault-ring:nth-child(3) { display: none; }
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .dropdown-mega { left: 0; transform: translateY(8px); min-width: 280px; }
  .nav-item:hover .dropdown-mega,
  .nav-item.open .dropdown-mega { transform: translateY(0); }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-col + .mega-col { border-left: none; border-top: 1px solid var(--mega-divider); }
}

/* Capability comparison tables */
.compare-block { margin-bottom: 2rem; }
.compare-block-title {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--text-heading);
}
table.compare.compare-capable th[scope="row"] {
  color: var(--text-heading);
  font-weight: 600;
  background: var(--bg-soft);
  width: 22%;
  vertical-align: top;
}
table.compare.compare-capable td {
  vertical-align: top;
}
table.compare .th-note {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
}
.compare-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 56rem;
  line-height: 1.55;
}
@media (max-width: 720px) {
  table.compare.compare-capable thead { display: none; }
  table.compare.compare-capable tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
  }
  table.compare.compare-capable th[scope="row"],
  table.compare.compare-capable td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.35rem 1rem;
  }
  table.compare.compare-capable th[scope="row"] {
    background: transparent;
    padding-bottom: 0.5rem;
    font-size: 1rem;
  }
  table.compare.compare-capable td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-heading);
  }
}

/* Pricing / product tabs */
.pricing-tabs { margin-top: 0.5rem; }
.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}
.tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.tab-btn:hover { color: var(--text-heading); background: var(--bg-card); }
.tab-btn.is-active {
  color: var(--btn-primary-text);
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  box-shadow: 0 4px 14px rgba(56, 120, 252, 0.3);
}
.tab-panel[hidden] { display: none !important; }
.tab-panel { animation: tab-in 0.25s var(--ease); }
@keyframes tab-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media print {
  .site-header, .site-footer, .nav-toggle, .nav-mobile, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* —— Newsletter (Webuzo-style band, popup, status modal) —— */
.newsletter-band {
  background: var(--bg-elevated);
  color: var(--text);
  padding: 2.75rem 0;
  border-block: 1px solid var(--border);
}
.newsletter-band h2,
.newsletter-band h3 {
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.newsletter-band p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 36rem;
}
.newsletter-band .newsletter-inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 800px) {
  .newsletter-band .newsletter-inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}
.bk-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  width: 100%;
}
.bk-newsletter-form input[type="email"] {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-heading);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.bk-newsletter-form input[type="email"]::placeholder {
  color: var(--text-dim);
}
.bk-newsletter-form button[type="submit"],
.bk-newsletter-form .bk-newsletter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--btn-primary-bg);
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  cursor: pointer;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  transition: background-color 0.2s, border-color 0.2s;
}
.bk-newsletter-form button[type="submit"]:hover,
.bk-newsletter-form .bk-newsletter-submit:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-text);
}
.bk-newsletter-form button[type="submit"]:disabled,
.bk-newsletter-form .bk-newsletter-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
.newsletter-inline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
}
.newsletter-inline h3 { margin-bottom: 0.35rem; }
.newsletter-inline p { color: var(--text-muted); margin-bottom: 1rem; }

/* Popup — light card for contrast in both themes */
.bk-newsletter-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 280;
  background: rgba(6, 13, 26, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.bk-newsletter-popup.open { display: flex; }
.bk-newsletter-popup-dialog {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem 2rem 1.5rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  position: relative;
  text-align: center;
  animation: bk-popup-in 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  color: #1e293b;
}
@keyframes bk-popup-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.bk-newsletter-popup-brand {
  margin: 0 auto 1.15rem;
  width: 72px;
  height: 72px;
}
.bk-newsletter-popup-brand img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.bk-newsletter-popup-dialog h3 {
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  padding-right: 1.25rem;
  line-height: 1.3;
}
.bk-newsletter-popup-lead {
  color: #475569;
  margin: 0 auto 1.35rem;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 22rem;
}
.bk-newsletter-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}
.bk-newsletter-popup-form input[type="email"] {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #212121;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-newsletter-popup-form input[type="email"]:focus {
  outline: none;
  border-color: #3878fc;
  box-shadow: 0 0 0 3px rgba(56, 120, 252, 0.2);
}
.bk-newsletter-popup-form .bk-newsletter-submit {
  width: 100%;
  border-radius: 8px;
}
.bk-newsletter-popup-note {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.bk-newsletter-popup-x {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0;
}
.bk-newsletter-popup-x:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #bbb;
}
.bk-newsletter-popup-dismiss {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.45rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bk-newsletter-popup-dismiss:hover { color: #334155; }
@media (max-width: 600px) {
  .bk-newsletter-popup-dialog {
    max-width: 95%;
    padding: 1.75rem 1.25rem 1.25rem;
  }
  .bk-newsletter-popup-dialog h3 { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-newsletter-popup-dialog { animation: none; }
}

.bk-newsletter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(6, 13, 26, 0.72);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.bk-newsletter-modal.open { display: flex; }
.bk-newsletter-modal-dialog {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 2rem 1.75rem 1.5rem;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
  position: relative;
  text-align: center;
  color: #1e293b;
}
.bk-newsletter-modal-dialog h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  text-align: center;
  padding-right: 1.5rem;
  color: #0f172a;
}
.bk-newsletter-modal-msg {
  color: #475569;
  text-align: center;
  margin: 0 0 1.35rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.bk-newsletter-modal-x {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0;
}
.bk-newsletter-modal-x:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.bk-newsletter-modal-actions {
  display: flex;
  justify-content: center;
}
.bk-newsletter-modal-actions .btn {
  min-width: 6.5rem;
}
