/* Unified theme additions - appended utilities and components */
:root {
  /* Brand colors */
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --accent-500: #f97316;

  /* Neutrals & text */
  --text: #0f172a;       /* slate-900 */
  --muted: #475569;      /* slate-600 */

  /* Radii */
  --radius-card: 16px;
  --radius-button: 8px;

  /* Shadows */
  --shadow-card: 0 8px 24px rgba(0,0,0,0.08);

  /* Spacing scale */
  --space-xl: 64px;   /* desktop */
  --space-lg: 48px;   /* tablet  */
  --space-md: 32px;   /* mobile  */

  /* Layout */
  --container-max: 1180px;
  --container-pad: 12px;
}

/* Base utilities */
.section { padding: 72px 0; }
.center { text-align: center; }

/* Gradient background matching login */
.bg-brand {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
  color: #fff;
}

/* Card style matching login */
.card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: var(--radius-button);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn--brand {
  background: var(--brand-500);
  color: #ffffff;
  border: none;
  transition: background .2s ease;
}
.btn--brand:hover { background: var(--brand-600); }
.btn--outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
}

/* Inputs */
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  min-height: 44px;
}
.input:focus {
  border-color: var(--brand-500);
  outline: 2px solid #1d4ed8;
  outline-offset: 0;
}
.form-row > * + * { margin-top: 12px; }

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Hero */
.hero {
  display: grid;
  place-items: center;
  min-height: auto;
  color: #fff;
}
/* Default hero spacing can be larger elsewhere; contact uses hero--subtle override */
.hero .card { margin: 0 auto; }

/* Hero paddings responsive */
@media (max-width: 1024px) {
  .hero .container { padding-top: 48px !important; padding-bottom: 48px !important; }
}
@media (max-width: 640px) {
  .hero .container { padding-top: 32px !important; padding-bottom: 32px !important; }
}

/* Subtle, pale hero gradient */
.hero--subtle {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  color: #0f172a;
}
/* Compact spacing for subtle hero (contact page) */
.hero--subtle .container { padding-top: 24px; padding-bottom: 24px; }
@media (max-width: 640px) {
  .hero--subtle .container { padding-top: 16px; padding-bottom: 16px; }
}

/* Decorative blue accent blobs inside hero; do not affect layout */
.hero-header { position: relative; }
.hero-blob { position: absolute; width: 160px; height: 160px; background: radial-gradient(closest-side, rgba(37,99,235,0.18), rgba(37,99,235,0)); filter: blur(8px); pointer-events: none; }
.hero-blob--tl { top: -20px; left: -40px; }
.hero-blob--br { bottom: -20px; right: -40px; }

/* Contact page specific compact header (no solid background) */
.contact-header { position: relative; }
.contact-header .container { padding-top: 0; padding-bottom: 0; text-align: center; }
@media (min-width: 768px) {
  .contact-header .container { padding-top: 48px; padding-bottom: 48px; }
}

/* Contact section layout */
.contact-section { position: relative; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 640px) { .contact-section { padding-top: 48px; padding-bottom: 40px; } }
.contact-section .container { width: min(880px, 92%); margin: 0 auto; }
.contact-header h1 { margin: 0; font-weight: 700; }
.contact-header .lead { color: #666; margin-top: 6px; }
.contact-card { max-width: 720px; margin: 0 auto; }
@media (max-width: 640px) { .contact-card { margin-top: 0; } }

/* Accent behind title */
.title-accent { position: absolute; left: 50%; transform: translateX(-50%); top: -10px; width: 260px; height: 120px; background: radial-gradient(closest-side, rgba(37,99,235,0.12), rgba(37,99,235,0)); pointer-events: none; z-index: -1; filter: blur(6px); }

/* Accent near form bottom-right */
.page-accent { position: absolute; width: 280px; height: 180px; background: radial-gradient(closest-side, rgba(37,99,235,0.10), rgba(37,99,235,0)); pointer-events: none; z-index: -1; filter: blur(8px); }
.page-accent--tl { top: -30px; left: -40px; }
.page-accent--br { right: -40px; bottom: -40px; }
/* Utilities */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.channels { display:flex; gap:12px; flex-wrap:wrap; margin-top:8px; }
.contact-card { max-width: 880px; margin: 0 auto; }
.actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:16px; }

/* Alerts */
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; }
.alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }

/* Small badge dot for health */
.health-dot { display:inline-block; width:8px; height:8px; border-radius:9999px; background:#9ca3af; vertical-align:middle; margin-right:6px; }
.health-dot--up { background:#16a34a; }

/* Spinner */
.spinner { width:16px; height:16px; border-radius:9999px; border:2px solid rgba(255,255,255,.6); border-top-color:#fff; animation: spin .8s linear infinite; display:inline-block; vertical-align:middle; margin-right:8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact form padding responsive */
@media (max-width: 1024px) {
  #form.card { padding: 24px; }
}
@media (max-width: 640px) {
  #form.card { padding: 16px; }
}

/* Badge */
.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 0.875rem;
}

/* Alternating section backgrounds */
.alt-1 {
  background: linear-gradient(180deg, #f8fafc, #eff6ff);
}
.alt-2 {
  background: #ffffff;
}
.alt-3 {
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 100%);
}

/* Card hover lift and glow */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 0 0 1px #dbeafe inset;
}

/* Force dark, readable text inside cards */
.card { color: var(--text); }
.card * { color: inherit; }
.card .lead { color: var(--muted); }
.hero .card { color: var(--text); max-width: 880px; }
.card p, .card h1, .card h2, .card h3 { opacity: 1 !important; }
.card h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.card h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid #fce7f3;
}
.timeline__item { margin: 12px 0; position: relative; }
.timeline__dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px; height: 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 0 0 2px #fff;
}

/* Quote */
.quote {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 24px;
  font-style: italic;
}

/* Security lock cards */
.lockcard .lock { color: #475569; transition: color .2s ease; }
.lockcard:hover .lock { color: var(--brand-600); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}

/* Brand sections use white text by default, but not inside cards */
.bg-brand { color: #fff; }
.bg-brand .card { color: var(--text); background: #fff; }

/* Button aliases to match requested classnames */
.btn--primary { background: var(--brand-500); color: #fff; border: none; }
.btn--primary:hover { background: var(--brand-600); }
.btn--secondary { background: transparent; border: 1px solid #ffffff; color: #ffffff; }

/* Navbar (for header fragment compatibility) */
.navbar { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.12); padding: 14px 0; }
.navbar__links { display: flex; gap: 18px; }
@media (max-width: 860px) {
  .navbar__links { display: none; }
  .hamburger { display: inline-flex; }
}
.hamburger { display: none; }
.mobile-menu { display: none; }
.mobile-menu.open { display: block; }

/* 1) Normalize page gutters & sections */
body, main { margin: 0; }
section, .section { padding: 72px 0; margin-left: 0 !important; margin-right: 0 !important; }
header, footer { margin: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }

/* 2) True centered container with small horizontal padding */
.container { width: min(1180px, 92%); margin: 0 auto; padding-left: 12px; padding-right: 12px; }

/* 3) Ensure hero and major sections don’t add left padding */
.hero, #focus, #problem-solution, #features, #roadmap, #data-moat, #compliance {
  padding-left: 0 !important; padding-right: 0 !important;
}

/* 4) Override any earlier fixed gutters (defensive) */
.hero { margin-left: 0 !important; margin-right: 0 !important; }

/* Heading readability */
.section h1, .section h2, .section h3,
#focus h2, #problem-solution h2, #features h2, #roadmap h2, #data-moat h2, #compliance h2 {
  color: #0f172a !important;
  opacity: 1 !important;
  text-align: center;
  font-weight: 800;
  margin: 0 0 18px 0;
}
.timeline, .timeline__item { color: #0f172a !important; opacity: 1 !important; }
.quote { color: #0f172a !important; opacity: 1 !important; }

/* Navbar polish */
.navbar{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(160%) blur(8px);
  border-bottom:1px solid #e5e7eb;
}
.navbar .container{
  width:min(1180px, 92%);
  margin:0 auto;
  padding:10px 12px;
  display:flex; align-items:center; justify-content:space-between;
}
.navbar__links{ display:flex; gap:18px; align-items:center; }
.navbar__cta{ display:flex; gap:10px; align-items:center; }
.logo{ font-weight:800; color:#1f2937; text-decoration:none; }

/* Grid refinements */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:1279px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:767px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }
.section .container > .grid-3,
.section .container > .grid-2 { margin-inline:auto; }

/* Center the demos grid and control its max width */
#demosGrid{
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* Roadmap improvements */
.alt-3{ background: linear-gradient(180deg,#fff7ed,#fff); }
#roadmap h2{ color:#0f172a !important; opacity:1 !important; }
.timeline__item{ font-weight:600; }

/* ---- HARD RESET LAYOUT GUTTERS ---- */
* { box-sizing: border-box; }
html, body { width:100%; margin:0; padding:0; overflow-x:hidden; }

main, .main, .page, .content, .wrapper, .site {
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none;
}

section, .section, header, footer {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;   /* section padding is vertical only */
  padding-right: 0 !important;
}

.container {
  width: min(1180px, 92%);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px;
  padding-right: 12px;
}

/* Ensure ANY container inside hero/brand sections is truly centered */
.bg-brand > .container,
.hero > .container,
.section > .container {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Full-bleed hero/brand sections */
.hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.bg-brand {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Navbar width + centering overrides */
.navbar { position: sticky; top: 0; width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
.navbar .container {
  width: min(1180px, 92%);
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
}

/* --- Card Fixes --- */
.card {
  background:#fff !important;
  color:#0f172a !important;
  text-align:center;
  border-radius:16px;
  padding:32px;
  max-width:880px;
  margin:0 auto;  /* center horizontally */
  box-shadow:0 8px 24px rgba(0,0,0,0.08);
}
.card * {
  color:inherit !important;
  opacity:1 !important;
}

/* --- Headings inside cards --- */
.card h1, .card h2, .card h3 {
  font-weight:700;
  margin-bottom:.5rem;
}

/* --- Container fix --- */
.container {
  width:min(1100px,92%);
  margin:0 auto; /* ensure centering */
}

/* Problem/Solution layout + contrast */
#problem-solution{ background:#f8fafc; }
#problem-solution .cols{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
#problem-solution h2{ text-align:center; font-weight:800; margin:0 0 10px; color:#0f172a; }
#problem-solution .stack{ display:flex; flex-direction:column; gap:16px; }
#problem-solution .card{
  border-radius:14px; background:#fff; color:#0f172a;
  box-shadow:0 10px 24px rgba(2,6,23,.06);
  padding:18px 20px;
}
#problem-solution .card .icon{ margin-right:8px; }
#problem-solution .muted{ color:#475569; }
@media (max-width:980px){ #problem-solution .cols{ grid-template-columns:1fr; } }

/* Data Moat readability */
#data-moat{ background: radial-gradient(1200px 600px at 50% -10%, rgba(255,255,255,.08), transparent 60%), linear-gradient(135deg,#1d4ed8,#0ea5e9); }
#data-moat h2,
#data-moat .sub{ color:#ffffff !important; text-align:center; }
#data-moat h2{ font-weight:800; margin:0 0 6px; text-shadow:0 1px 2px rgba(0,0,0,.25); }
#data-moat .sub{ opacity:.95; }
#data-moat .grid-3 .card{
  background:#fff; color:#0f172a; box-shadow:0 10px 24px rgba(0,0,0,.15);
}

/* CTA strip */
.cta-band{
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  padding:48px 0;
  text-align:center;
}
.cta-band h2{ margin:0 0 14px; font-weight:800; }
.cta-band .btn--outline{ border-color:#fff; color:#fff; }
.cta-band .btn--outline:hover{ background:rgba(255,255,255,.12); }

/* Legal footer */
.site-footer{
  background:#ffffff; color:#64748b;
  padding:18px 0;
  width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  border-top:1px solid #e5e7eb;
}
.site-footer a{ color:#64748b; text-decoration:none; }
.site-footer a:hover{ color:#0f172a; }

/* Map existing footer fragment to site-footer look */
footer.bg-white.border-t.border-gray-100{
  background:#ffffff; color:#64748b;
  width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  border-top:1px solid #e5e7eb;
}
footer.bg-white.border-t.border-gray-100 a{ color:#64748b; }
footer.bg-white.border-t.border-gray-100 a:hover{ color:#0f172a; }

/* Remove stray seams near footer */
#compliance.seam::before{ display:none; }

/* Roadmap padding/line-height tweaks */
#roadmap .timeline{ padding-left:16px; padding-right:16px; line-height:1.5; background:#fffdf7; }

/* Feature/Product card title sizing */
.card h3{ font-size:1.05rem; font-weight:800; }

/* Accent utility for cards (reuses brand token) */
.card--accent-left { border-left: 2px solid var(--brand-500); }

/* Logo lockup */
.logo-lockup{ display:flex; justify-content:center; align-items:center; }
.logo-lockup img{ display:block; height:auto; opacity:1; filter:none; mix-blend-mode:normal; }
@media (max-width: 680px){ .logo-lockup{ display:none; } }

/* Navbar brand (logo) */
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}
.brand__mark{ display:block; width:28px; height:28px; }
.brand img{ display:block; }
.brand__text{
  font-weight:800; letter-spacing:.2px;
  color:#1f2937;  /* slate-800 */
  font-size:18px; line-height:1;
}

/* Tighten navbar vertical alignment if needed */
.navbar .container{
  display:flex; align-items:center; justify-content:space-between;
}

/* Mobile: show icon only to save space */
@media (max-width:640px){
  .brand__text{ display:none; }
  .brand__mark{ width:26px; height:26px; }
}

/* Ensure symbol-only on xs; show wordmark lockup from 640px+ (match Tailwind sm) */
.brand__lockup{ display:none; height:32px; width:auto; }
@media (min-width: 640px){
  .brand__mark{ display:none !important; }
  .brand__lockup{ display:block !important; height:43px !important; }
}
@media (min-width: 768px){ .brand__lockup{ height:48px !important; } }
@media (min-width: 1024px){ .brand__lockup{ height:53px !important; } }
@media (min-width: 1280px){ .brand__lockup{ height:58px !important; } }

/* Optional: transparent-over-hero variant (enabled to ensure contrast on blue hero) */
.navbar--on-hero .brand__mark{ content:url("/images/slitwave-mark-white.svg"); }
.navbar--on-hero .brand__text{ color:#ffffff; }
/* Inline SVG variant: force white strokes when on-hero */
.navbar--on-hero svg.brand__mark g{ stroke:#ffffff !important; }

/* Mobile: show full lockup (waves + text) only to avoid duplication issues */
@media (max-width: 639.98px){
  #siteNav .brand { position: relative; }
  #siteNav .brand__lockup{ display:block !important; height:28px !important; width:auto !important; }
  #siteNav .brand__mark{ display:none !important; }
  #siteNav .brand{ min-width:28px; }
}

/* ---------- NAVBAR BRAND ---------- */
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand__mark{ display:block; width:28px; height:28px; }
.brand__text{
  font-weight:800; font-size:18px; line-height:1;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
@supports not (-webkit-background-clip: text){ .brand__text{ color:#2563eb; } }

.brand__tagline{
  margin-left:12px;
  font-size:12.5px; font-weight:600;
  color:#1f3a8a; opacity:.95;
  white-space:nowrap;
}
@media (max-width:1024px){ .brand__tagline{ display:none; } }
@media (max-width:640px){
  .brand__text{ display:none; }
  .brand__mark{ width:26px; height:26px; }
}

/* Ensure navbar row aligns cleanly */
.navbar .container{ display:flex; align-items:center; }

/* ---------- HERO CLEANUP ---------- */
.hero .logo-lockup{ display:none !important; }
.hero .card h1{ margin-top:8px; }
.hero .card{ padding-top:28px; }

/* Brand: layout */
.brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none;
}

/* Mark + word */
.brand__mark{ display:block; width:28px; height:28px; }
.brand__text{
  font-weight:800; font-size:18px; line-height:1;
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  -webkit-background-clip:text; background-clip:text;
  color: transparent;
}
@supports not (-webkit-background-clip: text){
  .brand__text{ color:#2563eb; }
}

/* NEW: Tagline (desktop only) */
.brand__tagline{
  margin-left:12px;
  font-size:12px; font-weight:600;
  color:#1f3a8a;
  white-space:nowrap; opacity:.9;
}
@media (max-width: 1024px){ .brand__tagline{ display:none; } }
@media (max-width: 640px){
  .brand__text{ display:none; }
  .brand__mark{ width:26px; height:26px; }
}

/* Ensure nav row alignment if needed */
.navbar .container{ display:flex; align-items:center; justify-content:space-between; }
.navbar .menu{ gap:18px; }

/* Hide hero lockup to keep H1 primary */
.hero .logo-lockup{ display:none; }

/* Brand wordmark in navbar: gradient blue with fallback */
.brand__text{
  font-weight:800;
  font-size:18px;
  line-height:1;
  color:#1d4ed8; /* fallback */
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  -webkit-background-clip:text;
          background-clip:text;
  color: transparent;
}
.brand:hover .brand__text{ opacity:.92; }

/* Responsive hero lockup sizing */
.logo-lockup img{
  width: clamp(300px, 38vw, 440px);
  height: auto;
}
.hero .logo-lockup{ margin-bottom: 8px; }

/* Hero solid brand gradient and centering */
.hero{
  background: linear-gradient(135deg,#2563eb,#1d4ed8);
  min-height: 68vh;
  display:flex; align-items:center; justify-content:center;
  padding:64px 0;
}
.hero::before{ display:none !important; }

/* ---- PAGE BACKGROUND: lock to white ---- */
html, body {
  background: #ffffff !important;
}

/* ---- Section backgrounds: paint full width white by default ---- */
.section {
  background: #ffffff;
}

/* Keep intentional alternates/blue where desired */
.hero {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important; /* brand blue */
}
.alt-1 { background: linear-gradient(180deg,#f8fafc 0%, #eef2ff 100%) !important; }
.alt-2 { background: #ffffff !important; }
.alt-3 { background: linear-gradient(180deg,#fff7ed 0%, #ffffff 100%) !important; }

/* Data Moat is intentionally blue */
#data-moat { background: linear-gradient(135deg,#1d4ed8,#0ea5e9) !important; }

/* Make sure full-width wrappers don't reveal body bg at sides */
.hero, .section, .cta-band, .site-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Divider must match next section’s background (usually white) */
.divider path { fill: #ffffff !important; }

/* Vertical rhythm — compact but breathable */
:root{
  --space-xl: 64px;   /* desktop */
  --space-lg: 48px;   /* tablet  */
  --space-md: 32px;   /* mobile  */
}

/* default section spacing */
.section{ padding: var(--space-xl) 0; }
.section--tight{ padding: calc(var(--space-xl) * .6) 0; }

/* responsive spacing */
@media (max-width: 980px){
  .section{ padding: var(--space-lg) 0; }
  .section--tight{ padding: calc(var(--space-lg) * .6) 0; }
}
@media (max-width: 640px){
  .section{ padding: var(--space-md) 0; }
  .section--tight{ padding: calc(var(--space-md) * .7) 0; }
}

/* hero shouldn’t add huge gap below */
.hero{ min-height: 68vh; padding: var(--space-lg) 0; }
.hero .card{ margin-bottom: 0; }

/* cards/grids tighter stack spacing */
.section .card{ margin: 0; }
.section .container > .grid-3,
.section .container > .grid-2{ row-gap: 22px; }

/* remove any stray bottom paddings on last section */
.section:last-of-type{ padding-bottom: var(--space-lg); }

/* subtle top fade for sections stacked on white */
.section.seam{
  position: relative;
}
.section.seam::before{
  content:"";
  position:absolute; left:0; right:0; top:-16px; height:16px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(2,6,23,0.08), rgba(2,6,23,0));
  filter: blur(2px);
}

/* use a light gradient background for alt sections */
.alt-1{ background: linear-gradient(180deg,#f8fafc 0%, #eef2ff 100%); }
.alt-2{ background: linear-gradient(180deg,#ffffff 0%, #f1f5f9 100%); }
.alt-3{ background: linear-gradient(180deg,#fff7ed 0%, #ffffff 100%); }

/* Divider */
.divider{ display:block; width:100%; height:48px; }
.divider svg{ display:block; width:100%; height:100%; }
.divider-wrap{ width:100vw; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw); }

/* Smooth scroll adjustments */
html{ scroll-behavior: auto; }
.scroll-margin{ scroll-margin-top: calc( var(--navbar-h, 64px) + 8px ); }
.navbar{ --navbar-h: 64px; }

/* Solid navbar on small screens to guarantee logo contrast */
@media (max-width: 640px){
  #siteNav{ background-color:#ffffff !important; }
}

/* --- GLOBAL CENTER OVERRIDES --- */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

section, .section, .hero, .bg-brand {
  width: 100%;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container {
  width: min(1180px, 92%);
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px;
  padding-right: 16px;
  display: block;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero .card {
  margin: 0 auto;
}

/* --- Subpage compact hero & Solutions grid --- */
.hero--subpage { padding: 56px 0 16px; }
.solutions-grid {
  max-width: 1100px;
  margin: -36px auto 72px;
  padding: 0 16px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Solutions minimal header --- */
.solutions-min-header{
  padding: 28px 0 10px; /* ~24–32 top, ~8–12 bottom */
}
.solutions-min-header h1{
  text-align:center; font-weight:800; margin:0; color:#ffffff;
}
.solutions-min-header .sub{
  text-align:center; margin-top:6px; font-size:.95rem; color:rgba(255,255,255,.9);
}

/* Tight solutions grid placement */
.solutions-grid{ max-width:1100px; margin: -8px auto 72px; padding:0 16px; display:grid; gap:24px; grid-template-columns:1fr; }
@media (min-width:768px){ .solutions-grid{ grid-template-columns: repeat(2, 1fr); } }

/* Ensure hero on Solutions is compact and does not add large blue area */
.hero.solutions-min-header{ min-height: unset; }

/* ----- Solutions Page Scoped Styles ----- */
.solutions-page { margin: 24px 0 0; }
.solutions-page .solutions-header { padding: 24px 0 12px; }
.solutions-page .solutions-header h1 {
  text-align: center;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
}
.solutions-page .solutions-header .sub {
  text-align: center;
  margin-top: 6px;
  font-size: .95rem;
  color: #475569;
}

.solutions-page .solutions-grid {
  max-width: 1100px;
  margin: 10px auto 72px;
  padding: 0 16px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .solutions-page .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

.solutions-page .solutions-card {
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0,0,0,0.06);
  border-left: 2px solid var(--brand-500);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 900px) {
  .solutions-page .solutions-card { padding: 32px; }
}
.solutions-page .solutions-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 0 0 1px #dbeafe inset;
}
.solutions-page .solutions-card h3 {
  color: var(--brand-600);
  font-weight: 800;
  margin: 0 0 6px 0;
}
.solutions-page .solutions-card p { color: #111111; }
.solutions-page .solutions-card .muted { color: #334155; }
.solutions-page .solutions-card ul { margin: 12px 0 0 18px; padding: 0; }
.solutions-page .solutions-card li { margin: 6px 0; }

/* ----- Home Demo Section ----- */
.home-demo { background: #ffffff; }
.home-demo .container { max-width: 1100px; }
.home-demo__header h2 { font-weight: 800; margin: 0 0 6px 0; color: #0f172a; }
.home-demo__header .muted { color: #475569; margin: 0; }
.home-demo__content { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; margin-top: 18px; }
@media (min-width: 980px) { .home-demo__content { grid-template-columns: 1.3fr 1fr; } }
.home-demo__poster { position: relative; display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.home-demo__poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.home-demo__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: rgba(37,99,235,.92); color: #fff; width: 68px; height: 68px; border-radius: 9999px; display: grid; place-items: center; font-size: 28px; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.home-demo__poster:focus { outline: 4px solid #bfdbfe; outline-offset: 4px; }
.home-demo__meta h3 { margin: 0 0 6px 0; font-weight: 800; color: #0f172a; }
.home-demo__meta .muted { color: #334155; margin: 0 0 10px 0; }
.home-demo__badges { display: flex; gap: 8px; flex-wrap: wrap; }


/* ----- Features Page Scoped Styles ----- */
.features-page { margin: 24px 0 0; }
.features-page .features-header { padding: 24px 0 12px; }
.features-page .features-header h1 {
  text-align: center; font-weight: 800; margin: 0; color: #0f172a;
}
.features-page .features-header .sub {
  text-align: center; margin-top: 6px; font-size: .95rem; color: #475569;
}

.features-page .features-grid {
  max-width: 1100px; margin: 10px auto 40px; padding: 0 16px;
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .features-page .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .features-page .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.features-page .features-card {
  background: #ffffff; color: #111111; border: 1px solid rgba(0,0,0,0.06);
  border-left: 2px solid var(--brand-500);
  border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 900px) { .features-page .features-card { padding: 32px; } }
.features-page .features-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12), 0 0 0 1px #dbeafe inset; }
.features-page .features-card h3 { color: var(--brand-600); font-weight: 800; margin: 0 0 6px 0; }
.features-page .features-card p { color: #111111; }
.features-page .features-card .muted { color: #334155; }
.features-page .features-card ul { margin: 12px 0 0 18px; padding: 0; }
.features-page .features-card li { margin: 6px 0; }

.features-page .features-compliance-grid {
  max-width: 900px; margin: 0 auto; padding: 0 16px;
  display: grid; gap: 22px; grid-template-columns: 1fr; align-items: stretch;
}
@media (min-width: 768px) { .features-page .features-compliance-grid { grid-template-columns: repeat(2, 1fr); } }

.features-page .features-quote .quote { max-width: 760px; margin-left: auto; margin-right: auto; }


/* ----- Pricing Page Scoped Styles ----- */
.pricing-page { margin: 24px 0 0; }
.pricing-page .pricing-header { padding: 24px 0 12px; }
.pricing-page .pricing-header h1 {
  text-align:center; font-weight:800; margin:0; color:#0f172a;
}
.pricing-page .pricing-header .sub {
  text-align:center; margin-top:6px; font-size:.95rem; color:#475569;
}

.pricing-page .pricing-grid {
  max-width:1100px; margin: 10px auto 24px; padding: 0 16px;
  display:grid; gap:24px; grid-template-columns:1fr;
}
@media (min-width: 768px){ .pricing-page .pricing-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px){ .pricing-page .pricing-grid{ grid-template-columns: repeat(3, 1fr); } }

.pricing-page .pricing-card{
  background:#ffffff; color:#111111; border:1px solid rgba(0,0,0,0.06);
  border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,0.08);
  padding:28px; display:flex; flex-direction:column; align-items:stretch;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 900px){ .pricing-page .pricing-card{ padding:32px; } }
.pricing-page .pricing-card:hover{ transform: translateY(-2px); box-shadow:0 12px 28px rgba(0,0,0,0.12), 0 0 0 1px #dbeafe inset; }
.pricing-page .pricing-card h2{ color: var(--brand-600); font-weight:800; margin:0 0 6px 0; font-size:1.25rem; }
.pricing-page .pricing-card .features-list{ margin: 12px 0 0 18px; padding:0; }
.pricing-page .pricing-card .features-list li{ margin:6px 0; }
.pricing-page .pricing-card .plan-cta{ margin-top:auto; }

/* Featured middle plan */
.pricing-page .pricing-card--featured{ position:relative; border:2px solid var(--brand-500); }
.pricing-page .pricing-card--featured .badge{
  position:absolute; top:-12px; right:16px; background:var(--brand-500); color:#fff;
  padding:4px 10px; border-radius:9999px; font-size:12px; font-weight:700;
}

/* Add-ons + nudge */
.pricing-page .pricing-addons{ margin: 8px 0 10px; }
.pricing-page .pricing-addons .muted{ color:#475569; font-size:.95rem; }
.pricing-page .pricing-nudge{ margin: 4px 0 40px; }
.pricing-page .pricing-nudge a{ color: var(--brand-600); text-decoration: underline; }


/* ----- FAQ Page Scoped Styles ----- */
.faq-page { margin: 24px 0 0; }
.faq-page .faq-header { padding: 24px 0 12px; }
.faq-page .faq-header h1 { text-align:center; font-weight:800; margin:0; color:#0f172a; }
.faq-page .faq-header .sub { text-align:center; margin-top:6px; font-size:.95rem; color:#475569; }

.faq-page .faq-grid{
  max-width: 1000px; margin: 0 auto; padding: 0 16px;
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
@media (min-width: 1100px){ .faq-page .faq-grid{ grid-template-columns: 1fr 1fr; } }

.faq-page .faq-item { text-align:left; overflow:hidden; }
.faq-page .faq-item summary{
  list-style:none; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:16px 0; cursor:pointer; font-weight:700; color:#0f172a;
}
.faq-page .faq-item summary::-webkit-details-marker{ display:none; }
.faq-page .faq-item[open] summary svg{ transform: rotate(180deg); transition: transform .2s ease; }
.faq-page .faq-item summary svg{ transition: transform .2s ease; }
.faq-page .faq-item .faq-answer{ padding: 0 0 12px 0; color:#334155; }
.faq-page .faq-item:focus-within { outline: 2px solid #93c5fd; outline-offset: 2px; border-radius: 12px; }


/* ----- About Page Scoped Styles ----- */
.about-page { margin: 24px 0 0; }
.about-page .about-header { padding: 24px 0 12px; }
.about-page .about-header h1 { text-align:center; font-weight:800; margin:0; color:#0f172a; }
.about-page .about-header .sub { text-align:center; margin-top:6px; font-size:.95rem; color:#475569; }
.about-page .about-teamcard{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.about-page .about-teamcard .avatar{
  width:72px; height:72px; border-radius:9999px; background: linear-gradient(135deg,#2563eb,#1d4ed8);
  opacity:.9; margin-bottom:10px;
}
.about-page .about-teamcard .name{ font-weight:800; }
.about-page .about-teamcard .role{ font-weight:600; color:#334155; }

/* ----- About Page Layout & Theme (Scoped) ----- */
.about-page{
  background: linear-gradient(180deg, #F3F6FF 0%, #FFFFFF 35%, #F7FAFF 100%);
}
.about-page .section{ padding: 64px 0; }
.about-page .about-header{ padding: 24px 0 12px; }
.about-page .about-header h1{ text-align:center; font-weight:800; margin:0; color:#0f172a; }
.about-page .about-header .sub{ text-align:center; margin-top:6px; font-size:.95rem; color:#475569; }

.about-page .about-grid{
  display:grid; gap:24px; grid-template-columns: 1fr;
}
@media (min-width: 768px){ .about-page .about-grid{ grid-template-columns: 1fr 1fr; } }

.about-page .about-card{
  background:#ffffff; border-radius:16px; border:1px solid #e9eef5;
  box-shadow: 0 6px 24px rgba(2,23,64,0.06);
  padding: 28px; color:#111111;
}
.about-page .about-card h2, .about-page .about-card h3{ margin:0 0 8px 0; font-weight:800; color:#0f172a; }

/* Team card tweaks remain scoped */
.about-page .about-teamcard{ display:flex; flex-direction:column; align-items:center; text-align:center; }
.about-page .about-teamcard .avatar{ width:72px; height:72px; border-radius:9999px; background: linear-gradient(135deg,#2563eb,#1d4ed8); opacity:.9; margin-bottom:10px; }
.about-page .about-teamcard .name{ font-weight:800; }
.about-page .about-teamcard .role{ font-weight:600; color:#334155; }

/* ----- About Page Blue Hero + Brand Cards (Scoped) ----- */
.about-page .about-hero{
  background: linear-gradient(180deg, var(--brand-600), var(--brand-500));
  color:#fff; padding:48px 0; text-align:center;
}
.about-page .about-hero h1{ color:#fff; }
.about-page .about-hero .sub{ color: rgba(255,255,255,0.9); margin-top:6px; }

.about-page .about-card--brand{
  background: linear-gradient(180deg, var(--brand-600), var(--brand-500));
  color:#ffffff; border:1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 28px rgba(2,23,64,0.25);
}
.about-page .about-card--brand h2,
.about-page .about-card--brand h3{ color:#ffffff; }
.about-page .about-card--brand p{ color: rgba(255,255,255,0.92); }
.about-page .about-card--brand a{ color:#ffffff; text-decoration: underline; }
.about-page .about-card--brand a:focus{ outline:2px solid #ffffff; outline-offset:2px; }

/* ----- About Page refinements (scoped) ----- */
.about-page .about-hero{ padding: 36px 0; }

/* Hover/focus for brand (blue) cards */
.about-page .about-card--brand{ transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.about-page .about-card--brand:hover{ transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 30px rgba(2,23,64,0.32); }
.about-page .about-card--brand:focus-within{ outline: 2px solid #ffffff; outline-offset: 4px; border-radius: 18px; }

/* White cards for Team/Advisors */
.about-page .about-card:not(.about-card--brand){
  background:#ffffff; border-radius:16px; border:1px solid #e9eef5; box-shadow: 0 6px 20px rgba(2,23,64,0.08); color:#0f172a; padding:28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.about-page .about-card:not(.about-card--brand):hover{ transform: translateY(-2px); box-shadow: 0 10px 28px rgba(2,23,64,0.12); }
.about-page .about-card:not(.about-card--brand):focus-within{ outline:2px solid var(--brand-500); outline-offset:4px; border-radius:18px; }

/* Ensure card headings follow site sizes */
.about-page .about-card h2, .about-page .about-card h3{ color:inherit; }

/* Responsive grids already defined; ensure gaps are consistent */
.about-page .grid-3{ display:grid; grid-template-columns: 1fr; gap:24px; }
@media (min-width: 900px){ .about-page .grid-3{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) and (max-width: 899px){ .about-page .grid-3{ grid-template-columns: repeat(2, 1fr); } }

/* ----- Product Tour Lightbox (scoped to #product-tour) ----- */
#product-tour figure{ text-align:center; }
#product-tour figure img{ display:block; margin-left:auto; margin-right:auto; }
#product-tour .section .container > figure.card.center:first-of-type img{ display:block; margin-left:auto; margin-right:auto; }
#product-tour figure.card.center > img{ display:block !important; margin-left:auto !important; margin-right:auto !important; }
#product-tour .cards{ display:grid; gap:22px; justify-items:center; }
#product-tour .zoom-hint{ font-size:.8rem; color: var(--muted); margin-top:6px; text-align:center; }
/* Ensure standalone figures center within their container (override global .section .card margin reset) */
#product-tour .section > .container > figure.card{ margin-left:auto !important; margin-right:auto !important; }

/* Remove any special left alignment for product tour first image (center all) */
/* (removed .left overrides; all figures center by default) */

#product-tour .ptlb-overlay{ position:fixed; inset:0; background: rgba(0,0,0,0); transition: background-color .2s ease; z-index:1000; }
#product-tour .ptlb-overlay.show{ background: rgba(0,0,0,0.88); }
#product-tour .ptlb-root{ position:fixed; inset:0; display:none; z-index:1001; }
#product-tour .ptlb-root.open{ display:block; }

#product-tour .ptlb-content{ position:fixed; inset:0; display:grid; place-items:center; filter:none; opacity:1; transform: scale(.98); z-index:1002; }
#product-tour .ptlb-content.in{ transform: scale(1); transition: transform .18s ease; }

#product-tour .ptlb-media{ max-width:96vw; max-height:96vh; box-shadow: 0 12px 48px rgba(0,0,0,.5); border-radius:8px; background:#000; display:flex; align-items:center; justify-content:center; overflow:hidden; touch-action: pan-x pan-y; }
#product-tour .ptlb-media img{ display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; image-rendering:auto; transform:none; filter:none; backface-visibility:hidden; border-radius:0; }

#product-tour .ptlb-caption{ margin-top:10px; text-align:center; color:#ffffff; font-size:.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#product-tour .ptlb-close{ position:absolute; top:-10px; right:-10px; background:rgba(255,255,255,.95); border:1px solid rgba(0,0,0,.08); color:#0f172a; width:36px; height:36px; border-radius:9999px; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,.35); }
#product-tour .ptlb-close:focus{ outline:2px solid #bfdbfe; outline-offset:2px; }

#product-tour .ptlb-nav{ position:absolute; top:50%; transform: translateY(-50%); width:42px; height:42px; border-radius:9999px; background: rgba(255,255,255,.95); border:1px solid rgba(0,0,0,.08); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 6px 22px rgba(0,0,0,.35); opacity:.95; transition: opacity .2s ease; }
#product-tour .ptlb-nav:hover{ opacity:1; }
#product-tour .ptlb-prev{ left: 14px; }
#product-tour .ptlb-next{ right: 14px; }

#product-tour .ptlb-root.idle .ptlb-nav{ opacity:0; }

#product-tour .ptlb-sr { position:absolute; left:-10000px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ----- Demo Modal (global, reusable) ----- */
.dmv-root{ position:fixed; inset:0; display:none; z-index:1100; }
.dmv-root.open{ display:block; }
.dmv-overlay{ position:fixed; inset:0; background: rgba(2,6,23,0.72); backdrop-filter: blur(2px); }
.dmv-dialog{ position:fixed; inset:auto; left:50%; top:50%; transform: translate(-50%, -50%); background:#ffffff; width:min(1100px, 92vw); max-height: 90vh; border-radius:16px; box-shadow:0 16px 64px rgba(0,0,0,0.35); display:flex; flex-direction:column; overflow:hidden; }
.dmv-header{ display:flex; align-items:flex-start; gap:12px; padding:16px 16px 0; }
.dmv-title{ margin:0; font-size:1.25rem; font-weight:800; color:#0f172a; }
.dmv-meta{ margin-left:auto; color:#475569; font-weight:600; font-size:.95rem; }
.dmv-close{ background:#ffffff; color:#0f172a; border:1px solid #e5e7eb; border-radius:9999px; width:34px; height:34px; cursor:pointer; }
.dmv-close:focus{ outline:2px solid #93c5fd; outline-offset:2px; }
.dmv-body{ display:grid; grid-template-columns: 1fr; gap:12px; padding:12px 16px 16px; }
@media (min-width: 980px){ .dmv-body{ grid-template-columns: 320px 1fr; } }
.dmv-info{ display:flex; flex-direction:column; gap:10px; }
.dmv-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.dmv-tag{ background:#eef2ff; color:#1e40af; border:1px solid #c7d2fe; padding:4px 8px; border-radius:9999px; font-weight:600; font-size:.85rem; }
.dmv-media{ width: 100%; }
.dmv-media-inner{ position:relative; width:100%; aspect-ratio: 16 / 9; background:#000; border-radius:12px; overflow:hidden; }
.dmv-video, .dmv-embed{ position:absolute; inset:0; width:100%; height:100%; display:block; border:0; }
.dmv-footer{ display:flex; justify-content:flex-end; gap:10px; padding: 0 16px 16px; }
.dmv-consent{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#ffffff; background:linear-gradient(180deg, rgba(2,6,23,0.6), rgba(2,6,23,0.6)); }

