/* ComplyWiser LAT — Shared Stylesheet
   Visual identity matched to parent complywiser.com:
   - Royal blue primary, white backgrounds, black text
   - Inter throughout, lowercase wordmark logo
   - Eyebrow with blue ■ marker
   - Stats band with > prefix
   - Numbered industry cards
*/

:root {
  --blue-900: #0e1f73;
  --blue-800: #1a38b5;        /* primary brand */
  --blue-700: #2138c4;
  --blue-600: #2945d8;
  --blue-500: #4361ee;
  --blue-100: #e5e9f5;        /* light card border */
  --blue-50:  #f4f6fb;        /* light card / section bg */

  --black:     #0f1419;
  --gray-900:  #1a1f2e;
  --gray-700:  #2d3748;
  --gray-500:  #6b7280;
  --gray-300:  #cbd5e1;
  --gray-100:  #f1f3f7;
  --white:     #ffffff;
  --line:      #e5e9ef;

  /* Legacy aliases for inline styles in older HTML */
  --muted: #6b7280;

  --shadow-sm: 0 1px 2px rgba(15,32,116,0.05), 0 1px 4px rgba(15,32,116,0.04);
  --shadow-md: 0 8px 24px rgba(15,32,116,0.08), 0 2px 6px rgba(15,32,116,0.05);
  --shadow-lg: 0 24px 50px rgba(15,32,116,0.12);

  --radius: 6px;
  --max: 1240px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-800); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--black);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--gray-700); }

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

/* ───── HEADER ───── */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
}
.site-header.solid {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px; max-width: var(--max); margin: 0 auto;
}
.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  color: var(--white);
  display: inline-flex; align-items: baseline; gap: 8px;
  text-transform: lowercase;
}
.brand .tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 7px; border-radius: 3px;
  background: var(--blue-800); color: var(--white);
  text-transform: uppercase;
}
.solid .brand, .light-header .brand { color: var(--black); }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
  font-size: 0.96rem; font-weight: 500; color: var(--white);
  padding: 6px 0; position: relative;
}
.nav-links a:hover { opacity: 0.85; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: currentColor;
}
.solid .nav-links a, .light-header .nav-links a { color: var(--black); }
.solid .nav-links a:hover, .light-header .nav-links a:hover { color: var(--blue-800); }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px;
  overflow: hidden; font-size: 0.82rem; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 12px;
  cursor: pointer; color: var(--white); font: inherit;
  transition: background .15s, color .15s;
}
.lang-toggle button.active { background: var(--white); color: var(--blue-800); }
.solid .lang-toggle, .light-header .lang-toggle { border-color: var(--line); }
.solid .lang-toggle button, .light-header .lang-toggle button { color: var(--gray-700); }
.solid .lang-toggle button.active, .light-header .lang-toggle button.active { background: var(--blue-800); color: var(--white); }

.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--white); }
.solid .menu-btn, .light-header .menu-btn { color: var(--black); }

/* ───── EYEBROW (parent house style: blue ■ + uppercase blue text) ───── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue-800);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: ''; width: 14px; height: 14px;
  background: var(--blue-800); display: inline-block;
}
.dark .eyebrow { color: var(--white); }
.dark .eyebrow::before { background: var(--white); }

/* ───── HERO (institutional polish) ───── */
.hero {
  position: relative; overflow: hidden;
  min-height: 780px;
  background: var(--gray-900);
  color: var(--white);
  display: flex; align-items: center;
  padding: 160px 0 110px;
}
/* Gradient mesh */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(26,56,181,0.55) 0%, transparent 55%),
    radial-gradient(700px 500px at 10% 95%, rgba(67,97,238,0.28) 0%, transparent 60%),
    radial-gradient(500px 400px at 50% 50%, rgba(14,31,115,0.4) 0%, transparent 70%),
    linear-gradient(135deg, #0a1230 0%, #14225a 50%, #1a38b5 100%);
}
/* Subtle dot grid texture */
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 80px; align-items: center;
}
.hero-content { max-width: 720px; }
.hero h1 {
  color: var(--white); margin-bottom: 32px;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.12;
}
.hero h1 .accent { color: var(--blue-500); }
.hero .lead {
  font-size: 1.2rem; color: rgba(255,255,255,0.82);
  max-width: 540px; margin-bottom: 48px; font-weight: 400;
  line-height: 1.6;
}

/* Abstract architectural SVG composition on the right */
.hero-viz {
  position: relative; aspect-ratio: 1; max-width: 460px; justify-self: end;
  width: 100%;
}
.hero-viz svg { width: 100%; height: 100%; display: block; }

/* ───── TRUSTED BY (institutional polish) ───── */
.trusted-strip {
  margin-top: 80px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.trusted-strip .label {
  display: block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase; margin-bottom: 24px;
}
.trusted-strip .logos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center;
}
.client-logo {
  height: 38px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: rgba(255,255,255,0.4);
  font-weight: 600; font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--white); color: var(--blue-800); border-color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--blue-800); color: var(--white); border-color: var(--blue-800); transform: translateY(-1px); }
.btn-secondary {
  background: var(--blue-800); color: var(--white); border-color: var(--blue-800);
}
.btn-secondary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn-ghost-dark {
  background: transparent; color: var(--blue-800); border-color: var(--blue-800);
}
.btn-ghost-dark:hover { background: var(--blue-800); color: var(--white); }

/* ───── STATS BAND (parent style: solid royal blue, white >X numbers) ───── */
.stats-band {
  background: var(--blue-800);
  color: var(--white);
  padding: 90px 0;
}
.stats-band .eyebrow { color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.stats-band .eyebrow::before { background: var(--white); }
.stats-band h2 { color: var(--white); margin-bottom: 56px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.stat-item { padding: 8px 0; position: relative; }
.stat-item + .stat-item { padding-left: 40px; }
.stat-num {
  font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 700;
  color: var(--white); letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 22px;
}
.stat-label {
  font-size: 1rem; color: rgba(255,255,255,0.92);
  font-weight: 500;
}

/* ───── SECTIONS ───── */
section.block { padding: 110px 0; }
section.block.alt { background: var(--blue-50); }
section.block.dark { background: var(--gray-900); color: var(--white); }
section.block.dark h2, section.block.dark h3 { color: var(--white); }
section.block.dark p { color: rgba(255,255,255,0.78); }

.section-head { max-width: 800px; margin-bottom: 60px; }
.section-head p { color: var(--gray-500); font-size: 1.08rem; margin-top: 18px; }
.dark .section-head p { color: rgba(255,255,255,0.75); }

.section-head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 60px; gap: 40px;
}
.section-head-row .eyebrow { margin-bottom: 0; }

/* ───── CARD GRIDS ───── */
.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  outline: 1px solid var(--blue-100);
}
.card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center; margin-bottom: 24px;
  color: var(--blue-800);
}
.card .icon svg { width: 28px; height: 28px; }
.dark .card .icon svg, .prospera-band .card .icon svg { color: var(--blue-500); }
.card h3 { margin-bottom: 14px; color: var(--black); }
.card p { color: var(--gray-700); font-size: 0.96rem; line-height: 1.6; }

.dark .card {
  background: rgba(255,255,255,0.04);
}
.dark .card h3 { color: var(--white); }
.dark .card p { color: rgba(255,255,255,0.72); }
.dark .card .icon { color: var(--blue-500); }

/* ───── NUMBERED INDUSTRY CARDS (parent "We work with" style) ───── */
.numbered-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.numbered-item {
  position: relative; padding: 50px 32px 50px 110px;
  background: var(--blue-50);
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  min-height: 200px;
  display: flex; align-items: center; gap: 22px;
  transition: background .15s;
}
.numbered-item:hover { background: var(--white); }
.numbered-item .bignum {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 6rem; font-weight: 700; color: var(--blue-100);
  letter-spacing: -0.04em; line-height: 1;
  pointer-events: none;
}
.numbered-item .icon {
  width: 48px; height: 48px; flex-shrink: 0;
  color: var(--blue-800);
  display: grid; place-items: center;
}
.numbered-item .icon svg { width: 32px; height: 32px; }
.numbered-item .label {
  font-size: 1.15rem; font-weight: 600; color: var(--black);
}
.numbered-item .sub { display:block; font-weight: 400; color: var(--gray-500); font-size: 0.92rem; margin-top: 4px; }

/* ───── ADVANTAGES GRID (parent style: bordered cells with icons) ───── */
.advantages-layout {
  display: grid; grid-template-columns: 1fr 2fr; gap: 0;
}
.adv-heading { padding: 40px 60px 40px 0; }
.adv-heading h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.adv-cells {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.adv-cell {
  padding: 44px 28px; text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background .15s;
}
.adv-cell:hover { background: var(--blue-50); }
.adv-cell .icon {
  color: var(--blue-800);
  margin-bottom: 20px;
  display: inline-block;
  width: 40px; height: 40px;
}
.adv-cell .icon svg { width: 36px; height: 36px; }
.adv-cell .label {
  font-size: 0.96rem; font-weight: 500; color: var(--black); line-height: 1.45;
}

/* ───── INDUSTRY CHIPS ───── */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: var(--white);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.92rem; font-weight: 500;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-800); }

/* ───── FEATURE / SPLIT ───── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .visual {
  border-radius: var(--radius);
  background: var(--gray-900);
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split .visual svg { width: 100%; height: 100%; display: block; }

/* Prospera band side visual layout */
.prospera-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 70px; align-items: center;
}
.prospera-viz {
  aspect-ratio: 1; max-width: 480px; width: 100%; justify-self: end;
  position: relative;
}
.prospera-viz svg { width: 100%; height: 100%; display: block; }

/* Services hero side visual */
.services-hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 80px; align-items: center;
}
.services-viz { max-width: 480px; width: 100%; justify-self: end; }
.services-viz svg { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

@media (max-width: 900px) {
  .prospera-grid, .services-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .prospera-viz, .services-viz { max-width: 100%; justify-self: start; }
}

.bullets { list-style: none; margin-top: 26px; }
.bullets li {
  padding: 14px 0 14px 34px; position: relative;
  border-bottom: 1px solid var(--line);
  color: var(--gray-700);
}
.bullets li:last-child { border-bottom: 0; }
.bullets li::before {
  content: '✓'; position: absolute; left: 0; top: 14px;
  color: var(--blue-800); font-weight: 700;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-50); border-radius: 4px; font-size: 0.85rem;
}

/* ───── PROSPERA BAND ───── */
.prospera-band {
  background:
    radial-gradient(circle at 80% 30%, rgba(67,97,238,0.2) 0%, transparent 50%),
    var(--gray-900);
  color: var(--white); padding: 110px 0;
}
.prospera-band h2 { color: var(--white); }
.prospera-band p { color: rgba(255,255,255,0.78); }
/* Home Próspera band — numbered license cards (dark variant) */
.license-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.license-card {
  position: relative;
  padding: 44px 36px 44px 120px;
  background: rgba(255,255,255,0.025);
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  min-height: 170px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  transition: background .2s;
}
.license-card:hover { background: rgba(255,255,255,0.06); }
.license-card .bignum {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 5.2rem; font-weight: 700; color: rgba(67,97,238,0.22);
  letter-spacing: -0.04em; line-height: 1;
  pointer-events: none;
}
.license-card .label {
  font-size: 1.15rem; font-weight: 600; color: var(--white);
}
.license-card .sub {
  font-size: 0.88rem; color: rgba(255,255,255,0.58); font-weight: 400;
}

/* Prospera page — numbered license detail cards (light variant) */
.license-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 12px;
}
.license-detail-card {
  position: relative; overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 36px 44px 140px;
  min-height: 220px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.license-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-100);
}
.license-detail-card .bignum {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 7.5rem; font-weight: 700; color: var(--blue-100);
  letter-spacing: -0.05em; line-height: 1;
  pointer-events: none;
}
.license-detail-card h3 { margin-bottom: 12px; color: var(--black); font-size: 1.25rem; }
.license-detail-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .license-grid, .license-detail-grid { grid-template-columns: 1fr; }
  .license-card { padding-left: 100px; }
  .license-detail-card { padding-left: 115px; }
  .license-detail-card .bignum { font-size: 6rem; }
}

/* ───── CTA STRIP ───── */
.cta-strip {
  background: var(--blue-800); color: var(--white);
  padding: 80px 0; text-align: center;
}
.cta-strip h2 { color: var(--white); margin-bottom: 14px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.cta-strip a.email-link {
  color: var(--white); font-weight: 700; font-size: 1.35rem;
  border-bottom: 2px solid rgba(255,255,255,0.4); padding-bottom: 2px;
}
.cta-strip a.email-link:hover { border-color: var(--white); }

/* ───── FOOTER ───── */
.site-footer {
  background: var(--gray-900); color: rgba(255,255,255,0.65);
  padding: 80px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px;
  padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 {
  color: var(--white); font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid a { color: rgba(255,255,255,0.65); display: block; padding: 5px 0; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--white); }
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.94rem; max-width: 320px; margin-top: 6px; }
.footer-brand {
  color: var(--white); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -0.025em; margin-bottom: 12px;
  display: inline-flex; align-items: baseline; gap: 8px;
  text-transform: lowercase;
}
.footer-brand .tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 7px; border-radius: 3px;
  background: var(--blue-800); color: var(--white); text-transform: uppercase;
}
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between;
  font-size: 0.86rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ───── INNER PAGE HERO (matches home hero treatment, more compact) ───── */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--gray-900);
  padding: 140px 0 80px;
  color: var(--white);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(26,56,181,0.55) 0%, transparent 55%),
    radial-gradient(700px 500px at 10% 95%, rgba(67,97,238,0.28) 0%, transparent 60%),
    radial-gradient(500px 400px at 50% 50%, rgba(14,31,115,0.4) 0%, transparent 70%),
    linear-gradient(135deg, #0a1230 0%, #14225a 50%, #1a38b5 100%);
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 70%, transparent 100%);
  opacity: 0.6;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  color: var(--white); margin-bottom: 18px; max-width: 880px;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
  font-weight: 700;
}
.page-hero p.lead { font-size: 1.08rem; color: rgba(255,255,255,0.85); max-width: 680px; }
.page-hero .eyebrow { color: rgba(255,255,255,0.85); }
.page-hero .eyebrow::before { background: var(--white); }

/* ───── CONTACT ───── */
.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 56px;
  box-shadow: var(--shadow-md); text-align: center;
  max-width