/* Northgate Compliance — Miro Design System */
/* System font stack, white canvas, Blue 450 accent */

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

:root {
  --color-bg: #ffffff;
  --color-canvas: #f8f9fc;
  --color-text: #1c1c1e;
  --color-secondary: #555a6a;
  --color-muted: #6b7086;
  --color-accent: #3d56e0;
  --color-accent-hover: #3049c9;
  --color-accent-light: #eef0ff;
  --color-success: #00754a;
  --color-border: #c7cad5;
  --color-border-light: #e0e2e8;
  --color-coral: #ffc6c6;
  --color-coral-bg: #fff5f5;
  --color-teal: #c3faf5;
  --color-teal-bg: #f0fdfb;
  --color-orange: #ffe6cd;
  --color-orange-bg: #fffaf5;
  --color-pink: #fde0f0;
  --color-pink-bg: #fef7fc;
  --shadow-ring: 0 0 0 1px rgb(224 226 232);
  --shadow-card: 0 2px 8px rgba(28,28,30,0.06), 0 0 0 1px rgb(224 226 232);
  --shadow-elevated: 0 8px 24px rgba(28,28,30,0.10), 0 0 0 1px rgb(224 226 232);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 40px;
  --radius-btn: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Menlo, monospace;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- TYPOGRAPHY ---- */

h1, h2, h3 {
  font-family: var(--font);
  line-height: 1.2;
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: var(--weight-extrabold); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: var(--weight-bold); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: var(--weight-semibold); }

p {
  color: var(--color-secondary);
  margin-bottom: 1rem;
  max-width: 68ch;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

strong { font-weight: var(--weight-semibold); color: var(--color-text); }

small, .text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.8125rem; }
.text-lg { font-size: 1.125rem; }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* ---- LAYOUT ---- */

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 112px 0; }
.section-canvas { background: var(--color-canvas); }
.section-coral { background: var(--color-coral-bg); }
.section-teal { background: var(--color-teal-bg); }
.section-pink { background: var(--color-pink-bg); }

.section-label {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 56px;
}

.section-header p {
  font-size: 1.125rem;
  margin-top: 12px;
  max-width: 60ch;
}

/* ---- GRID ---- */

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
}

/* ---- HEADER / NAV ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(28,28,30,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo:hover { text-decoration: none; }

.nav-logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.nav-logo-sub {
  font-size: 0.7rem;
  font-weight: var(--weight-normal);
  color: var(--color-muted);
  display: block;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  font-weight: var(--weight-medium);
  color: var(--color-secondary);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover {
  background: var(--color-canvas);
  color: var(--color-text);
  text-decoration: none;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition), transform 80ms;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: 0 4px 12px rgba(61,86,224,0.30);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-canvas);
  border-color: var(--color-border);
  color: var(--color-text);
}


.btn-sm { padding: 7px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: background var(--transition);
}
.nav-toggle:hover { background: var(--color-canvas); }
.nav-toggle svg { display: block; }

/* Mobile nav drawer is hidden everywhere by default; only the mobile
   breakpoint reveals it via .open. Without this base rule it renders
   unstyled in normal flow at the top-left on desktop. */
.nav-menu-overlay { display: none; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; align-items: center; }
  .nav-cta .btn-outline { display: none; }
  .nav-links { display: none; }

  .nav-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,28,30,0.5);
    z-index: 200;
  }
  .nav-menu-overlay.open { display: block; }
  .nav-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(300px, 90vw);
    height: 100%;
    background: var(--color-bg);
    padding: 24px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(28,28,30,0.12);
  }
  .nav-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
  }
  .nav-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--color-secondary);
    transition: background var(--transition);
    font-size: 1.25rem;
    line-height: 1;
  }
  .nav-close-btn:hover { background: var(--color-canvas); }
  .nav-links-mobile {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .nav-links-mobile a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: var(--weight-medium);
    color: var(--color-text);
    border-radius: var(--radius-md);
    transition: background var(--transition);
  }
  .nav-links-mobile a:hover { background: var(--color-canvas); text-decoration: none; }
  .nav-mobile-cta {
    margin-top: 16px;
  }
  .nav-mobile-cta .btn { width: 100%; justify-content: center; }
}

/* ---- HERO ---- */

.hero {
  padding: 96px 0 80px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 0%, rgba(61,86,224,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero-subhead {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--color-secondary);
  max-width: 58ch;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

.hero-metric {
  display: flex;
  flex-direction: column;
}
.hero-metric-value {
  font-size: 1.75rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-metric-label {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---- AT A GLANCE ---- */

.glance-card {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow: var(--shadow-elevated);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 700px) {
  .glance-card { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}

.glance-facts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.glance-facts li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.45;
}
.glance-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.glance-nav h3 {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 14px;
}
.glance-nav ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  counter-reset: nav;
}
.glance-nav li { counter-increment: nav; }
.glance-nav a {
  font-size: 0.875rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  transition: color var(--transition);
}
.glance-nav a::before {
  content: counter(nav, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  color: var(--color-muted);
  flex-shrink: 0;
}
.glance-nav a:hover { color: var(--color-accent); text-decoration: none; }

@media (max-width: 480px) {
  .glance-nav ol { grid-template-columns: 1fr; }
}

/* ---- PRESS STRIP ---- */

.press-strip {
  padding: 32px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.press-label {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 20px;
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 32px;
}

.press-logo {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  color: var(--color-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.press-logo:hover { color: var(--color-secondary); text-decoration: none; }

/* ---- ENTITY DEF ---- */

.entity-def {
  background: var(--color-accent-light);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 28px;
  margin: 24px 0 32px;
}
.entity-def p {
  color: var(--color-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

/* ---- CARDS ---- */

.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}
.card p { font-size: 0.9375rem; margin: 0; }

/* ---- TECH STACK ---- */

.stack-group {
  margin-bottom: 28px;
}
.stack-group h3 {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 12px;
}
.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  border-radius: 100px;
  background: var(--color-canvas);
  color: var(--color-text);
  border: 1px solid var(--color-border-light);
  white-space: nowrap;
}
.tag-accent {
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-color: rgba(61,86,224,0.2);
}
.tag-coral {
  background: #fff5f5;
  color: #922b21;
  border-color: #ffc6c6;
}
.tag-teal {
  background: var(--color-teal-bg);
  color: #0a7060;
  border-color: var(--color-teal);
}

/* ---- SERVICES ---- */

.service-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border-light);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-elevated);
}

.service-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
}

.service-features {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-secondary);
}
.service-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  line-height: 1.4;
}

.service-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-light);
  font-size: 0.875rem;
  color: var(--color-muted);
}
.service-price strong {
  color: var(--color-text);
  font-size: 1.0625rem;
}

/* ---- TABLES ---- */

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  font-size: 0.9rem;
}

thead {
  background: var(--color-canvas);
}
thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
}
tbody td {
  padding: 14px 20px;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  line-height: 1.5;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(248,249,252,0.8); }
.td-label {
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  white-space: nowrap;
}
.td-check { color: var(--color-success); font-weight: var(--weight-bold); }
.td-x { color: #922b21; font-weight: var(--weight-bold); }
.td-partial { color: #a15200; }

/* ---- CASE STUDIES ---- */

.case-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border-light);
}

.case-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.case-badge {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  padding: 3px 10px;
  border-radius: 100px;
}
.case-badge-exchange { background: var(--color-teal); color: #0a7060; }
.case-badge-venue { background: var(--color-coral); color: #922b21; }
.case-badge-broker { background: var(--color-orange); color: #884400; }

.case-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: var(--color-canvas);
  border-radius: var(--radius-md);
}
.case-metric {
  display: flex;
  flex-direction: column;
}
.case-metric-value {
  font-size: 1.375rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-metric-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* ---- PRICING ---- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

.pricing-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: var(--color-accent);
  background: linear-gradient(160deg, rgba(61,86,224,0.04) 0%, #fff 60%);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--color-accent);
}

.pricing-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-accent);
  color: #fff;
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 16px;
  align-self: flex-start;
}

.pricing-name {
  font-size: 1.0625rem;
  font-weight: var(--weight-bold);
  margin-bottom: 4px;
}
.pricing-tagline {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 20px;
}
.pricing-price-value {
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.pricing-price-suffix {
  font-size: 0.875rem;
  color: var(--color-muted);
}
.pricing-valid {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  margin-top: 4px;
}
.pricing-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-secondary);
}
.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  line-height: 1.4;
}

/* ---- TESTIMONIALS ---- */

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border-light);
}
.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent-light);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  flex-shrink: 0;
}
.testimonial-name {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.testimonial-role {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ---- FOUNDER ---- */

.founder-block {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .founder-block { grid-template-columns: 1fr; gap: 28px; }
}
.founder-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.founder-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-accent);
  letter-spacing: -0.02em;
  border: 3px solid var(--color-border-light);
}
.founder-certs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.founder-cert {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  padding: 4px 8px;
  background: var(--color-canvas);
  border-radius: var(--radius-sm);
}

.founder-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.founder-anecdote {
  background: var(--color-canvas);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 20px;
  border-left: 3px solid var(--color-accent);
}
.founder-anecdote p {
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--color-secondary);
  margin: 0;
}

/* ---- RESEARCH NOTE ---- */

.research-card {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, rgba(195,250,245,0.3) 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1.5px solid rgba(61,86,224,0.2);
  box-shadow: var(--shadow-card);
}
.research-id {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.research-title {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}
.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
/* The research note sits on the --color-accent-light (#eef0ff) gradient,
   where --color-muted computes 4.33:1 and misses the small-text minimum.
   --color-secondary is the next token down the same neutral ramp, 6.07:1
   on that stop, and still reads quieter than the body text around it. */
.research-meta-item {
  font-size: 0.8125rem;
  color: var(--color-secondary);
}
.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

/* ---- FAQ ---- */
/* Native <details>/<summary> disclosure: works with JavaScript disabled,
   which a custom button+aria-expanded pattern needs script for. */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-list details {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  background: var(--color-bg);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  list-style: none;
  transition: background var(--transition);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--color-canvas); }
.faq-list summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.faq-list summary::after {
  content: '+';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-canvas);
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.faq-list details[open] summary::after {
  content: '\2212';
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.faq-list details > p {
  padding: 4px 20px 0;
  font-size: 0.9375rem;
  color: var(--color-secondary);
  line-height: 1.65;
  max-width: none;
}
.faq-list details > p:last-of-type { padding-bottom: 20px; }

/* ---- GLOSSARY ---- */

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.glossary-item {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-ring);
  border: 1px solid var(--color-border-light);
}
.glossary-term {
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: 6px;
}
.glossary-def {
  font-size: 0.875rem;
  color: var(--color-secondary);
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

/* ---- INDUSTRIES ---- */

.industries-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  font-size: 0.9rem;
  font-weight: var(--weight-medium);
  color: var(--color-text);
  box-shadow: var(--shadow-ring);
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: default;
}
.industry-pill:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(61,86,224,0.12);
}

/* ---- TEAM ROLES ---- */

.role-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-ring);
  border: 1px solid var(--color-border-light);
}
.role-title {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: 6px;
}
.role-desc {
  font-size: 0.875rem;
  color: var(--color-secondary);
  margin: 0;
  max-width: none;
}

/* ---- DELIVERABLES ---- */

.deliverable-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.deliverable-row:last-child { border-bottom: none; }
.deliverable-num {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.deliverable-content h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}
.deliverable-content p {
  font-size: 0.875rem;
  margin: 0;
  max-width: none;
}

/* ---- GUARANTEES ---- */

.guarantees-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guarantee-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.guarantee-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,180,115,0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: var(--weight-bold);
  font-size: 0.9rem;
}
.guarantee-content h3 { font-size: 0.9375rem; margin-bottom: 2px; }
.guarantee-content p { font-size: 0.875rem; margin: 0; max-width: none; }

/* ---- CONTACT ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 1rem;
}
.contact-label {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.contact-value {
  font-size: 0.9375rem;
  color: var(--color-text);
  font-weight: var(--weight-medium);
}
.contact-value a { color: var(--color-text); }
.contact-value a:hover { color: var(--color-accent); }

/* ---- POLICIES ---- */

.policies-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
details {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
}
details[open] { box-shadow: var(--shadow-ring); }
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+';
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform var(--transition);
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
.details-body {
  padding: 0 20px 20px;
  font-size: 0.875rem;
  color: var(--color-secondary);
  line-height: 1.65;
}
.details-body p { max-width: none; font-size: 0.875rem; }
.details-body h3 { font-size: 0.875rem; margin-top: 16px; margin-bottom: 6px; }
.details-body ul { padding-left: 18px; margin-bottom: 12px; }
.details-body li { margin-bottom: 6px; }

/* ---- METHODOLOGY ---- */

.method-steps {
  display: flex;
  flex-direction: column;
  position: relative;
}
.method-steps::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 42px;
  bottom: 42px;
  width: 2px;
  background: var(--color-border-light);
}

.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  position: relative;
}
.method-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-bg);
}
.method-content h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.method-content p { font-size: 0.9rem; margin: 0; }

/* ---- INTEGRATIONS ---- */

.integration-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-ring);
  transition: border-color var(--transition), transform var(--transition);
}
.integration-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.integration-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  color: var(--color-secondary);
  flex-shrink: 0;
}
.integration-name {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}
.integration-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ---- COST DRIVERS ---- */

.cost-factor {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  align-items: flex-start;
}
.cost-factor:last-child { border-bottom: none; }
.cost-factor-label {
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  min-width: 200px;
  flex-shrink: 0;
}
.cost-factor-effect {
  font-size: 0.9rem;
  color: var(--color-secondary);
}
@media (max-width: 600px) {
  .cost-factor { flex-direction: column; gap: 4px; }
  .cost-factor-label { min-width: unset; }
}

/* ---- BUYER GUIDE ---- */

.buyer-guide-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.buyer-guide-item:last-child { border-bottom: none; }
.buyer-guide-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.buyer-guide-item p { font-size: 0.9375rem; margin: 0; }

/* ---- AI X COMPLIANCE ---- */

.ai-card {
  background: linear-gradient(135deg, #1c1c1e 0%, #2d2d30 100%);
  border-radius: var(--radius-xl);
  padding: 40px;
  color: rgba(255,255,255,0.85);
}
.ai-card h2 { color: #fff; }
.ai-card p { color: rgba(255,255,255,0.65); max-width: 60ch; }
.ai-card .section-label { color: #a0b0ff; }
.ai-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ai-feature:last-child { border-bottom: none; }
.ai-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(61,86,224,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.ai-feature h3 { color: #fff; font-size: 0.9375rem; margin-bottom: 4px; }
.ai-feature p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin: 0; }

/* ---- FOOTER ---- */

.site-footer {
  background: #1c1c1e;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: 8px;
  display: block;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.62);
  margin-bottom: 20px;
  max-width: 28ch;
  line-height: 1.5;
}

.footer-col h3 {
  font-size: 0.8125rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.58);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.6);
}

/* ---- REVEAL ANIMATION ---- */

.reveal {
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.hidden {
  opacity: 0;
  transform: translateY(20px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---- UTILITY ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.items-start { align-items: flex-start; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.max-w-prose { max-width: 68ch; }
.max-w-64ch { max-width: 64ch; }
.max-w-56ch { max-width: 56ch; }
.pad-20 { padding: 20px; }
.pad-36 { padding: 36px; }
.grid-top-64 { gap: 64px; align-items: start; }
.research-desc { max-width: none; color: var(--color-secondary); }
.footer-legal-sub { margin-top: 4px; display: block; }
.contact-checklist {
  padding-left: 18px;
  margin-top: 12px;
  color: var(--color-secondary);
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-link {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}
.inline-link:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-metrics { gap: 20px; }
  .glance-card { padding: 20px; }
}

/* ==========================================================================
   CONVERSION UPGRADE (rollout, Task 14) -- new blocks per CLAUDE.md section H
   ========================================================================== */

/* ---- HERO MEDIA ---- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: 40px;
  align-items: center;
}
.hero-media {
  display: flex;
  justify-content: center;
}
.hero-media img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  background: var(--color-canvas);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-media img { max-width: 300px; }
}

/* ---- HERO PRICE ---- */

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  background: var(--color-accent-light);
  border: 1px solid rgba(61,86,224,0.18);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 28px;
  font-size: 0.9375rem;
}
.hero-price-label { color: var(--color-text); font-weight: var(--weight-medium); }
.hero-price-amt { color: var(--color-accent); font-weight: var(--weight-extrabold); font-size: 1.125rem; }
.hero-price-market { color: var(--color-secondary); font-size: 0.8125rem; width: 100%; }

/* ---- DIAGRAM FIGURES (full-width informative SVG renders) ---- */

.diagram-figure { margin: 32px 0 0; }
.diagram-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: var(--color-canvas);
}
.diagram-figure figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}
.diagram-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.diagram-pair .diagram-figure { margin-top: 0; }
@media (max-width: 640px) {
  .diagram-pair { grid-template-columns: 1fr; }
}

/* ---- FIGURE NOTE ---- */

.figure-note {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.5;
}
caption.figure-note {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 4px;
  font-weight: var(--weight-medium);
}
p.figure-note { margin-top: 12px; max-width: none; }

/* ---- RATING CARDS ---- */

.rating-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 32px 0 4px;
}
.rating-card {
  flex: 1;
  min-width: 190px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border-light);
  box-shadow: var(--shadow-card);
  padding: 24px;
  text-align: center;
}
.rating-score {
  font-size: 2rem;
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.rating-stars { color: #946200; font-size: 1.0625rem; margin-bottom: 6px; letter-spacing: 2px; }
.rating-platform { font-size: 0.8125rem; color: var(--color-muted); font-weight: var(--weight-medium); margin: 0; }

/* ---- REVIEW META ---- */

.review-meta {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ---- PROCESS STEP META ---- */

.step-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}
.step-meta dt {
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.step-meta dd {
  font-size: 0.8125rem;
  color: var(--color-text);
  font-weight: var(--weight-medium);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .step-meta { grid-template-columns: 1fr; gap: 8px; }
}

/* ---- CASE CARD: image + Challenge/What we did/Result ---- */

.case-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  margin: 16px 0 4px;
  background: var(--color-canvas);
}
.case-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
}
.case-body dt {
  font-size: 0.75rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
  margin-bottom: 2px;
}
.case-body dd { font-size: 0.9375rem; color: var(--color-secondary); line-height: 1.5; }

/* ---- CERT CARD ---- */

.cert-card {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--color-border-light);
}
.cert-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  background: var(--color-canvas);
}
.cert-card h3 { margin-bottom: 6px; }
.cert-number {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  margin-bottom: 8px;
}
.cert-card p { font-size: 0.875rem; margin-bottom: 6px; color: var(--color-secondary); }
.cert-card p:last-child { margin-bottom: 0; }

/* ---- TOPIC CHIPS ---- */

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.topic-chips a {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  font-size: 0.8125rem;
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  background: var(--color-accent-light);
  border: 1px solid rgba(61,86,224,0.2);
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.topic-chips a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.topic-chips a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- LEGAL DETAILS (footer) ---- */

.legal-details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 28px;
}
.legal-details h3 { color: #fff; font-size: 0.875rem; margin-bottom: 14px; }
.legal-details dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  font-size: 0.8125rem;
}
.legal-details dt { color: rgba(255,255,255,0.55); font-weight: var(--weight-medium); }
.legal-details dd { color: rgba(255,255,255,0.82); }
.legal-details address { font-style: normal; }
@media (max-width: 480px) {
  .legal-details dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-details dd { margin-bottom: 8px; }
}

/* ---- STICKY CTA ---- */

.sticky-cta {
  position: fixed;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-elevated);
}
.sticky-cta-text {
  font-size: 0.875rem;
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sticky-cta .btn { flex-shrink: 0; }
@media (max-width: 768px) {
  body { padding-bottom: 78px; }
}
@media (min-width: 769px) {
  .sticky-cta {
    top: auto;
    left: auto;
    right: 24px;
    bottom: 24px;
    max-width: 420px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 10px 10px 10px 22px;
  }
}

/* ---- COMMERCIAL TERMS ---- */

#terms .card h3 { margin-bottom: 8px; }
#terms .card p { font-size: 0.9375rem; margin: 0; }
