:root{
  color-scheme: light dark;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Neutral (less bright than white/blue) */
  --surface-0: #f4f2ee;
  --surface-1: #fbfaf7;
  --surface-2: rgba(17, 24, 39, 0.03);
  --surface-3: rgba(17, 24, 39, 0.05);
  --card: #fbfaf7;

  --border-subtle: rgba(17, 24, 39, 0.12);
  --border-strong: rgba(17, 24, 39, 0.18);

  --text-strong: #0b0d12;
  --text-body: rgba(17, 24, 39, 0.92);
  --text-muted: rgba(17, 24, 39, 0.72);
  --text-soft: rgba(17, 24, 39, 0.56);

  /* Accent (purple, less "blue") */
  --accent: #6d28d9;
  --accent-strong: #5b21b6;
  --accent-soft: rgba(109, 40, 217, 0.13);

  /* Secondary + highlight (use sparingly; keep B2B) */
  --cerulean-500: #2AA8FF;
  --cerulean-600: #1D8FE6;
  --green-500: #39FF88;
  --success: var(--green-500);
  --success-soft: color-mix(in srgb, var(--green-500) 18%, transparent);
  --focus-ring: color-mix(in srgb, var(--cerulean-500) 52%, transparent);
  --warning: #f97316;

  /* Softer shadows (Linear-like) */
  --shadow-soft: 0 18px 40px -28px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --max-width: 1120px;
  --header-height: 68px;
  --easing: cubic-bezier(.4,0,.2,1);
  --h1-size: clamp(2.15rem, 4.1vw, 3.05rem);
  --h2-size: clamp(1.65rem, 3.2vw, 2.25rem);
  --h3-size: clamp(1.18rem, 2.2vw, 1.42rem);
  --body-size: .99rem;
  --label-size: .95rem;
}

/* Explicit theme override (optional UI toggle). Default is system via prefers-color-scheme. */
:root[data-theme="light"]{
  color-scheme: light;
}
:root[data-theme="dark"]{
  color-scheme: dark;
}

@media (prefers-color-scheme: dark){
  :root{
    --surface-0: #08090c;
    --surface-1: #0d1016;
    --surface-2: rgba(255, 255, 255, 0.04);
    --surface-3: rgba(255, 255, 255, 0.06);
    --card: #0d1016;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text-strong: #f5f7ff;
    --text-body: rgba(245, 247, 255, 0.86);
    --text-muted: rgba(245, 247, 255, 0.68);
    --text-soft: rgba(245, 247, 255, 0.52);
    --accent: #a78bfa;
    --accent-strong: #c4b5fd;
    --accent-soft: rgba(167, 139, 250, 0.16);
    --shadow-soft: 0 22px 54px -38px rgba(0, 0, 0, 0.75);
  }
}

/* When a theme is explicitly selected, prefer it over system. */
:root[data-theme="dark"]{
  --surface-0: #07080b;
  --surface-1: #0c0f15;
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.06);
  --card: #0c0f15;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text-strong: #f5f7ff;
  --text-body: rgba(245, 247, 255, 0.86);
  --text-muted: rgba(245, 247, 255, 0.68);
  --text-soft: rgba(245, 247, 255, 0.52);
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --accent-soft: rgba(167, 139, 250, 0.16);
  --shadow-soft: 0 22px 54px -38px rgba(0, 0, 0, 0.75);
}
:root[data-theme="light"]{
  --surface-0: #f4f2ee;
  --surface-1: #fbfaf7;
  --surface-2: rgba(17, 24, 39, 0.03);
  --surface-3: rgba(17, 24, 39, 0.05);
  --card: #fbfaf7;
  --border-subtle: rgba(17, 24, 39, 0.12);
  --border-strong: rgba(17, 24, 39, 0.18);
  --text-strong: #0b0d12;
  --text-body: rgba(17, 24, 39, 0.92);
  --text-muted: rgba(17, 24, 39, 0.72);
  --text-soft: rgba(17, 24, 39, 0.56);
  --accent: #6d28d9;
  --accent-strong: #5b21b6;
  --accent-soft: rgba(109, 40, 217, 0.13);
}

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

html,body{
  margin:0;
  padding:0;
  font-family:var(--font-body);
  background:
    radial-gradient(1200px 700px at 12% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 58%),
    radial-gradient(900px 520px at 92% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 62%),
    radial-gradient(900px 520px at 88% 12%, color-mix(in srgb, var(--cerulean-500) 12%, transparent), transparent 62%),
    radial-gradient(820px 520px at 18% 64%, color-mix(in srgb, var(--green-500) 10%, transparent), transparent 68%),
    var(--surface-0);
  color:var(--text-body);
}

body{
  line-height:1.6;
  font-size:var(--body-size);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:0.42;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--border-subtle) 38%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border-subtle) 32%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  transform:translateZ(0);
}

a{
  color:var(--accent);
  text-decoration:none;
}
a:hover,
a:focus-visible{
  color:var(--cerulean-500);
  text-decoration:underline;
}
a:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
  border-radius:8px;
}

/* Keyboard accessibility: allow skipping the sticky header. */
.skip-link{
  position:absolute;
  left:14px;
  top:10px;
  z-index:9999;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border-strong);
  background:color-mix(in srgb, var(--surface-1) 92%, transparent);
  color:var(--text-strong);
  box-shadow:var(--shadow-soft);
  transform:translateY(-140%);
  transition:transform .18s var(--easing);
}
.skip-link:focus{
  transform:translateY(0);
  text-decoration:none;
}

img{max-width:100%;height:auto;border:0}

header{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(18px);
  background:color-mix(in srgb, var(--surface-1) 88%, transparent);
  border-bottom:1px solid var(--border-subtle);
}
.header-inner{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:14px 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  color:var(--text-strong);
  font-size:1.1rem;
  letter-spacing:-0.01em;
  flex:0 0 auto;
}
.brand img{height:30px;width:auto}

.nav-links{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1 1 auto;
  min-width:0;
  justify-content:flex-start;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
}
.nav-links::-webkit-scrollbar{display:none;}
.nav-links a{
  color:var(--text-muted);
  font-size:var(--label-size);
  font-weight:600;
  padding:8px 6px;
  border-radius:10px;
  white-space:nowrap;
  position:relative;
}
.nav-links a.active{
  color:var(--text-strong);
}
.nav-links a.active::after{
  content:'';
  position:absolute;
  left:8px;
  right:8px;
  bottom:3px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg, color-mix(in srgb, var(--accent) 90%, #000 0%), var(--cerulean-500), var(--green-500));
  opacity:0.9;
}

/* Sticky header-friendly anchor jumps. */
:target{
  scroll-margin-top: calc(var(--header-height) + 20px);
}

@media (prefers-reduced-motion: reduce){
  *{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}
.nav-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}
.nav-actions a,
.nav-actions button{
  white-space:nowrap;
}
.theme-toggle{
  min-width:44px;
  padding-left:12px;
  padding-right:12px;
}
.nav-toggle{
  display:none;
  border:1px solid var(--border-subtle);
  background:transparent;
  border-radius:var(--radius-sm);
  padding:8px;
  color:var(--text-body);
}
.nav-toggle:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:2px;
}

.btn,
.cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:var(--radius-sm);
  font-weight:600;
  font-size:.98rem;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .18s var(--easing), box-shadow .24s var(--easing), background-color .18s var(--easing);
}
.btn-primary,
.cta-primary{
  background:linear-gradient(180deg, color-mix(in srgb, var(--accent) 100%, #fff 0%), color-mix(in srgb, var(--accent-strong) 100%, #000 0%));
  color:#ffffff;
  border-color:color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow:0 18px 40px -26px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover,
.btn-primary:focus-visible,
.cta-primary:hover,
.cta-primary:focus-visible{
  background:var(--accent-strong);
  transform:translateY(-1px);
}
.btn-secondary,
.cta-secondary{
  background:color-mix(in srgb, var(--surface-1) 78%, transparent);
  color:var(--text-strong);
  border-color:var(--border-strong);
}
.btn-secondary:hover,
.btn-secondary:focus-visible,
.cta-secondary:hover,
.cta-secondary:focus-visible{
  border-color:var(--accent);
  color:var(--accent);
}
.btn-text{
  border:none;
  background:none;
  padding:8px;
  color:var(--accent);
  font-weight:600;
}
.btn-text:hover,
.btn-text:focus-visible{color:var(--accent-strong)}

.container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 24px;
}

.page{
  padding-top:48px;
  padding-bottom:72px;
}

section{
  padding:48px 0;
  border-bottom:1px solid color-mix(in srgb, var(--border-subtle) 40%, transparent);
}
section:last-of-type{
  border-bottom:none;
  padding-bottom:0;
}

.section-label{
  letter-spacing:.04em;
  font-size:.82rem;
  text-transform:uppercase;
  font-weight:700;
  color:var(--text-soft);
  margin-bottom:10px;
  position:relative;
  padding-left:12px;
}
.section-label::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:14px;
  border-radius:999px;
  background:linear-gradient(180deg, var(--accent), var(--cerulean-500), var(--green-500));
  opacity:0.9;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  margin:0 0 18px;
  color:var(--text-strong);
  letter-spacing:-0.02em;
}
h1{font-size:var(--h1-size);line-height:1.08;}
h2{font-size:var(--h2-size);line-height:1.15;}
h3{font-size:var(--h3-size);line-height:1.22;}

.muted{color:var(--text-muted);}
.small{font-size:.92rem;}

.hero{
  display:grid;
  gap:28px;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items:center;
  padding-top:32px;
  padding:38px 28px;
  border-radius:var(--radius-lg);
  border:1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  background:
    radial-gradient(900px 520px at 15% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%),
    radial-gradient(700px 420px at 95% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(520px 340px at 88% 12%, color-mix(in srgb, var(--cerulean-500) 14%, transparent), transparent 68%),
    radial-gradient(600px 420px at 22% 86%, color-mix(in srgb, var(--green-500) 11%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface-1) 86%, transparent);
  box-shadow:0 34px 85px -70px rgba(15,23,42,0.5);
}
.hero.hero--product{
  grid-template-columns: minmax(0,1fr) minmax(0,1.33fr);
}
.hero.hero--home{
  grid-template-columns: minmax(0,1fr) minmax(0,1.25fr);
}
.hero-copy{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.hero-subhead{
  font-size:1.02rem;
  color:var(--text-muted);
}
.hero-cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.hero-card{
  background:color-mix(in srgb, var(--surface-1) 94%, var(--surface-0) 6%);
  border-radius:var(--radius-lg);
  padding:26px;
  box-shadow:var(--shadow-soft);
  border:1px solid var(--border-subtle);
}
.hero-card{
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 28%, transparent),
    transparent 45%,
    color-mix(in srgb, var(--accent) 18%, transparent)
  );
  opacity:0.18;
  pointer-events:none;
}
.hero-card > *{position:relative;}
.hero-card ul{
  padding-left:20px;
  margin:12px 0 0;
}
.hero-media{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.media-frame{
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  padding:18px;
  background:var(--surface-1);
  box-shadow:var(--shadow-soft);
}
.media-frame img{
  width:100%;
  height:auto;
  display:block;
}
.diagram-card{
  border:1px dashed var(--border-subtle);
  border-radius:var(--radius-md);
  padding:18px;
  background:var(--surface-1);
  text-align:center;
}
.diagram-card img{
  width:100%;
  height:auto;
}
.diagram-card img,
.media-frame img,
.video-card img{
  cursor:zoom-in;
}

@media (min-width: 1060px){
  .grid-two{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

.zoom-overlay{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(2,6,23,0.78);
  backdrop-filter:blur(10px);
}
.zoom-overlay[hidden]{display:none;}
.zoom-panel{
  width:min(1200px, 96vw);
  max-height:92vh;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(15,23,42,0.92);
  box-shadow:0 40px 120px -70px rgba(0,0,0,0.75);
}
.zoom-panel header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.zoom-panel header .zoom-title{
  color:#e5e7eb;
  font-weight:700;
  font-size:13px;
  letter-spacing:0.02em;
}
.zoom-panel header .zoom-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.zoom-panel header a{
  color:#c7d2fe;
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}
.zoom-panel header a:hover{text-decoration:underline;}
.zoom-panel header button{
  appearance:none;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(15,23,42,0.75);
  color:#e5e7eb;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.zoom-panel header button:hover{background:rgba(15,23,42,0.9);}
.zoom-panel .zoom-body{
  padding:18px;
}
.zoom-panel .zoom-body img{
  width:100%;
  height:auto;
  display:block;
}
.video-card{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  background:var(--surface-1);
  padding:0;
}
.media-frame.video-card{
  padding:0;
}
.video-card img{
  display:block;
  width:100%;
  height:auto;
}
.video-card video{
  display:block;
  width:100%;
  height:auto;
}
.media-badge{
  position:absolute;
  left:16px;
  bottom:16px;
  background:rgba(15,23,42,0.9);
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 18px;
  font-weight:600;
  font-size:.95rem;
  letter-spacing:.02em;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  transition:transform .2s var(--easing), background .2s var(--easing);
}
.media-badge::before{
  content:'';
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid rgba(245,247,255,0.84);
  box-shadow:0 0 0 4px rgba(57,255,136,0.12);
}
.media-badge:hover,
.media-badge:focus-visible{
  transform:translateY(-2px);
  background:color-mix(in srgb, var(--accent) 68%, #0b1220 32%);
}
.media-badge:focus-visible{
  outline:2px solid var(--focus-ring);
  outline-offset:3px;
}
.lottie-shell{
  width:100%;
  min-height:220px;
  border:1px dashed var(--border-subtle);
  border-radius:var(--radius-md);
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface-1);
  color:var(--text-muted);
  text-align:center;
  padding:18px;
}

.logo-grid{
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  align-items:center;
  justify-content:center;
  padding:12px 0;
}
.logo-pill{
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--border-subtle);
  color:var(--text-soft);
  background:var(--surface-1);
  font-weight:600;
  font-size:.92rem;
}

.feature-grid{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top:28px;
}
.card-stack{
  display:flex;
  flex-direction:column;
  gap:18px;
  margin-top:22px;
}
.card--stack{
  min-height:auto;
}
.prose p{margin:0 0 12px;}
.prose ul,
.prose ol{margin:12px 0 0 18px;}
.prose li{margin:6px 0;color:var(--text-body);}
.prose code{padding:2px 6px;border-radius:8px;background:var(--surface-2);border:1px solid var(--border-subtle);}
.grid-two{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
}
.card{
  background:var(--surface-1);
  border-radius:var(--radius-md);
  padding:24px;
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
}
.card{
  transition:transform .18s var(--easing), border-color .18s var(--easing), box-shadow .18s var(--easing);
}
.card:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb, var(--border-strong) 68%, transparent);
  box-shadow:0 26px 70px -56px rgba(15,23,42,0.35);
}
.card h3{margin-bottom:6px;}
.card h3{line-height:1.25;}
.card p{margin:0;color:var(--text-muted);}
.card strong{color:var(--text-strong);}
.card.badge{
  border-left:6px solid var(--accent);
}

.split{
  display:grid;
  gap:28px;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  align-items:start;
}
.split .card{height:100%;}

.metrics{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.metric{
  flex:1 1 220px;
  padding:20px 22px;
  border-radius:var(--radius-md);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  box-shadow:var(--shadow-soft);
}
.metric .value{
  font-size:1.7rem;
  font-weight:700;
  color:color-mix(in srgb, var(--cerulean-500) 56%, var(--accent-strong) 44%);
}
.metric .label{
  color:var(--text-muted);
  font-weight:600;
  font-size:.95rem;
}

.testimonial-grid{
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
}
.testimonial{
  background:var(--surface-1);
  border-radius:var(--radius-md);
  padding:22px;
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.testimonial blockquote{
  margin:0;
  font-style:italic;
  color:var(--text-body);
}
.testimonial cite{
  font-weight:600;
  color:var(--text-soft);
  font-size:.92rem;
}

.pricing-grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  margin-top:32px;
}
.billing-toggle{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.billing-btn{
  border:1px solid var(--border-subtle);
  border-radius:999px;
  padding:6px 18px;
  background:transparent;
  color:var(--text-soft);
  font-weight:600;
  cursor:pointer;
  transition:background .2s var(--easing), color .2s var(--easing), border .2s var(--easing);
}
.billing-btn.active{
  background:var(--text-strong);
  color:#fff;
  border-color:var(--text-strong);
}
.pricing-compare{
  width:100%;
  border-collapse:collapse;
  font-size:.95rem;
}
.pricing-compare th,
.pricing-compare td{
  border:1px solid var(--border-subtle);
  padding:10px 12px;
  text-align:left;
}
.pricing-compare th{
  background:var(--surface-2);
  font-weight:600;
}
.pricing-compare td{
  background:var(--surface-1);
}
.table-scroll{
  overflow-x:auto;
}
.faq-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.plan{
  padding:24px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  box-shadow:var(--shadow-soft);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.plan.popular{
  border:1.5px solid var(--accent);
  box-shadow:0 20px 40px -28px var(--accent);
  position:relative;
}
.plan.popular::before{
  content:"Most popular";
  position:absolute;
  top:-12px;
  right:24px;
  background:var(--accent);
  color:#fff;
  padding:4px 12px;
  border-radius:999px;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.04em;
}
.plan h3{margin-bottom:0;}
.plan-price{
  font-size:2.1rem;
  font-weight:700;
  color:var(--text-strong);
  display:flex;
  align-items:baseline;
  gap:8px;
}
.plan-price .amount{
  font-size:2.4rem;
  line-height:1;
}
.plan ul{
  padding-left:20px;
  margin:0;
  color:var(--text-muted);
}
.plan .billing-note{
  margin:6px 0 0;
  color:var(--text-soft);
  font-size:.9rem;
}
.plan footer{
  margin-top:auto;
  border:none;
  padding:0;
}

.comparison-table{
  width:100%;
  border-collapse:collapse;
  margin-top:28px;
  font-size:.95rem;
}
.comparison-table th,
.comparison-table td{
  padding:12px 16px;
  border:1px solid var(--border-subtle);
  text-align:left;
}
.comparison-table thead th{
  background:var(--surface-2);
  color:var(--text-strong);
}
.comparison-table tbody tr:nth-child(even){
  background:color-mix(in srgb, var(--surface-1) 88%, transparent);
}

.form{
  display:grid;
  gap:14px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.form input,
.form textarea,
.lead-form input,
.lead-form textarea{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  color:var(--text-body);
  font-size:1rem;
  transition:border-color .14s var(--easing), box-shadow .14s var(--easing);
}
.form textarea,
.lead-form textarea{
  min-height:120px;
  grid-column:1 / -1;
  resize:vertical;
}
.form select{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  color:var(--text-body);
  font-size:1rem;
  appearance:none;
}
.form select:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form input:focus,
.form textarea:focus,
.lead-form input:focus,
.lead-form textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.form button,
.lead-form button{
  grid-column:1 / -1;
  justify-self:start;
}

.auth-shell{
  max-width:520px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.auth-card{
  background:var(--surface-1);
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.auth-header{
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:center;
}
.auth-header h1{
  margin-bottom:4px;
}
.auth-subhead{
  color:var(--text-muted);
  margin:0;
  font-size:1rem;
}
.stack{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.alert{
  padding:14px 16px;
  border-radius:var(--radius-sm);
  border:1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:color-mix(in srgb, var(--accent) 12%, transparent);
  color:var(--accent-strong);
  font-weight:600;
}
.alert.ok{
  border-color:color-mix(in srgb, var(--success) 35%, transparent);
  background:color-mix(in srgb, var(--success) 14%, transparent);
  color:color-mix(in srgb, var(--success) 80%, #ffffff 20%);
}
.alert.err{
  border-color:color-mix(in srgb, #ef4444 40%, transparent);
  background:color-mix(in srgb, #ef4444 12%, transparent);
  color:#b91c1c;
}

.tenant-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:12px 0;
  border-bottom:1px solid var(--border-subtle);
}
.tenant-item:last-child{
  border-bottom:none;
}

.pill-list{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
.pill{
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 88%, transparent),
    color-mix(in srgb, var(--success-soft) 72%, transparent)
  );
  color:var(--accent-strong);
  font-size:.86rem;
  font-weight:600;
  border:1px solid color-mix(in srgb, var(--accent) 14%, var(--green-500) 16%, transparent);
}

.footer{
  background:color-mix(in srgb, var(--surface-1) 94%, transparent);
  border-top:1px solid var(--border-subtle);
  padding:36px 24px;
  margin-top:72px;
}
.footer .grid{
  display:grid;
  gap:24px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
}
.footer small{
  display:block;
  margin-top:20px;
  color:var(--text-soft);
}
.footer a{color:var(--text-muted);}
.footer a:hover{color:var(--accent);}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(135deg,
    color-mix(in srgb, var(--accent-soft) 92%, transparent),
    color-mix(in srgb, var(--success-soft) 86%, transparent)
  );
  color:var(--accent-strong);
  border:1px solid color-mix(in srgb, var(--accent) 20%, transparent);
}

.tagline{
  font-size:1.04rem;
  color:var(--text-muted);
  margin-bottom:24px;
}

.pipeline-shell{
  margin-top:22px;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  background:color-mix(in srgb, var(--surface-1) 92%, transparent);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
}
.pipeline-head{
  padding:18px 20px 0;
}
.pipeline-head h3{margin:0 0 8px 0;}
.pipeline-head .muted{color:rgba(226,232,240,0.78);}
.pipeline-diagram{
  padding:12px 14px 8px;
}
#studioPipelineSvg{
  width:100%;
  height:auto;
  display:block;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
}
#studioPipelineSvg .p-link{stroke:rgba(167,139,250,0.20);stroke-width:4;fill:none}
#studioPipelineSvg .p-link--dash{stroke:rgba(167,139,250,0.45);stroke-dasharray:10 12;animation:rbDash 3.6s linear infinite}
#studioPipelineSvg .p-run{stroke:rgba(167,139,250,0.30);stroke-width:3;fill:none;stroke-dasharray:2 10;animation:rbDash 4.8s linear infinite}
#studioPipelineSvg .p-chip{fill:rgba(15,23,42,0.78);stroke:rgba(167,139,250,0.26);stroke-width:2}
#studioPipelineSvg .p-label{font-family:var(--font-display);font-size:22px;font-weight:750;fill:#f8faff;letter-spacing:-0.01em}
#studioPipelineSvg .p-meta{font-family:var(--font-body);font-size:14px;font-weight:650;fill:rgba(226,232,240,0.78)}
@keyframes rbDash{to{stroke-dashoffset:-220}}

/* Step highlight (driven by JS setting data-active-step on the SVG). */
#studioPipelineSvg[data-active-step="1"] .p-node[data-step="1"] .p-chip,
#studioPipelineSvg[data-active-step="2"] .p-node[data-step="2"] .p-chip,
#studioPipelineSvg[data-active-step="3"] .p-node[data-step="3"] .p-chip,
#studioPipelineSvg[data-active-step="4"] .p-node[data-step="4"] .p-chip,
#studioPipelineSvg[data-active-step="5"] .p-node[data-step="5"] .p-chip{
  stroke:rgba(167,139,250,0.92);
}
#studioPipelineSvg[data-active-step="2"] .p-link[data-step="1"],
#studioPipelineSvg[data-active-step="2"] .p-link--dash[data-step="1"],
#studioPipelineSvg[data-active-step="3"] .p-link[data-step="1"],
#studioPipelineSvg[data-active-step="3"] .p-link--dash[data-step="1"],
#studioPipelineSvg[data-active-step="3"] .p-link[data-step="2"],
#studioPipelineSvg[data-active-step="3"] .p-link--dash[data-step="2"],
#studioPipelineSvg[data-active-step="4"] .p-link[data-step="1"],
#studioPipelineSvg[data-active-step="4"] .p-link--dash[data-step="1"],
#studioPipelineSvg[data-active-step="4"] .p-link[data-step="2"],
#studioPipelineSvg[data-active-step="4"] .p-link--dash[data-step="2"],
#studioPipelineSvg[data-active-step="4"] .p-link[data-step="3"],
#studioPipelineSvg[data-active-step="4"] .p-link--dash[data-step="3"],
#studioPipelineSvg[data-active-step="5"] .p-link[data-step="1"],
#studioPipelineSvg[data-active-step="5"] .p-link--dash[data-step="1"],
#studioPipelineSvg[data-active-step="5"] .p-link[data-step="2"],
#studioPipelineSvg[data-active-step="5"] .p-link--dash[data-step="2"],
#studioPipelineSvg[data-active-step="5"] .p-link[data-step="3"],
#studioPipelineSvg[data-active-step="5"] .p-link--dash[data-step="3"],
#studioPipelineSvg[data-active-step="5"] .p-link[data-step="4"],
#studioPipelineSvg[data-active-step="5"] .p-link--dash[data-step="4"]{
  stroke:rgba(167,139,250,0.72);
}

.pipeline-controls{
  display:flex;
  gap:10px;
  padding:14px 16px 18px;
  border-top:1px solid color-mix(in srgb, var(--border-subtle) 55%, transparent);
  overflow-x:auto;
  scrollbar-width:none;
}
.pipeline-controls::-webkit-scrollbar{display:none;}
.pipeline-step{
  appearance:none;
  border:1px solid color-mix(in srgb, var(--border-subtle) 75%, transparent);
  background:rgba(2,6,23,0.18);
  color:rgba(226,232,240,0.78);
  font-weight:800;
  font-size:.92rem;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  white-space:nowrap;
}
.pipeline-step:hover{border-color:rgba(167,139,250,0.55);color:#f8faff}
.pipeline-step.is-active{
  border-color:rgba(167,139,250,0.72);
  background:rgba(167,139,250,0.14);
  color:#f8faff;
}

/* Keep header 1-row on desktop by reducing action surface on mid widths. */
@media (min-width:1281px) and (max-width:1440px){
  .nav-actions .btn-text{
    display:none;
  }
  .nav-actions .btn-secondary{
    display:none;
  }
}

.cta-panel{
  margin-top:30px;
  padding:26px;
  border-radius:var(--radius-lg);
  background:var(--accent-soft);
  border:1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.cta-panel p{
  margin:0;
  color:var(--text-body);
  font-weight:600;
}

.media{
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  overflow:hidden;
  background:linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent );
  min-height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-soft);
  font-weight:600;
}

.faq{
  display:grid;
  gap:18px;
}
.faq-item{
  border-radius:var(--radius-md);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  padding:18px 22px;
  box-shadow:var(--shadow-soft);
}
.faq-item h3{
  margin-bottom:10px;
  font-size:1.05rem;
}
.faq-item p{
  margin:0;
  color:var(--text-muted);
}

.agent-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:20px;
}
.agent-card{
  background:var(--surface-1);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-soft);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.agent-photo{
  display:block;
  background:var(--surface-2);
}
.agent-photo img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
}
.agent-meta{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.agent-meta h3{
  margin:0;
  font-size:1.05rem;
  letter-spacing:-0.01em;
  color:var(--text-strong);
}
.agent-meta p{
  margin:0;
  color:var(--text-muted);
  font-size:0.95rem;
}
.agent-meta .pill{
  margin-top:2px;
  align-self:flex-start;
  background:var(--surface-2);
  border:1px solid var(--border-subtle);
  color:var(--text-soft);
}

.table-scroll{
  overflow:auto;
  border-radius:var(--radius-md);
  border:1px solid var(--border-subtle);
}

.lead-form{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  margin-top:18px;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:6px 12px;
  font-size:.82rem;
  font-weight:600;
  background:var(--surface-2);
  color:var(--text-soft);
  border:1px solid var(--border-subtle);
}

.list-check{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:10px;
}
.list-check li{
  position:relative;
  padding-left:28px;
  color:var(--text-muted);
}
.list-check li::before{
  content:">";
  position:absolute;
  left:0;
  top:2px;
  color:var(--green-500);
  font-weight:700;
}

.alert{
  padding:14px 18px;
  border-radius:var(--radius-sm);
  background:color-mix(in srgb, var(--warning) 12%, transparent);
  color:var(--warning);
  font-weight:600;
  border:1px solid color-mix(in srgb, var(--warning) 25%, transparent);
}

.table-footnote{
  font-size:.88rem;
  color:var(--text-soft);
  margin-top:14px;
}

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

/* Stack the homepage hero earlier for readability on narrower screens. */
@media (max-width:1180px){
  .hero.hero--home{
    grid-template-columns:1fr;
    align-items:start;
  }
  .hero.hero--product{
    grid-template-columns:1fr;
    align-items:start;
  }
}

/* Collapse nav earlier to avoid multi-row headers on typical laptop widths. */
@media (max-width:1280px){
  .header-inner{
    flex-wrap:wrap;
    row-gap:12px;
  }
  .nav-toggle{
    display:inline-flex;
  }
  .nav-links,
  .nav-actions{
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    display:none;
    padding-bottom:12px;
  }
  .nav-links{
    padding:10px 12px;
    border-radius:14px;
    border:1px solid var(--border-subtle);
    background:color-mix(in srgb, var(--surface-1) 92%, transparent);
    box-shadow:var(--shadow-soft);
    overflow:visible;
  }
  .nav-links a{
    padding:12px 10px;
    border-radius:12px;
    width:100%;
  }
  .nav-links a + a{
    border-top:1px solid color-mix(in srgb, var(--border-subtle) 65%, transparent);
  }
  .nav-links a.active{
    background:transparent;
    border:none;
    color:var(--accent);
  }
  header[data-open="true"] .nav-links,
  header[data-open="true"] .nav-actions{
    display:flex;
  }
  .nav-links a,
  .nav-actions .btn,
  .nav-actions .cta{
    width:100%;
  }
  .nav-actions .btn-text{
    width:100%;
    padding:12px 10px;
    border-radius:12px;
  }
  .cta-panel{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:880px){
  .hero{
    padding:24px 18px;
  }
}

@media (max-width:640px){
  .container{
    padding:0 16px;
  }

  .header-inner{
    padding:12px 16px;
  }

  .page{
    padding-top:28px;
    padding-bottom:56px;
  }

  section{
    padding:36px 0;
  }

  .hero{
    padding:22px 16px;
    gap:20px;
    margin-left:-16px;
    margin-right:-16px;
    border-left:0;
    border-right:0;
    border-radius:0;
  }

  .pipeline-head{
    padding:16px 16px 0;
  }
  .pipeline-diagram{
    padding:10px 10px 6px;
  }
  .pipeline-controls{
    padding:12px 12px 14px;
  }

  .hero-cta a{
    width:100%;
  }

  .hero-card{
    padding:18px;
  }

  .media-frame,
  .diagram-card{
    padding:12px;
  }

  .card,
  .panel,
  .metric,
  .auth-card,
  .step{
    padding:18px;
  }

  .zoom-overlay{
    padding:12px;
    align-items:flex-end;
  }
  .zoom-panel{
    width:100%;
    max-height:92vh;
    border-radius:16px;
  }
  .zoom-panel header{
    flex-wrap:wrap;
  }
  .zoom-panel .zoom-body{
    padding:12px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* Auth & signup buttons */
.btn-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
}
.btn-auth{
  display:inline-flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-subtle);
  background:var(--surface-1);
  color:var(--text-body);
  font-weight:600;
  flex:1 1 180px;
  text-decoration:none;
}
.btn-auth .icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.btn-auth.google{background:#fff;color:#202124;border-color:#e0e0e0;}
.btn-auth.microsoft{background:#f3f3f3;color:#1f1f1f;border-color:#d3d3d3;}
.btn-auth.facebook{background:#1877f2;color:#fff;border-color:#0f5ccc;}
.btn-auth[disabled],
.btn-auth[aria-disabled="true"],
.btn-auth.disabled{opacity:.45;pointer-events:none;cursor:not-allowed;}

.req{color:#f87171;margin-left:3px;}

.panel{
  background:var(--surface-1);
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Packs UX: lightweight "On this page" grid. */
.toc-panel{
  margin-top:18px;
}
.toc-grid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}
.toc-link{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid color-mix(in srgb, var(--border-subtle) 80%, transparent);
  background:color-mix(in srgb, var(--surface-1) 70%, transparent);
  color:var(--text-muted);
  font-weight:600;
  text-decoration:none;
}
.toc-link:hover,
.toc-link:focus-visible{
  color:var(--text-strong);
  border-color:color-mix(in srgb, var(--accent) 45%, var(--border-strong));
  text-decoration:none;
}
@media (max-width:640px){
  .toc-grid{grid-template-columns:1fr;}
}

.wizard{
  max-width:860px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.step{
  background:var(--surface-1);
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  box-shadow:var(--shadow-soft);
  padding:26px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.step h2{
  margin:0 0 6px 0;
  font-size:1.35rem;
}
.row{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}
.row label{
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1 1 240px;
  color:var(--text-muted);
  font-weight:600;
}
.row input,
.row select,
.row textarea{
  background:var(--surface-1);
  border:1px solid var(--border-subtle);
  border-radius:var(--radius-sm);
  color:var(--text-body);
  padding:12px 14px;
  font-size:1rem;
  transition:border-color .14s var(--easing), box-shadow .14s var(--easing);
}
.row input:focus,
.row select:focus,
.row textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent);
}
.actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.muted-note{
  color:var(--text-soft);
  font-size:.92rem;
}
