/* ================================================================
   MigryX Core Design System
   Shared CSS for all migryx.com and sas2py.com platform pages.
   Page-specific overrides go in a small inline <style> block.
   ================================================================ */

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

:root {
  --ink: #041A2C; --ink2: #1B3A57; --ink3: #496A86;
  --brand: #76a5d4; --brand2: #76a5d4;
  --surface: #F7FBFE; --border: #E3EEF6; --radius: 12px;
}

html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: #041A2C;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV (gold standard) ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink2); transition: color .15s; text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--brand) !important; color: #fff !important; font-weight: 600;
  padding: 8px 20px; border-radius: 8px; font-size: 14px;
  box-shadow: 0 4px 12px rgba(186, 234, 239, 0.25); transition: background .15s;
}
.nav-cta:hover { background: #76a5d4 !important; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: .2s; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid #f1f5f9; }
  body.menu-open .nav-links { display: flex; }
}

/* ── NAV (legacy site-header — kept for backward compat) ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.site-header .inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 32px;
}
.site-header .brand { display: flex; align-items: center; gap: .6rem; }
.site-header .brand img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { font-weight: 600; color: var(--ink); font-size: .9rem; }
.site-header nav a:hover { color: var(--brand); }
.site-header nav a.btn-cta {
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: .5rem 1.2rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(186, 234, 239,.3);
}
.site-header nav a.btn-cta:hover { background: var(--brand2); color: #fff; }
.site-header .nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  height: 40px; width: 40px;
}
.site-header .nav-toggle .bar { display: block; height: 2px; width: 22px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 992px) {
  .site-header .inner { padding: 0 16px; height: 64px; }
  .site-header .nav-toggle { display: block; order: 2; }
  .site-header nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none; flex-direction: column; gap: 0; padding: 8px 16px;
  }
  .site-header nav a { padding: 12px 8px; font-size: 1rem; }
  body.nav-open .site-header nav { display: flex; }
  body.nav-open .site-header .nav-toggle .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .site-header .nav-toggle .bar:nth-child(2) { opacity: 0; }
  body.nav-open .site-header .nav-toggle .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── LAYOUT ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 576px) { .container { padding: 0 16px; } }
.section { padding: 72px 0; }
.section.dark  { background: var(--surface); }
.section.mid   { background: var(--surface); }
.section.panel { background: var(--surface); }
.section.lighter { background: var(--surface); }
.section.light { background: #fff; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--ink2); }
.lead { font-size: 1.05rem; color: var(--ink2); }
.muted { color: var(--ink3); }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-weight: 900; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--brand); margin-bottom: .5rem;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 900; line-height: 1.08; letter-spacing: -1px; color: #041A2C; }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 800; color: #041A2C; line-height: 1.15; margin-bottom: .75rem; }
h3 { font-size: 1.05rem; font-weight: 700; color: #041A2C; margin-bottom: .4rem; }
p { color: var(--ink3); line-height: 1.65; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand);
  color: #fff; font-weight: 800; border: none; border-radius: 999px;
  padding: .75rem 1.8rem; text-decoration: none;
  box-shadow: 0 6px 20px rgba(186, 234, 239,.35);
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--brand2); transform: translateY(-1px); color: #fff; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink); font-weight: 700;
  border: 1.5px solid var(--border); border-radius: 999px; padding: .72rem 1.5rem;
  text-decoration: none; transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--ink); font-weight: 700;
  border: 1.5px solid var(--border); border-radius: 999px; padding: .72rem 1.5rem;
  text-decoration: none; transition: border-color .2s;
}
.btn-outline-white:hover { border-color: var(--brand); color: var(--brand); }

/* ── HERO ── */
.hero {
  background: linear-gradient(180deg, #fff 0%, #F7FBFE 100%);
  border-bottom: 1px solid var(--border);
  padding: 88px 0 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -20%; right: -8%;
  width: 900px; height: 900px;
  background: radial-gradient(ellipse, rgba(186, 234, 239,.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -30%; left: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(186, 234, 239,.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(186, 234, 239,.12); border: 1px solid rgba(186, 234, 239,.4);
  color: var(--brand); font-size: .78rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 4px; margin-bottom: 1.2rem;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--brand), var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 1.1rem; max-width: 540px; margin-bottom: 2rem; color: #1B3A57; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── HERO CARD ── */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 56px rgba(10,37,64,.08);
}
.hero-card-label {
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink3); margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-card-label::before {
  content: ''; display: block; width: 20px; height: 2px; background: var(--brand);
}
.source-list { display: grid; gap: 8px; }
.source-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color .2s;
}
.source-row:hover { border-color: var(--brand); }
.source-row .src-icon { font-size: 18px; flex-shrink: 0; }
.source-row .src-text { flex: 1; }
.source-row .src-name { font-weight: 700; color: #041A2C; font-size: .86rem; }
.source-row .src-sub  { font-size: .72rem; color: var(--ink3); }
.source-row .arrow { color: var(--brand); font-size: .8rem; font-weight: 900; flex-shrink: 0; }

/* ── STATS BAR ── */
.stats-bar { background: var(--brand); padding: 36px 0; }
.stats-grid {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; }
.stat .num { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 900; color: #fff; line-height: 1; }
.stat .lbl { font-size: .88rem; color: #1B3A57; margin-top: 4px; font-weight: 600; }
.stat .sub { font-size: .75rem; color: #1B3A57; margin-top: 2px; }

/* ── TARGET GRID ── */
.target-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 900px) { .target-grid { grid-template-columns: 1fr 1fr; } }
.target-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.target-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(186, 234, 239,.15); }
.target-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.target-card h4 { font-size: .92rem; font-weight: 800; color: #041A2C; margin-bottom: 6px; }
.target-card p { font-size: .78rem; color: var(--ink3); margin: 0; line-height: 1.5; }

/* ── SOURCE CARDS GRID ── */
.source-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .source-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .source-grid { grid-template-columns: 1fr; } }
.src-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
}
.src-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(186, 234, 239,.15);
}
.src-card-header {
  padding: 18px 20px 0;
  display: flex; align-items: center; gap: 14px;
}
.src-icon-box {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.src-card-header h3 { font-size: .98rem; font-weight: 800; color: #041A2C; margin: 0; }
.src-card-header .src-card-sub { font-size: .75rem; color: var(--ink3); margin-top: 2px; }
.src-card-body { padding: 12px 20px 14px; flex: 1; }
.src-card-body p { font-size: .84rem; color: var(--ink3); margin: 0 0 10px; line-height: 1.55; }
.src-card-footer {
  padding: 11px 20px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .81rem; font-weight: 700; color: var(--brand);
}

/* ── TAGS ── */
.sf-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-tag {
  font-size: .7rem; font-weight: 700; padding: .18rem .5rem;
  border-radius: 4px;
  background: rgba(186, 234, 239,.1);
  border: 1px solid rgba(186, 234, 239,.25);
  color: var(--brand);
}

/* ── HOW IT WORKS ── */
.how-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } }
.how-step { text-align: center; }
.how-num {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand); color: #fff; font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
  box-shadow: 0 6px 16px rgba(186, 234, 239,.35);
}
.how-step h4 { font-size: .9rem; font-weight: 800; color: #041A2C; margin-bottom: 4px; }
.how-step p { font-size: .8rem; color: var(--ink3); margin: 0; line-height: 1.45; }
.how-arrow { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 1.4rem; font-weight: 900; }
@media (max-width: 900px) { .how-arrow { display: none; } }

/* ── PILLARS ── */
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 22px;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--brand); transform: translateY(-2px); }
.pillar-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(186, 234, 239,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 12px;
}
.pillar h3 { font-size: .96rem; margin-bottom: 6px; }
.pillar p { font-size: .85rem; color: var(--ink3); margin: 0; line-height: 1.55; }

/* ── COMPARISON TABLE ── */
.compare-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 500px; }
table.compare th, table.compare td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .88rem; }
table.compare thead th { background: var(--surface); font-weight: 800; color: #041A2C; }
table.compare thead th.brand-col { background: var(--brand); color: #fff; }
table.compare tbody tr td { background: var(--surface); color: var(--ink3); }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover td { background: rgba(186, 234, 239,.04); }
.yes   { color: #4ade80; font-weight: 900; }
.no    { color: #f87171; font-weight: 900; }
.maybe { color: #fbbf24; font-weight: 900; }
td.brand-col { background: rgba(186, 234, 239,.07) !important; font-weight: 600; color: var(--brand) !important; }

/* ── IMPACT GRID ── */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .impact-grid { grid-template-columns: 1fr 1fr; } }
.impact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; text-align: center;
}
.impact-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 6px;
}
.impact-lbl { font-size: .82rem; font-weight: 800; color: #041A2C; margin-bottom: 6px; }
.impact-desc { font-size: .78rem; color: var(--ink3); line-height: 1.5; margin: 0; }

/* ── CTA BAND ── */
.cta-band { background: linear-gradient(135deg, #031525 0%, #0B2844 100%); padding: 72px 0; border-top: 1px solid var(--border); }
.cta-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 768px) { .cta-inner { grid-template-columns: 1fr; } }
.cta-band h2 { color: #041A2C; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.cta-band p { color: var(--ink3); font-size: .95rem; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── FOOTER (CSS classes — some pages use inline styles instead) ── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.footer-brand img { height: 28px; width: auto; }
.footer-desc { font-size: .88rem; color: var(--ink3); line-height: 1.6; max-width: 400px; }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.footer-links h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink3); margin-bottom: 10px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul a { font-size: .86rem; color: var(--ink3); text-decoration: none; font-weight: 600; }
.footer-links ul a:hover { color: var(--brand); }
.footer-legal {
  max-width: 1240px; margin: 24px auto 0; padding: 16px 32px 0;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink3); flex-wrap: wrap; gap: 8px;
}

/* ── UTILITY ── */
.pill-email {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(186, 234, 239,.12); border: 1px solid rgba(186, 234, 239,.3);
  color: var(--brand); font-weight: 700;
  padding: .5rem 1rem; border-radius: 6px; text-decoration: none; font-size: .88rem;
  margin-top: 14px;
}
.pill-email:hover { background: rgba(186, 234, 239,.2); color: var(--brand); }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 700; color: var(--ink3);
  text-decoration: none; transition: color .2s;
}
.back-link:hover { color: var(--brand); }

/* ── PARTNER BADGE ── */
.partner-strip {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(186, 234, 239,.08); border: 1px solid rgba(186, 234, 239,.25);
  border-radius: 6px; padding: .35rem .9rem; margin-bottom: 1rem;
  font-size: .75rem; font-weight: 700; color: var(--brand);
  letter-spacing: .04em;
}
.partner-strip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }

/* ── DEEP INTEGRATION GRID ── */
.int-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
@media (max-width: 900px) { .int-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .int-grid { grid-template-columns: 1fr; } }
.int-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 24px;
  transition: border-color .2s, transform .2s;
  position: relative; overflow: hidden;
}
.int-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.int-card::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(186, 234, 239,.08), transparent 70%);
  pointer-events: none;
}
.int-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(186, 234, 239,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.int-card h3 { font-size: .95rem; font-weight: 800; margin-bottom: 8px; }
.int-card p { font-size: .84rem; color: var(--ink3); margin: 0; line-height: 1.55; }
.int-tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  background: rgba(186, 234, 239,.1); border: 1px solid rgba(186, 234, 239,.2);
  color: var(--brand); padding: .15rem .45rem; border-radius: 3px;
  margin-top: 10px;
}

/* ── ARCHITECTURE FLOW ── */
.arch-flow {
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; padding-bottom: 8px;
}
@media (max-width: 768px) { .arch-flow { flex-direction: column; } }
.arch-stage {
  flex: 1; min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 20px 16px;
  text-align: center;
}
.arch-stage.highlight {
  background: linear-gradient(135deg, rgba(186, 234, 239,.12), var(--surface));
  border-color: rgba(186, 234, 239,.4);
}
.arch-label {
  font-size: .68rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink3); margin-bottom: 8px;
}
.arch-stage h4 { font-size: .92rem; font-weight: 800; color: #041A2C; margin-bottom: 6px; }
.arch-items { font-size: .78rem; color: var(--ink3); line-height: 1.6; }
.arch-arrow {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; color: var(--brand); font-size: 1.2rem; font-weight: 900;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .arch-arrow { min-height: 32px; transform: rotate(90deg); }
}

/* ── FAQ ACCORDION ── */
.faq-list { max-width: 800px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  font-size: .95rem; font-weight: 800; color: #5e83d4; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-q::after {
  content: '+'; font-size: 1.3rem; font-weight: 700; color: var(--brand);
  flex-shrink: 0; transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '\2212'; }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a p {
  padding-top: 12px; font-size: .88rem; color: var(--ink3); line-height: 1.65;
}

/* ── DIVIDER ── */
.sf-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── DOWNLOAD DROPDOWN ── */
.dl-wrap { position: relative; display: inline-block; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink); font-weight: 700;
  border: 1.5px solid var(--border); border-radius: 999px; padding: .72rem 1.5rem;
  text-decoration: none; cursor: pointer; font-size: inherit;
  transition: border-color .2s;
}
.dl-btn:hover { border-color: var(--brand); color: var(--brand); }
.dl-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 50; margin-top: 6px;
  padding: 6px;
}
.dl-wrap:hover .dl-menu { display: block; }
.dl-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; font-size: .88rem; font-weight: 600;
  color: var(--ink); text-decoration: none; transition: background .15s;
}
.dl-menu a:hover { background: var(--surface); }
.dl-label { flex: 1; }
.dl-size { font-size: .75rem; color: var(--ink3); }

/* ── CODE COMPARISON (source-to-target pages) ── */
.code-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch;
}
@media (max-width: 768px) { .code-grid { grid-template-columns: 1fr; } }
.code-panel {
  background: #0d1117; border-radius: 10px; padding: 20px;
  font-family: 'JetBrains Mono', monospace; font-size: .82rem;
  color: #e6edf3; overflow-x: auto; line-height: 1.6;
}
.code-panel .code-label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink3); margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.code-arrow {
  display: flex; align-items: center; justify-content: center;
  min-width: 48px; color: var(--brand); font-size: 1.4rem; font-weight: 900;
}
@media (max-width: 768px) {
  .code-arrow { min-height: 32px; transform: rotate(90deg); }
}
.conv-table { width: 100%; border-collapse: collapse; }
.conv-table th, .conv-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: .86rem;
}
.conv-table thead th { background: var(--surface); font-weight: 800; color: #041A2C; }
.conv-table tbody td { color: var(--ink3); }
.proof { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.depth-links {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.depth-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-size: .84rem; font-weight: 600; color: var(--ink2); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.depth-links a:hover { border-color: var(--brand); color: var(--brand); }

/* ── SOURCE → TARGET PAGE TEMPLATE ── */
.section.alt { background: var(--surface); }
.code-panel .label {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: #8aa6bd; margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}
.code-panel .label.target { color: var(--brand); }
.code-arrow:has(.circle) { flex-direction: column; gap: 8px; }
.code-arrow .circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 900; flex: 0 0 44px;
}
@media (max-width: 768px) { .code-arrow:has(.circle) { transform: none; } }
.stat-label { font-size: .85rem; color: var(--ink2); font-weight: 600; margin-top: 4px; }
.proof .stat { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; color: var(--ink); line-height: 1.1; }

/* ── LAYOUT UTILITIES ──
   These replace the Bootstrap build that the site no longer ships. */
.container-xl { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 576px) { .container-xl { padding: 0 16px; } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; box-shadow: 0 4px 16px rgba(10, 37, 64, .05);
}
.text-center { text-align: center; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink2); margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .6rem .75rem; font: inherit; font-size: .92rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--border); border-radius: 8px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--brand);
}

/* ── MODERNIZATION SOURCE PAGE TEMPLATE ──
   Vocabulary shared by the source-platform pages (oracle, ssis, teradata,
   dataflux, alteryx, informatica, sql, sqlforge, compass). Generic names are
   scoped to their component so they cannot leak onto unrelated pages. */

/* Single-class specificity on purpose: several pages ship their own .cols-*
   breakpoints, and those must stay able to override these. */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}
.gap-2 { gap: .5rem; }

/* Hero */
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 56px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.kicker {
  display: inline-block; font-weight: 900; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand); margin-bottom: .75rem;
}
.headline {
  font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900;
  line-height: 1.12; color: var(--ink); margin: 0 0 1rem;
}
.urgency {
  display: inline-block; padding: .4rem .9rem; margin-bottom: 1rem;
  background: #FFF4E5; border: 1px solid #F0C68A; border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: #7A4A05;
}
.hero-vis { display: flex; flex-direction: column; gap: 10px; }
.vis-title {
  font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink2);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.vis-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--ink2); line-height: 1.45;
}

/* Chips and inline pills */
.chip-rail, .tag-grid, .targets {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0;
}
.chip, .tag-chip, .target-chip {
  display: inline-flex; align-items: center;
  padding: .35rem .8rem; background: #fff;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .78rem; font-weight: 700; color: var(--ink2);
  text-decoration: none;
}
.target-chip { transition: border-color .2s, color .2s; }
.target-chip:hover { border-color: var(--brand); color: var(--brand); }
.tag-chip.source { background: var(--surface); border-color: #C9DDEC; }
.code-pill, .oracle-pill, .td-pill {
  display: inline-block; padding: .12rem .45rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  font-family: ui-monospace, Consolas, monospace; font-size: .8rem; color: var(--ink);
}

/* Capability / deployment cards */
.cap-grid, .deploy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.cap-card, .deploy-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; box-shadow: 0 4px 16px rgba(10, 37, 64, .05);
}
.cap-icon, .deploy-icon { font-size: 1.6rem; line-height: 1; margin-bottom: 12px; }
.cap-card h3, .deploy-card h3, .deploy-card h4 {
  font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 8px;
}
.cap-card p, .deploy-card p {
  font-size: .87rem; color: var(--ink3); line-height: 1.6; margin: 0;
}
.cap-card img, .cap-card video {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px;
}

/* Source → target parse panels */
.parser-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .parser-grid { grid-template-columns: 1fr; } }
.source-panel, .target-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.target-panel { border-top: 4px solid var(--brand); }
.panel-title {
  font-size: .95rem; font-weight: 800; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border);
}
.source-items, .target-items { list-style: none; margin: 0; padding: 0; }
.source-items li, .target-items li {
  position: relative; padding: 7px 0 7px 18px;
  font-size: .86rem; color: var(--ink3); line-height: 1.55;
}
.source-items li::before, .target-items li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

/* Numbered process steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.step-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; box-shadow: 0 4px 16px rgba(10, 37, 64, .05);
}
.step-num {
  width: 44px; height: 44px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-weight: 900; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step-card h3 { font-size: 1rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.step-card p { font-size: .87rem; color: var(--ink3); line-height: 1.6; }
.step-detail-list { list-style: none; margin: 12px 0 0; padding: 0; }
.step-detail-list li {
  position: relative; padding: 5px 0 5px 16px;
  font-size: .82rem; color: var(--ink3); line-height: 1.5;
}
.step-detail-list li::before {
  content: '\2192'; position: absolute; left: 0; color: var(--brand); font-weight: 800;
}

/* Function mapping table */
.map-table { width: 100%; border-collapse: collapse; }
.map-table th, .map-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  text-align: left; font-size: .86rem;
}
.map-table thead th { background: var(--surface); font-weight: 800; color: var(--ink); }
.map-table tbody td { color: var(--ink3); }

/* Pilot and pricing cards */
.pilot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; align-items: start;
}
/* Scoped to .pilot-grid: the homepage and the long-form pages ship their own
   .plan cards, and those must be left exactly as they are. */
.pilot-grid .plan, .pilot-box {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 4px 16px rgba(10, 37, 64, .05);
}
.pilot-grid .plan.featured { border-color: var(--brand); box-shadow: 0 12px 32px rgba(10, 37, 64, .1); }
.pilot-grid .plan .topbar { height: 4px; background: var(--border); }
.pilot-grid .plan.featured .topbar { background: var(--brand); }
.pilot-grid .plan .top { padding: 22px 22px 0; }
.pilot-box { padding: 22px; }
.pilot-grid .plan .name, .pilot-box h3 {
  font-size: .95rem; font-weight: 800; color: var(--ink); margin: 0 0 10px;
}
.pilot-grid .plan .price, .pilot-box .price {
  font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1.1;
}
.pilot-grid .plan .price-note, .pilot-box .price-note {
  font-size: .8rem; color: var(--ink3); margin-top: 4px;
}
.pilot-grid .plan .divider { height: 1px; background: var(--border); margin: 18px 0; }
.feat-list, .pilot-list { list-style: none; margin: 0; padding: 0 22px; }
.pilot-list { padding: 16px 0 0; }
.feat-list li {
  position: relative; padding: 7px 0 7px 18px;
  font-size: .85rem; color: var(--ink3); line-height: 1.55;
}
.feat-list li::before {
  content: ''; position: absolute; left: 0; top: 15px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.pilot-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 7px 0;
  font-size: .85rem; color: var(--ink3); line-height: 1.55;
}
/* The markup ships a white tick on a translucent white disc, drawn for a dark
   card. These rules repaint it for the light card it now sits on. */
.chk { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.chk circle { fill: var(--brand); }
.chk path { stroke: #fff; }
.cta-wrap { padding: 18px 22px 22px; }
.plan-btn {
  display: block; text-align: center;
  background: var(--brand); color: #fff; font-weight: 800;
  border-radius: 999px; padding: .7rem 1.4rem;
  text-decoration: none; transition: background .2s;
}
.plan-btn:hover { background: var(--brand2); color: #fff; }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
