/* ── Font: Plus Jakarta Sans (self-hosted) ── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
                 U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
                 U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
                 U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

/* ── Design Tokens ── */
:root {
  /* Backgrounds — two alternating surface levels */
  --bg-base:     #07070f;   /* deepest — hero, solution, integrations, case studies */
  --bg-raised:   #0d0c1c;   /* lifted — problem, diff, founders */
  --bg-card:     #12112a;   /* card surfaces */
  --bg-tint:     #100f22;   /* testimonial, trust strip */

  /* Borders */
  --border:      rgba(255,255,255,0.07);
  --border-med:  rgba(255,255,255,0.12);

  /* Accent */
  --accent:      #0b995d;
  --accent-2:    #0db870;
  --accent-dark: #087a49;
  --accent-rgb:  11, 153, 93;
  --accent-glow: rgba(var(--accent-rgb), 0.22);

  /* Text */
  --text:        #eeedf8;
  --text-muted:  #9390b0;
  --text-dim:    #5e5a80;

  /* Misc */
  --radius:      14px;
  --radius-sm:   9px;
  --max-w:       1160px;
  --nav-h:       66px;
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.18s, transform 0.15s, box-shadow 0.18s;
  white-space: nowrap;
  border: none;
  letter-spacing: -0.1px;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(var(--accent-rgb),0.38);
}
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: 10px; }

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7,7,15,0.82);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 36px;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin-right: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s;
  letter-spacing: -0.1px;
}
.nav-links a:hover { color: var(--text); }

/* ── Product mega-menu dropdown ── */
.nav-has-dropdown { position: relative; list-style: none; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: color 0.18s;
  letter-spacing: -0.1px;
  font-family: var(--font);
  vertical-align: baseline;
}
.nav-dropdown-trigger:hover { color: var(--text); }
.nav-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  background: #0d0c1c;
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 28px 28px 24px;
  min-width: 720px;
  z-index: 200;
}
.nav-dropdown.is-open { display: block; }

.nav-dropdown-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
}

.nav-dropdown-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 4px 0;
}

.nav-dropdown-heading {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px 10px;
}

.nav-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 10px 11px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  color: inherit;
}
.nav-dropdown-item:hover { background: rgba(255,255,255,0.05); }

.nav-dropdown-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  letter-spacing: -0.1px;
}
.nav-dropdown-item-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile full-screen menu ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-mobile.is-open { display: block; }

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  padding: 8px 28px 40px;
}

.nav-mobile-product {
  border-bottom: 1px solid var(--border);
}
.nav-mobile-product-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  letter-spacing: -0.3px;
}
.nav-mobile-product-trigger .nav-chevron { transition: transform 0.22s ease; flex-shrink: 0; }
.nav-mobile-product-trigger.is-open .nav-chevron { transform: rotate(180deg); }

.nav-mobile-product-body {
  display: none;
  padding-bottom: 20px;
}
.nav-mobile-product-body.is-open { display: block; }

.nav-mobile-integrations-heading { margin-top: 20px; }

.nav-mobile-link {
  display: block;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-mobile-link:hover { color: var(--text-muted); }

.nav-mobile-cta {
  padding-top: 32px;
}
.nav-mobile-cta .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  display: flex;
}

/* ══════════════════════════════════════════
   HERO  (bg-base + purple radial glow)
══════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 0;
  text-align: center;
  background: var(--bg-base);
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(var(--accent-rgb),0.22) 0%,
    rgba(var(--accent-rgb),0.06) 45%,
    transparent 70%);
  pointer-events: none;
}
/* bottom fade into next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-raised));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: nowrap;
}
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-headline {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  max-width: 820px;
  margin: 0 auto 26px;
  padding-bottom: 0.12em;
  background: linear-gradient(160deg, #fff 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.75;
  font-weight: 400;
}

.hero-social-proof {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.hero-demo {
  margin-top: 60px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}
.hero-demo-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════
   SOCIAL PROOF — logo strip
══════════════════════════════════════════ */
.section-logos {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.logos-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.logos-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.customer-logo {
  height: 28px;
  width: auto;
  opacity: 0.55;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
}
.customer-logo:hover { opacity: 0.85; }

/* ══════════════════════════════════════════
   SECTION SHELL — alternating backgrounds
══════════════════════════════════════════ */
.section { padding: 100px 0; }

/* odd sections — raised surface */
.section-diff,
.section-founders {
  background: var(--bg-raised);
}

/* even sections — base */
.section-solution,
.section-integrations,
.section-customers {
  background: var(--bg-base);
}

/* testimonial — tinted strip */
.section-testimonial {
  background: var(--bg-tint);
}

/* trust/cta — deep gradient */
.section-trust {
  background: linear-gradient(170deg, var(--bg-tint) 0%, var(--bg-base) 100%);
}

/* shared dividers */
.section { border-top: 1px solid var(--border); }

/* ── Section typography ── */
.section-label {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(var(--accent-rgb),0.1);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  padding: 4px 12px;
  border-radius: 20px;
}
.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 600px;
}
.section-subheading {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 600px;
  line-height: 1.5;
}
.section-body {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.78;
  font-weight: 400;
}

/* ══════════════════════════════════════════
   LIGHT THEME — reusable, applied to alternating sections
══════════════════════════════════════════ */
.section-light {
  background: #f7f8fc !important;
  --text:        #16142e;
  --text-muted:  #4a4770;
  --text-dim:    #7a78a0;
  --bg-card:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-med:  rgba(0,0,0,0.14);
  border-top: 1px solid rgba(0,0,0,0.07) !important;
}
.section-light .section-label {
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.10);
  border-color: rgba(var(--accent-rgb),0.25);
}
.section-light .section-heading { color: var(--text); }
.section-light .section-subheading { color: var(--text-muted); }
.section-light .section-body { color: var(--text-muted); }
.section-light .case-title { color: var(--text); }
.section-light .case-details { color: var(--text-dim); }
.section-light .case-outcomes li { color: var(--text-muted); }
.section-light .case-logo {
  height: 22px;
  width: auto;
  margin-bottom: 22px;
  filter: invert(1);
  opacity: 0.7;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem-right {
  display: flex;
  align-items: center;
}
.problem-left .section-heading,
.problem-left .section-subheading,
.problem-left .section-body {
  max-width: none;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0 0;
}
.metric-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.metric-card:hover {
  border-color: rgba(var(--accent-rgb),0.35);
  box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.10);
  transform: translateY(-1px);
}
.metric-number {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.metric-unit {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-left: 4px;
}
.metric-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}
.stat-block {
  padding: 28px 32px;
  background: rgba(var(--accent-rgb),0.06);
  border: 1px solid rgba(var(--accent-rgb),0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  width: 100%;
}
.stat-block p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}.stat-block cite {
  font-size: 12px;
  color: var(--text-dim);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   SOLUTION — scroll-spy feature layout
══════════════════════════════════════════ */
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  margin-top: 64px;
}

/* ── Left: feature list ── */
.features-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

.feature-item {
  border-left: 2px solid var(--border);
  padding: 0 0 0 24px;
  transition: border-color 0.3s;
}

.feature-item + .feature-item {
  margin-top: 8px;
}

.feature-item.is-active {
  border-left-color: var(--accent);
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 28px 0;
  background: none;
  border: none;
  cursor: default;
  text-align: left;
  font-family: var(--font);
  color: var(--text);
}

.feature-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb),0.10);
  border: 1px solid rgba(var(--accent-rgb),0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.feature-item.is-active .feature-number {
  background: rgba(var(--accent-rgb),0.18);
  border-color: rgba(var(--accent-rgb),0.5);
  color: var(--accent-2);
}

.feature-name {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-muted);
  transition: color 0.3s;
  line-height: 1.3;
}

.feature-item.is-active .feature-name {
  color: var(--text);
}

.feature-chevron {
  display: none;
  flex-shrink: 0;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}

.feature-body {
  padding-bottom: 28px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
}

.feature-mobile-img {
  display: none;
}


.feature-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  display: none;
}

.feature-img.is-active {
  display: block;
  animation: featureFadeIn 0.38s ease both;
}

@keyframes featureFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   FEATURE DASHBOARD PANELS
   Light-themed UI mockups replacing screenshots
══════════════════════════════════════════ */

/* Panel wrapper — same show/hide behaviour as .feature-img */
.feature-panel {
  display: none;
}
.feature-panel.is-active {
  display: block;
  animation: featureFadeIn 0.38s ease both;
}

/* Panel stickiness — stays in view as user scrolls the feature list */
.features-image-panel {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  overflow: visible;
}

/* ── Base card ── */
.fp {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px 22px;
  font-family: var(--font);
  font-size: 12px;
  color: #111827;
  box-shadow: 0 4px 32px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ── Header row ── */
.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fp-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

/* ── Status badges ── */
.fp-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.fp-badge-processing { background: #fef9c3; color: #854d0e; border: 1px solid #fde68a; }
.fp-badge-ok         { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.fp-badge-warn       { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ── Contract excerpt block ── */
.fp-excerpt {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 11.5px;
  color: #374151;
  line-height: 1.72;
  margin-bottom: 14px;
  font-style: italic;
}
.fp-hl-green {
  background: #dcfce7;
  color: #166534;
  border-radius: 2px;
  padding: 0 3px;
  font-style: normal;
  font-weight: 600;
}
.fp-hl-yellow {
  background: #fef9c3;
  color: #854d0e;
  border-radius: 2px;
  padding: 0 3px;
  font-style: normal;
  font-weight: 600;
}

/* ── Extracted fields grid ── */
.fp-fields-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}
.fp-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}
.fp-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fp-field-key {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fp-field-val {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ── Table ── */
.fp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.fp-table th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  padding: 0 8px 8px 0;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}
.fp-table td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid #f9fafb;
  color: #374151;
  font-size: 11.5px;
  vertical-align: middle;
}
.fp-table tbody tr:last-child td { border-bottom: none; }
.fp-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 11.5px;
  color: #111827;
  font-weight: 500;
  white-space: nowrap;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ── Meter type chips ── */
.fp-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.fp-chip-usage  { background: #eff6ff; color: #1d4ed8; }
.fp-chip-flat   { background: #f0fdf4; color: #166534; }
.fp-chip-tiered { background: #fdf4ff; color: #7e22ce; }

/* ── Progress bars ── */
.fp-meter-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #6b7280;
  margin-bottom: 5px;
  font-weight: 500;
}
.fp-meter-bar-label span { color: #374151; font-weight: 600; }
.fp-bar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}
.fp-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #0b995d, #0db870);
  border-radius: 3px;
}

/* ── Divider ── */
.fp-divider {
  height: 1px;
  background: #f3f4f6;
  margin: 14px 0;
}

/* ── Invoice meta ── */
.fp-invoice-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.fp-invoice-meta strong { font-size: 13px; color: #111827; }
.fp-invoice-dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: #6b7280;
  font-size: 11px;
}
.fp-table-invoice td { font-size: 11.5px; }
.fp-table-invoice td:first-child,
.fp-table-invoice th:first-child { width: 100%; }
.fp-table-invoice td:last-child,
.fp-table-invoice th:last-child { width: 1%; white-space: nowrap; padding-left: 20px; }
.fp-discount td { color: #0b995d !important; font-weight: 600; }

/* ── Invoice totals ── */
.fp-totals {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.fp-total-row {
  display: flex;
  gap: 32px;
  font-size: 12px;
  color: #6b7280;
}
.fp-total-row span:last-child {
  min-width: 80px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}
.fp-total-final {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  padding-top: 8px;
  margin-top: 4px;
}

/* ── Rev Rec contract header ── */
.fp-revcontract {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  color: #6b7280;
  background: #f9fafb;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.fp-row-current { background: #f0fdf4; }
.fp-row-current td { font-weight: 600; color: #111827; }
.fp-row-pending td { color: #9ca3af; }
.fp-row-forecast td { color: #6b7280; font-style: italic; }

/* ── Journal entries ── */
.fp-journal-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 8px;
}
.fp-journal {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fp-journal-row {
  display: grid;
  grid-template-columns: 20px 1fr 90px 90px;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}
.fp-journal-note { font-size: 9.5px; color: #9ca3af; font-weight: 400; font-style: normal; font-family: var(--font); margin-left: 4px; }
.fp-journal-dr   { color: #1d4ed8; font-weight: 700; font-size: 10px; }
.fp-journal-cr   { color: #0b995d; font-weight: 700; font-size: 10px; padding-left: 10px; }
.fp-journal-acct { color: #374151; }
.fp-journal-amt  { color: #111827; font-weight: 600; text-align: right; }

/* ── Footer stat line ── */
.fp-footer-stat {
  font-size: 10.5px;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 12px;
}

/* ── Collections list ── */
.fp-collections { display: flex; flex-direction: column; }
.fp-collection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid #f3f4f6;
}
.fp-collection-row:last-child { border-bottom: none; }
.fp-collection-info { display: flex; align-items: center; gap: 10px; }
.fp-collection-name { font-size: 12.5px; font-weight: 600; color: #111827; }
.fp-collection-sub  { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.fp-collection-right { display: flex; align-items: center; gap: 10px; }
.fp-collection-amt {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-family: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;
}
.fp-collection-paid { color: #0b995d; }

/* ── Inline action button ── */
.fp-action-btn {
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s;
  white-space: nowrap;
}
.fp-action-btn:hover { background: #dbeafe; }

/* ── Status dots ── */
.fp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.fp-dot-green { background: #22c55e; }
.fp-dot-amber { background: #f59e0b; }
.fp-dot-red   { background: #ef4444; }
.fp-dot-blue  { background: #3b82f6; }

/* ── Mobile panel sizing ── */
.feature-mobile-img {
  overflow: hidden;
  max-width: 100%;
}
.feature-mobile-img .fp {
  font-size: 11px;
  padding: 16px;
  overflow: hidden;
}
.feature-mobile-img .fp-title { font-size: 12px; }
.feature-mobile-img .fp-num { white-space: normal; font-size: 10.5px; }
.feature-mobile-img .fp-table th,
.feature-mobile-img .fp-table td { font-size: 10.5px; padding-right: 4px; }
.feature-mobile-img .fp-table { table-layout: fixed; width: 100%; }
.feature-mobile-img .fp-table-invoice { table-layout: auto; }
.feature-mobile-img .fp-journal-row { font-size: 10px; grid-template-columns: 18px 1fr 70px 70px; }
.feature-mobile-img .fp-revcontract { flex-direction: column; gap: 2px; }
.feature-mobile-img .fp-fields { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.feature-mobile-img .fp-collection-row { gap: 8px; }
.feature-mobile-img .fp-collection-amt { font-size: 12px; }
.feature-mobile-img .fp-invoice-meta { flex-direction: column; gap: 4px; }
.feature-mobile-img .fp-invoice-dates { align-items: flex-start; }

/* ── End-to-end flow image ── */
.endtoend-wrap {
  margin-top: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}

.endtoend-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ══════════════════════════════════════════
   TESTIMONIAL
══════════════════════════════════════════ */
.section-testimonial { padding: 80px 0; }
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.quote-mark {
  font-size: 72px;
  line-height: 0.8;
  color: var(--accent);
  opacity: 0.35;
  font-family: Georgia, serif;
  margin-bottom: 16px;
  display: block;
}
.testimonial blockquote p {
  font-size: clamp(19px, 2.8vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.2px;
}
.testimonial figcaption {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   DIFFERENTIATION
══════════════════════════════════════════ */
.diff-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.diff-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px 18px 44px;
  position: relative;
  transition: border-color 0.2s;
}
.diff-list li:hover {
  border-color: rgba(var(--accent-rgb),0.35);
}
.diff-list li::before {
  content: '✓';
  position: absolute;
  left: 16px;
  top: 20px;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 13px;
}
.diff-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.1px;
  margin-bottom: 5px;
  line-height: 1.3;
}
.diff-item-body {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════
   INTEGRATIONS
══════════════════════════════════════════ */
.integrations-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.integration-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 290px;
}
.diagram-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--border-med), var(--accent));
  margin: 0 auto;
  opacity: 0.6;
}
.diagram-layer {
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.diagram-layer-top,
.diagram-layer-bottom {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  color: var(--text-muted);
}
.diagram-layer-enso {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 30px var(--accent-glow);
  font-size: 17px;
  font-weight: 800;
  padding: 22px 24px;
  letter-spacing: -0.4px;
  border-radius: var(--radius);
}

/* ══════════════════════════════════════════
   FOUNDERS
══════════════════════════════════════════ */
.founder-logos {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.founder-company {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-med);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  letter-spacing: -0.1px;
  transition: border-color 0.2s, color 0.2s;
}
.founder-company:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  color: var(--text);
}

/* ══════════════════════════════════════════
   CASE STUDIES
══════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.case-card:hover {
  border-color: rgba(var(--accent-rgb),0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.case-title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}
.case-details {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
  font-weight: 500;
}
.case-outcomes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-outcomes li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 24px;
  position: relative;
  line-height: 1.55;
}
.case-outcomes li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

/* ══════════════════════════════════════════
   TRUST / CTA
══════════════════════════════════════════ */
.section-trust {
  padding: 108px 0;
  text-align: center;
}
.trust-inner {
  max-width: 640px;
  margin: 0 auto;
}
.trust-heading {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.18;
  margin-bottom: 20px;
  background: linear-gradient(160deg, #fff 40%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-body {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 44px;
  line-height: 1.75;
}
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  margin-bottom: 40px;
}
.trust-badge {
  height: 108px;
  width: auto;
}
.trust-badge:hover {
  opacity: 1;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 26px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.18s;
}
.footer-links a:hover { color: var(--text-muted); }

/* ══════════════════════════════════════════
   PROSE PAGES (Privacy, Terms)
══════════════════════════════════════════ */
.prose-page {
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0 120px;
  background: var(--bg-base);
}
.prose-container { max-width: 740px; }
.prose-header {
  margin-bottom: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.prose-header h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.prose-meta {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.prose-body {
  color: var(--text-muted);
  line-height: 1.82;
  font-size: 15px;
}
.prose-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 44px 0 14px;
  letter-spacing: -0.3px;
}
.prose-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.prose-body p { margin-bottom: 16px; }
.prose-body ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose-body strong { color: var(--text); font-weight: 600; }
.prose-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}
.prose-body em { color: var(--text-muted); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .integrations-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .integration-diagram { display: none; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 72px 0 0; }
  .section { padding: 72px 0; }
  .cases-grid  { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ── Solution: accordion on mobile ── */
  .section-solution { overflow: hidden; }
  .features-layout {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 40px;
  }

  .features-image-panel { display: none; }

  .feature-item {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
  }

  .feature-item:first-child {
    border-top: 1px solid var(--border);
  }

  .feature-header {
    cursor: pointer;
    padding: 20px 0;
    gap: 14px;
  }

  .feature-chevron { display: block; }

  .feature-item.is-active .feature-chevron { transform: rotate(180deg); }

  .feature-body {
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: max-height 0.38s ease, padding-bottom 0.38s ease;
  }

  .feature-item.is-active .feature-body {
    max-height: 700px;
    padding-bottom: 24px;
  }

  .feature-desc { max-width: none; }

  .feature-mobile-img {
    display: block;
    margin-top: 20px;
  }

  .feature-mobile-img .fp {
    width: 100%;
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .diff-list      { grid-template-columns: 1fr; }
  .hero-headline  { letter-spacing: -1.2px; }
  .hero-badges    { gap: 6px; }
  .badge          { padding: 4px 10px; font-size: 10px; }
  .metric-unit    { display: block; margin-left: 0; margin-top: 2px; }
}

/* ── Feature / Integration Landing Pages ── */

.page-hero {
  padding: 96px 0 80px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(var(--accent-rgb),0.13) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 760px; }
.page-hero-inner .section-label { margin-bottom: 14px; }
.page-hero-inner .hero-headline { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.page-hero-inner .hero-sub { font-size: 1.1rem; margin: 0 0 32px; max-width: 600px; }
.page-hero-inner .hero-badges { margin-bottom: 18px; }

/* How It Works steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 12px;
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.step-body  { font-size: 14px; color: var(--text-muted); line-height: 1.72; margin: 0; }

/* UI panel inside hero section */
.hero-ui-panel {
  margin-top: 48px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Standalone fp panel on feature pages */
.section-panel { background: var(--bg-base); }
.fp-standalone {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Integration connector diagram */
.connector-diagram {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
  justify-content: center;
}
.connector-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}
.connector-col-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.connector-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.connector-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  flex-shrink: 0;
}
.connector-enso-badge {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}
.connector-enso-logo {
  height: 24px;
  width: auto;
  display: block;
}

/* FAQ accordion */
.faq-list  { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.faq-item  {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--accent-2); }
.faq-answer { padding: 0 20px 18px; font-size: 14px; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* Related pages */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
}
.related-card:hover { border-color: rgba(var(--accent-rgb),0.4); color: var(--text); }

/* Hub pages (/features/, /integrations/) */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  transition: border-color 0.18s;
}
.hub-card:hover { border-color: rgba(var(--accent-rgb),0.4); }
.hub-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-2);
}
.hub-card-title { font-size: 18px; font-weight: 700; color: var(--text); margin: 0; }
.hub-card-body  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; flex: 1; }
.hub-card-cta   { font-size: 13px; font-weight: 600; color: var(--accent-2); }

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .connector-diagram { flex-direction: column; gap: 16px; }
  .connector-arrow { flex-direction: row; }
  .hub-grid { grid-template-columns: 1fr; }
}

/* ── Demo Modal ── */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.demo-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.demo-modal {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  display: flex;
  width: 100%;
  max-width: 980px;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}
.demo-modal-overlay.is-open .demo-modal {
  transform: translateY(0);
}
.demo-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 10;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font);
  transition: color 0.15s, background 0.15s;
}
.demo-modal-close:hover { color: var(--text); background: var(--bg-card); }
.demo-modal-host {
  width: 320px;
  flex-shrink: 0;
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.demo-modal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.demo-modal-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.demo-modal-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-med);
}
.demo-modal-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}
.demo-modal-title {
  font-size: 13px;
  color: var(--accent-2);
  margin: 0;
  font-weight: 500;
}
.demo-modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #5ba4f5;
  background: rgba(91, 164, 245, 0.08);
  border: 1px solid rgba(91, 164, 245, 0.2);
  border-radius: 7px;
  padding: 8px 14px;
  transition: background 0.15s, border-color 0.15s;
  width: fit-content;
}
.demo-modal-linkedin:hover {
  background: rgba(91, 164, 245, 0.15);
  border-color: rgba(91, 164, 245, 0.35);
}
.demo-modal-cred {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  padding: 12px 14px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
}
.demo-modal-expect { margin: 0; }
.demo-modal-expect-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.demo-modal-expect ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-modal-expect ul li {
  font-size: 14px;
  color: var(--text);
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.demo-modal-expect ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}
.demo-modal-calendly {
  flex: 1;
  min-height: 630px;
}
.demo-modal-calendly iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 630px;
  border: none;
}
@media (max-width: 768px) {
  .demo-modal {
    flex-direction: column;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  .demo-modal-host {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 20px;
    gap: 16px;
  }
  .demo-modal-calendly {
    min-height: 560px;
  }
  .demo-modal-calendly iframe {
    min-height: 560px;
  }
}

/* ══════════════════════════════════════════
   BLOG — LIGHT THEME OVERRIDES
══════════════════════════════════════════ */
.page-hero-light {
  background: #f7f8fc;
  --text:        #16142e;
  --text-muted:  #4a4770;
  --text-dim:    #7a78a0;
  --border:      rgba(0,0,0,0.08);
  --border-med:  rgba(0,0,0,0.14);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.page-hero-light::before {
  background: radial-gradient(ellipse 70% 55% at 50% -10%, rgba(var(--accent-rgb),0.06) 0%, transparent 70%);
}
.page-hero-light .section-label {
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.10);
  border-color: rgba(var(--accent-rgb),0.25);
}

/* ══════════════════════════════════════════
   BLOG — LIST PAGE
══════════════════════════════════════════ */
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}
.blog-card-date {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ══════════════════════════════════════════
   BLOG — ARTICLE PAGE
══════════════════════════════════════════ */
.article-page {
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0 100px;
  background: #f7f8fc;
  --text:        #16142e;
  --text-muted:  #4a4770;
  --text-dim:    #7a78a0;
  --bg-card:     #ffffff;
  --border:      rgba(0,0,0,0.08);
  --border-med:  rgba(0,0,0,0.14);
}
.article-container {
  max-width: 780px;
}
.article-header {
  margin-bottom: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-header-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.article-header-meta .section-label {
  color: var(--accent);
  background: rgba(var(--accent-rgb),0.10);
  border-color: rgba(var(--accent-rgb),0.25);
  margin-bottom: 0;
}
.article-date {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}
.article-header h1 {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text);
}
.article-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.article-body {
  font-size: 16px;
  line-height: 1.85;
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 16px;
  letter-spacing: -0.4px;
}
.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article-body ol { list-style: decimal; }

/* Comparison table */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 32px 0;
}
.article-body th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-med);
  white-space: nowrap;
}
.article-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body td strong { color: var(--text); }

/* Highlight Enso row in comparison table */
.article-body tr.highlight td {
  background: rgba(var(--accent-rgb), 0.06);
  color: var(--text);
}
.article-body tr.highlight td:first-child {
  border-left: 2px solid var(--accent);
}

/* In-article callout box */
.article-body blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  font-style: normal;
}

/* Article body links */
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(var(--accent-rgb), 0.45);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.article-body a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

/* Linkable headings */
.linkable-heading {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.heading-anchor {
  opacity: 0;
  margin-left: 0.35em;
  font-size: 0.65em;
  font-weight: 500;
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: opacity 0.15s;
  vertical-align: middle;
  user-select: none;
}
.linkable-heading:hover .heading-anchor {
  opacity: 1;
}

@media (max-width: 768px) {
  .article-page { padding: 56px 0 72px; }
  .article-body table { display: block; overflow-x: auto; }
}
