/* =========================================================================
   QuickClockin — Public site stylesheet
   Premium DARK SaaS design system: deep onyx + glass + aurora accents
   Inspired by Linear · Vercel · Framer · Arc · Stripe Dashboard
   Mobile-first · accessible · performance-aware · local assets only
   ========================================================================= */

/* ── Self-hosted Inter variable font (no CDN) ────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations'),
       url('/assets/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/InterVariable-Italic.woff2') format('woff2-variations'),
       url('/assets/fonts/InterVariable-Italic.woff2') format('woff2');
}

/* ── Design tokens ───────────────────────────────────────────────────────── */
:root {
  /* Brand & accents */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --cyan-300:   #67e8f9;
  --cyan-400:   #22d3ee;
  --cyan-500:   #06b6d4;
  --emerald-400:#34d399;

  /* Dark surfaces */
  --bg-deep:   #04060d;
  --bg:        #07080f;
  --bg-soft:   #0a0c18;
  --bg-tint:   #0d1024;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.055);
  --surface-3: rgba(255,255,255,.075);
  --line:      rgba(255,255,255,.075);
  --line-2:    rgba(255,255,255,.12);
  --line-strong: rgba(165,180,252,.28);

  /* Text */
  --text:      #f1f5f9;
  --text-2:    #cbd5e1;
  --muted:     #94a3b8;
  --soft:      #64748b;
  --dim:       #475569;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;
  --info:    #3b82f6;

  /* Effects */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.20);
  --shadow-sm: 0 4px 16px rgba(0,0,0,.25);
  --shadow-md: 0 16px 40px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.20);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.45), 0 12px 32px rgba(0,0,0,.30);
  --shadow-xl: 0 50px 120px rgba(0,0,0,.55), 0 20px 50px rgba(99,102,241,.25);
  --shadow-glow:    0 0 80px rgba(99,102,241,.45);
  --shadow-violet:  0 20px 60px rgba(139,92,246,.32);
  --shadow-primary: 0 18px 50px rgba(79,70,229,.40);

  /* Layout */
  --container: 1240px;
  --container-narrow: 920px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.2,.6,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 150ms;
  --t: 220ms;
  --t-slow: 380ms;

  color-scheme: dark;
}

/* ── Reset / base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  overflow-x: hidden;
  position: relative;
}

/* Site-wide ambient glow (fixed, behind everything) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 12% -8%, rgba(99,102,241,.20), transparent 60%),
    radial-gradient(50% 40% at 92% 0%,  rgba(139,92,246,.16), transparent 65%),
    radial-gradient(80% 60% at 50% 100%,rgba(34,211,238,.10), transparent 70%),
    linear-gradient(180deg, #07090f 0%, #0a0c18 50%, #050710 100%);
  pointer-events: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { vertical-align: middle; }

a { color: var(--brand-300); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: #fff; }

button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: rgba(99,102,241,.40); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--brand-600); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(99,102,241,.45);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; }

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

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.12;
}
h1 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); letter-spacing: -0.03em; line-height: 1.08; font-weight: 850; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); letter-spacing: -0.025em; line-height: 1.15; font-weight: 800; }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 750; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--text-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(99,102,241,.10);
  border: 1px solid rgba(165,180,252,.22);
  color: var(--brand-200);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.eyebrow.dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #c7d2fe; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px var(--emerald-400);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  50%     { box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.lead {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 680px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 35%, #a5b4fc 60%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin: 14px 0 14px; }
.section-head .lead { margin: 0 auto; }
.section-head.left .lead { margin: 0; }

/* ── Container & sections ────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.wrap.narrow { max-width: var(--container-narrow); }

main { display: block; }

.section {
  position: relative;
  padding: 80px 0;
}
.section.tight { padding: 48px 0; }
.section.lg    { padding: 110px 0; }

.section-soft {
  background:
    linear-gradient(180deg, rgba(13,16,36,.45) 0%, transparent 100%);
}
.section-tint {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(99,102,241,.08), transparent 70%),
    linear-gradient(180deg, rgba(13,16,36,.30) 0%, transparent 100%);
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .section { padding: 110px 0; }
  .section.lg { padding: 140px 0; }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  isolation: isolate;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(99,102,241,.55),
    0 8px 28px rgba(99,102,241,.40),
    inset 0 1px 0 rgba(255,255,255,.16);
}
.btn.primary:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.75),
    0 14px 36px rgba(99,102,241,.55),
    inset 0 1px 0 rgba(255,255,255,.20);
  color: #fff;
}

.btn.secondary {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(165,180,252,.40);
  color: #fff;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text-2);
}
.btn.ghost:hover { background: rgba(255,255,255,.06); color: #fff; }

.btn.dark {
  background: #050710;
  color: #fff;
  border-color: rgba(255,255,255,.10);
}
.btn.dark:hover { background: #0d101e; transform: translateY(-2px); }

.btn.lg { min-height: 56px; padding: 15px 30px; font-size: 1rem; border-radius: 14px; }
.btn.sm { min-height: 38px; padding: 8px 14px; font-size: 0.875rem; border-radius: 10px; }
.btn.block { width: 100%; }

.btn-appstore {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 56px;
  padding: 10px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(99,102,241,.18) inset, 0 8px 24px rgba(0,0,0,.35);
  transition: transform var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.btn-appstore:hover {
  transform: translateY(-2px);
  border-color: rgba(165,180,252,.45);
  background: rgba(255,255,255,.09);
  color: #fff;
}
.btn-appstore:active { transform: translateY(0); }
.btn-appstore svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-appstore span { display: flex; flex-direction: column; gap: 1px; }
.btn-appstore small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
.btn-appstore b {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 30px;
}
.cta-row.center { justify-content: center; }

/* ── Hero login hint — mobile only ──────────────────────────────────────── */
.hero-login-hint {
  display: none;
}
@media (max-width: 767px) {
  .hero-login-hint {
    display: block;
    margin-top: 14px;
    font-size: .875rem;
    color: rgba(255,255,255,.45);
    text-align: center;
    line-height: 1.5;
  }
  .hero-login-hint a {
    color: #a5b4fc;
    font-weight: 650;
  }
  .hero-login-hint a:hover { color: #c4b5fd; }
}

/* ── Trust pills ─────────────────────────────────────────────────────────── */
.trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 26px;
  font-size: 0.85rem;
}
.trust span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.trust .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 10px rgba(52,211,153,.7);
}

/* ── Header / nav ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(7,9,15,.50);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              height var(--t) var(--ease);
}
.nav::after {
  content: '';
  position: absolute;
  inset: 0 0 -1px 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(99,102,241,.05) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.nav.scrolled {
  background: rgba(7,9,15,.85);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.40);
}
.nav.scrolled::after { opacity: 1; }
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
@media (min-width: 768px) { .nav-inner { padding: 0 32px; } }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; color: #fff;
  letter-spacing: -0.025em;
  font-size: 1.05rem;
}
.brand:hover { color: #fff; }
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10), 0 8px 22px rgba(99,102,241,.40);
  object-fit: cover;
}

.nav-menu {
  display: flex; align-items: center; gap: 4px;
}
.nav-menu a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-menu a.active {
  color: #fff;
  background: rgba(99,102,241,.15);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,.28);
}

.nav-cta-group { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.nav-actions { display: none; } /* shown only on desktop via media query below */
.nav-divider {
  display: block; width: 1px; height: 18px;
  background: rgba(255,255,255,.12);
  margin: 0 6px; flex-shrink: 0;
}
.nav-login {
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 650;
  color: var(--text-2);
}
.nav-login:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: #fff !important;
  font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(165,180,252,.20) inset,
    0 8px 22px rgba(99,102,241,.45);
}
.nav-cta:hover {
  box-shadow:
    0 0 0 1px rgba(165,180,252,.30) inset,
    0 12px 28px rgba(99,102,241,.55);
  transform: translateY(-1px);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile-only Log in button — always visible in header ─────────────────── */
.nav-login-mob {
  display: none; /* hidden on desktop, shown via mobile media query below */
}
@media (max-width: 960px) {
  .nav-login-mob {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    margin-left: auto; /* pushes to the right, next to hamburger */
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.20);
    color: rgba(255,255,255,.90);
    font-size: .9rem;
    font-weight: 650;
    white-space: nowrap;
    touch-action: manipulation;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  .nav-login-mob:hover,
  .nav-login-mob:active {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.32);
    color: #fff;
  }
}

/* ── Desktop nav: 3-column grid, centered links ─────────────────────────── */
@media (min-width: 961px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .nav-menu { justify-content: center; }
  .nav-cta-group { display: none; } /* duplicate of nav-actions; only shows in mobile dropdown */
  .nav-actions {
    display: flex; align-items: center; gap: 8px;
  }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: 12px; right: 12px;
    background: rgba(13,16,36,.96);
    border: 1px solid var(--line-2);
    border-radius: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-menu a { padding: 12px 14px; font-size: 1rem; }
  .nav-cta-group {
    margin: 8px 0 0;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .nav-cta-group a { text-align: center; padding: 14px; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 56px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 920px;
  background:
    radial-gradient(40% 40% at 50% 10%, rgba(99,102,241,.40), transparent 62%),
    radial-gradient(35% 35% at 18% 22%, rgba(139,92,246,.30), transparent 65%),
    radial-gradient(35% 35% at 82% 18%, rgba(34,211,238,.18), transparent 68%);
  z-index: -1;
  filter: blur(2px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 80px) 0 120px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
}

.hero-copy h1 { margin: 0 0 16px; }
/* eyebrow below h1: tighten gap before lead */
.hero-copy h1 + .eyebrow { margin-bottom: 20px; }
.hero-copy h1 .gradient-text { display: inline; }
.hero-copy .lead { max-width: 600px; }

/* Centered hero variant (when banner is the visual below copy, not beside) */
.hero-copy.hero-center {
  max-width: 880px;
  margin: 0 auto 48px;
  text-align: center;
}
.hero-copy.hero-center .eyebrow,
.hero-copy.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-copy.hero-center .lead { max-width: 680px; }
.hero-copy.hero-center .cta-row { justify-content: center; }
.hero-copy.hero-center .trust { justify-content: center; }
.trust.center-trust { justify-content: center; }

/* Hero with centered copy + banner below */
.hero:has(.hero-center) .hero-grid { display: block; }

/* Compact phone image in feature row */
.feature-visual.mobile-feature {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.feature-visual.mobile-feature img {
  width: auto;
  max-width: 220px;
  max-height: 440px;
  object-fit: contain;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 30px 60px rgba(0,0,0,.50),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 50px rgba(99,102,241,.35);
  display: block;
}

/* Phone showcase (multi) */
.phone-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
.phone-shot {
  width: 100%;
  border-radius: 36px;
  background: #0a0c18;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 30px 90px rgba(0,0,0,.60),
    0 0 0 1px rgba(255,255,255,.05),
    0 0 80px rgba(99,102,241,.28);
  transition: transform var(--t-slow) var(--ease);
}
.phone-shot:nth-child(2) { margin-top: 64px; }
.phone-stage:hover .phone-shot { transform: translateY(-4px); }

@media (max-width: 640px) {
  .phone-stage { max-width: 460px; margin: 0 auto; }
}

/* Phone single (showcase one screen) */
.phone-single {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.phone-single.compact { max-width: 220px; }
.phone-single.compact img { border-radius: 28px; }
.phone-single::before {
  content: '';
  position: absolute;
  inset: -16% -16%;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(99,102,241,.30), transparent 70%);
  z-index: -1;
  filter: blur(8px);
}
.phone-single img {
  width: 100%;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 40px 100px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 100px rgba(99,102,241,.35);
}

/* ── Stats grid ──────────────────────────────────────────────────────────── */
.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.stat::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.stat b {
  display: block;
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 60%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  display: block; margin-top: 4px;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── Cards & grids ───────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.cards-2 { grid-template-columns: 1fr; }
.cards-3 { grid-template-columns: 1fr; }
.cards-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .cards-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(120% 60% at 30% 0%, rgba(99,102,241,.35), transparent 70%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
          mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--t) var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(165,180,252,.30);
  background: linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow-md);
}
.card:hover::after { opacity: 1; }

.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.16));
  border: 1px solid rgba(165,180,252,.22);
  color: #c7d2fe;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(99,102,241,.18);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; color: #fff; }
.card p  { color: var(--muted); }
.card .card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-weight: 650;
  font-size: 0.9rem;
  color: var(--brand-300);
}
.card .card-cta svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.card:hover .card-cta svg { transform: translateX(3px); }

/* ── Industries ──────────────────────────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px){ .industry-grid { grid-template-columns: repeat(4, 1fr); } }
.industry-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.industry-card:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: rgba(165,180,252,.32);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 24px rgba(99,102,241,.18);
}
.industry-card .ic-icon {
  flex: 0 0 38px; width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(139,92,246,.18));
  border: 1px solid rgba(165,180,252,.22);
  color: #c7d2fe;
}
.industry-card .ic-icon svg { width: 18px; height: 18px; }
.industry-card b { display: block; color: #fff; font-size: 0.92rem; }
.industry-card span { display: block; color: var(--muted); font-size: 0.78rem; }

/* ── Industries pill list (legacy) ───────────────────────────────────────── */
.industries {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
}
.industries span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.92rem;
}
.industries span:hover {
  background: var(--surface-2);
  border-color: rgba(165,180,252,.32);
  color: #fff;
}

/* ── Feature row (image + text) ──────────────────────────────────────────── */
.feature-row {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
.feature-row + .feature-row { margin-top: 72px; }
@media (min-width: 960px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature-row.reverse > :first-child { order: 2; }
}
.feature-row h2 { margin-bottom: 14px; }
.feature-row .lead { margin-bottom: 18px; }
.feature-list { display: grid; gap: 10px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2);
}
.feature-list li svg {
  flex: 0 0 22px; width: 22px; height: 22px;
  color: var(--emerald-400);
  margin-top: 1px;
  filter: drop-shadow(0 0 6px rgba(52,211,153,.40));
}

.feature-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99,102,241,.15), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  isolation: isolate;
}
.feature-visual::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}

/* Mock dashboard preview */
.preview-card {
  background: rgba(7,8,15,.50);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.30);
}
.preview-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  border-radius: 12px;
  color: var(--text);
}
.preview-row + .preview-row { margin-top: 8px; }
.preview-row b { color: #fff; }
.preview-row .muted { color: var(--muted); }
.preview-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 4px rgba(52,211,153,.20);
}
.preview-bars { display: grid; gap: 8px; padding: 18px 0 4px; }
.preview-bar {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--violet-500));
  box-shadow: 0 8px 20px rgba(99,102,241,.30);
}
.preview-bar:nth-child(2) {
  width: 78%; opacity: .85;
  background: linear-gradient(90deg, var(--brand-400), var(--cyan-400));
}
.preview-bar:nth-child(3) {
  width: 56%; opacity: .65;
  background: linear-gradient(90deg, var(--brand-300), var(--brand-500));
}

/* ── App banner ──────────────────────────────────────────────────────────── */
.app-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(55% 50% at 100% 0%, rgba(34,211,238,.20), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(139,92,246,.30), transparent 70%),
    linear-gradient(135deg, #0a0d24 0%, #1a1f3a 100%);
  color: #fff;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xl);
}
.app-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 50%, #000, transparent 75%);
  pointer-events: none;
}
.app-banner > * { position: relative; }
@media (min-width: 960px) { .app-banner { grid-template-columns: 1.05fr 0.95fr; padding: 60px; } }
.app-banner h2 { color: #fff; }
.app-banner p { color: rgba(255,255,255,.78); }
.app-banner .eyebrow {
  background: rgba(255,255,255,.06);
  color: #c7d2fe;
  border-color: rgba(199,210,254,.25);
}
.store-buttons {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 26px;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: #050710;
  color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.store-btn:hover {
  transform: translateY(-2px);
  background: #0c1024;
  border-color: rgba(255,255,255,.20);
  color: #fff;
}
.store-btn svg { width: 22px; height: 22px; }
.store-btn span small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store-btn span b {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.price-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.price-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.price-card.featured {
  border: 1px solid rgba(165,180,252,.40);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.25),
    0 30px 80px rgba(99,102,241,.30),
    0 12px 32px rgba(0,0,0,.45);
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(99,102,241,.15), transparent 70%),
    linear-gradient(180deg, var(--surface-3) 0%, var(--surface-2) 100%);
}
.price-card .badge {
  position: absolute; top: -12px; right: 24px;
  background: linear-gradient(135deg, var(--brand-600), var(--violet-600));
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 22px rgba(99,102,241,.45);
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 6px; color: #fff; }
.price-card .price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 14px 0 6px;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
}
.price-card .price small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.price-card .price-note { color: var(--muted); margin-bottom: 22px; font-size: .92rem; }
.price-card ul { display: grid; gap: 10px; margin: 22px 0; }
.price-card li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-2);
}
.price-card li svg {
  flex: 0 0 20px; width: 20px; height: 20px;
  color: var(--brand-300); margin-top: 2px;
  filter: drop-shadow(0 0 6px rgba(99,102,241,.40));
}

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.faq-item:hover {
  border-color: rgba(165,180,252,.30);
  background: var(--surface-2);
}
.faq-item[open] {
  border-color: rgba(165,180,252,.40);
  background: var(--surface-2);
  box-shadow: 0 0 30px rgba(99,102,241,.18);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  color: #fff;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  flex: 0 0 22px;
  width: 22px; height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform var(--t) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .testimonials { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1100px) { .testimonials { grid-template-columns: repeat(3,1fr); } }

.testimonial {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}
.testimonial::after {
  content: '"';
  position: absolute; top: 6px; right: 22px;
  font-size: 6rem; line-height: 1;
  color: rgba(165,180,252,.18);
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial p { color: var(--text); font-size: 1rem; line-height: 1.7; }
.testimonial .who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.testimonial .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-400), var(--violet-500));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 0 0 1px rgba(99,102,241,.20), 0 8px 18px rgba(99,102,241,.30);
}
.testimonial .who b { display: block; color: #fff; font-size: 0.95rem; }
.testimonial .who span { display: block; color: var(--muted); font-size: 0.82rem; }
.stars { display: inline-flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; filter: drop-shadow(0 0 4px rgba(251,191,36,.50)); }

/* ── CTA banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 56px 28px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(45% 60% at 12% 20%, rgba(34,211,238,.22), transparent 70%),
    radial-gradient(45% 60% at 88% 80%, rgba(139,92,246,.35), transparent 70%),
    linear-gradient(135deg, #0a0d24 0%, #1a1f3a 100%);
  color: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xl);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 80%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
@media (min-width: 768px) { .cta-banner { padding: 84px 56px; } }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,.80); max-width: 660px; margin: 16px auto 0; }
.cta-banner .cta-row { justify-content: center; }
.cta-banner .btn.secondary {
  background: rgba(255,255,255,.07);
  color: #fff;
  border-color: rgba(255,255,255,.20);
}
.cta-banner .btn.secondary:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.36); color: #fff; }

/* ── Page hero ───────────────────────────────────────────────────────────── */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(99,102,241,.22), transparent 70%),
    radial-gradient(40% 40% at 100% 0%, rgba(34,211,238,.10), transparent 70%);
  z-index: -1;
}
.page-hero h1 { margin: 18px auto 16px; max-width: 880px; }
.page-hero h1 .gradient-text { display: inline; }
.page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.68;
}
.page-hero .crumbs {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,.32);
  margin-top: 14px;
}
.page-hero .crumbs.top {
  margin-top: 0;
  margin-bottom: 22px;
}
.page-hero .crumbs a {
  color: rgba(255,255,255,.42);
  text-decoration: none;
  transition: color .15s;
}
.page-hero .crumbs a:hover { color: rgba(255,255,255,.85); }
.page-hero .crumbs svg {
  width: 12px;
  height: 12px;
  opacity: .3;
  flex-shrink: 0;
}
.page-hero .crumbs span:not(:has(svg)) { color: rgba(255,255,255,.65); }

@media (min-width: 768px) { .page-hero { padding: calc(var(--header-h) + 96px) 0 80px; } }

/* ── Long-form content / legal ───────────────────────────────────────────── */
.content { padding: 48px 0 110px; }
.text-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.text-card h2 { font-size: 1.4rem; margin-bottom: 14px; color: #fff; letter-spacing: -0.02em; }
.text-card h3 { font-size: 1.1rem; margin: 20px 0 10px; color: #fff; letter-spacing: -0.01em; }
.text-card p,
.text-card li { color: var(--text-2); line-height: 1.7; }
.text-card p + p { margin-top: 14px; }
.text-card ul, .text-card ol { padding-left: 22px; display: grid; gap: 8px; margin-top: 4px; }
.text-card ul li { list-style: disc; }
.text-card ol li { list-style: decimal; }
.text-card a { color: var(--brand-300); font-weight: 600; }
.text-card a:hover { color: #fff; text-decoration: underline; }

.legal-toc {
  background: linear-gradient(180deg, rgba(99,102,241,.10), transparent);
  border: 1px solid rgba(99,102,241,.20);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.legal-toc h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--brand-300); margin-bottom: 10px;
}
.legal-toc ol { padding-left: 18px; display: grid; gap: 6px; }
.legal-toc a { color: var(--text-2); font-weight: 600; }
.legal-toc a:hover { color: #fff; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  background: rgba(2,4,11,.55);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--soft); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-400);
  background: rgba(2,4,11,.75);
  box-shadow: 0 0 0 4px rgba(99,102,241,.20);
}
.field .hint { font-size: 0.82rem; color: var(--muted); }
.field .pw-wrap { position: relative; }
.field .pw-wrap input { padding-right: 48px; }
.field .pw-toggle {
  position: absolute; top: 50%; right: 8px;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  border-radius: 8px;
}
.field .pw-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }

.notice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.notice svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.notice.error {
  background: rgba(239,68,68,.10);
  color: #fecaca;
  border: 1px solid rgba(239,68,68,.28);
}
.notice.ok {
  background: rgba(16,185,129,.10);
  color: #bbf7d0;
  border: 1px solid rgba(16,185,129,.28);
}
.notice.info {
  background: rgba(99,102,241,.10);
  color: var(--brand-200);
  border: 1px solid rgba(99,102,241,.28);
}

/* ── Auth pages ──────────────────────────────────────────────────────────── */
.auth-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 24px) 16px 40px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.auth-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 40% at 18% 30%, rgba(99,102,241,.20), transparent 70%),
    radial-gradient(50% 40% at 82% 70%, rgba(139,92,246,.22), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(34,211,238,.10), transparent 70%);
  pointer-events: none;
}
.auth-shell {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 1fr;
}
.auth-shell--wide {
  width: min(940px, 100%);
  align-items: start;
}
@media (min-width: 768px) {
  .auth-shell--wide {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.auth-panel {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 36px;
  color: #fff;
  background:
    radial-gradient(50% 40% at 16% 18%, rgba(34,211,238,.20), transparent 70%),
    radial-gradient(50% 40% at 84% 12%, rgba(139,92,246,.30), transparent 70%),
    linear-gradient(160deg, #0a0d24 0%, #1a1f3a 50%, #0e1a36 100%);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 600px;
}
.auth-panel::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}
.auth-panel > * { position: relative; z-index: 1; }
.auth-panel .auth-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(199,210,254,.25);
  color: #c7d2fe;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  width: max-content;
}
.auth-panel h2 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.auth-panel p {
  color: rgba(255,255,255,.78);
  max-width: 480px;
  font-size: 1rem;
}

.auth-benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) { .auth-benefits { grid-template-columns: repeat(2,1fr); } }
.auth-benefit {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: grid; gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-benefit strong { color: #fff; font-size: 0.95rem; }
.auth-benefit span  { color: rgba(255,255,255,.72); font-size: 0.85rem; line-height: 1.5; }

.auth-preview {
  margin-top: auto;
  border-radius: var(--radius-lg);
  padding: 18px;
  background: rgba(2,4,11,.55);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.auth-preview-top {
  display: flex; justify-content: space-between; gap: 12px;
  color: rgba(199,210,254,.80);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 14px;
}
.auth-preview-top .live::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  margin-right: 6px;
  animation: pulseDot 1.6s infinite;
}
.auth-bars { display: grid; gap: 8px; }
.auth-bar {
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--cyan-400));
  box-shadow: 0 6px 16px rgba(99,102,241,.30);
}
.auth-bar:nth-child(2) { width: 78%; opacity: .82; }
.auth-bar:nth-child(3) { width: 54%; opacity: .65; }
.auth-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
  margin-top: 14px;
}
.auth-stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px 12px;
}
.auth-stat b {
  display: block;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.auth-stat span { color: rgba(199,210,254,.72); font-size: 0.72rem; }

.auth-card {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-2xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  align-self: center;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}
@media (min-width: 768px) { .auth-card { padding: 44px; } }
.auth-card .brand { margin-bottom: 20px; }
.auth-card h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  margin: 8px 0 8px;
  color: #fff;
  letter-spacing: -0.025em;
}
.auth-card .muted { color: var(--muted); }
.auth-card .form { margin-top: 22px; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-forgot {
  display: flex; justify-content: flex-end;
  margin-top: 4px; margin-bottom: 2px;
  font-size: 0.85rem;
}
.auth-forgot a { color: var(--muted); font-weight: 600; }
.auth-forgot a:hover { color: var(--brand-300); }
.auth-links {
  display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-links a { color: var(--brand-300); font-weight: 650; }
.auth-links a:hover { color: #fff; text-decoration: underline; }
.auth-terms {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}
.auth-terms a { color: var(--muted); font-weight: 600; text-decoration: underline; }
.auth-terms a:hover { color: #fff; }
.auth-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(99,102,241,.10);
  border: 1px solid rgba(99,102,241,.22);
  color: var(--brand-200);
  font-size: 0.88rem;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
  color: rgba(255,255,255,.72);
  padding: 80px 0 32px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer::before {
  content: '';
  position: absolute;
  inset: -50% -10% auto;
  height: 320px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(99,102,241,.16), transparent 70%);
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  position: relative;
}
/* Brand spans full width on mobile */
.footer-col:first-child { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
  }
  .footer-col:first-child { grid-column: auto; }
}
.footer .brand { color: #fff; }
.footer-col h3 {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.70);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 6px 0;
}
.footer-col a:hover { color: #fff; }
.footer-col li { display: block; }
.footer-tag {
  margin: 14px 0 18px;
  color: rgba(255,255,255,.62);
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.footer-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
  font-size: 0.78rem;
  font-weight: 600;
}
.footer-trust .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 8px rgba(52,211,153,.6);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  color: rgba(255,255,255,.45);
  font-size: 0.84rem;
  position: relative;
}
.footer-bottom a { color: rgba(255,255,255,.55); margin-left: 14px; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; }

@media (max-width: 719px) {
  .footer { padding: 56px 0 28px; }
  .footer-tag { max-width: 100%; font-size: 0.88rem; }
  /* Bottom bar: center-stacked, no left margin on links */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 32px;
    padding-top: 20px;
  }
  .footer-bottom a { margin-left: 0; }
  .footer-legal { justify-content: center; gap: 4px 12px; font-size: 0.78rem; }
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 14px; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.step:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: rgba(165,180,252,.28);
}
.step-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--violet-600));
  color: #fff;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(165,180,252,.20), 0 12px 24px rgba(99,102,241,.40);
}
.step b { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }

/* ── Mock frame (for showcase) ───────────────────────────────────────────── */
.mock-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  box-shadow: var(--shadow-md);
}
.mock-frame img { display: block; width: 100%; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.center { text-align: center; }
.muted  { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.no-wrap { white-space: nowrap; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Hero banner (composite laptop + iPhone image) ───────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  isolation: isolate;
}
.hero-banner::before {
  content: '';
  position: absolute;
  inset: -10% -8% -4% -8%;
  background:
    radial-gradient(55% 50% at 70% 50%, rgba(99,102,241,.35), transparent 65%),
    radial-gradient(40% 40% at 25% 60%, rgba(139,92,246,.22), transparent 70%);
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
}
.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  filter:
    drop-shadow(0 30px 50px rgba(0,0,0,.55))
    drop-shadow(0 0 60px rgba(99,102,241,.28));
  transition: transform var(--t-slow) var(--ease);
}
.hero-banner:hover img { transform: translateY(-4px); }

/* Download badges row below the hero banner image */
.hero-banner-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 0 8px;
}
.hero-banner-badges .store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 14px;
  background: rgba(7,8,15,.92);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 14px 30px rgba(0,0,0,.45),
    0 0 0 1px rgba(99,102,241,.18) inset;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.hero-banner-badges .store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(165,180,252,.40);
  color: #fff;
}
.hero-banner-badges .store-badge svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero-banner-badges .store-badge small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  line-height: 1;
}
.hero-banner-badges .store-badge b {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .hero-banner-badges { gap: 8px; margin-top: 16px; }
  .hero-banner-badges .store-badge { padding: 8px 12px; font-size: 0.74rem; }
  .hero-banner-badges .store-badge b { font-size: 0.82rem; }
}

/* ── Hero platforms (Cloud CRM + Mobile app stack) ───────────────────────── */
.hero-platforms { display: grid; gap: 16px; }
.platform-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.platform-card::before {
  content: '';
  position: absolute; inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}
.platform-card:hover { border-color: rgba(165,180,252,.30); }

.platform-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.platform-head > .platform-text { flex: 1; min-width: 0; }
.platform-ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(99,102,241,.22), rgba(139,92,246,.16));
  border: 1px solid rgba(165,180,252,.22);
  color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(99,102,241,.18);
}
.platform-ic svg { width: 18px; height: 18px; }
.platform-text b {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
}
.platform-text span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(52,211,153,.30);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.platform-pill .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: pulseDot 1.8s infinite;
}

/* Inline mock-shell when used inside platform card */
.platform-card .mock-shell { animation: none; max-width: 100%; }

/* Mobile platform card — phone on left + info on right */
.platform-card.mobile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.platform-mobile-photo {
  flex-shrink: 0;
  width: 108px;
  height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: #0a0c18;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow:
    0 18px 38px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.06),
    0 0 36px rgba(99,102,241,.32);
  position: relative;
  transition: transform var(--t-slow) var(--ease);
}
.platform-mobile-photo::before {
  content: '';
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 4px;
  background: rgba(0,0,0,.65);
  border-radius: 999px;
  z-index: 2;
}
.platform-mobile-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.platform-card.mobile:hover .platform-mobile-photo { transform: translateY(-4px) rotate(-1.5deg); }

.platform-mobile-info > p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.platform-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-300);
  text-decoration: none;
}
.platform-link:hover { color: #fff; }
.platform-link svg { width: 12px; height: 12px; transition: transform var(--t-fast) var(--ease); }
.platform-link:hover svg { transform: translateX(3px); }

@media (max-width: 520px) {
  .platform-card.mobile { grid-template-columns: 88px 1fr; gap: 14px; padding: 18px; }
  .platform-mobile-photo { width: 88px; height: 178px; border-radius: 18px; }
  .platform-card { padding: 18px; }
}

/* ── Hero promo strip (FREE + MOBILE accent) ─────────────────────────────── */
.hero-promo {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  margin-bottom: 28px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(99,102,241,.16), rgba(139,92,246,.10) 60%, rgba(34,211,238,.10));
  border: 1px solid rgba(165,180,252,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 36px rgba(99,102,241,.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  width: max-content;
  max-width: 100%;
}
.hero-promo::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
}
.hero-promo .promo-phone {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #0a0c18;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 6px 16px rgba(0,0,0,.40), 0 0 22px rgba(99,102,241,.30);
}
.hero-promo .promo-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero-promo .promo-text {
  display: grid; gap: 2px;
  line-height: 1.3;
  min-width: 0;
}
.hero-promo .promo-text b {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.005em;
}
.hero-promo .promo-text b .free-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(5,150,105,.15));
  border: 1px solid rgba(52,211,153,.35);
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-promo .promo-text small {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-promo .promo-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-promo .promo-cta:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(165,180,252,.45);
  color: #fff;
  transform: translateY(-1px);
}
.hero-promo .promo-cta svg { width: 12px; height: 12px; }

@media (max-width: 520px) {
  .hero-promo { grid-template-columns: auto 1fr; gap: 12px; padding: 12px; }
  .hero-promo .promo-cta { display: none; }
  .hero-promo .promo-text small { font-size: 0.74rem; }
}


/* ── Hero grid backdrop (the user's signature pattern) ─────────────────── */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99,102,241,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

/* ── Browser-style mockup shell (Mac-traffic-light dots) ─────────────────── */
.mock-shell {
  background: #0c1020;
  border: 1px solid rgba(99,102,241,.22);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(99,102,241,.10),
    0 40px 90px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  animation: floatShell 6s ease-in-out infinite;
}
.mock-bar {
  background: #090e1c;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 11px 16px;
  display: flex; align-items: center; gap: 7px;
}
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}
.mock-dot.r { background: #ff5f57; }
.mock-dot.y { background: #febc2e; }
.mock-dot.g { background: #28c840; }
.mock-bar-url {
  margin-left: 10px;
  color: #475569;
  font-size: 0.72rem;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 0.02em;
}
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-body .preview-row { background: rgba(255,255,255,.02); }

@keyframes floatShell {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-shell { animation: none; }
}

/* ── Problem / solution comparison ───────────────────────────────────────── */
.problem-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

.problem-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.problem-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(239,68,68,.50), transparent);
}
.problem-card .ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(239,68,68,.10);
  color: #fca5a5;
  margin-bottom: 14px;
}
.problem-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.problem-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.problem-solution {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(16,185,129,.10), rgba(5,150,105,.05));
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 18px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 720px) { .problem-solution { grid-template-columns: auto 1fr; padding: 32px 36px; gap: 32px; } }
.problem-solution .ps-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(5,150,105,.15));
  border: 1px solid rgba(16,185,129,.30);
  display: inline-flex; align-items: center; justify-content: center;
  color: #6ee7b7;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(16,185,129,.10), 0 8px 24px rgba(16,185,129,.20);
}
.problem-solution h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.problem-solution p  { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }

/* Compare grid (red bad / green good) */
.compare-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  max-width: 880px; margin: 0 auto;
}
@media (min-width: 760px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-col {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-col.bad { background: rgba(239,68,68,.04); border-color: rgba(239,68,68,.18); }
.compare-col.good {
  background: rgba(99,102,241,.07);
  border-color: rgba(99,102,241,.30);
  box-shadow: 0 0 0 1px rgba(99,102,241,.10), 0 24px 50px rgba(99,102,241,.18);
}
.compare-head {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; color: #fff;
}
.compare-row {
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.compare-row:last-child { border-bottom: none; }
.compare-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.compare-icon.bad  { background: rgba(239,68,68,.16); color: #fca5a5; }
.compare-icon.good { background: rgba(16,185,129,.18); color: #6ee7b7; }
.compare-icon svg { width: 12px; height: 12px; }

/* ── Stagger reveal delays ───────────────────────────────────────────────── */
.reveal.d1 { transition-delay: 70ms; }
.reveal.d2 { transition-delay: 140ms; }
.reveal.d3 { transition-delay: 210ms; }
.reveal.d4 { transition-delay: 280ms; }
.reveal.d5 { transition-delay: 350ms; }
.reveal.d6 { transition-delay: 420ms; }

/* ── Print friendliness ─────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .auth-panel { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
}


/* =========================================================================
   Upgrade pack — sharper hero, stronger conversion cues, better mobile polish
   ========================================================================= */
.hero-v2 {
  padding-top: calc(var(--header-h) + 72px);
}
.hero-v2 .hero-grid {
  align-items: center;
}
.hero-v2 .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.15rem);
  line-height: .96;
  letter-spacing: -.065em;
}
.hero-v2 .hero-copy .lead {
  max-width: 680px;
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  color: #cbd5e1;
}
.hero-microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: .92rem;
}
.hero-action-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(165,180,252,.20);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-action-card div {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(7,8,15,.42);
  border: 1px solid rgba(255,255,255,.07);
}
.hero-action-card b {
  display: block;
  color: #fff;
  font-size: .98rem;
  letter-spacing: -.02em;
}
.hero-action-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.dashboard-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 24px;
  border: 1px solid rgba(165,180,252,.24);
  background:
    radial-gradient(65% 50% at 80% 0%, rgba(34,211,238,.16), transparent 65%),
    radial-gradient(70% 60% at 0% 20%, rgba(99,102,241,.18), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 50px 120px rgba(0,0,0,.52), 0 0 70px rgba(99,102,241,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.dashboard-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
}
.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.dashboard-topbar h2 {
  margin-top: 4px;
  font-size: 1.25rem;
}
.mini-label {
  color: var(--brand-200);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(16,185,129,.12);
  border: 1px solid rgba(52,211,153,.28);
  color: #86efac;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.live-pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 0 0 rgba(52,211,153,.55);
  animation: pulseDot 1.8s infinite;
}
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.ops-metrics div {
  padding: 15px;
  border-radius: 16px;
  background: rgba(7,8,15,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.ops-metrics b {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.04em;
}
.ops-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}
.activity-stack {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}
.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}
.activity-row.active {
  background: rgba(99,102,241,.13);
  border-color: rgba(165,180,252,.24);
}
.avatar-mini {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: .75rem;
  font-weight: 900;
}
.activity-row b,
.activity-row small,
.activity-row em { display: block; }
.activity-row b { color: #fff; font-size: .9rem; }
.activity-row small { color: var(--muted); font-size: .76rem; margin-top: 1px; }
.activity-row em { color: var(--soft); font-size: .72rem; font-style: normal; white-space: nowrap; }
.project-snapshot {
  padding: 14px;
  border-radius: 20px;
  background: rgba(7,8,15,.36);
  border: 1px solid rgba(255,255,255,.075);
}
.phone-popout {
  transform: translateX(28px) translateY(-8px);
  max-width: 92%;
  justify-self: end;
}
.phone-popout:hover { transform: translateX(24px) translateY(-12px); }
.card, .problem-card, .compare-col, .testimonial, .faq-item, .stat, .feature-visual, .price-card {
  box-shadow: 0 18px 45px rgba(0,0,0,.26);
}
.card:hover, .problem-card:hover, .compare-col:hover, .testimonial:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 45px rgba(99,102,241,.13);
}
@media (max-width: 1023px) {
  .phone-popout { transform: none; max-width: 100%; justify-self: stretch; }
  .phone-popout:hover { transform: translateY(-4px); }
}
@media (max-width: 680px) {
  .hero-v2 { padding-top: calc(var(--header-h) + 42px); }
  .hero-v2 .hero-copy h1 { font-size: clamp(2.15rem, 12vw, 3.4rem); }
  .hero-action-card { grid-template-columns: 1fr; }
  .ops-metrics { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: auto 1fr; }
  .activity-row em { grid-column: 2; }
}

/* ── Interior page mobile refinements ────────────────────────────────────── */
@media (max-width: 640px) {
  .text-card { padding: 22px 20px; }
  .content { padding: 32px 0 72px; }
  .page-hero { padding-bottom: 44px; }
}