/* ========================================================================
   Vupiy — Marketing Site Stylesheet
   Minimal monochrome palette (zinc/black/white), enterprise-grade hierarchy.
   Aligned with new-frontend's neutral design system.
   ======================================================================== */

/* ============ Tokens ============ */
:root {
  /* Zinc scale (mirrors Tailwind/new-frontend) */
  --zinc-50:  #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;

  /* Status (used very sparingly) */
  --success: #16a34a;
  --warning: #ca8a04;
  --danger:  #dc2626;

  /* Light mode (default) */
  --bg:           #ffffff;
  --bg-subtle:    var(--zinc-50);
  --bg-elevated:  #ffffff;
  --bg-inverse:   var(--zinc-950);
  --border:       var(--zinc-200);
  --border-strong: var(--zinc-300);
  --fg:           var(--zinc-950);
  --fg-muted:     var(--zinc-600);
  --fg-subtle:    var(--zinc-500);
  --fg-faint:     var(--zinc-400);
  --fg-inverse:   #ffffff;

  /* Effects */
  --shadow-xs: 0 1px 0 0 rgb(0 0 0 / 0.04);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.04);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.10), 0 4px 8px -4px rgb(0 0 0 / 0.05);

  /* Radius */
  --radius-sm: 4px;
  --radius:    6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Spacing */
  --s1: 4px;  --s2: 8px;  --s3: 12px;  --s4: 16px;  --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s14: 56px;
  --s16: 64px; --s20: 80px; --s24: 96px; --s32: 128px;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Container */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1320px;

  /* Motion */
  --t-fast: 100ms cubic-bezier(0.4, 0, 0.2, 1);
  --t:      180ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg:           var(--zinc-950);
    --bg-subtle:    var(--zinc-900);
    --bg-elevated:  var(--zinc-900);
    --bg-inverse:   var(--zinc-50);
    --border:       var(--zinc-800);
    --border-strong: var(--zinc-700);
    --fg:           var(--zinc-50);
    --fg-muted:     var(--zinc-400);
    --fg-subtle:    var(--zinc-500);
    --fg-faint:     var(--zinc-600);
    --fg-inverse:   var(--zinc-950);

    --shadow-xs: 0 1px 0 0 rgb(0 0 0 / 0.4);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.6);
    --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.7), 0 4px 8px -4px rgb(0 0 0 / 0.5);
  }
}
html.dark {
  --bg:           var(--zinc-950);
  --bg-subtle:    var(--zinc-900);
  --bg-elevated:  var(--zinc-900);
  --bg-inverse:   var(--zinc-50);
  --border:       var(--zinc-800);
  --border-strong: var(--zinc-700);
  --fg:           var(--zinc-50);
  --fg-muted:     var(--zinc-400);
  --fg-subtle:    var(--zinc-500);
  --fg-faint:     var(--zinc-600);
  --fg-inverse:   var(--zinc-950);
  --shadow-xs: 0 1px 0 0 rgb(0 0 0 / 0.4);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.6);
  --shadow:    0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.6), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px -8px rgb(0 0 0 / 0.7), 0 4px 8px -4px rgb(0 0 0 / 0.5);
}
html.light { color-scheme: light; }
html.dark  { color-scheme: dark; }

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--fg); color: var(--fg-inverse); }

/* ============ A11y ============ */
.skip-link {
  position: absolute; top: -100px; left: var(--s4); z-index: 9999;
  padding: var(--s3) var(--s5);
  background: var(--fg); color: var(--fg-inverse);
  font-weight: 600; border-radius: var(--radius);
  transition: top var(--t);
}
.skip-link:focus { top: var(--s4); }
.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;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s5);
}
.container-narrow {
  width: 100%; max-width: var(--container-narrow);
  margin-inline: auto; padding-inline: var(--s5);
}
.container-wide {
  width: 100%; max-width: var(--container-wide);
  margin-inline: auto; padding-inline: var(--s5);
}
@media (min-width: 768px) {
  .container, .container-narrow, .container-wide { padding-inline: var(--s8); }
}

section { padding-block: var(--s20); }
@media (min-width: 768px) { section { padding-block: var(--s24); } }
.section-tight { padding-block: var(--s16); }

/* ============ Typography ============ */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}
h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
}
h4 { font-size: 1.05rem; }
p { color: var(--fg-muted); }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 64ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s4);
}
.eyebrow::before {
  content: '';
  width: 16px; height: 1px;
  background: var(--fg-subtle);
  display: inline-block;
}

.section-header {
  margin-bottom: var(--s12);
  max-width: 64ch;
}
.section-header.center {
  margin-inline: auto;
  text-align: center;
}
.section-header.center .lead { margin-inline: auto; }
.section-header h2 { margin-bottom: var(--s4); }

/* Mono accent */
.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* ============ Header / Top nav ============ */
.site-header {
  position: sticky; top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--t);
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) .site-header { background: rgb(9 9 11 / 0.72); }
}
html.dark .site-header { background: rgb(9 9 11 / 0.72); }
html.light .site-header { background: rgb(255 255 255 / 0.72); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--s4);
  gap: var(--s6);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.nav-logo svg { width: 28px; height: 28px; }

/* Theme-aware PNG logo marks (replaces inline SVG when used) */
.logo-mark {
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
}
/* Default state = light mode → show light variant, hide dark variant */
.logo-mark-dark { display: none; }
.logo-mark-light { display: block; }
/* Dark mode → flip */
html.dark .logo-mark-light { display: none; }
html.dark .logo-mark-dark  { display: block; }
/* System dark fallback (when no html.dark/.light class) */
@media (prefers-color-scheme: dark) {
  html:not(.light) .logo-mark-light { display: none; }
  html:not(.light) .logo-mark-dark  { display: block; }
}

.nav-list {
  display: none; align-items: center; gap: var(--s1);
  flex: 1; justify-content: center;
}
@media (min-width: 1024px) { .nav-list { display: flex; } }

.nav-link {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s3);
  font-size: 0.92rem; font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
}
.nav-link:hover { color: var(--fg); background: var(--bg-subtle); }
.nav-link[aria-current="page"] { color: var(--fg); background: var(--bg-subtle); }

/* Mega-menu (hover dropdown) */
.nav-item { position: relative; }
.nav-item-trigger {
  display: inline-flex; align-items: center; gap: var(--s1);
  padding: var(--s2) var(--s3);
  font-size: 0.92rem; font-weight: 500;
  color: var(--fg-muted);
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
  cursor: pointer;
}
.nav-item-trigger:hover { color: var(--fg); background: var(--bg-subtle); }
.nav-item-trigger svg { width: 12px; height: 12px; transition: transform var(--t); color: var(--fg-faint); }
.nav-item:hover .nav-item-trigger svg { transform: rotate(180deg); color: var(--fg); }

.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 580px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--s4);
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 50;
}
.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s2);
}
.mega-link {
  display: flex;
  gap: var(--s3);
  padding: var(--s3);
  border-radius: var(--radius);
  transition: background var(--t);
}
.mega-link:hover { background: var(--bg-subtle); }
.mega-link-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
}
.mega-link-icon svg { width: 16px; height: 16px; }
.mega-link-text { display: flex; flex-direction: column; min-width: 0; }
.mega-link-title {
  font-size: 0.9rem; font-weight: 600;
  color: var(--fg); margin-bottom: 2px;
}
.mega-link-desc {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  line-height: 1.45;
}

.nav-actions {
  display: flex; align-items: center; gap: var(--s2);
}

.theme-toggle, .menu-toggle {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--fg-muted);
  transition: color var(--t), background var(--t);
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--fg); background: var(--bg-subtle); }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun  { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.nav-drawer {
  position: fixed; inset: 60px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform var(--t-slow);
  z-index: 99;
  overflow-y: auto;
}
.nav-drawer.open { transform: translateY(0); }
.nav-drawer-list {
  padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2);
}
.nav-drawer-list a {
  display: block; padding: var(--s4);
  font-size: 1rem; font-weight: 500;
  color: var(--fg);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
}
.nav-drawer-list a:last-of-type { border-bottom: 0; }
.nav-drawer-list a:hover { background: var(--bg-subtle); }
.nav-drawer-actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.nav-drawer-actions .btn { width: 100%; justify-content: center; }
@media (min-width: 1024px) { .nav-drawer { display: none; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  font-size: 0.92rem; font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--t), border-color var(--t), transform var(--t-fast), box-shadow var(--t);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg);
  color: var(--fg-inverse);
  border-color: var(--fg);
}
.btn-primary:hover {
  background: var(--zinc-700);
  border-color: var(--zinc-700);
}
html.dark .btn-primary:hover { background: var(--zinc-300); border-color: var(--zinc-300); }

.btn-ghost {
  color: var(--fg);
  background: transparent;
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--fg); }

.btn-subtle {
  color: var(--fg);
  background: var(--bg-subtle);
  border-color: var(--border);
}
.btn-subtle:hover { background: var(--bg); border-color: var(--border-strong); }

.btn-lg { padding: var(--s4) var(--s6); font-size: 1rem; }
.btn-sm { padding: var(--s2) var(--s3); font-size: 0.85rem; }

.btn-icon-after svg { transition: transform var(--t); }
.btn:hover .btn-icon-after svg { transform: translateX(2px); }

/* Link-button */
.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: 0.9rem; font-weight: 500;
  color: var(--fg);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color var(--t);
}
.link-arrow:hover { border-color: var(--fg); }
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-block: var(--s24) var(--s20);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
/* Subtle ambient glow — barely there in light, slightly visible in dark */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(99 102 241 / 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 70%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(16 185 129 / 0.06) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  :root:not(.light) .hero::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(99 102 241 / 0.18) 0%, transparent 70%); }
  :root:not(.light) .hero::after  { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(16 185 129 / 0.12) 0%, transparent 70%); }
}
html.dark .hero::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(99 102 241 / 0.18) 0%, transparent 70%); }
html.dark .hero::after  { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(16 185 129 / 0.12) 0%, transparent 70%); }

.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s12);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--s16); }
}
.hero h1 { margin-bottom: var(--s5); }
.hero .lead { margin-bottom: var(--s8); }
.hero-actions {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  margin-bottom: var(--s8);
}
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--s5);
  align-items: center;
  font-size: 0.85rem;
  color: var(--fg-subtle);
}
.hero-trust-item {
  display: inline-flex; align-items: center; gap: var(--s2);
}
.hero-trust-item svg {
  width: 14px; height: 14px;
  color: var(--success);
}

/* ===== Hero visual — floating animated mock cards ===== */
.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
  min-height: 420px;
}

.mock-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t), box-shadow var(--t);
}
.mock-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.6;
}
.mock-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 24px 48px -12px rgb(0 0 0 / 0.18), 0 8px 16px -8px rgb(0 0 0 / 0.12);
}

/* Card 1 — Revenue (top-left, emerald accent) */
.mock-card-1 {
  top: 4%;
  left: 0%;
  width: 62%;
  animation: float-1 8s ease-in-out infinite;
  z-index: 3;
}
.mock-card-1::before {
  background: linear-gradient(135deg, rgb(16 185 129 / 0.4), transparent 60%);
}

/* Card 2 — Invoice (mid-right, indigo accent) */
.mock-card-2 {
  top: 32%;
  right: 0%;
  width: 60%;
  animation: float-2 8s ease-in-out infinite;
  z-index: 2;
}
.mock-card-2::before {
  background: linear-gradient(135deg, rgb(99 102 241 / 0.4), transparent 60%);
}

/* Card 3 — Companies (bottom-left, amber accent) */
.mock-card-3 {
  bottom: 4%;
  left: 8%;
  width: 64%;
  animation: float-3 8s ease-in-out infinite;
  z-index: 1;
}
.mock-card-3::before {
  background: linear-gradient(135deg, rgb(245 158 11 / 0.4), transparent 60%);
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-10px) translateX(2px); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-8px) translateX(-3px); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(-12px) translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
  .mock-card-1, .mock-card-2, .mock-card-3 { animation: none; }
}

@media (max-width: 640px) {
  .hero-visual { min-height: 360px; }
  .mock-card-1, .mock-card-2, .mock-card-3 { width: 75%; }
  .mock-card-1 { left: 4%; }
  .mock-card-2 { right: 4%; }
  .mock-card-3 { left: 12%; }
}

.mock-card-label {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s3);
}
.mock-card-label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
}
.mock-card-1 .mock-card-label::before { background: var(--success); box-shadow: 0 0 0 3px rgb(16 185 129 / 0.15); }
.mock-card-2 .mock-card-label::before { background: #6366f1; box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15); }
.mock-card-3 .mock-card-label::before { background: var(--warning); box-shadow: 0 0 0 3px rgb(245 158 11 / 0.15); }

.mock-card-value {
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-bottom: var(--s2);
}
.mock-card-value-sm {
  font-size: 1rem; font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--s2);
}
.mock-card-meta {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.mock-card-meta.success { color: var(--success); font-weight: 500; }
.mock-card-meta.indigo  { color: #6366f1;        font-weight: 500; }
.mock-card-meta.amber   { color: var(--warning); font-weight: 500; }
.mock-card-meta svg { width: 14px; height: 14px; }

.mock-card-bar {
  margin-top: var(--s3);
  height: 6px; border-radius: 999px;
  background: var(--bg-subtle);
  position: relative; overflow: hidden;
}
.mock-card-bar::after {
  content: ''; position: absolute; inset: 0;
  width: 72%;
  background: linear-gradient(90deg, var(--success), #10b981);
  border-radius: 999px;
}
.mock-card-2 .mock-card-bar::after {
  width: 88%;
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.mock-companies-row {
  display: flex; align-items: center; gap: var(--s2);
  margin-top: var(--s3);
}
.mock-company-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
}
.mock-company-dot {
  width: 8px; height: 8px; border-radius: 2px;
}

/* ============ Page header (interior pages) ============ */
.page-header {
  padding-block: var(--s20) var(--s16);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.page-header h1 { margin-bottom: var(--s4); max-width: 28ch; }
.page-header .lead { max-width: 60ch; }
.page-breadcrumb {
  display: flex; align-items: center; gap: var(--s2);
  margin-bottom: var(--s5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-subtle);
}
.page-breadcrumb a { color: var(--fg-subtle); transition: color var(--t); }
.page-breadcrumb a:hover { color: var(--fg); }
.page-breadcrumb-sep { color: var(--fg-faint); }

/* ============ Cards / list grids ============ */
.card-grid {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px)  { .card-grid.card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.card-grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .card-grid.card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid.card-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--s6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card-link:hover { transform: translateY(-2px); }

.card-icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  margin-bottom: var(--s4);
}
.card-icon svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: var(--s2); font-size: 1.05rem; }
.card p { font-size: 0.92rem; line-height: 1.55; }
.card-footer {
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

/* ============ Compact list (resource lists) ============ */
.list-divided {
  border-top: 1px solid var(--border);
}
.list-divided > li,
.list-divided > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--s4);
}
.list-divided a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.list-divided-text { display: flex; flex-direction: column; gap: var(--s2); }
.list-divided h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.list-divided p  { font-size: 0.9rem; color: var(--fg-muted); margin: 0; }
.list-divided-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--fg-subtle);
  flex-shrink: 0;
}

/* ============ Spotlight (alternating) ============ */
.spotlight {
  border-block: 1px solid var(--border);
}
.spotlight + .spotlight { border-top: 0; }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s12);
  align-items: center;
}
@media (min-width: 1024px) {
  .spotlight-grid { grid-template-columns: 1fr 1fr; gap: var(--s16); }
  .spotlight-grid.reverse > :first-child { order: 2; }
}
.spotlight ul.spotlight-list {
  margin-top: var(--s5);
  display: flex; flex-direction: column;
  gap: var(--s3);
}
.spotlight-list li {
  display: flex; align-items: flex-start; gap: var(--s3);
  font-size: 0.95rem; color: var(--fg-muted);
}
.spotlight-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
  color: var(--fg);
}
.spotlight-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.spotlight-visual-body { padding: var(--s5); }

/* Tile grid for spotlight visuals */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.tile {
  padding: var(--s3) var(--s4);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tile-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s1);
}
.tile-value { font-size: 0.95rem; font-weight: 600; color: var(--fg); }
.tile-meta {
  margin-top: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-subtle);
  display: inline-flex; align-items: center; gap: 4px;
}

/* ============ Comparison table ============ */
.comparison-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}
.comparison-table {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
}
.comparison-table th, .comparison-table td {
  padding: var(--s4) var(--s5);
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table thead th {
  font-weight: 600;
  color: var(--fg);
  background: var(--bg-subtle);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.comparison-table td:first-child, .comparison-table th:first-child {
  font-weight: 500; color: var(--fg);
}
.comparison-table .vupiy-col {
  background: var(--bg-subtle);
  border-inline: 1px solid var(--border-strong);
}
.comparison-table thead .vupiy-col {
  background: var(--fg);
  color: var(--fg-inverse);
}
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.cell-yes  { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fg); }
.cell-no   { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-faint); }
.cell-partial { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-subtle); }

/* ============ Stats strip ============ */
/* Always-dark "inverse" band — keeps the stark contrast in both light & dark modes. */
.stats {
  background: var(--zinc-950);
  color: var(--zinc-50);
  border-block: 1px solid var(--zinc-800);
}
.stats-grid {
  display: grid; gap: var(--s8);
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-left: 1px solid rgb(255 255 255 / 0.12);
  padding-left: var(--s5);
}
.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--s2);
  color: var(--zinc-50);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgb(255 255 255 / 0.65);
  letter-spacing: 0.02em;
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid; gap: var(--s5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

/* 4-plan variant — higher specificity to beat .pricing-grid's 768px=3-col rule */
.pricing-grid.pricing-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(4, 1fr); } }
/* Force 4-col on wider screens — featured card slightly larger */
@media (min-width: 1280px) {
  .pricing-grid.pricing-grid-4 .plan { padding: var(--s5); }
  .pricing-grid.pricing-grid-4 .plan-features li { font-size: 0.82rem; }
  .pricing-grid.pricing-grid-4 .plan-name { font-size: 0.72rem; }
  .pricing-grid.pricing-grid-4 .plan-price { font-size: clamp(1.6rem, 2.5vw, 2rem); }
}

.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--s6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.plan.featured {
  border-color: var(--fg);
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute; top: -10px; left: var(--s5);
  padding: 3px 10px;
  background: var(--fg); color: var(--fg-inverse);
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s4);
}
.plan-price {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg); margin-bottom: var(--s1);
}
.plan-price small {
  font-size: 0.95rem; font-weight: 500;
  color: var(--fg-muted);
}
.plan-tag {
  font-size: 0.88rem; color: var(--fg-muted);
  margin-bottom: var(--s5);
}
.plan-features {
  display: flex; flex-direction: column; gap: var(--s3);
  flex: 1; margin-bottom: var(--s6);
  border-top: 1px solid var(--border); padding-top: var(--s5);
}
.plan-features li {
  display: flex; align-items: flex-start; gap: var(--s3);
  font-size: 0.88rem; color: var(--fg);
}
.plan-features li svg {
  flex-shrink: 0; margin-top: 2px;
  color: var(--fg);
  width: 16px; height: 16px;
}
.plan-features li.muted { color: var(--fg-faint); text-decoration: line-through; }
.plan-features li.muted svg { display: none; }

/* Stacked feature text — bold headline + muted sub */
.plan-feature-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.plan-feature-stack > strong { line-height: 1.3; }
.plan-feature-sub {
  font-size: 0.78em;
  color: var(--fg-muted);
  font-weight: 400;
  line-height: 1.3;
}

/* ============ FAQ ============ */
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
  max-width: var(--container-narrow);
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s5) 0;
  font-size: 1rem; font-weight: 500;
  cursor: pointer; list-style: none;
  color: var(--fg);
  gap: var(--s4);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
  color: var(--fg-subtle);
  transition: transform var(--t);
}
.faq-item[open] .faq-summary::after {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>") center/contain no-repeat;
  color: var(--fg);
}
.faq-content {
  padding: 0 0 var(--s5) 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 70ch;
}
.faq-content a { color: var(--fg); border-bottom: 1px solid var(--border-strong); padding-bottom: 1px; }
.faq-content a:hover { border-color: var(--fg); }
.faq-content ul { margin-top: var(--s2); padding-left: 18px; list-style: disc; }
.faq-content ul li { margin-bottom: var(--s1); }

/* ============ CTA ============ */
.cta-section {
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: var(--s16) var(--s5);
  max-width: 700px; margin-inline: auto;
}
.cta-inner h2 { margin-bottom: var(--s4); }
.cta-inner p {
  font-size: 1.05rem; color: var(--fg-muted);
  margin-bottom: var(--s8); max-width: 50ch;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }

/* Inverse CTA variant — always-dark, mode-independent */
.cta-section.inverse {
  background: var(--zinc-950);
  color: var(--zinc-50);
  border-color: var(--zinc-950);
}
.cta-section.inverse h2 { color: var(--zinc-50); }
.cta-section.inverse p { color: rgb(255 255 255 / 0.7); }
.cta-section.inverse .btn-primary {
  background: #fff; color: var(--zinc-950); border-color: #fff;
}
.cta-section.inverse .btn-primary:hover { background: var(--zinc-100); border-color: var(--zinc-100); }
.cta-section.inverse .btn-ghost {
  color: #fff; border-color: rgb(255 255 255 / 0.25);
}
.cta-section.inverse .btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: #fff; }

/* ============ Footer ============ */
.site-footer {
  padding-block: var(--s16) var(--s8);
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  margin-bottom: var(--s12);
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: var(--s4); max-width: 320px; }
.footer-brand p { font-size: 0.88rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: var(--s4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--s2); }
.footer-col a {
  font-size: 0.88rem; color: var(--fg-muted);
  transition: color var(--t);
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s3);
  align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--fg-subtle);
}
@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }
.footer-langs {
  display: inline-flex; gap: var(--s4); align-items: center;
  font-family: var(--font-mono); font-size: 0.8rem;
}

/* ============ Reveal-on-scroll ============ */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============ Helpers ============ */
.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.text-subtle { color: var(--fg-subtle); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }

/* ============ Print ============ */
@media print {
  .site-header, .site-footer, .cta-section, .menu-toggle, .nav-actions { display: none; }
  body { background: white; color: black; }
}
