/* ============================================================
   ZALEO — Global Stylesheet
   Smart Finance Systems · Deterministic FinOps
   Built from Zaleo Brand Guidelines V1 2026
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand palette */
  --canvas: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --primary: #6D28D9;
  --primary-hover: #5B21B6;
  --accent: #9333EA;
  --accent-light: #C084FC;
  --text-primary: #0F172A;
  --text-muted: #475569;
  --text-faint: #94A3B8;
  --danger: #EF4444;
  --success: #10B981;

  /* Deep violet atmospheric canvas (hero backgrounds) */
  --deep-1: #1A0B2E;
  --deep-2: #3B0764;
  --ink: #09080E;
  --ink-border: #1E293B;

  /* Fonts */
  --font-en: 'Plus Jakarta Sans', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.15; }
h1 { font-size: 56px; }
h2 { font-size: 38px; }
h3 { font-size: 22px; }
h4 { font-size: 17px; }
p { color: var(--text-muted); line-height: 1.7; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--primary);
  display: inline-block;
}

.eyebrow-light { color: var(--accent-light); }
.eyebrow-light::before { background: var(--accent-light); }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.lede {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.65;
}

.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(109,40,217,0.1);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 0 6px rgba(109,40,217,0.16), 0 8px 20px -6px rgba(109,40,217,0.55);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-outline-dark:hover { border-color: var(--primary); color: var(--primary); background: #F5F3FF; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  padding: 10px 4px;
}
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
/* The frosted-glass background lives on a pseudo-element rather than directly on
   .site-header. backdrop-filter (like transform/filter/perspective) creates a new
   containing block for any position:fixed descendant -- since .mobile-menu is a
   fixed-position child of the header, that was collapsing its box to zero height
   (top: var(--header-h) and bottom: 0 both resolved against the ~76px-tall header
   itself instead of the viewport), so the slide-down menu never visibly opened. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand-lockup { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-lockup svg { height: 40px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--primary); background: #F8F5FF; }
.nav-link .chev { width: 9px; height: 9px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .15s ease; opacity: .55; }
.nav-item:hover .nav-link .chev { transform: rotate(225deg); margin-top: 3px; }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -12px rgba(15,23,42,0.18);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .16s ease;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-dropdown a span { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.nav-dropdown a:hover { background: var(--surface); color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .btn { padding: 12px 22px; }
.portal-link { font-size: 13.5px; font-weight: 700; color: var(--text-muted); }
.portal-link:hover { color: var(--primary); }

.nav-toggle { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); color: var(--text-primary); border-top: 1px solid var(--border); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand-block .brand-lockup { margin-bottom: 16px; }
.footer-brand-block p { color: var(--text-muted); font-size: 14px; max-width: 300px; margin-top: 10px; }
.footer-col h5 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--text-primary); }

/* ---------- Atmospheric hero canvas ---------- */
.atmos-hero {
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(147,51,234,0.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 20%, rgba(124,58,237,0.28), transparent 55%),
    linear-gradient(180deg, var(--deep-1) 0%, var(--deep-2) 100%);
  color: #fff;
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.atmos-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}
.atmos-hero .eyebrow { color: var(--accent-light); }
.atmos-hero .eyebrow::before { background: var(--accent-light); }
.atmos-hero h1 { color: #fff; font-size: 60px; max-width: 780px; margin: 18px 0 22px; }
.atmos-hero .lede { color: #C7BEE0; font-size: 18.5px; max-width: 640px; }
.atmos-hero .cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.page-hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero.dark-atmos { border-bottom: none; }
.page-hero h1 { font-size: 44px; max-width: 780px; margin-top: 14px; }
.page-hero .lede { margin-top: 16px; }
.breadcrumb { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; color: var(--text-faint); text-transform: uppercase; margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Metrics / speed bar ---------- */
.metrics-bar {
  background: var(--ink);
  margin-top: -64px;
  position: relative;
  z-index: 5;
  border-radius: var(--radius-lg);
  max-width: calc(var(--max-w) - 0px);
}
.metrics-bar-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #120C1E, #0B0712);
}
.metric-cell {
  padding: 34px 36px;
  border-right: 1px solid var(--ink-border);
}
.metric-cell:last-child { border-right: none; }
.metric-value {
  font-family: var(--font-en);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.metric-value span { color: var(--accent-light); }
.metric-label { font-size: 13px; color: #94A3B8; margin-top: 8px; max-width: 260px; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-2-wide { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card:hover { border-color: var(--border-strong); }
.card-surface { background: var(--surface); }

.icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F5F3FF;
  border: 1px solid #EDE4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}
.icon-tile svg { width: 22px; height: 22px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Tabs (Core Capabilities) ---------- */
.tabs-wrap { display: grid; grid-template-columns: 340px 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tab-list { background: var(--surface); border-right: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.tab-trigger {
  text-align: left;
  padding: 18px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: all .15s ease;
}
.tab-trigger .tab-num { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); font-weight: 700; }
.tab-trigger .tab-name { font-size: 15.5px; font-weight: 800; color: var(--text-primary); margin-top: 4px; }
.tab-trigger .tab-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.tab-trigger.active { background: #fff; border-color: var(--border); box-shadow: 0 4px 14px -6px rgba(15,23,42,0.12); }
.tab-trigger.active .tab-num { color: var(--primary); }
.tab-panels { padding: 44px; display: flex; align-items: center; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.tab-panel .tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- Comparison / Advantage matrix ---------- */
.compare-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table thead th { background: var(--surface); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 800; }
.compare-table th.col-zaleo, .compare-table td.col-zaleo { background: #FAF5FF; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.row-label { font-weight: 700; color: var(--text-primary); }
.compare-table .yes { color: var(--primary); font-weight: 800; }
.compare-table .no { color: var(--text-faint); }
.compare-table td.col-zaleo, .compare-table th.col-zaleo { border-left: 1px solid #EDE4FF; border-right: 1px solid #EDE4FF; }

/* ---------- ROI calculator ---------- */
.calc-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc-inputs { padding: 44px; background: var(--surface); }
.calc-output { padding: 44px; background: var(--ink); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.slider-group { margin-bottom: 30px; }
.slider-group label { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.slider-group label .val { font-family: var(--font-mono); color: var(--primary); }
input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  appearance: none;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--primary); cursor: pointer;
}
.calc-result-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--ink-border); }
.calc-result-row:last-child { border-bottom: none; }
.calc-result-label { font-size: 13px; color: #94A3B8; }
.calc-result-value { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: #fff; }

/* ---------- Multi-step intake form ---------- */
.intake-shell { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.intake-steps-track { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.intake-step-tab {
  flex: 1;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-faint);
  border-bottom: 2px solid transparent;
}
.intake-step-tab .step-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: #fff; font-family: var(--font-mono); font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.intake-step-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.intake-step-tab.active .step-dot { background: var(--primary); }
.intake-step-tab.done .step-dot { background: var(--success); }
.intake-body { padding: 44px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn .25s ease; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: all .15s ease;
}
.option-card:hover { border-color: var(--accent-light); }
.option-card.selected { border-color: var(--primary); background: #FAF5FF; box-shadow: 0 0 0 1px var(--primary); }
.option-card .opt-title { font-weight: 800; font-size: 14.5px; }
.option-card .opt-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--primary); }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.slot-btn { padding: 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-align: center; }
.slot-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.intake-nav { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.active { display: block; animation: fadeIn .25s ease; }
.form-success .check-circle { width: 60px; height: 60px; border-radius: 50%; background: #ECFDF5; color: var(--success); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 28px; }

/* ---------- Pipeline visual (hero interactive graphic) ---------- */
.pipeline-visual {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(9,8,14,0.55);
  backdrop-filter: blur(6px);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.pipe-col { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 10px; padding: 18px; }
.pipe-col h6 { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-light); font-weight: 800; margin-bottom: 12px; }
.pipe-row { font-family: var(--font-mono); font-size: 11.5px; padding: 8px 10px; border-radius: 6px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.pipe-row.raw { background: rgba(239,68,68,0.1); color: #FCA5A5; }
.pipe-row.clean { background: rgba(16,185,129,0.1); color: #6EE7B7; }
.pipe-engine { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pipe-engine-ring {
  width: 76px; height: 76px; border-radius: 50%;
  border: 2px dashed var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  animation: spin 7s linear infinite;
}
.pipe-engine-core { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(140deg, var(--accent-light), var(--primary)); box-shadow: 0 0 30px rgba(147,51,234,0.6); }
.pipe-engine-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #C7BEE0; font-weight: 700; text-align: center; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Pattern texture block ---------- */
.dot-pattern {
  background-image: radial-gradient(var(--primary) 0.75px, transparent 0.75px), radial-gradient(var(--accent) 0.75px, var(--surface) 0.75px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* ---------- Steps / process list ---------- */
.step-list { display: flex; flex-direction: column; }
.step-item { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--border); }
.step-item:last-child { border-bottom: none; }
.step-num { font-family: var(--font-mono); font-size: 20px; font-weight: 700; color: var(--primary); }
.step-item h4 { margin-bottom: 8px; }
.step-item p { max-width: 620px; }

/* ---------- Accordion ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.accordion-trigger { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; font-weight: 700; font-size: 15px; background: #fff; }
.accordion-trigger .plus { font-size: 20px; color: var(--primary); transition: transform .2s ease; }
.accordion-item.open .accordion-trigger .plus { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; background: var(--surface); }
.accordion-panel-inner { padding: 0 24px 22px; }
.accordion-item.open .accordion-panel { max-height: 400px; }

/* ---------- Spec table ---------- */
.spec-table { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row .spec-key { padding: 18px 22px; background: var(--surface); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); min-width: 0; }
.spec-row .spec-val { padding: 18px 22px; font-size: 14.5px; font-weight: 600; min-width: 0; overflow-wrap: break-word; }

/* ---------- Pricing tiers ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 20px 40px -16px rgba(109,40,217,0.3); position: relative; }
.price-card .badge-featured { position: absolute; top: -13px; left: 34px; background: var(--primary); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; padding: 6px 14px; border-radius: 999px; text-transform: uppercase; }
.price-card .price-name { font-size: 19px; font-weight: 800; }
.price-card .price-turnaround { font-family: var(--font-mono); color: var(--primary); font-size: 13.5px; font-weight: 700; margin-top: 8px; }
.price-card .price-best { font-size: 13px; color: var(--text-muted); margin: 14px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.price-card li { font-size: 13.5px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.price-card li::before { content: "✓"; color: var(--primary); font-weight: 800; flex-shrink: 0; }

/* ---------- App showcase gallery ---------- */
.app-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgba(15,23,42,0.18); }
.app-card-visual { height: 150px; background: var(--ink); position: relative; display: flex; align-items: center; justify-content: center; }
.app-card-body { padding: 24px; }
.app-tag { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.app-card h4 { margin-top: 8px; }
.app-card p { font-size: 13.5px; margin-top: 10px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.blog-card-cover { height: 170px; position: relative; overflow: hidden; }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: flex; gap: 10px; font-size: 11.5px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-cat { color: var(--primary); }
.blog-card h3 { font-size: 18px; }
.blog-card p { font-size: 13.5px; }
.blog-card .read-more { font-size: 13px; font-weight: 800; color: var(--primary); margin-top: auto; padding-top: 8px; }
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 56px; }
.blog-featured-visual { min-height: 340px; }
.blog-featured-body { padding: 44px 44px 44px 0; display: flex; flex-direction: column; justify-content: center; }
.filter-row { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-muted); }
.filter-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.article-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.article-meta-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.article-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(140deg, var(--accent-light), var(--primary)); }
.article-body { max-width: 760px; margin: 0 auto; padding: 56px 32px; }
.article-body h2 { font-size: 27px; margin: 44px 0 16px; }
.article-body h3 { font-size: 20px; margin: 32px 0 14px; }
.article-body p { font-size: 16px; margin-bottom: 18px; }
.article-body ul { margin: 0 0 20px 0; display: flex; flex-direction: column; gap: 10px; }
.article-body li { font-size: 15.5px; color: var(--text-muted); padding-left: 22px; position: relative; }
.article-body li::before { content: "—"; position: absolute; left: 0; color: var(--primary); }
.article-pullquote { border-left: 3px solid var(--primary); padding: 4px 0 4px 24px; margin: 32px 0; font-size: 19px; font-weight: 600; color: var(--text-primary); font-style: normal; }

/* ---------- Regional / office block ---------- */
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.office-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.office-card .office-city { font-weight: 800; font-size: 16px; }
.office-card .office-tag { font-size: 12px; color: var(--text-faint); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--deep-1), var(--deep-2));
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 70% 100% at 50% 50%, black, transparent);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: #C7BEE0; max-width: 520px; margin: 14px auto 0; position: relative; }
.cta-band .cta-row { display: flex; justify-content: center; position: relative; margin-top: 30px; }

/* Base row used to lay out pairs of CTA buttons (hero, page-hero, cta-band). Always
   allow wrapping so a long button label never pushes its sibling off-screen on
   narrow viewports -- inline `style="display:flex; gap:14px;"` on some page-hero
   sections doesn't set flex-wrap itself, so this rule is what supplies it. */
.cta-row { flex-wrap: wrap; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; background: #F5F3FF; border: 1px solid #DDD6FE;
  border-radius: 999px; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.08em; color: var(--primary); text-transform: uppercase;
}

/* ---------- Mobile ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  z-index: 199;
  flex-direction: column;
  padding: 24px 24px 40px;
  overflow-y: auto;
  gap: 4px;
}
.mobile-menu a {
  padding: 16px 4px;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn { margin-top: 20px; }
.nav-toggle {
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; font-size: 18px;
}

@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  .atmos-hero h1 { font-size: 44px; }
  .grid-3, .grid-4, .app-gallery, .pricing-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2-wide, .calc-panel, .tabs-wrap, .footer-grid, .blog-featured { grid-template-columns: 1fr; }
  .metrics-bar-inner { grid-template-columns: 1fr; }
  .metric-cell { border-right: none; border-bottom: 1px solid var(--ink-border); }
  .primary-nav, .header-cta .portal-link { display: none; }
  .nav-toggle { display: flex; }
  .compare-table { display: block; overflow-x: auto; }
  .option-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  h1 { font-size: 32px; } h2 { font-size: 28px; }
  .grid-3, .grid-4, .app-gallery, .pricing-grid, .blog-grid, .office-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .pipeline-visual { grid-template-columns: 1fr; }
  /* The header CTA button was squeezing the logo below its intended size on
     narrow phones (flexbox shrinks replaced elements like <svg> before it
     shrinks text). Drop the duplicate header CTA on phones -- it's still the
     first item in the slide-down mobile menu -- and give the logo more room. */
  .header-cta .btn-primary { display: none; }
  .nav-toggle { flex-shrink: 0; }
  .brand-lockup svg { height: 44px; }
  /* Long CTA button labels ("Automate Your Reconciliation Pipeline", etc.) no
     longer force a single very wide nowrap line on phones -- let them wrap
     onto two lines instead of stretching edge-to-edge in the CTA band. */
  .cta-band .btn { white-space: normal; text-align: center; }
  /* Two-column spec tables (label + value) don't leave enough room for the
     value column on phones, which let an unbreakable word like
     "department/user" force the row past the viewport edge. Stack instead. */
  .spec-row { grid-template-columns: 1fr; }
  .spec-row .spec-key { border-bottom: 1px solid var(--border); }
}
